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