vxe-table 3.11.22 → 3.11.23
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/locale/lang/ar-EG.js +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/es-ES.js +2 -2
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hu-HU.js +1 -1
- package/es/locale/lang/hy-AM.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/ug-CN.js +1 -1
- package/es/locale/lang/uk-UA.js +1 -1
- package/es/locale/lang/vi-VN.js +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/table/render/index.js +26 -6
- package/es/table/src/methods.js +20 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +75 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/es-ES.js +2 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -2
- package/lib/locale/lang/fr-FR.js +1 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -1
- package/lib/locale/lang/hy-AM.js +1 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/ko-KR.js +1 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -1
- package/lib/locale/lang/nb-NO.js +1 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -1
- package/lib/locale/lang/ru-RU.js +1 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -1
- package/lib/locale/lang/vi-VN.js +1 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +38 -6
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/methods.js +33 -8
- package/lib/table/src/methods.min.js +1 -1
- package/lib/ui/index.js +1 -1
- 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/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +1 -1
- package/packages/locale/lang/de-DE.ts +1 -1
- package/packages/locale/lang/es-ES.ts +2 -2
- package/packages/locale/lang/fr-FR.ts +1 -1
- package/packages/locale/lang/hu-HU.ts +1 -1
- package/packages/locale/lang/hy-AM.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/ko-KR.ts +1 -1
- package/packages/locale/lang/nb-NO.ts +1 -1
- package/packages/locale/lang/pt-BR.ts +1 -1
- package/packages/locale/lang/ru-RU.ts +1 -1
- package/packages/locale/lang/ug-CN.ts +1 -1
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/vi-VN.ts +1 -1
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/render/index.ts +24 -5
- package/packages/table/src/methods.ts +22 -5
- /package/es/{iconfont.1733702408214.ttf → iconfont.1733805838288.ttf} +0 -0
- /package/es/{iconfont.1733702408214.woff → iconfont.1733805838288.woff} +0 -0
- /package/es/{iconfont.1733702408214.woff2 → iconfont.1733805838288.woff2} +0 -0
- /package/lib/{iconfont.1733702408214.ttf → iconfont.1733805838288.ttf} +0 -0
- /package/lib/{iconfont.1733702408214.woff → iconfont.1733805838288.woff} +0 -0
- /package/lib/{iconfont.1733702408214.woff2 → iconfont.1733805838288.woff2} +0 -0
package/lib/ui/src/log.js
CHANGED
|
@@ -8,6 +8,6 @@ var _core = require("@vxe-ui/core");
|
|
|
8
8
|
const {
|
|
9
9
|
log
|
|
10
10
|
} = _core.VxeUI;
|
|
11
|
-
const version = `table v${"3.11.
|
|
11
|
+
const version = `table v${"3.11.23"}`;
|
|
12
12
|
const warnLog = exports.warnLog = log.create('warn', version);
|
|
13
13
|
const errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v3.11.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v3.11.23",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -47,8 +47,8 @@ export default {
|
|
|
47
47
|
notExp: 'El navegador no es compatible con la importación / exportación.',
|
|
48
48
|
impFields: 'Error de importación, por favor revise que el nombre del campo y el formato de datos sean correctos.',
|
|
49
49
|
treeNotImp: 'La tabla de árbol no soporta importación.',
|
|
50
|
-
treeCrossDrag: '
|
|
51
|
-
treeDragChild: '
|
|
50
|
+
treeCrossDrag: 'Only the first level of data can be dragged',
|
|
51
|
+
treeDragChild: 'Parent data cannot be dragged into its own child',
|
|
52
52
|
reqPlugin: 'Optional extension "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: 'Az importálás nem sikerült, ellenőrizze, hogy a mezőnév és az adatformátum helyes-e',
|
|
49
49
|
treeNotImp: 'A fatáblák nem támogatják az importálást',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: 'インポートに失敗しました。フィールド名とデータ形式を確認してください',
|
|
49
49
|
treeNotImp: 'ツリーテーブルはインポートをサポートしていません',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: 'Falha na importação, verifique se o nome do campo e o formato dos dados estão corretos.',
|
|
49
49
|
treeNotImp: 'A tabela de árvore não suporta importação.',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: 'Не удалось выполнить импорт. Проверьте правильность имени поля и формата данных.',
|
|
49
49
|
treeNotImp: 'Древовидные таблицы не поддерживают импорт.',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: 'ئەكىرىشى مەغلۇپ بولدى،سۆز ھەم ئۇچۇر فورماتىنى تەكشۈرۈڭ',
|
|
49
49
|
treeNotImp: 'دەرەخ شەكىللىك جەدىۋەلنى ئەكىرىشنى قوللىمايدۇ',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '匯入失敗,請檢查欄位名稱和資料格式是否正確',
|
|
49
49
|
treeNotImp: '樹表格不支援導入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可選擴展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
49
49
|
treeNotImp: '树表格不支持导入',
|
|
50
50
|
treeCrossDrag: '只能拖拽第一层级的数据',
|
|
51
|
-
treeDragChild: '
|
|
51
|
+
treeDragChild: '父级数据不能拖拽到自己的子级中',
|
|
52
52
|
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
|
|
53
53
|
},
|
|
54
54
|
table: {
|
|
@@ -617,17 +617,36 @@ renderer.mixin({
|
|
|
617
617
|
renderTableCell (h, renderOpts, params) {
|
|
618
618
|
const { props = {} } = renderOpts
|
|
619
619
|
const { row, column } = params
|
|
620
|
-
const
|
|
620
|
+
const { type } = props
|
|
621
621
|
let cellValue = XEUtils.get(row, column.field)
|
|
622
622
|
if (cellValue) {
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
if (type === 'float') {
|
|
624
|
+
const digits = props.digits || getConfig().numberInput.digits || 1
|
|
625
|
+
cellValue = XEUtils.toFixed(XEUtils.floor(cellValue, digits), digits)
|
|
626
|
+
} else if (type === 'amount') {
|
|
627
|
+
const digits = props.digits || getConfig().numberInput.digits || 2
|
|
628
|
+
cellValue = XEUtils.commafy(XEUtils.toNumber(cellValue), { digits })
|
|
627
629
|
}
|
|
628
630
|
}
|
|
629
631
|
return getCellLabelVNs(h, renderOpts, params, cellValue)
|
|
630
632
|
},
|
|
633
|
+
renderTableFooter (h, renderOpts, params) {
|
|
634
|
+
const { props = {} } = renderOpts
|
|
635
|
+
const { row, column, _columnIndex } = params
|
|
636
|
+
const { type } = props
|
|
637
|
+
// 兼容老模式
|
|
638
|
+
const cellValue = XEUtils.isArray(row) ? row[_columnIndex] : XEUtils.get(row, column.field)
|
|
639
|
+
if (XEUtils.isNumber(cellValue)) {
|
|
640
|
+
if (type === 'float') {
|
|
641
|
+
const digits = props.digits || getConfig().numberInput.digits || 1
|
|
642
|
+
return XEUtils.toFixed(XEUtils.floor(cellValue, digits), digits)
|
|
643
|
+
} else if (type === 'amount') {
|
|
644
|
+
const digits = props.digits || getConfig().numberInput.digits || 2
|
|
645
|
+
return XEUtils.commafy(XEUtils.toNumber(cellValue), { digits })
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
return getFuncText(cellValue, 1)
|
|
649
|
+
},
|
|
631
650
|
renderTableDefault: defaultEditRender,
|
|
632
651
|
renderTableFilter: defaultFilterRender,
|
|
633
652
|
tableFilterDefaultMethod: handleInputFilterMethod
|
|
@@ -4717,13 +4717,30 @@ const Methods = {
|
|
|
4717
4717
|
this.emitEvent('radio-change', { oldValue, newValue, ...params }, evnt)
|
|
4718
4718
|
}
|
|
4719
4719
|
},
|
|
4720
|
+
triggerCurrentColumnEvent (evnt: any, params: any) {
|
|
4721
|
+
const $xeTable = this
|
|
4722
|
+
|
|
4723
|
+
const columnOpts = $xeTable.computeColumnOpts
|
|
4724
|
+
const { currentMethod } = columnOpts
|
|
4725
|
+
const { column } = params
|
|
4726
|
+
if (!currentMethod || currentMethod({ column })) {
|
|
4727
|
+
$xeTable.setCurrentColumn(column)
|
|
4728
|
+
}
|
|
4729
|
+
},
|
|
4720
4730
|
triggerCurrentRowEvent (evnt: any, params: any) {
|
|
4721
|
-
const
|
|
4731
|
+
const $xeTable = this
|
|
4732
|
+
const reactData = $xeTable
|
|
4733
|
+
|
|
4734
|
+
const { currentRow: oldValue } = reactData
|
|
4735
|
+
const rowOpts = $xeTable.computeRowOpts
|
|
4736
|
+
const { currentMethod } = rowOpts
|
|
4722
4737
|
const { row: newValue } = params
|
|
4723
4738
|
const isChange = oldValue !== newValue
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4739
|
+
if (!currentMethod || currentMethod({ row: newValue })) {
|
|
4740
|
+
$xeTable.setCurrentRow(newValue)
|
|
4741
|
+
if (isChange) {
|
|
4742
|
+
$xeTable.dispatchEvent('current-change', { oldValue, newValue, ...params }, evnt)
|
|
4743
|
+
}
|
|
4727
4744
|
}
|
|
4728
4745
|
},
|
|
4729
4746
|
/**
|
|
@@ -4839,7 +4856,7 @@ const Methods = {
|
|
|
4839
4856
|
}
|
|
4840
4857
|
this.emitEvent('header-cell-click', Object.assign({ triggerResizable, triggerSort, triggerFilter, cell }, params), evnt)
|
|
4841
4858
|
if (this.columnOpts.isCurrent || this.highlightCurrentColumn) {
|
|
4842
|
-
|
|
4859
|
+
this.triggerCurrentColumnEvent(evnt, params)
|
|
4843
4860
|
}
|
|
4844
4861
|
return this.$nextTick()
|
|
4845
4862
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|