@fecp/designer 5.4.106 → 5.4.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +2 -2
- package/es/node_modules/vxe-table/es/components.mjs +2 -1
- package/es/node_modules/vxe-table/es/grid/index.mjs +5 -1
- package/es/node_modules/vxe-table/es/grid/src/grid.mjs +20 -24
- package/es/node_modules/vxe-table/es/locale/lang/zh-CN.mjs +0 -6
- package/es/node_modules/vxe-table/es/table/module/custom/hook.mjs +8 -25
- package/es/node_modules/vxe-table/es/table/module/custom/panel.mjs +9 -14
- package/es/node_modules/vxe-table/es/table/module/export/export-panel.mjs +5 -11
- package/es/node_modules/vxe-table/es/table/module/export/import-panel.mjs +4 -11
- package/es/node_modules/vxe-table/es/table/module/filter/hook.mjs +19 -63
- package/es/node_modules/vxe-table/es/table/module/keyboard/hook.mjs +7 -18
- package/es/node_modules/vxe-table/es/table/module/menu/hook.mjs +2 -2
- package/es/node_modules/vxe-table/es/table/module/validator/hook.mjs +19 -19
- package/es/node_modules/vxe-table/es/table/src/body.mjs +17 -28
- package/es/node_modules/vxe-table/es/table/src/column.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/columnInfo.mjs +0 -2
- package/es/node_modules/vxe-table/es/table/src/emits.mjs +0 -1
- package/es/node_modules/vxe-table/es/table/src/footer.mjs +2 -2
- package/es/node_modules/vxe-table/es/table/src/group.mjs +1 -2
- package/es/node_modules/vxe-table/es/table/src/props.mjs +0 -4
- package/es/node_modules/vxe-table/es/table/src/table.mjs +496 -619
- package/es/node_modules/vxe-table/es/table/src/util.mjs +22 -286
- package/es/node_modules/vxe-table/es/toolbar/src/toolbar.mjs +7 -11
- package/es/node_modules/vxe-table/es/ui/index.mjs +4 -12
- package/es/node_modules/vxe-table/es/ui/src/dom.mjs +1 -24
- package/es/node_modules/vxe-table/es/ui/src/log.mjs +1 -1
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +3 -3
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +2 -2
- package/lib/node_modules/vxe-table/es/components.js +4 -3
- package/lib/node_modules/vxe-table/es/grid/index.js +4 -1
- package/lib/node_modules/vxe-table/es/grid/src/grid.js +19 -23
- package/lib/node_modules/vxe-table/es/locale/lang/zh-CN.js +0 -6
- package/lib/node_modules/vxe-table/es/table/module/custom/hook.js +8 -25
- package/lib/node_modules/vxe-table/es/table/module/custom/panel.js +8 -13
- package/lib/node_modules/vxe-table/es/table/module/export/export-panel.js +5 -11
- package/lib/node_modules/vxe-table/es/table/module/export/import-panel.js +4 -11
- package/lib/node_modules/vxe-table/es/table/module/filter/hook.js +19 -63
- package/lib/node_modules/vxe-table/es/table/module/keyboard/hook.js +7 -18
- package/lib/node_modules/vxe-table/es/table/module/menu/hook.js +2 -2
- package/lib/node_modules/vxe-table/es/table/module/validator/hook.js +19 -19
- package/lib/node_modules/vxe-table/es/table/src/body.js +17 -28
- package/lib/node_modules/vxe-table/es/table/src/column.js +1 -1
- package/lib/node_modules/vxe-table/es/table/src/columnInfo.js +0 -2
- package/lib/node_modules/vxe-table/es/table/src/emits.js +0 -1
- package/lib/node_modules/vxe-table/es/table/src/footer.js +2 -2
- package/lib/node_modules/vxe-table/es/table/src/group.js +1 -2
- package/lib/node_modules/vxe-table/es/table/src/props.js +0 -4
- package/lib/node_modules/vxe-table/es/table/src/table.js +494 -617
- package/lib/node_modules/vxe-table/es/table/src/util.js +22 -286
- package/lib/node_modules/vxe-table/es/toolbar/src/toolbar.js +6 -10
- package/lib/node_modules/vxe-table/es/ui/index.js +4 -12
- package/lib/node_modules/vxe-table/es/ui/src/dom.js +0 -23
- package/lib/node_modules/vxe-table/es/ui/src/log.js +1 -1
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +3 -3
- package/package.json +1 -1
|
@@ -78,7 +78,6 @@ function createInternalData() {
|
|
|
78
78
|
fullDataRowIdData: {},
|
|
79
79
|
// 数据集(仅可视)
|
|
80
80
|
visibleDataRowIdData: {},
|
|
81
|
-
keepUpdateFieldMaps: {},
|
|
82
81
|
footerFullDataRowData: {},
|
|
83
82
|
// 渲染中缓存数据
|
|
84
83
|
sourceDataRowIdData: {},
|
|
@@ -89,22 +88,16 @@ function createInternalData() {
|
|
|
89
88
|
mergeHeaderMaps: {},
|
|
90
89
|
// 已合并单元格数据集合
|
|
91
90
|
mergeHeaderCellMaps: {},
|
|
92
|
-
mergeHeaderRowMaps: {},
|
|
93
|
-
mergeHeaderColMaps: {},
|
|
94
91
|
// 合并单元格的数据
|
|
95
92
|
mergeBodyList: [],
|
|
96
93
|
mergeBodyMaps: {},
|
|
97
94
|
// 已合并单元格数据集合
|
|
98
95
|
mergeBodyCellMaps: {},
|
|
99
|
-
mergeBodyRowMaps: {},
|
|
100
|
-
mergeBodyColMaps: {},
|
|
101
96
|
// 合并表尾的数据
|
|
102
97
|
mergeFooterList: [],
|
|
103
98
|
mergeFooterMaps: {},
|
|
104
99
|
// 已合并表尾数据集合
|
|
105
100
|
mergeFooterCellMaps: {},
|
|
106
|
-
mergeFooterRowMaps: {},
|
|
107
|
-
mergeFooterColMaps: {},
|
|
108
101
|
// 已展开的行集合
|
|
109
102
|
rowExpandedMaps: {},
|
|
110
103
|
// 懒加载中的展开行的集合
|
|
@@ -132,254 +125,10 @@ function createInternalData() {
|
|
|
132
125
|
tFooterHeight: 0,
|
|
133
126
|
teleportToWrapperElem: null,
|
|
134
127
|
popupToWrapperElem: null,
|
|
135
|
-
lastSTime: 0,
|
|
136
128
|
inited: false,
|
|
137
129
|
tooltipTimeout: null,
|
|
138
130
|
initStatus: false,
|
|
139
131
|
isActivated: false
|
|
140
|
-
// _sToTime: null
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
function createReactData() {
|
|
144
|
-
return {
|
|
145
|
-
updateColFlag: 0,
|
|
146
|
-
// 低性能的静态列
|
|
147
|
-
staticColumns: [],
|
|
148
|
-
// 渲染的列分组
|
|
149
|
-
tableGroupColumn: [],
|
|
150
|
-
// 可视区渲染的列
|
|
151
|
-
tableColumn: [],
|
|
152
|
-
// 渲染中的数据
|
|
153
|
-
tableData: [],
|
|
154
|
-
// 是否启用了横向 X 可视渲染方式加载
|
|
155
|
-
scrollXLoad: false,
|
|
156
|
-
// 是否启用了纵向 Y 可视渲染方式加载
|
|
157
|
-
scrollYLoad: false,
|
|
158
|
-
// 是否存在纵向滚动条
|
|
159
|
-
overflowY: true,
|
|
160
|
-
// 是否存在横向滚动条
|
|
161
|
-
overflowX: false,
|
|
162
|
-
// 纵向滚动条的宽度
|
|
163
|
-
scrollbarWidth: 0,
|
|
164
|
-
// 横向滚动条的高度
|
|
165
|
-
scrollbarHeight: 0,
|
|
166
|
-
// 行高
|
|
167
|
-
rowHeight: 0,
|
|
168
|
-
// 表格父容器的高度
|
|
169
|
-
parentHeight: 0,
|
|
170
|
-
// 是否使用分组表头
|
|
171
|
-
isGroup: false,
|
|
172
|
-
isAllOverflow: false,
|
|
173
|
-
// 复选框属性,是否全选
|
|
174
|
-
isAllSelected: false,
|
|
175
|
-
// 复选框属性,有选中且非全选状态
|
|
176
|
-
isIndeterminate: false,
|
|
177
|
-
// 当前行
|
|
178
|
-
currentRow: null,
|
|
179
|
-
// 单选框属性,选中列
|
|
180
|
-
currentColumn: null,
|
|
181
|
-
// 单选框属性,选中行
|
|
182
|
-
selectRadioRow: null,
|
|
183
|
-
// 表尾合计数据
|
|
184
|
-
footerTableData: [],
|
|
185
|
-
// 行分组列信息
|
|
186
|
-
rowGroupColumn: null,
|
|
187
|
-
// 展开列信息
|
|
188
|
-
expandColumn: null,
|
|
189
|
-
checkboxColumn: null,
|
|
190
|
-
radioColumn: null,
|
|
191
|
-
// 树节点列信息
|
|
192
|
-
treeNodeColumn: null,
|
|
193
|
-
hasFixedColumn: false,
|
|
194
|
-
// 刷新列标识,当列筛选被改变时,触发表格刷新数据
|
|
195
|
-
upDataFlag: 0,
|
|
196
|
-
// 刷新列标识,当列的特定属性被改变时,触发表格刷新列
|
|
197
|
-
reColumnFlag: 0,
|
|
198
|
-
// 初始化标识
|
|
199
|
-
initStore: {
|
|
200
|
-
filter: false,
|
|
201
|
-
import: false,
|
|
202
|
-
export: false,
|
|
203
|
-
custom: false
|
|
204
|
-
},
|
|
205
|
-
// 自定义列相关的信息
|
|
206
|
-
customStore: {
|
|
207
|
-
btnEl: null,
|
|
208
|
-
isAll: false,
|
|
209
|
-
isIndeterminate: false,
|
|
210
|
-
activeBtn: false,
|
|
211
|
-
activeWrapper: false,
|
|
212
|
-
visible: false,
|
|
213
|
-
maxHeight: null,
|
|
214
|
-
popupTop: 0,
|
|
215
|
-
oldSortMaps: {},
|
|
216
|
-
oldFixedMaps: {},
|
|
217
|
-
oldVisibleMaps: {}
|
|
218
|
-
},
|
|
219
|
-
customColumnList: [],
|
|
220
|
-
// 当前选中的筛选列
|
|
221
|
-
filterStore: {
|
|
222
|
-
isAllSelected: false,
|
|
223
|
-
isIndeterminate: false,
|
|
224
|
-
style: null,
|
|
225
|
-
column: null,
|
|
226
|
-
visible: false,
|
|
227
|
-
maxHeight: null
|
|
228
|
-
},
|
|
229
|
-
// 存放列相关的信息
|
|
230
|
-
columnStore: {
|
|
231
|
-
leftList: [],
|
|
232
|
-
centerList: [],
|
|
233
|
-
rightList: [],
|
|
234
|
-
resizeList: [],
|
|
235
|
-
pxList: [],
|
|
236
|
-
pxMinList: [],
|
|
237
|
-
autoMinList: [],
|
|
238
|
-
scaleList: [],
|
|
239
|
-
scaleMinList: [],
|
|
240
|
-
autoList: [],
|
|
241
|
-
remainList: []
|
|
242
|
-
},
|
|
243
|
-
// 存放快捷菜单的信息
|
|
244
|
-
ctxMenuStore: {
|
|
245
|
-
selected: null,
|
|
246
|
-
visible: false,
|
|
247
|
-
showChild: false,
|
|
248
|
-
selectChild: null,
|
|
249
|
-
list: [],
|
|
250
|
-
style: null
|
|
251
|
-
},
|
|
252
|
-
// 存放可编辑相关信息
|
|
253
|
-
editStore: {
|
|
254
|
-
indexs: {
|
|
255
|
-
columns: []
|
|
256
|
-
},
|
|
257
|
-
titles: {
|
|
258
|
-
columns: []
|
|
259
|
-
},
|
|
260
|
-
// 选中源
|
|
261
|
-
selected: {
|
|
262
|
-
row: null,
|
|
263
|
-
column: null
|
|
264
|
-
},
|
|
265
|
-
// 已复制源
|
|
266
|
-
copyed: {
|
|
267
|
-
cut: false,
|
|
268
|
-
rows: [],
|
|
269
|
-
columns: []
|
|
270
|
-
},
|
|
271
|
-
// 激活
|
|
272
|
-
actived: {
|
|
273
|
-
row: null,
|
|
274
|
-
column: null
|
|
275
|
-
},
|
|
276
|
-
// 当前被强制聚焦单元格,只会在鼠标点击后算聚焦
|
|
277
|
-
focused: {
|
|
278
|
-
row: null,
|
|
279
|
-
column: null
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
// 存放 tooltip 相关信息
|
|
283
|
-
tooltipStore: {
|
|
284
|
-
row: null,
|
|
285
|
-
column: null,
|
|
286
|
-
content: null,
|
|
287
|
-
visible: false,
|
|
288
|
-
type: null,
|
|
289
|
-
currOpts: {}
|
|
290
|
-
},
|
|
291
|
-
// 存放数据校验相关信息
|
|
292
|
-
validStore: {
|
|
293
|
-
visible: false
|
|
294
|
-
},
|
|
295
|
-
validErrorMaps: {},
|
|
296
|
-
// 导入相关信息
|
|
297
|
-
importStore: {
|
|
298
|
-
inited: false,
|
|
299
|
-
file: null,
|
|
300
|
-
type: "",
|
|
301
|
-
modeList: [],
|
|
302
|
-
typeList: [],
|
|
303
|
-
filename: "",
|
|
304
|
-
visible: false
|
|
305
|
-
},
|
|
306
|
-
importParams: {
|
|
307
|
-
mode: "",
|
|
308
|
-
types: null,
|
|
309
|
-
message: true
|
|
310
|
-
},
|
|
311
|
-
// 导出相关信息
|
|
312
|
-
exportStore: {
|
|
313
|
-
inited: false,
|
|
314
|
-
name: "",
|
|
315
|
-
modeList: [],
|
|
316
|
-
typeList: [],
|
|
317
|
-
columns: [],
|
|
318
|
-
isPrint: false,
|
|
319
|
-
hasFooter: false,
|
|
320
|
-
hasMerge: false,
|
|
321
|
-
hasTree: false,
|
|
322
|
-
hasColgroup: false,
|
|
323
|
-
visible: false
|
|
324
|
-
},
|
|
325
|
-
exportParams: {
|
|
326
|
-
filename: "",
|
|
327
|
-
sheetName: "",
|
|
328
|
-
mode: "",
|
|
329
|
-
type: "",
|
|
330
|
-
isColgroup: false,
|
|
331
|
-
isMerge: false,
|
|
332
|
-
isAllExpand: false,
|
|
333
|
-
useStyle: false,
|
|
334
|
-
original: false,
|
|
335
|
-
message: true,
|
|
336
|
-
isHeader: false,
|
|
337
|
-
isTitle: false,
|
|
338
|
-
isFooter: false
|
|
339
|
-
},
|
|
340
|
-
visiblwRowsFlag: 1,
|
|
341
|
-
isRowGroupStatus: false,
|
|
342
|
-
rowGroupList: [],
|
|
343
|
-
aggHandleFields: [],
|
|
344
|
-
aggHandleAggColumns: [],
|
|
345
|
-
rowGroupExpandedFlag: 1,
|
|
346
|
-
rowExpandedFlag: 1,
|
|
347
|
-
treeExpandedFlag: 1,
|
|
348
|
-
updateCheckboxFlag: 1,
|
|
349
|
-
pendingRowFlag: 1,
|
|
350
|
-
insertRowFlag: 1,
|
|
351
|
-
removeRowFlag: 1,
|
|
352
|
-
mergeHeadFlag: 1,
|
|
353
|
-
mergeBodyFlag: 1,
|
|
354
|
-
mergeFootFlag: 1,
|
|
355
|
-
rowHeightStore: {
|
|
356
|
-
large: 52,
|
|
357
|
-
default: 48,
|
|
358
|
-
medium: 44,
|
|
359
|
-
small: 40,
|
|
360
|
-
mini: 36
|
|
361
|
-
},
|
|
362
|
-
scrollVMLoading: false,
|
|
363
|
-
scrollYHeight: 0,
|
|
364
|
-
scrollYTop: 0,
|
|
365
|
-
isScrollYBig: false,
|
|
366
|
-
scrollXLeft: 0,
|
|
367
|
-
scrollXWidth: 0,
|
|
368
|
-
isScrollXBig: false,
|
|
369
|
-
lazScrollLoading: false,
|
|
370
|
-
rowExpandHeightFlag: 1,
|
|
371
|
-
calcCellHeightFlag: 1,
|
|
372
|
-
resizeHeightFlag: 1,
|
|
373
|
-
resizeWidthFlag: 1,
|
|
374
|
-
isCustomStatus: false,
|
|
375
|
-
isCrossDragRow: false,
|
|
376
|
-
dragRow: null,
|
|
377
|
-
isCrossDragCol: false,
|
|
378
|
-
dragCol: null,
|
|
379
|
-
dragTipText: "",
|
|
380
|
-
isDragResize: false,
|
|
381
|
-
isRowLoading: false,
|
|
382
|
-
isColLoading: false
|
|
383
132
|
};
|
|
384
133
|
}
|
|
385
134
|
const getAllConvertColumns = (columns, parentColumn) => {
|
|
@@ -517,13 +266,6 @@ function restoreScrollLocation($xeTable, scrollLeft, scrollTop) {
|
|
|
517
266
|
function getRowUniqueId() {
|
|
518
267
|
return index.default.uniqueId("row_");
|
|
519
268
|
}
|
|
520
|
-
function createRowId(rowOpts, row, keyField) {
|
|
521
|
-
const { createKeyMethod } = rowOpts;
|
|
522
|
-
if (createKeyMethod) {
|
|
523
|
-
return createKeyMethod({ row, keyField });
|
|
524
|
-
}
|
|
525
|
-
return getRowUniqueId();
|
|
526
|
-
}
|
|
527
269
|
function hasDeepKey(rowKey) {
|
|
528
270
|
return rowKey.indexOf(".") > -1;
|
|
529
271
|
}
|
|
@@ -539,13 +281,11 @@ function getRowid($xeTable, row) {
|
|
|
539
281
|
function createHandleUpdateRowId($xeTable) {
|
|
540
282
|
const internalData = $xeTable.internalData;
|
|
541
283
|
const { isCurrDeepKey, currKeyField } = internalData;
|
|
542
|
-
const { computeRowOpts } = $xeTable.getComputeMaps();
|
|
543
|
-
const rowOpts = computeRowOpts.value;
|
|
544
284
|
const updateRId = isCurrDeepKey ? updateDeepRowKey : updateFastRowKey;
|
|
545
285
|
return {
|
|
546
286
|
rowKey: currKeyField,
|
|
547
287
|
handleUpdateRowId(row) {
|
|
548
|
-
return row ? updateRId(
|
|
288
|
+
return row ? updateRId(row, currKeyField) : "";
|
|
549
289
|
}
|
|
550
290
|
};
|
|
551
291
|
}
|
|
@@ -566,11 +306,10 @@ function encodeRowid(rowVal) {
|
|
|
566
306
|
function getDeepRowIdByKey(row, rowKey) {
|
|
567
307
|
return index.default.get(row, rowKey);
|
|
568
308
|
}
|
|
569
|
-
function updateDeepRowKey(
|
|
309
|
+
function updateDeepRowKey(row, rowKey) {
|
|
570
310
|
let rowid = encodeRowid(getDeepRowIdByKey(row, rowKey));
|
|
571
311
|
if (utils.eqEmptyValue(rowid)) {
|
|
572
|
-
|
|
573
|
-
rowid = "" + newRowid;
|
|
312
|
+
rowid = getRowUniqueId();
|
|
574
313
|
index.default.set(row, rowKey, rowid);
|
|
575
314
|
}
|
|
576
315
|
return rowid;
|
|
@@ -578,12 +317,11 @@ function updateDeepRowKey(rowOpts, row, rowKey) {
|
|
|
578
317
|
function getFastRowIdByKey(row, rowKey) {
|
|
579
318
|
return row[rowKey];
|
|
580
319
|
}
|
|
581
|
-
function updateFastRowKey(
|
|
320
|
+
function updateFastRowKey(row, rowKey) {
|
|
582
321
|
let rowid = encodeRowid(getFastRowIdByKey(row, rowKey));
|
|
583
322
|
if (utils.eqEmptyValue(rowid)) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
row[rowKey] = newRowid;
|
|
323
|
+
rowid = getRowUniqueId();
|
|
324
|
+
row[rowKey] = rowid;
|
|
587
325
|
}
|
|
588
326
|
return rowid;
|
|
589
327
|
}
|
|
@@ -820,10 +558,12 @@ function clearTableAllStatus($xeTable) {
|
|
|
820
558
|
return clearTableDefaultStatus($xeTable);
|
|
821
559
|
}
|
|
822
560
|
function rowToVisible($xeTable, row) {
|
|
561
|
+
const tableProps = $xeTable.props;
|
|
823
562
|
const reactData = $xeTable.reactData;
|
|
824
563
|
const internalData = $xeTable.internalData;
|
|
825
564
|
const { computeLeftFixedWidth, computeRightFixedWidth, computeRowOpts, computeCellOpts, computeDefaultRowHeight } = $xeTable.getComputeMaps();
|
|
826
|
-
const {
|
|
565
|
+
const { showOverflow } = tableProps;
|
|
566
|
+
const { scrollYLoad, scrollYTop } = reactData;
|
|
827
567
|
const { elemStore, afterFullData, fullAllDataRowIdData, isResizeCellHeight } = internalData;
|
|
828
568
|
const rowOpts = computeRowOpts.value;
|
|
829
569
|
const cellOpts = computeCellOpts.value;
|
|
@@ -847,7 +587,7 @@ function rowToVisible($xeTable, row) {
|
|
|
847
587
|
} else {
|
|
848
588
|
if (scrollYLoad) {
|
|
849
589
|
const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
|
|
850
|
-
if (!isCustomCellHeight &&
|
|
590
|
+
if (!isCustomCellHeight && showOverflow) {
|
|
851
591
|
return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * defaultRowHeight);
|
|
852
592
|
}
|
|
853
593
|
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
@@ -862,7 +602,7 @@ function rowToVisible($xeTable, row) {
|
|
|
862
602
|
}
|
|
863
603
|
return Promise.resolve();
|
|
864
604
|
}
|
|
865
|
-
function colToVisible($xeTable,
|
|
605
|
+
function colToVisible($xeTable, column, row) {
|
|
866
606
|
const reactData = $xeTable.reactData;
|
|
867
607
|
const internalData = $xeTable.internalData;
|
|
868
608
|
const { computeLeftFixedWidth, computeRightFixedWidth } = $xeTable.getComputeMaps();
|
|
@@ -888,30 +628,26 @@ function colToVisible($xeTable, isForce, column, row) {
|
|
|
888
628
|
if (tdElem) {
|
|
889
629
|
const tdOffsetLeft = tdElem.offsetLeft + (scrollXLoad ? scrollXLeft : 0);
|
|
890
630
|
const cellWidth = tdElem.clientWidth;
|
|
891
|
-
if (
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
return $xeTable.scrollTo(tdOffsetLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
896
|
-
}
|
|
631
|
+
if (tdOffsetLeft < bodyScrollLeft + leftFixedWidth) {
|
|
632
|
+
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
633
|
+
} else if (tdOffsetLeft + cellWidth - bodyScrollLeft > bodyWidth - rightFixedWidth) {
|
|
634
|
+
return $xeTable.scrollTo(tdOffsetLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
897
635
|
}
|
|
898
636
|
} else {
|
|
899
637
|
if (scrollXLoad) {
|
|
900
|
-
let
|
|
638
|
+
let scrollLeft = 0;
|
|
901
639
|
const cellWidth = column.renderWidth;
|
|
902
640
|
for (let i = 0; i < visibleColumn.length; i++) {
|
|
903
641
|
const currCol = visibleColumn[i];
|
|
904
642
|
if (currCol === column || currCol.id === column.id) {
|
|
905
643
|
break;
|
|
906
644
|
}
|
|
907
|
-
|
|
645
|
+
scrollLeft += currCol.renderWidth;
|
|
908
646
|
}
|
|
909
|
-
if (
|
|
910
|
-
|
|
911
|
-
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
912
|
-
}
|
|
913
|
-
return $xeTable.scrollTo(tdOffsetLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
647
|
+
if (scrollLeft < bodyScrollLeft) {
|
|
648
|
+
return $xeTable.scrollTo(scrollLeft - leftFixedWidth - 1);
|
|
914
649
|
}
|
|
650
|
+
return $xeTable.scrollTo(scrollLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
915
651
|
}
|
|
916
652
|
}
|
|
917
653
|
}
|
|
@@ -927,8 +663,6 @@ exports.createColumn = createColumn;
|
|
|
927
663
|
exports.createHandleGetRowId = createHandleGetRowId;
|
|
928
664
|
exports.createHandleUpdateRowId = createHandleUpdateRowId;
|
|
929
665
|
exports.createInternalData = createInternalData;
|
|
930
|
-
exports.createReactData = createReactData;
|
|
931
|
-
exports.createRowId = createRowId;
|
|
932
666
|
exports.destroyColumn = destroyColumn;
|
|
933
667
|
exports.encodeRowid = encodeRowid;
|
|
934
668
|
exports.getCalcHeight = getCalcHeight;
|
|
@@ -952,4 +686,6 @@ exports.rowToVisible = rowToVisible;
|
|
|
952
686
|
exports.setCellValue = setCellValue;
|
|
953
687
|
exports.toFilters = toFilters;
|
|
954
688
|
exports.toTreePathSeq = toTreePathSeq;
|
|
689
|
+
exports.updateDeepRowKey = updateDeepRowKey;
|
|
690
|
+
exports.updateFastRowKey = updateFastRowKey;
|
|
955
691
|
exports.watchColumn = watchColumn;
|
|
@@ -8,13 +8,6 @@ const vn = require("../../ui/src/vn.js");
|
|
|
8
8
|
const log = require("../../ui/src/log.js");
|
|
9
9
|
const index_esm = require("../../../../@vxe-ui/core/es/index.esm.js");
|
|
10
10
|
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = index_esm.VxeUI;
|
|
11
|
-
function createReactData() {
|
|
12
|
-
return {
|
|
13
|
-
isRefresh: false,
|
|
14
|
-
connectFlag: 0,
|
|
15
|
-
columns: []
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
11
|
function createInternalData() {
|
|
19
12
|
return {
|
|
20
13
|
connectTable: null
|
|
@@ -66,7 +59,11 @@ const VxeToolbarComponent = comp.defineVxeComponent({
|
|
|
66
59
|
const $xeGantt = vue.inject("$xeGantt", null);
|
|
67
60
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
68
61
|
const { computeSize } = useFns.useSize(props);
|
|
69
|
-
const reactData = vue.reactive(
|
|
62
|
+
const reactData = vue.reactive({
|
|
63
|
+
isRefresh: false,
|
|
64
|
+
connectFlag: 0,
|
|
65
|
+
columns: []
|
|
66
|
+
});
|
|
70
67
|
const internalData = createInternalData();
|
|
71
68
|
const refElem = vue.ref();
|
|
72
69
|
const refMaps = {
|
|
@@ -574,8 +571,7 @@ const VxeToolbarComponent = comp.defineVxeComponent({
|
|
|
574
571
|
}
|
|
575
572
|
}
|
|
576
573
|
});
|
|
577
|
-
vue.
|
|
578
|
-
index.default.assign(reactData, createReactData());
|
|
574
|
+
vue.onUnmounted(() => {
|
|
579
575
|
index.default.assign(internalData, createInternalData());
|
|
580
576
|
});
|
|
581
577
|
return $xeToolbar;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const index_esm = require("../../../@vxe-ui/core/es/index.esm.js");
|
|
4
4
|
const utils = require("./src/utils.js");
|
|
5
|
-
const version = "4.
|
|
5
|
+
const version = "4.17.47";
|
|
6
6
|
index_esm.VxeUI.version = version;
|
|
7
7
|
index_esm.VxeUI.tableVersion = version;
|
|
8
8
|
index_esm.VxeUI.setConfig({
|
|
@@ -41,12 +41,6 @@ index_esm.VxeUI.setConfig({
|
|
|
41
41
|
isSyncAutoWidth: true,
|
|
42
42
|
minHeight: 18
|
|
43
43
|
},
|
|
44
|
-
currentRowConfig: {
|
|
45
|
-
strict: true
|
|
46
|
-
},
|
|
47
|
-
currentColumnConfig: {
|
|
48
|
-
strict: true
|
|
49
|
-
},
|
|
50
44
|
radioConfig: {
|
|
51
45
|
// trigger: 'default'
|
|
52
46
|
strict: true
|
|
@@ -68,8 +62,7 @@ index_esm.VxeUI.setConfig({
|
|
|
68
62
|
strict: true
|
|
69
63
|
},
|
|
70
64
|
tooltipConfig: {
|
|
71
|
-
enterable: true
|
|
72
|
-
defaultPlacement: "top"
|
|
65
|
+
enterable: true
|
|
73
66
|
},
|
|
74
67
|
headerTooltipConfig: {
|
|
75
68
|
enterable: true
|
|
@@ -78,7 +71,7 @@ index_esm.VxeUI.setConfig({
|
|
|
78
71
|
enterable: true
|
|
79
72
|
},
|
|
80
73
|
validConfig: {
|
|
81
|
-
|
|
74
|
+
showMessage: true,
|
|
82
75
|
autoClear: true,
|
|
83
76
|
autoPos: true,
|
|
84
77
|
message: "inline",
|
|
@@ -157,8 +150,7 @@ index_esm.VxeUI.setConfig({
|
|
|
157
150
|
// transfer: false,
|
|
158
151
|
destroyOnClose: true,
|
|
159
152
|
multiple: true,
|
|
160
|
-
showIcon: true
|
|
161
|
-
maxHeight: 280
|
|
153
|
+
showIcon: true
|
|
162
154
|
},
|
|
163
155
|
floatingFilterConfig: {
|
|
164
156
|
// enabled: false
|
|
@@ -151,27 +151,6 @@ function triggerEvent(targetElem, type) {
|
|
|
151
151
|
targetElem.dispatchEvent(new Event(type));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
let wtlFrame;
|
|
155
|
-
function wheelScrollLeftTo(scrollLeft, cb) {
|
|
156
|
-
if (wtlFrame) {
|
|
157
|
-
cancelAnimationFrame(wtlFrame);
|
|
158
|
-
}
|
|
159
|
-
wtlFrame = requestAnimationFrame(() => {
|
|
160
|
-
cb(scrollLeft);
|
|
161
|
-
wtlFrame = null;
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
let wtaFrame;
|
|
165
|
-
function wheelScrollTopTo(diffNum, cb) {
|
|
166
|
-
if (wtaFrame) {
|
|
167
|
-
cancelAnimationFrame(wtaFrame);
|
|
168
|
-
}
|
|
169
|
-
wtaFrame = requestAnimationFrame(() => {
|
|
170
|
-
const offsetTop = diffNum;
|
|
171
|
-
cb(offsetTop);
|
|
172
|
-
wtaFrame = null;
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
154
|
exports.addClass = addClass;
|
|
176
155
|
exports.checkTargetElement = checkTargetElement;
|
|
177
156
|
exports.getAbsolutePos = getAbsolutePos;
|
|
@@ -194,5 +173,3 @@ exports.setScrollTop = setScrollTop;
|
|
|
194
173
|
exports.toCssUnit = toCssUnit;
|
|
195
174
|
exports.triggerEvent = triggerEvent;
|
|
196
175
|
exports.updateCellTitle = updateCellTitle;
|
|
197
|
-
exports.wheelScrollLeftTo = wheelScrollLeftTo;
|
|
198
|
-
exports.wheelScrollTopTo = wheelScrollTopTo;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index_esm = require("../../../../@vxe-ui/core/es/index.esm.js");
|
|
4
4
|
const { log } = index_esm.VxeUI;
|
|
5
|
-
const version = `table v${"4.
|
|
5
|
+
const version = `table v${"4.17.47"}`;
|
|
6
6
|
const warnLog = log.create("warn", version);
|
|
7
7
|
const errLog = log.create("error", version);
|
|
8
8
|
exports.errLog = errLog;
|
|
@@ -5,9 +5,9 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const vue = require("vue");
|
|
8
|
-
require("
|
|
8
|
+
require("../../../../../../node_modules/vxe-table/es/components.js");
|
|
9
9
|
const dataSourceUtil = require("../../../utils/dataSourceUtil.js");
|
|
10
|
-
;/* empty css
|
|
10
|
+
;/* empty css */
|
|
11
11
|
const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
@@ -19,7 +19,7 @@ const formatterUtil = require("../../../utils/formatterUtil.js");
|
|
|
19
19
|
;/* empty css */
|
|
20
20
|
;/* empty css */
|
|
21
21
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
22
|
-
const index$4 = require("
|
|
22
|
+
const index$4 = require("../../../../../../node_modules/vxe-table/es/grid/index.js");
|
|
23
23
|
const index = require("../../../../node_modules/vant/es/swipe-cell/index.js");
|
|
24
24
|
const index$1 = require("../../../../node_modules/vant/es/button/index.js");
|
|
25
25
|
const functionCall = require("../../../../node_modules/vant/es/dialog/function-call.js");
|