vxe-table 4.17.12 → 4.17.14
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/ms-MY.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/uz-UZ.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +30 -14
- package/es/table/src/header.js +2 -3
- package/es/table/style.css +6 -3
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +6 -3
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +29 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +2 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +2 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +2 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +2 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +2 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/ms-MY.js +2 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +2 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +2 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/uz-UZ.js +2 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +2 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +2 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/hook.js +1 -1
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/module/menu/panel.js +21 -7
- package/lib/table/module/menu/panel.min.js +1 -1
- package/lib/table/src/header.js +2 -6
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/style/style.css +6 -3
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -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/lib/vxe-table/style/style.css +6 -3
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/ms-MY.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/uz-UZ.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/module/menu/hook.ts +3 -3
- package/packages/table/module/menu/panel.ts +30 -14
- package/packages/table/src/header.ts +2 -3
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/menu.scss +1 -0
- /package/es/{iconfont.1762579794801.ttf → iconfont.1762844790572.ttf} +0 -0
- /package/es/{iconfont.1762579794801.woff → iconfont.1762844790572.woff} +0 -0
- /package/es/{iconfont.1762579794801.woff2 → iconfont.1762844790572.woff2} +0 -0
- /package/lib/{iconfont.1762579794801.ttf → iconfont.1762844790572.ttf} +0 -0
- /package/lib/{iconfont.1762579794801.woff → iconfont.1762844790572.woff} +0 -0
- /package/lib/{iconfont.1762579794801.woff2 → iconfont.1762844790572.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3141,7 +3141,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3141
3141
|
;// ./packages/ui/index.ts
|
|
3142
3142
|
|
|
3143
3143
|
|
|
3144
|
-
const version = "4.17.
|
|
3144
|
+
const version = "4.17.14";
|
|
3145
3145
|
core_.VxeUI.version = version;
|
|
3146
3146
|
core_.VxeUI.tableVersion = version;
|
|
3147
3147
|
core_.VxeUI.setConfig({
|
|
@@ -3472,6 +3472,7 @@ core_.VxeUI.setIcon({
|
|
|
3472
3472
|
TABLE_RADIO_DISABLED_UNCHECKED: iconPrefix + 'radio-unchecked-fill',
|
|
3473
3473
|
TABLE_CUSTOM_SORT: iconPrefix + 'drag-handle',
|
|
3474
3474
|
TABLE_MENU_OPTIONS: iconPrefix + 'arrow-right',
|
|
3475
|
+
TABLE_MENU_OPTION_LOADING: iconPrefix + 'repeat roll',
|
|
3475
3476
|
TABLE_DRAG_ROW: iconPrefix + 'drag-handle',
|
|
3476
3477
|
TABLE_DRAG_COLUMN: iconPrefix + 'drag-handle',
|
|
3477
3478
|
TABLE_DRAG_STATUS_ROW: iconPrefix + 'sort',
|
|
@@ -3654,7 +3655,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3654
3655
|
const {
|
|
3655
3656
|
log: log_log
|
|
3656
3657
|
} = core_.VxeUI;
|
|
3657
|
-
const log_version = `table v${"4.17.
|
|
3658
|
+
const log_version = `table v${"4.17.14"}`;
|
|
3658
3659
|
const warnLog = log_log.create('warn', log_version);
|
|
3659
3660
|
const errLog = log_log.create('error', log_version);
|
|
3660
3661
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -8568,16 +8569,12 @@ function getColumnLastChild(column) {
|
|
|
8568
8569
|
};
|
|
8569
8570
|
const renderHeads = (isGroup, isOptimizeMode, headerGroups) => {
|
|
8570
8571
|
const {
|
|
8571
|
-
fixedType
|
|
8572
|
-
fixedColumn
|
|
8572
|
+
fixedType
|
|
8573
8573
|
} = props;
|
|
8574
8574
|
const {
|
|
8575
8575
|
headerRowClassName,
|
|
8576
8576
|
headerRowStyle
|
|
8577
8577
|
} = tableProps;
|
|
8578
|
-
const {
|
|
8579
|
-
visibleColumn
|
|
8580
|
-
} = tableInternalData;
|
|
8581
8578
|
const floatingFilterOpts = computeFloatingFilterOpts.value;
|
|
8582
8579
|
const rowVNs = headerGroups.map((cols, $rowIndex) => {
|
|
8583
8580
|
const params = {
|
|
@@ -8596,7 +8593,7 @@ function getColumnLastChild(column) {
|
|
|
8596
8593
|
rowVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {
|
|
8597
8594
|
key: 'ff',
|
|
8598
8595
|
class: ['vxe-header--row']
|
|
8599
|
-
}, renderFilterRows(isOptimizeMode,
|
|
8596
|
+
}, renderFilterRows(isOptimizeMode, headerGroups[headerGroups.length - 1])));
|
|
8600
8597
|
}
|
|
8601
8598
|
return rowVNs;
|
|
8602
8599
|
};
|
|
@@ -11391,6 +11388,7 @@ const {
|
|
|
11391
11388
|
|
|
11392
11389
|
const {
|
|
11393
11390
|
getIcon: menu_panel_getIcon,
|
|
11391
|
+
getI18n: menu_panel_getI18n,
|
|
11394
11392
|
renderEmptyElement: menu_panel_renderEmptyElement
|
|
11395
11393
|
} = core_.VxeUI;
|
|
11396
11394
|
/* harmony default export */ var menu_panel = (defineVxeComponent({
|
|
@@ -11442,7 +11440,11 @@ const {
|
|
|
11442
11440
|
class: 'vxe-context-menu--option-wrapper',
|
|
11443
11441
|
key: gIndex
|
|
11444
11442
|
}, options.map((item, index) => {
|
|
11445
|
-
const
|
|
11443
|
+
const {
|
|
11444
|
+
children,
|
|
11445
|
+
loading
|
|
11446
|
+
} = item;
|
|
11447
|
+
const hasChildMenus = children && children.some(child => child.visible !== false);
|
|
11446
11448
|
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
11447
11449
|
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
11448
11450
|
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
@@ -11450,6 +11452,7 @@ const {
|
|
|
11450
11452
|
const menuContent = getFuncText(item.name);
|
|
11451
11453
|
return item.visible === false ? menu_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
11452
11454
|
class: [item.className, {
|
|
11455
|
+
'link--loading': loading,
|
|
11453
11456
|
'link--disabled': item.disabled,
|
|
11454
11457
|
'link--active': item === ctxMenuStore.selected
|
|
11455
11458
|
}],
|
|
@@ -11467,12 +11470,14 @@ const {
|
|
|
11467
11470
|
}
|
|
11468
11471
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11469
11472
|
class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
|
|
11470
|
-
}, [
|
|
11473
|
+
}, [loading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
11474
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11475
|
+
}) : prefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(prefixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(prefixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11471
11476
|
class: prefixIcon
|
|
11472
|
-
}), prefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11477
|
+
})]), prefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11473
11478
|
class: 'vxe-context-menu--link-content',
|
|
11474
11479
|
title: menuContent
|
|
11475
|
-
}, menuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11480
|
+
}, loading ? menu_panel_getI18n('vxe.table.menuLoading') : menuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11476
11481
|
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
11477
11482
|
}, [suffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(suffixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(suffixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11478
11483
|
class: suffixIcon || (hasChildMenus ? menu_panel_getIcon().TABLE_MENU_OPTIONS : '')
|
|
@@ -11481,6 +11486,9 @@ const {
|
|
|
11481
11486
|
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
11482
11487
|
}]
|
|
11483
11488
|
}, item.children.map((child, cIndex) => {
|
|
11489
|
+
const {
|
|
11490
|
+
loading: childLoading
|
|
11491
|
+
} = child;
|
|
11484
11492
|
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
11485
11493
|
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
11486
11494
|
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
@@ -11488,6 +11496,7 @@ const {
|
|
|
11488
11496
|
const childMenuContent = getFuncText(child.name);
|
|
11489
11497
|
return child.visible === false ? null : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
11490
11498
|
class: [child.className, {
|
|
11499
|
+
'link--loading': childLoading,
|
|
11491
11500
|
'link--disabled': child.disabled,
|
|
11492
11501
|
'link--active': child === ctxMenuStore.selectChild
|
|
11493
11502
|
}],
|
|
@@ -11505,12 +11514,14 @@ const {
|
|
|
11505
11514
|
}
|
|
11506
11515
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11507
11516
|
class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
|
|
11508
|
-
}, [
|
|
11517
|
+
}, [child.loading ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
11518
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11519
|
+
}) : childPrefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childPrefixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(childPrefixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11509
11520
|
class: childPrefixIcon
|
|
11510
|
-
}), childPrefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11521
|
+
})]), childPrefixOpts.content ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11511
11522
|
class: 'vxe-context-menu--link-content',
|
|
11512
11523
|
title: childMenuContent
|
|
11513
|
-
}, childMenuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11524
|
+
}, childLoading ? menu_panel_getI18n('vxe.table.menuLoading') : childMenuContent), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11514
11525
|
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
11515
11526
|
}, [childSuffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childSuffixIcon) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {}, getSlotVNs(childSuffixIcon({}))) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
11516
11527
|
class: childSuffixIcon
|
|
@@ -12419,7 +12430,7 @@ menu_hook_hooks.add('tableMenuModule', {
|
|
|
12419
12430
|
const $xeGrid = $xeTable.xeGrid;
|
|
12420
12431
|
const $xeGantt = $xeTable.xeGantt;
|
|
12421
12432
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
12422
|
-
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12433
|
+
if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12423
12434
|
const gMenuOpts = hook_menus.get(menu.code);
|
|
12424
12435
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
12425
12436
|
menu,
|
|
@@ -22596,7 +22607,8 @@ const Toolbar = VxeToolbar;
|
|
|
22596
22607
|
dragTip: '移动:{0}',
|
|
22597
22608
|
resizeColTip: '宽:{0} 像素',
|
|
22598
22609
|
resizeRowTip: '高:{0} 像素',
|
|
22599
|
-
rowGroupContentTotal: '{0}({1})'
|
|
22610
|
+
rowGroupContentTotal: '{0}({1})',
|
|
22611
|
+
menuLoading: '加载中...'
|
|
22600
22612
|
},
|
|
22601
22613
|
grid: {
|
|
22602
22614
|
selectOneRecord: '请至少选择一条记录!',
|