vxe-table 3.19.12 → 3.19.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/export/mixin.js +1 -1
- package/es/table/module/menu/mixin.js +1 -1
- package/es/table/module/menu/panel.js +30 -14
- package/es/table/src/header.js +2 -4
- 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 +30 -19
- 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/export/mixin.js +1 -1
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +1 -1
- package/lib/table/module/menu/mixin.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 -7
- 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/export/mixin.ts +2 -2
- package/packages/table/module/menu/mixin.ts +7 -7
- package/packages/table/module/menu/panel.ts +30 -14
- package/packages/table/src/header.ts +3 -5
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/menu.scss +1 -0
- /package/es/{iconfont.1762579776761.ttf → iconfont.1762844763898.ttf} +0 -0
- /package/es/{iconfont.1762579776761.woff → iconfont.1762844763898.woff} +0 -0
- /package/es/{iconfont.1762579776761.woff2 → iconfont.1762844763898.woff2} +0 -0
- /package/lib/{iconfont.1762579776761.ttf → iconfont.1762844763898.ttf} +0 -0
- /package/lib/{iconfont.1762579776761.woff → iconfont.1762844763898.woff} +0 -0
- /package/lib/{iconfont.1762579776761.woff2 → iconfont.1762844763898.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
|
|
|
2005
2005
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2006
2006
|
|
|
2007
2007
|
|
|
2008
|
-
const version = "3.19.
|
|
2008
|
+
const version = "3.19.14";
|
|
2009
2009
|
core_.VxeUI.version = version;
|
|
2010
2010
|
core_.VxeUI.tableVersion = version;
|
|
2011
2011
|
core_.VxeUI.setConfig({
|
|
@@ -2337,6 +2337,7 @@ core_.VxeUI.setIcon({
|
|
|
2337
2337
|
TABLE_RADIO_DISABLED_UNCHECKED: iconPrefix + 'radio-unchecked-fill',
|
|
2338
2338
|
TABLE_CUSTOM_SORT: iconPrefix + 'drag-handle',
|
|
2339
2339
|
TABLE_MENU_OPTIONS: iconPrefix + 'arrow-right',
|
|
2340
|
+
TABLE_MENU_OPTION_LOADING: iconPrefix + 'repeat roll',
|
|
2340
2341
|
TABLE_DRAG_ROW: iconPrefix + 'drag-handle',
|
|
2341
2342
|
TABLE_DRAG_COLUMN: iconPrefix + 'drag-handle',
|
|
2342
2343
|
TABLE_DRAG_STATUS_ROW: iconPrefix + 'sort',
|
|
@@ -2713,7 +2714,7 @@ function isNodeElement(elem) {
|
|
|
2713
2714
|
const {
|
|
2714
2715
|
log: log_log
|
|
2715
2716
|
} = core_.VxeUI;
|
|
2716
|
-
const log_version = `table v${"3.19.
|
|
2717
|
+
const log_version = `table v${"3.19.14"}`;
|
|
2717
2718
|
const warnLog = log_log.create('warn', log_version);
|
|
2718
2719
|
const errLog = log_log.create('error', log_version);
|
|
2719
2720
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -8093,18 +8094,13 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
|
|
|
8093
8094
|
const props = _vm;
|
|
8094
8095
|
const $xeTable = _vm.$parent;
|
|
8095
8096
|
const tableProps = $xeTable;
|
|
8096
|
-
const tableInternalData = $xeTable;
|
|
8097
8097
|
const {
|
|
8098
|
-
fixedType
|
|
8099
|
-
fixedColumn
|
|
8098
|
+
fixedType
|
|
8100
8099
|
} = props;
|
|
8101
8100
|
const {
|
|
8102
8101
|
headerRowClassName,
|
|
8103
8102
|
headerRowStyle
|
|
8104
8103
|
} = tableProps;
|
|
8105
|
-
const {
|
|
8106
|
-
visibleColumn
|
|
8107
|
-
} = tableInternalData;
|
|
8108
8104
|
const floatingFilterOpts = $xeTable.computeFloatingFilterOpts;
|
|
8109
8105
|
const rowVNs = headerGroups.map((cols, $rowIndex) => {
|
|
8110
8106
|
const params = {
|
|
@@ -8123,7 +8119,7 @@ function renderHeads(h, _vm, isGroup, isOptimizeMode, headerGroups) {
|
|
|
8123
8119
|
rowVNs.push(h('tr', {
|
|
8124
8120
|
key: 'ff',
|
|
8125
8121
|
class: ['vxe-header--row']
|
|
8126
|
-
}, renderFilterRows(h, _vm, isOptimizeMode,
|
|
8122
|
+
}, renderFilterRows(h, _vm, isOptimizeMode, headerGroups[headerGroups.length - 1])));
|
|
8127
8123
|
}
|
|
8128
8124
|
return rowVNs;
|
|
8129
8125
|
}
|
|
@@ -11215,6 +11211,7 @@ const {
|
|
|
11215
11211
|
|
|
11216
11212
|
const {
|
|
11217
11213
|
getIcon: menu_panel_getIcon,
|
|
11214
|
+
getI18n: menu_panel_getI18n,
|
|
11218
11215
|
renderEmptyElement: menu_panel_renderEmptyElement
|
|
11219
11216
|
} = core_.VxeUI;
|
|
11220
11217
|
/* harmony default export */ var menu_panel = ({
|
|
@@ -11273,7 +11270,11 @@ const {
|
|
|
11273
11270
|
class: 'vxe-context-menu--option-wrapper',
|
|
11274
11271
|
key: gIndex
|
|
11275
11272
|
}, options.map((item, index) => {
|
|
11276
|
-
const
|
|
11273
|
+
const {
|
|
11274
|
+
children,
|
|
11275
|
+
loading
|
|
11276
|
+
} = item;
|
|
11277
|
+
const hasChildMenus = children && children.some(child => child.visible !== false);
|
|
11277
11278
|
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
11278
11279
|
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
11279
11280
|
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
@@ -11281,6 +11282,7 @@ const {
|
|
|
11281
11282
|
const menuContent = getFuncText(item.name);
|
|
11282
11283
|
return item.visible === false ? menu_panel_renderEmptyElement($xeTable) : h('li', {
|
|
11283
11284
|
class: [item.className, {
|
|
11285
|
+
'link--loading': loading,
|
|
11284
11286
|
'link--disabled': item.disabled,
|
|
11285
11287
|
'link--active': item === ctxMenuStore.selected
|
|
11286
11288
|
}],
|
|
@@ -11300,14 +11302,16 @@ const {
|
|
|
11300
11302
|
}
|
|
11301
11303
|
}, [h('div', {
|
|
11302
11304
|
class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
|
|
11303
|
-
}, [
|
|
11305
|
+
}, [loading ? h('span', {
|
|
11306
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11307
|
+
}) : prefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(prefixIcon) ? h('span', {}, getSlotVNs(prefixIcon.call($xeTable, {}))) : h('span', {}, [h('i', {
|
|
11304
11308
|
class: prefixIcon
|
|
11305
|
-
}), prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11309
|
+
})]), prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11306
11310
|
class: 'vxe-context-menu--link-content',
|
|
11307
11311
|
attrs: {
|
|
11308
11312
|
title: menuContent
|
|
11309
11313
|
}
|
|
11310
|
-
}, menuContent), h('div', {
|
|
11314
|
+
}, loading ? menu_panel_getI18n('vxe.table.menuLoading') : menuContent), h('div', {
|
|
11311
11315
|
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
11312
11316
|
}, [suffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(suffixIcon) ? h('span', {}, getSlotVNs(suffixIcon.call($xeTable, {}))) : h('i', {
|
|
11313
11317
|
class: suffixIcon || (hasChildMenus ? menu_panel_getIcon().TABLE_MENU_OPTIONS : '')
|
|
@@ -11316,6 +11320,9 @@ const {
|
|
|
11316
11320
|
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
11317
11321
|
}]
|
|
11318
11322
|
}, item.children.map((child, cIndex) => {
|
|
11323
|
+
const {
|
|
11324
|
+
loading: childLoading
|
|
11325
|
+
} = child;
|
|
11319
11326
|
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
11320
11327
|
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
11321
11328
|
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
@@ -11323,6 +11330,7 @@ const {
|
|
|
11323
11330
|
const childMenuContent = getFuncText(child.name);
|
|
11324
11331
|
return child.visible === false ? null : h('li', {
|
|
11325
11332
|
class: [child.className, {
|
|
11333
|
+
'link--loading': childLoading,
|
|
11326
11334
|
'link--disabled': child.disabled,
|
|
11327
11335
|
'link--active': child === ctxMenuStore.selectChild
|
|
11328
11336
|
}],
|
|
@@ -11342,14 +11350,16 @@ const {
|
|
|
11342
11350
|
}
|
|
11343
11351
|
}, [h('div', {
|
|
11344
11352
|
class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
|
|
11345
|
-
}, [
|
|
11353
|
+
}, [child.loading ? h('span', {
|
|
11354
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11355
|
+
}) : childPrefixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childPrefixIcon) ? h('span', {}, getSlotVNs(childPrefixIcon({}))) : h('span', {}, [h('i', {
|
|
11346
11356
|
class: childPrefixIcon
|
|
11347
|
-
}), childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11357
|
+
})]), childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11348
11358
|
class: 'vxe-context-menu--link-content',
|
|
11349
11359
|
attrs: {
|
|
11350
11360
|
title: childMenuContent
|
|
11351
11361
|
}
|
|
11352
|
-
}, childMenuContent), h('div', {
|
|
11362
|
+
}, childLoading ? menu_panel_getI18n('vxe.table.menuLoading') : childMenuContent), h('div', {
|
|
11353
11363
|
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
11354
11364
|
}, [childSuffixIcon && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(childSuffixIcon) ? h('span', {}, getSlotVNs(childSuffixIcon.call($xeTable, {}))) : h('i', {
|
|
11355
11365
|
class: childSuffixIcon
|
|
@@ -12249,7 +12259,7 @@ const {
|
|
|
12249
12259
|
const $xeGantt = $xeTable.$xeGantt;
|
|
12250
12260
|
const internalData = $xeTable;
|
|
12251
12261
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
12252
|
-
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12262
|
+
if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12253
12263
|
const gMenuOpts = mixin_menus.get(menu.code);
|
|
12254
12264
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
12255
12265
|
menu,
|
|
@@ -15189,7 +15199,7 @@ const convertToRows = originColumns => {
|
|
|
15189
15199
|
errLog('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
15190
15200
|
}
|
|
15191
15201
|
if ($xeGGWrapper && !handleOptions.remote) {
|
|
15192
|
-
const gridReactData = $xeGGWrapper;
|
|
15202
|
+
const gridReactData = $xeGGWrapper.reactData;
|
|
15193
15203
|
const proxyOpts = $xeGGWrapper.computeProxyOpts;
|
|
15194
15204
|
const {
|
|
15195
15205
|
sortData
|
|
@@ -24221,7 +24231,8 @@ const Toolbar = VxeToolbar;
|
|
|
24221
24231
|
dragTip: '移动:{0}',
|
|
24222
24232
|
resizeColTip: '宽:{0} 像素',
|
|
24223
24233
|
resizeRowTip: '高:{0} 像素',
|
|
24224
|
-
rowGroupContentTotal: '{0}({1})'
|
|
24234
|
+
rowGroupContentTotal: '{0}({1})',
|
|
24235
|
+
menuLoading: '加载中...'
|
|
24225
24236
|
},
|
|
24226
24237
|
grid: {
|
|
24227
24238
|
selectOneRecord: '请至少选择一条记录!',
|