1.6.5 • Published 10 months ago

luckysheetvue v1.6.5

Weekly downloads
-
License
GNU
Repository
github
Last release
10 months ago

luckysheetVue

LuckySheet Wrapper for vue 2

npm.io

Features

  • Open Form File
  • Open From Url

Tested in (desktop)

  • Edge
  • Chrome
  • Firefox

Installation

npm i luckysheetvue --save

props

PropTypeDescription
urlStringExcel Url
fileStringExcel File
langStringset Ui Language
showInfoBarBooleanShow/Hide Info Bar
backUrlStringUrl Address For Back Button

Method

LuckySheet Method Documents

Method NameDescription
downloadExcelDownload Excel File
getCellValueGet the value of the cell
setCellValueSet the value of a cell
clearCellClear the contents of the specified cell of the specified worksheet
deleteCellDelete the specified cell of the specified worksheet
setCellFormatSet the properties of a cell
findFind the specified content in a worksheet
replaceFind the specified content in a worksheet and replace it with new content
exitEditModeExit edit mode. After double-clicking the cell with the mouse, it will enter the cell editing mode
setHorizontalFrozenFreeze row operation
setVerticalFrozenFreeze column operation
setBothFrozenFreeze rank operation
cancelFrozenCancel freeze operation
insertRowInsert a blank line in the number line at the position of the row line
insertColumnInsert a blank column in column number at the position of column column
deleteRowDelete the specified row
deleteColumnDelete the specified column
hideRowHide the specified row
hideColumnHide the specified column
showRowShow the specified row
showColumnShow the specified column
getRangeReturns an array of current selection objects, there may be multiple selections
getRangeWithFlattenReturns an array representing the positions of all cells in the specified area
getRangeValuesWithFlatteReturns an array of objects representing the contents of all cells in a specified range
getRangeAxisReturns an array of coordinate strings corresponding to the current selection
getRangeValueReturns the data of a two-dimensional array of cells in the specified range of
getRangeJsonCopy the data in the specified cell area and return the data in json format
getRangeDiagonalCopy the data in the specified cell area
getRangeBooleanCopy the data in the specified cell area
setRangeShowSpecify selection areas to be selected and choose whether to highlight or not
setRangeValueAssign a cell array data to the specified area
setRangeFormatSet the cell format of the specified range, generally used as a processing format
setRangeMergeSet the merged cells for the worksheet with the specified subscript and the selected range
cancelRangeMergeUnmerge cells in the selected range for the worksheet with the specified subscript
setRangeSortFor the worksheet of the specified subscript
setRangeSortMultiFor the worksheet of the specified subscript
setRangeConditionalFormatDefaultConditional format
setRangeConditionalFormatConditional formatting rule
deleteRangeConditionalFormatFor the worksheet of the specified subscript
getAllSheetsReturn all worksheet configurations
getLuckysheetfileReturns a one-dimensional array luckysheetfile of all table data structures
setSheetAddAdd a sheet and return the newly added worksheet object
setSheetMoveSpecify the worksheet to move one position to the left or right, or specify subscript
showGridLinesShow the grid lines of the specified subscript worksheet
hideGridLinesHide the grid lines of the specified subscript worksheet
setWorkbookNameSet workbook name
getWorkbookNameget workbook name
refreshFormulaForce refresh formula
refreshMenuButtonFocusRefreshes the top status bar status of the specified cell
transToCellDatadata => celldata, data two-dimensional array data is converted into a one-dimensional array
toJsonThe exported json string can be directly

Event

LuckySheet Event Documents

Event NameDescription
updatedThe method executed after each operation is updated
cellEditBeforeTriggered before entering the cell editing mode
cellUpdateBeforeTriggered before updating this cell value
cellUpdatedTriggered after updating this cell
cellRenderBeforeTriggered before the cell is rendered
cellRenderAfterTriggered after the cell rendering ends
cellAllRenderBeforeThe method executed before all cells are rendered
rowTitleCellRenderBeforeTriggered before the row header cell is rendered
rowTitleCellRenderAfterTriggered after the row header cell is rendered
columnTitleCellRenderBeforeTriggered before the column header cell is rendered
columnTitleCellRenderAfterTriggered after the column header cell is rendered
rangeSelectFrame selection or trigger after setting selection
rangeMoveBeforeBefore moving the selection
rangeMoveAfterAfter moving the selection
rangeEditBeforeBefore the selection is modified
rangeEditAfterAfter the selection is modified
rangeCopyBeforeBefore copying selection
rangeCopyAfterAfter copying selection
rangePasteBeforeBefore pasting the selection
rangePasteAfterAfter pasting the selection
rangeCutBeforeBefore selection cut
rangeCutAfterAfter selection cut
rangeDeleteBeforeBefore the selection is deleted
rangeDeleteAfterAfter the selection is deleted
rangeClearBeforeBefore the selection is cleared
rangeClearAfterAfter the selection is cleared
rangePullBeforeBefore selection drop down
rangePullAfterAfter selection drop down
workbookCreateBeforeTriggered before the worksheet is created
workbookCreateAfterTriggered after the worksheet is created
workbookDestroyBeforeTriggered before the workbook is destroyed
workbookDestroyAfterTriggered after the workbook is destroyed
resizedAfter resize is executed
imageInsertBeforeBefore the picture is inserted
imageInsertAfterAfter the picture is inserted
imageUpdateBeforeBefore the picture is modified
imageUpdateAfterAfter the picture is modified
imageDeleteBeforeBefore the picture is deleted
imageDeleteAfterAfter the picture is deleted
commentInsertBeforeBefore inserting comments
commentInsertAfterAfter inserting comments
commentDeleteBeforeBefore deleting comments
commentDeleteAfterAfter deleting comments
commentUpdateBeforeBefore modifying comments
commentUpdateAfterAfter modifying comments
pivotTableEditBeforeBefore modifying the PivotTable, operations such as dragging fields, etc
pivotTableEditAfterAfter modifying the PivotTable, operations such as dragging fields, etc
frozenCreateBeforeBefore setting freeze
frozenCreateAfterAfter setting freeze
frozenCancelBeforeBefore unfreezing
frozenCancelAfterAfter unfreezing
onTogglePagerClick the page button to call back the function, return the current page number

Usage

import LuckySheet from "luckysheetVue";
<lucky-sheet
  url=""
  show-info-bar
  backUrl="/"
  lang="en"
  @updated="onUpdateData"
/>

More information

LuckySheet Documents

1.6.5

10 months ago

1.6.4

10 months ago

1.6.3

10 months ago

1.6.2

10 months ago

1.6.1

10 months ago

1.6.0

10 months ago

1.5.0

10 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago