vxe-table 4.7.64 → 4.7.66
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/grid/src/grid.js +21 -11
- package/es/locale/lang/en-US.js +17 -8
- package/es/locale/lang/es-ES.js +17 -8
- package/es/locale/lang/hu-HU.js +624 -0
- package/es/locale/lang/ja-JP.js +17 -8
- package/es/locale/lang/ko-KR.js +634 -0
- package/es/locale/lang/pt-BR.js +17 -8
- package/es/locale/lang/ru-RU.js +634 -0
- package/es/locale/lang/vi-VN.js +634 -0
- package/es/locale/lang/zh-CN.js +17 -8
- package/es/locale/lang/zh-TC.js +75 -66
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +12 -11
- package/es/table/module/edit/hook.js +11 -10
- package/es/table/module/export/hook.js +10 -6
- package/es/table/render/index.js +95 -84
- package/es/table/src/table.js +22 -2
- package/es/table/style.css +8 -4
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +7 -7
- package/es/ui/index.js +6 -4
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +8 -4
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +25 -14
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +227 -150
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +17 -8
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +17 -8
- package/lib/locale/lang/es-ES.js +17 -8
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +17 -8
- package/lib/locale/lang/hu-HU.js +630 -0
- package/lib/locale/lang/hu-HU.min.js +1 -0
- package/lib/locale/lang/ja-JP.js +17 -8
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +17 -8
- package/lib/locale/lang/ko-KR.js +640 -0
- package/lib/locale/lang/ko-KR.min.js +1 -0
- package/lib/locale/lang/pt-BR.js +17 -8
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +17 -8
- package/lib/locale/lang/ru-RU.js +640 -0
- package/lib/locale/lang/ru-RU.min.js +1 -0
- package/lib/locale/lang/vi-VN.js +640 -0
- package/lib/locale/lang/vi-VN.min.js +1 -0
- package/lib/locale/lang/zh-CN.js +17 -8
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +17 -8
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +75 -66
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +75 -66
- package/lib/locale/lang/zh-TC.js +75 -66
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +75 -66
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +75 -66
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +18 -11
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/hook.js +11 -13
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/module/export/hook.js +12 -6
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/render/index.js +98 -84
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/table.js +22 -2
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +8 -4
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +17 -7
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +10 -8
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +8 -4
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +22 -11
- package/packages/locale/lang/en-US.ts +17 -8
- package/packages/locale/lang/es-ES.ts +17 -8
- package/packages/locale/lang/hu-HU.ts +626 -0
- package/packages/locale/lang/ja-JP.ts +17 -8
- package/packages/locale/lang/ko-KR.ts +636 -0
- package/packages/locale/lang/pt-BR.ts +17 -8
- package/packages/locale/lang/ru-RU.ts +636 -0
- package/packages/locale/lang/vi-VN.ts +636 -0
- package/packages/locale/lang/zh-CN.ts +17 -8
- package/packages/locale/lang/zh-TC.ts +75 -66
- package/packages/table/module/custom/panel.ts +13 -12
- package/packages/table/module/edit/hook.ts +11 -10
- package/packages/table/module/export/hook.ts +10 -6
- package/packages/table/render/index.ts +95 -84
- package/packages/table/src/table.ts +25 -3
- package/packages/toolbar/src/toolbar.ts +8 -8
- package/packages/ui/index.ts +4 -3
- package/styles/components/table.scss +6 -3
- /package/es/{iconfont.1723218795604.ttf → iconfont.1724145396059.ttf} +0 -0
- /package/es/{iconfont.1723218795604.woff → iconfont.1724145396059.woff} +0 -0
- /package/es/{iconfont.1723218795604.woff2 → iconfont.1724145396059.woff2} +0 -0
- /package/lib/{iconfont.1723218795604.ttf → iconfont.1724145396059.ttf} +0 -0
- /package/lib/{iconfont.1723218795604.woff → iconfont.1724145396059.woff} +0 -0
- /package/lib/{iconfont.1723218795604.woff2 → iconfont.1724145396059.woff2} +0 -0
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 已废弃
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
1
|
export default {
|
|
6
2
|
vxe: {
|
|
7
3
|
base: {
|
|
@@ -23,7 +19,7 @@ export default {
|
|
|
23
19
|
useErr: '安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',
|
|
24
20
|
barUnableLink: '工具欄無法關聯表格',
|
|
25
21
|
expandContent: '展開行的插槽應該是 “content”,請檢查是否正確',
|
|
26
|
-
reqComp: '缺少 "{0}"
|
|
22
|
+
reqComp: '缺少 "{0}" 組件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
|
|
27
23
|
reqModule: '缺少 "{0}" 模組',
|
|
28
24
|
reqProp: '缺少必要的 "{0}" 參數,可能會導致出現錯誤',
|
|
29
25
|
emptyProp: '參數 "{0}" 不允許為空',
|
|
@@ -53,6 +49,7 @@ export default {
|
|
|
53
49
|
emptyText: '暫無資料',
|
|
54
50
|
allTitle: '全選/取消',
|
|
55
51
|
seqTitle: '序号',
|
|
52
|
+
actionTitle: '操作',
|
|
56
53
|
confirmFilter: '篩選',
|
|
57
54
|
resetFilter: '重置',
|
|
58
55
|
allFilter: '全部',
|
|
@@ -307,28 +304,30 @@ export default {
|
|
|
307
304
|
reUpload: '重新上传',
|
|
308
305
|
uploadProgress: '上传中 {0}%',
|
|
309
306
|
uploadErr: '上传失败',
|
|
310
|
-
uploadSuccess: '上传成功'
|
|
307
|
+
uploadSuccess: '上传成功',
|
|
308
|
+
moreBtnText: '更多({0})',
|
|
309
|
+
viewItemTitle: '點擊查看'
|
|
311
310
|
},
|
|
312
311
|
formDesign: {
|
|
313
|
-
formName: '
|
|
314
|
-
defFormTitle: '
|
|
315
|
-
widgetPropTab: '
|
|
316
|
-
widgetFormTab: '
|
|
312
|
+
formName: '表單名稱',
|
|
313
|
+
defFormTitle: '未命名的表單',
|
|
314
|
+
widgetPropTab: '控件屬性',
|
|
315
|
+
widgetFormTab: '表單屬性',
|
|
317
316
|
styleSetting: {
|
|
318
|
-
btn: '
|
|
319
|
-
title: '
|
|
320
|
-
layoutTitle: '
|
|
321
|
-
verticalLayout: '
|
|
322
|
-
horizontalLayout: '
|
|
323
|
-
styleTitle: '
|
|
324
|
-
boldTitle: '
|
|
317
|
+
btn: '樣式設置',
|
|
318
|
+
title: '表單的樣式設置',
|
|
319
|
+
layoutTitle: '控件佈局',
|
|
320
|
+
verticalLayout: '上下佈局',
|
|
321
|
+
horizontalLayout: '橫向佈局',
|
|
322
|
+
styleTitle: '標題樣式',
|
|
323
|
+
boldTitle: '標題加粗',
|
|
325
324
|
fontBold: '加粗',
|
|
326
|
-
fontNormal: '
|
|
327
|
-
colonTitle: '
|
|
328
|
-
colonVisible: '
|
|
329
|
-
colonHidden: '
|
|
330
|
-
alignTitle: '
|
|
331
|
-
widthTitle: '
|
|
325
|
+
fontNormal: '常規',
|
|
326
|
+
colonTitle: '顯示冒號',
|
|
327
|
+
colonVisible: '顯示',
|
|
328
|
+
colonHidden: '隱藏',
|
|
329
|
+
alignTitle: '對齊方式',
|
|
330
|
+
widthTitle: '標題寬度',
|
|
332
331
|
alignLeft: '居左',
|
|
333
332
|
alignRight: '居右',
|
|
334
333
|
unitPx: '像素',
|
|
@@ -338,91 +337,101 @@ export default {
|
|
|
338
337
|
group: {
|
|
339
338
|
base: '基础控件',
|
|
340
339
|
layout: '布局控件',
|
|
340
|
+
system: '系統控件',
|
|
341
341
|
advanced: '高级控件'
|
|
342
342
|
},
|
|
343
343
|
copyTitle: '副本_{0}',
|
|
344
344
|
component: {
|
|
345
|
-
input: '
|
|
345
|
+
input: '輸入框',
|
|
346
346
|
textarea: '文本域',
|
|
347
|
-
select: '
|
|
347
|
+
select: '下拉選擇',
|
|
348
348
|
row: '一行多列',
|
|
349
|
-
title: '
|
|
349
|
+
title: '標題',
|
|
350
|
+
text: '文本',
|
|
350
351
|
subtable: '子表',
|
|
351
352
|
VxeSwitch: '是/否',
|
|
352
|
-
VxeInput: '
|
|
353
|
-
VxeNumberInput: '
|
|
353
|
+
VxeInput: '輸入框',
|
|
354
|
+
VxeNumberInput: '數字',
|
|
354
355
|
VxeDatePicker: '日期',
|
|
355
356
|
VxeTextarea: '文本域',
|
|
356
|
-
VxeSelect: '
|
|
357
|
-
VxeTreeSelect: '
|
|
358
|
-
VxeRadioGroup: '
|
|
359
|
-
VxeCheckboxGroup: '
|
|
357
|
+
VxeSelect: '下拉選擇',
|
|
358
|
+
VxeTreeSelect: '樹形選擇',
|
|
359
|
+
VxeRadioGroup: '單選框',
|
|
360
|
+
VxeCheckboxGroup: '複選框',
|
|
360
361
|
VxeUploadFile: '文件',
|
|
361
|
-
VxeUploadImage: '
|
|
362
|
+
VxeUploadImage: '圖片'
|
|
362
363
|
}
|
|
363
364
|
},
|
|
364
365
|
widgetProp: {
|
|
365
|
-
name: '
|
|
366
|
+
name: '控件名稱',
|
|
366
367
|
placeholder: '控件提示',
|
|
367
|
-
required: '
|
|
368
|
-
multiple: '
|
|
368
|
+
required: '必填校驗',
|
|
369
|
+
multiple: '允許多選',
|
|
369
370
|
displaySetting: {
|
|
370
|
-
name: '
|
|
371
|
-
pc: '
|
|
372
|
-
mobile: '
|
|
373
|
-
visible: '
|
|
374
|
-
hidden: '
|
|
371
|
+
name: '顯示設置',
|
|
372
|
+
pc: '電腦端',
|
|
373
|
+
mobile: '手機端',
|
|
374
|
+
visible: '顯示',
|
|
375
|
+
hidden: '隱藏'
|
|
375
376
|
},
|
|
376
377
|
dataSource: {
|
|
377
|
-
name: '
|
|
378
|
-
defValue: '
|
|
379
|
-
addOption: '
|
|
380
|
-
batchEditOption: '
|
|
381
|
-
batchEditTip: '
|
|
382
|
-
batchEditSubTip: '
|
|
383
|
-
buildOption: '
|
|
378
|
+
name: '數據源',
|
|
379
|
+
defValue: '選項{0}',
|
|
380
|
+
addOption: '添加選項',
|
|
381
|
+
batchEditOption: '批量編輯',
|
|
382
|
+
batchEditTip: '每行對應一個選項,支持從表格、Excel、WPS 中直接複製粘貼。',
|
|
383
|
+
batchEditSubTip: '每行對應一個選項,如果是分組,子項可以是空格或製表鍵開頭,支持從表格、Excel、WPS 中直接複製粘貼。',
|
|
384
|
+
buildOption: '生成選項'
|
|
384
385
|
},
|
|
385
386
|
rowProp: {
|
|
386
|
-
colSize: '
|
|
387
|
+
colSize: '列數',
|
|
387
388
|
col2: '两列',
|
|
388
389
|
col3: '三列',
|
|
389
390
|
col4: '四列',
|
|
390
391
|
col6: '六列',
|
|
391
|
-
layout: '
|
|
392
|
+
layout: '佈局'
|
|
392
393
|
},
|
|
393
394
|
textProp: {
|
|
394
395
|
name: '内容',
|
|
395
|
-
alignTitle: '
|
|
396
|
+
alignTitle: '對齊方式',
|
|
396
397
|
alignLeft: '居左',
|
|
397
398
|
alignCenter: '居中',
|
|
398
399
|
alignRight: '居右',
|
|
399
|
-
colorTitle: '
|
|
400
|
-
sizeTitle: '
|
|
401
|
-
boldTitle: '
|
|
402
|
-
fontNormal: '
|
|
400
|
+
colorTitle: '字體顏色',
|
|
401
|
+
sizeTitle: '字體大小',
|
|
402
|
+
boldTitle: '字體加粗',
|
|
403
|
+
fontNormal: '常規',
|
|
403
404
|
fontBold: '加粗'
|
|
404
405
|
},
|
|
405
406
|
subtableProp: {
|
|
406
|
-
seqTitle: '
|
|
407
|
-
showSeq: '
|
|
408
|
-
showCheckbox: '
|
|
409
|
-
errSubDrag: '
|
|
407
|
+
seqTitle: '序號',
|
|
408
|
+
showSeq: '顯示序號',
|
|
409
|
+
showCheckbox: '允許多選',
|
|
410
|
+
errSubDrag: '子表不支持該控件,請使用其他控件'
|
|
410
411
|
},
|
|
411
412
|
uploadProp: {
|
|
412
413
|
uploadProp: {
|
|
413
|
-
limitFileCount: '
|
|
414
|
+
limitFileCount: '文件數量限制',
|
|
414
415
|
limitFileSize: '文件大小限制',
|
|
415
|
-
multiFile: '
|
|
416
|
-
limitImgCount: '
|
|
417
|
-
limitImgSize: '
|
|
418
|
-
multiImg: '
|
|
416
|
+
multiFile: '允許上傳多個文件',
|
|
417
|
+
limitImgCount: '圖片數量限制',
|
|
418
|
+
limitImgSize: '圖片大小限制',
|
|
419
|
+
multiImg: '允許上傳多張圖片'
|
|
419
420
|
}
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
},
|
|
423
424
|
listDesign: {
|
|
424
|
-
fieldSettingTab: '
|
|
425
|
-
listSettingTab: '
|
|
425
|
+
fieldSettingTab: '字段設置',
|
|
426
|
+
listSettingTab: '列表設置',
|
|
427
|
+
activeBtn: {
|
|
428
|
+
ActionButtonUpdate: '編輯',
|
|
429
|
+
ActionButtonDelete: '刪除'
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
text: {
|
|
433
|
+
copySuccess: '已複製到剪貼板',
|
|
434
|
+
copyError: '當前環境不支持該操作'
|
|
426
435
|
},
|
|
427
436
|
|
|
428
437
|
/**
|
|
@@ -5,7 +5,7 @@ import { addClass, removeClass } from '../../../ui/src/dom'
|
|
|
5
5
|
import { errLog } from '../../../ui/src/log'
|
|
6
6
|
import XEUtils from 'xe-utils'
|
|
7
7
|
|
|
8
|
-
import type { VxeModalComponent, VxeDrawerComponent, VxeButtonComponent, VxeRadioGroupComponent, VxeTooltipComponent, VxeInputComponent } from 'vxe-pc-ui'
|
|
8
|
+
import type { VxeModalComponent, VxeDrawerComponent, VxeButtonComponent, VxeRadioGroupComponent, VxeTooltipComponent, VxeInputComponent, VxeButtonEvents } from 'vxe-pc-ui'
|
|
9
9
|
import type { VxeTableDefines, VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods, VxeColumnPropTypes } from '../../../../types'
|
|
10
10
|
|
|
11
11
|
const { getI18n, getIcon } = VxeUI
|
|
@@ -55,7 +55,7 @@ export default defineComponent({
|
|
|
55
55
|
}, 300)
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
const confirmCustomEvent = (
|
|
58
|
+
const confirmCustomEvent: VxeButtonEvents.Click = ({ $event }) => {
|
|
59
59
|
const { customColumnList } = reactData
|
|
60
60
|
const customOpts = computeCustomOpts.value
|
|
61
61
|
const { allowVisible, allowSort, allowFixed, allowResizable } = customOpts
|
|
@@ -82,11 +82,11 @@ export default defineComponent({
|
|
|
82
82
|
}
|
|
83
83
|
})
|
|
84
84
|
$xeTable.closeCustom()
|
|
85
|
-
$xeTable.emitCustomEvent('confirm',
|
|
85
|
+
$xeTable.emitCustomEvent('confirm', $event)
|
|
86
86
|
$xeTable.saveCustomStore('confirm')
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
const cancelCustomEvent = (
|
|
89
|
+
const cancelCustomEvent: VxeButtonEvents.Click = ({ $event }) => {
|
|
90
90
|
const { customStore } = props
|
|
91
91
|
const { customColumnList } = reactData
|
|
92
92
|
const { oldSortMaps, oldFixedMaps, oldVisibleMaps } = customStore
|
|
@@ -112,7 +112,7 @@ export default defineComponent({
|
|
|
112
112
|
}
|
|
113
113
|
}, { children: 'children' })
|
|
114
114
|
$xeTable.closeCustom()
|
|
115
|
-
$xeTable.emitCustomEvent('cancel',
|
|
115
|
+
$xeTable.emitCustomEvent('cancel', $event)
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
const handleResetCustomEvent = (evnt: Event) => {
|
|
@@ -121,7 +121,7 @@ export default defineComponent({
|
|
|
121
121
|
$xeTable.emitCustomEvent('reset', evnt)
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
const resetCustomEvent = (
|
|
124
|
+
const resetCustomEvent: VxeButtonEvents.Click = ({ $event }) => {
|
|
125
125
|
if (VxeUI.modal) {
|
|
126
126
|
VxeUI.modal.confirm({
|
|
127
127
|
content: getI18n('vxe.custom.cstmConfirmRestore'),
|
|
@@ -129,11 +129,11 @@ export default defineComponent({
|
|
|
129
129
|
escClosable: true
|
|
130
130
|
}).then(type => {
|
|
131
131
|
if (type === 'confirm') {
|
|
132
|
-
handleResetCustomEvent(
|
|
132
|
+
handleResetCustomEvent($event)
|
|
133
133
|
}
|
|
134
134
|
})
|
|
135
135
|
} else {
|
|
136
|
-
handleResetCustomEvent(
|
|
136
|
+
handleResetCustomEvent($event)
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -185,7 +185,7 @@ export default defineComponent({
|
|
|
185
185
|
// }
|
|
186
186
|
// }
|
|
187
187
|
|
|
188
|
-
const
|
|
188
|
+
const allOptionEvent = () => {
|
|
189
189
|
const { customStore } = props
|
|
190
190
|
const { customColumnList } = reactData
|
|
191
191
|
const customOpts = computeCustomOpts.value
|
|
@@ -435,7 +435,7 @@ export default defineComponent({
|
|
|
435
435
|
'is--indeterminate': isAllIndeterminate
|
|
436
436
|
}],
|
|
437
437
|
title: getI18n('vxe.table.allTitle'),
|
|
438
|
-
onClick:
|
|
438
|
+
onClick: allOptionEvent
|
|
439
439
|
}, [
|
|
440
440
|
h('span', {
|
|
441
441
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
@@ -678,7 +678,7 @@ export default defineComponent({
|
|
|
678
678
|
'is--indeterminate': isAllIndeterminate
|
|
679
679
|
}],
|
|
680
680
|
title: getI18n('vxe.table.allTitle'),
|
|
681
|
-
onClick:
|
|
681
|
+
onClick: allOptionEvent
|
|
682
682
|
}, [
|
|
683
683
|
h('span', {
|
|
684
684
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
@@ -697,7 +697,8 @@ export default defineComponent({
|
|
|
697
697
|
VxeUITooltipComponent
|
|
698
698
|
? h(VxeUITooltipComponent, {
|
|
699
699
|
enterable: true,
|
|
700
|
-
content: getI18n('vxe.custom.setting.sortHelpTip')
|
|
700
|
+
content: getI18n('vxe.custom.setting.sortHelpTip'),
|
|
701
|
+
popupClassName: 'vxe-table--ignore-clear'
|
|
701
702
|
}, {
|
|
702
703
|
default: () => {
|
|
703
704
|
return h('i', {
|
|
@@ -764,25 +764,26 @@ hooks.add('tableEditModule', {
|
|
|
764
764
|
const { editRender } = column
|
|
765
765
|
if (isEnableConf(editRender)) {
|
|
766
766
|
const compRender = renderer.get(editRender.name)
|
|
767
|
-
let
|
|
767
|
+
let autoFocus = editRender.autofocus || editRender.autoFocus
|
|
768
|
+
let autoSelect = editRender.autoSelect || editRender.autoselect
|
|
768
769
|
let inputElem
|
|
769
|
-
if (!
|
|
770
|
-
|
|
770
|
+
if (!autoFocus && compRender) {
|
|
771
|
+
autoFocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus
|
|
771
772
|
}
|
|
772
|
-
if (!
|
|
773
|
-
|
|
773
|
+
if (!autoSelect && compRender) {
|
|
774
|
+
autoSelect = compRender.tableAutoSelect || compRender.autoselect
|
|
774
775
|
}
|
|
775
776
|
// 如果指定了聚焦 class
|
|
776
|
-
if (XEUtils.isFunction(
|
|
777
|
-
inputElem =
|
|
778
|
-
} else if (
|
|
779
|
-
inputElem = cell.querySelector(
|
|
777
|
+
if (XEUtils.isFunction(autoFocus)) {
|
|
778
|
+
inputElem = autoFocus(params)
|
|
779
|
+
} else if (autoFocus) {
|
|
780
|
+
inputElem = cell.querySelector(autoFocus)
|
|
780
781
|
if (inputElem) {
|
|
781
782
|
inputElem.focus()
|
|
782
783
|
}
|
|
783
784
|
}
|
|
784
785
|
if (inputElem) {
|
|
785
|
-
if (
|
|
786
|
+
if (autoSelect) {
|
|
786
787
|
inputElem.select()
|
|
787
788
|
} else {
|
|
788
789
|
// 保持一致行为,光标移到末端
|
|
@@ -294,7 +294,7 @@ hooks.add('tableExportModule', {
|
|
|
294
294
|
return row[childrenField] && row[childrenField].length
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
const getSeq = (row: any, $rowIndex: any, column: any, $columnIndex: any) => {
|
|
297
|
+
const getSeq = (cellValue: any, row: any, $rowIndex: any, column: any, $columnIndex: any) => {
|
|
298
298
|
const seqOpts = computeSeqOpts.value
|
|
299
299
|
const seqMethod = seqOpts.seqMethod || column.seqMethod
|
|
300
300
|
if (seqMethod) {
|
|
@@ -307,7 +307,7 @@ hooks.add('tableExportModule', {
|
|
|
307
307
|
$columnIndex
|
|
308
308
|
})
|
|
309
309
|
}
|
|
310
|
-
return
|
|
310
|
+
return cellValue
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
function getHeaderTitle (opts: any, column: any) {
|
|
@@ -363,9 +363,11 @@ hooks.add('tableExportModule', {
|
|
|
363
363
|
cellValue = bodyExportMethod({ $table: $xeTable, row, column, options: opts })
|
|
364
364
|
} else {
|
|
365
365
|
switch (column.type) {
|
|
366
|
-
case 'seq':
|
|
367
|
-
|
|
366
|
+
case 'seq': {
|
|
367
|
+
const seqVal = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('')
|
|
368
|
+
cellValue = mode === 'all' ? seqVal : getSeq(seqVal, row, $rowIndex, column, $columnIndex)
|
|
368
369
|
break
|
|
370
|
+
}
|
|
369
371
|
case 'checkbox':
|
|
370
372
|
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row))
|
|
371
373
|
item._checkboxLabel = checkboxOpts.labelField ? XEUtils.get(row, checkboxOpts.labelField) : ''
|
|
@@ -419,9 +421,11 @@ hooks.add('tableExportModule', {
|
|
|
419
421
|
cellValue = exportLabelMethod({ $table: $xeTable, row, column, options: opts })
|
|
420
422
|
} else {
|
|
421
423
|
switch (column.type) {
|
|
422
|
-
case 'seq':
|
|
423
|
-
|
|
424
|
+
case 'seq': {
|
|
425
|
+
const seqValue = $rowIndex + 1
|
|
426
|
+
cellValue = mode === 'all' ? seqValue : getSeq(seqValue, row, $rowIndex, column, $columnIndex)
|
|
424
427
|
break
|
|
428
|
+
}
|
|
425
429
|
case 'checkbox':
|
|
426
430
|
cellValue = toBooleanValue($xeTable.isCheckedByCheckboxRow(row))
|
|
427
431
|
item._checkboxLabel = checkboxOpts.labelField ? XEUtils.get(row, checkboxOpts.labelField) : ''
|