vxe-table 3.19.12 → 3.19.13
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/mixin.js +1 -1
- package/es/table/module/menu/panel.js +30 -14
- 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 +27 -11
- 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/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/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/mixin.ts +7 -7
- package/packages/table/module/menu/panel.ts +30 -14
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/menu.scss +1 -0
- /package/es/{iconfont.1762579776761.ttf → iconfont.1762758687118.ttf} +0 -0
- /package/es/{iconfont.1762579776761.woff → iconfont.1762758687118.woff} +0 -0
- /package/es/{iconfont.1762579776761.woff2 → iconfont.1762758687118.woff2} +0 -0
- /package/lib/{iconfont.1762579776761.ttf → iconfont.1762758687118.ttf} +0 -0
- /package/lib/{iconfont.1762579776761.woff → iconfont.1762758687118.woff} +0 -0
- /package/lib/{iconfont.1762579776761.woff2 → iconfont.1762758687118.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.13";
|
|
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.13"}`;
|
|
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
|
|
@@ -11215,6 +11216,7 @@ const {
|
|
|
11215
11216
|
|
|
11216
11217
|
const {
|
|
11217
11218
|
getIcon: menu_panel_getIcon,
|
|
11219
|
+
getI18n: menu_panel_getI18n,
|
|
11218
11220
|
renderEmptyElement: menu_panel_renderEmptyElement
|
|
11219
11221
|
} = core_.VxeUI;
|
|
11220
11222
|
/* harmony default export */ var menu_panel = ({
|
|
@@ -11273,7 +11275,11 @@ const {
|
|
|
11273
11275
|
class: 'vxe-context-menu--option-wrapper',
|
|
11274
11276
|
key: gIndex
|
|
11275
11277
|
}, options.map((item, index) => {
|
|
11276
|
-
const
|
|
11278
|
+
const {
|
|
11279
|
+
children,
|
|
11280
|
+
loading
|
|
11281
|
+
} = item;
|
|
11282
|
+
const hasChildMenus = children && children.some(child => child.visible !== false);
|
|
11277
11283
|
const prefixOpts = Object.assign({}, item.prefixConfig);
|
|
11278
11284
|
const prefixIcon = prefixOpts.icon || item.prefixIcon;
|
|
11279
11285
|
const suffixOpts = Object.assign({}, item.suffixConfig);
|
|
@@ -11281,6 +11287,7 @@ const {
|
|
|
11281
11287
|
const menuContent = getFuncText(item.name);
|
|
11282
11288
|
return item.visible === false ? menu_panel_renderEmptyElement($xeTable) : h('li', {
|
|
11283
11289
|
class: [item.className, {
|
|
11290
|
+
'link--loading': loading,
|
|
11284
11291
|
'link--disabled': item.disabled,
|
|
11285
11292
|
'link--active': item === ctxMenuStore.selected
|
|
11286
11293
|
}],
|
|
@@ -11300,14 +11307,16 @@ const {
|
|
|
11300
11307
|
}
|
|
11301
11308
|
}, [h('div', {
|
|
11302
11309
|
class: ['vxe-context-menu--link-prefix', prefixOpts.className || '']
|
|
11303
|
-
}, [
|
|
11310
|
+
}, [loading ? h('span', {
|
|
11311
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11312
|
+
}) : 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
11313
|
class: prefixIcon
|
|
11305
|
-
}), prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11314
|
+
})]), prefixOpts.content ? h('span', {}, `${prefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11306
11315
|
class: 'vxe-context-menu--link-content',
|
|
11307
11316
|
attrs: {
|
|
11308
11317
|
title: menuContent
|
|
11309
11318
|
}
|
|
11310
|
-
}, menuContent), h('div', {
|
|
11319
|
+
}, loading ? menu_panel_getI18n('vxe.table.menuLoading') : menuContent), h('div', {
|
|
11311
11320
|
class: ['vxe-context-menu--link-suffix', suffixOpts.className || '']
|
|
11312
11321
|
}, [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
11322
|
class: suffixIcon || (hasChildMenus ? menu_panel_getIcon().TABLE_MENU_OPTIONS : '')
|
|
@@ -11316,6 +11325,9 @@ const {
|
|
|
11316
11325
|
'is--show': item === ctxMenuStore.selected && ctxMenuStore.showChild
|
|
11317
11326
|
}]
|
|
11318
11327
|
}, item.children.map((child, cIndex) => {
|
|
11328
|
+
const {
|
|
11329
|
+
loading: childLoading
|
|
11330
|
+
} = child;
|
|
11319
11331
|
const childPrefixOpts = Object.assign({}, child.prefixConfig);
|
|
11320
11332
|
const childPrefixIcon = childPrefixOpts.icon || child.prefixIcon;
|
|
11321
11333
|
const childSuffixOpts = Object.assign({}, child.suffixConfig);
|
|
@@ -11323,6 +11335,7 @@ const {
|
|
|
11323
11335
|
const childMenuContent = getFuncText(child.name);
|
|
11324
11336
|
return child.visible === false ? null : h('li', {
|
|
11325
11337
|
class: [child.className, {
|
|
11338
|
+
'link--loading': childLoading,
|
|
11326
11339
|
'link--disabled': child.disabled,
|
|
11327
11340
|
'link--active': child === ctxMenuStore.selectChild
|
|
11328
11341
|
}],
|
|
@@ -11342,14 +11355,16 @@ const {
|
|
|
11342
11355
|
}
|
|
11343
11356
|
}, [h('div', {
|
|
11344
11357
|
class: ['vxe-context-menu--link-prefix', childPrefixOpts.className || '']
|
|
11345
|
-
}, [
|
|
11358
|
+
}, [child.loading ? h('span', {
|
|
11359
|
+
class: menu_panel_getIcon('TABLE_MENU_OPTION_LOADING')
|
|
11360
|
+
}) : 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
11361
|
class: childPrefixIcon
|
|
11347
|
-
}), childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11362
|
+
})]), childPrefixOpts.content ? h('span', `${childPrefixOpts.content}`) : menu_panel_renderEmptyElement($xeTable)]), h('span', {
|
|
11348
11363
|
class: 'vxe-context-menu--link-content',
|
|
11349
11364
|
attrs: {
|
|
11350
11365
|
title: childMenuContent
|
|
11351
11366
|
}
|
|
11352
|
-
}, childMenuContent), h('div', {
|
|
11367
|
+
}, childLoading ? menu_panel_getI18n('vxe.table.menuLoading') : childMenuContent), h('div', {
|
|
11353
11368
|
class: ['vxe-context-menu--link-suffix', childSuffixOpts.className || '']
|
|
11354
11369
|
}, [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
11370
|
class: childSuffixIcon
|
|
@@ -12249,7 +12264,7 @@ const {
|
|
|
12249
12264
|
const $xeGantt = $xeTable.$xeGantt;
|
|
12250
12265
|
const internalData = $xeTable;
|
|
12251
12266
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
12252
|
-
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12267
|
+
if (!menu.loading && !menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
12253
12268
|
const gMenuOpts = mixin_menus.get(menu.code);
|
|
12254
12269
|
const params = Object.assign({}, internalData._currMenuParams, {
|
|
12255
12270
|
menu,
|
|
@@ -24221,7 +24236,8 @@ const Toolbar = VxeToolbar;
|
|
|
24221
24236
|
dragTip: '移动:{0}',
|
|
24222
24237
|
resizeColTip: '宽:{0} 像素',
|
|
24223
24238
|
resizeRowTip: '高:{0} 像素',
|
|
24224
|
-
rowGroupContentTotal: '{0}({1})'
|
|
24239
|
+
rowGroupContentTotal: '{0}({1})',
|
|
24240
|
+
menuLoading: '加载中...'
|
|
24225
24241
|
},
|
|
24226
24242
|
grid: {
|
|
24227
24243
|
selectOneRecord: '请至少选择一条记录!',
|