产品一张表luckysheet前端代码库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.6 KiB

5 years ago
const Store = {
5 years ago
container: null,
luckysheetfile: null,
defaultcolumnNum: 60,
defaultrowNum: 84,
fullscreenmode: true,
devicePixelRatio: 1,
currentSheetIndex: 0,
5 years ago
flowdata: [],
config: {},
5 years ago
5 years ago
visibledatarow: [],
5 years ago
visibledatacolumn: [],
ch_width: 0,
rh_height: 0,
5 years ago
cellmainWidth: 0,
cellmainHeight: 0,
5 years ago
toolbarHeight: 35,
infobarHeight: 30,
calculatebarHeight: 30,
rowHeaderWidth: 46,
columeHeaderHeight: 20,
cellMainSrollBarSize: 12,
sheetBarHeight: 27,
statisticBarHeight: 23,
luckysheetTableContentHW: [0, 0],
defaultcollen: 73,
defaultrowlen: 19,
5 years ago
jfcountfuncTimeout: null,
jfautoscrollTimeout: null,
luckysheet_select_status: false,
5 years ago
luckysheet_select_save: [{ "row": [0, 0], "column": [0, 0] }],
5 years ago
luckysheet_selection_range: [],
5 years ago
5 years ago
luckysheet_copy_save: {}, //复制粘贴
luckysheet_paste_iscut: false,
filterchage: true, //筛选
luckysheet_filter_save: { "row": [], "column": [] },
luckysheet_sheet_move_status: false,
luckysheet_sheet_move_data: [],
luckysheet_scroll_status: false,
luckysheetisrefreshdetail: true,
luckysheetisrefreshtheme: true,
luckysheetcurrentisPivotTable: false,
luckysheet_rows_selected_status: false, //行列标题相关参
luckysheet_cols_selected_status: false,
luckysheet_rows_change_size: false,
luckysheet_rows_change_size_start: [],
luckysheet_cols_change_size: false,
luckysheet_cols_change_size_start: [],
luckysheet_cols_dbclick_timeout: null,
luckysheet_cols_dbclick_times: 0,
5 years ago
5 years ago
luckysheetCellUpdate: [],
luckysheet_shiftpositon: null,
iscopyself: true,
orderbyindex: 0, //排序下标
luckysheet_model_move_state: false, //模态框拖动
luckysheet_model_xy: [0, 0],
luckysheet_model_move_obj: null,
luckysheet_cell_selected_move: false, //选区拖动替换
luckysheet_cell_selected_move_index: [],
luckysheet_cell_selected_extend: false, //选区下拉
luckysheet_cell_selected_extend_index: [],
luckysheet_cell_selected_extend_time: null,
clearjfundo: true,
jfredo: [],
jfundo: [],
lang: 'en', //language
createChart: '',
highlightChart: '',
5 years ago
zIndex: 15,
chartparam: {
5 years ago
luckysheetCurrentChart: null, //current chart_id
luckysheetCurrentChartActive: false,
luckysheetCurrentChartMove: null, // Debounce state
luckysheetCurrentChartMoveTimeout: null,//拖动图表框的节流定时器
luckysheetCurrentChartMoveObj: null, //chart DOM object
luckysheetCurrentChartMoveXy: null, //上一次操作结束的图表信息,x,y: chart框位置,scrollLeft1,scrollTop1: 滚动条位置
luckysheetCurrentChartMoveWinH: null, //左右滚动条滑动距离
luckysheetCurrentChartMoveWinW: null, //上下滚动条滑动距离
luckysheetCurrentChartResize: null,
luckysheetCurrentChartResizeObj: null,
luckysheetCurrentChartResizeXy: null,
luckysheetCurrentChartResizeWinH: null,
luckysheetCurrentChartResizeWinW: null,
luckysheetInsertChartTosheetChange: true, // 正在执行撤销
5 years ago
luckysheetCurrentChartZIndexRank : 100,
luckysheet_chart_redo_click:false, //撤销重做时标识
luckysheetCurrentChartMaxState: false, //图表全屏状态
jfrefreshchartall: '',
changeChartCellData: '',
5 years ago
renderChart: '',
getChartJson: ''
},
functionList:null, //function list explanation
luckysheet_function:null,
5 years ago
chart_selection: {},
currentChart: '',
scrollRefreshSwitch:true,
5 years ago
}
5 years ago
export default Store;