vxe-table 3.21.0 → 3.21.1
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 +4 -2
- package/es/locale/lang/de-DE.js +4 -2
- package/es/locale/lang/en-US.js +4 -2
- package/es/locale/lang/es-ES.js +4 -2
- package/es/locale/lang/fr-FR.js +4 -2
- package/es/locale/lang/hu-HU.js +4 -2
- package/es/locale/lang/hy-AM.js +4 -2
- package/es/locale/lang/id-ID.js +4 -2
- package/es/locale/lang/it-IT.js +4 -2
- package/es/locale/lang/ja-JP.js +4 -2
- package/es/locale/lang/ko-KR.js +4 -2
- package/es/locale/lang/ms-MY.js +4 -2
- package/es/locale/lang/nb-NO.js +4 -2
- package/es/locale/lang/pt-BR.js +4 -2
- package/es/locale/lang/ru-RU.js +4 -2
- package/es/locale/lang/th-TH.js +4 -2
- package/es/locale/lang/ug-CN.js +4 -2
- package/es/locale/lang/uk-UA.js +4 -2
- package/es/locale/lang/uz-UZ.js +4 -2
- package/es/locale/lang/vi-VN.js +4 -2
- package/es/locale/lang/zh-CHT.js +4 -2
- package/es/locale/lang/zh-CN.js +4 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +45 -31
- package/es/table/src/table.js +1 -1
- package/es/table/style.css +4 -1
- 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 +4 -1
- 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 +34 -18
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +4 -2
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +4 -2
- package/lib/locale/lang/de-DE.js +4 -2
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +4 -2
- package/lib/locale/lang/en-US.js +4 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +4 -2
- package/lib/locale/lang/es-ES.js +4 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +4 -2
- package/lib/locale/lang/fr-FR.js +4 -2
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +4 -2
- package/lib/locale/lang/hu-HU.js +4 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +4 -2
- package/lib/locale/lang/hy-AM.js +4 -2
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +4 -2
- package/lib/locale/lang/id-ID.js +4 -2
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +4 -2
- package/lib/locale/lang/it-IT.js +4 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +4 -2
- package/lib/locale/lang/ja-JP.js +4 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +4 -2
- package/lib/locale/lang/ko-KR.js +4 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +4 -2
- package/lib/locale/lang/ms-MY.js +4 -2
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +4 -2
- package/lib/locale/lang/nb-NO.js +4 -2
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +4 -2
- package/lib/locale/lang/pt-BR.js +4 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +4 -2
- package/lib/locale/lang/ru-RU.js +4 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +4 -2
- package/lib/locale/lang/th-TH.js +4 -2
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +4 -2
- package/lib/locale/lang/ug-CN.js +4 -2
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +4 -2
- package/lib/locale/lang/uk-UA.js +4 -2
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +4 -2
- package/lib/locale/lang/uz-UZ.js +4 -2
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +4 -2
- package/lib/locale/lang/vi-VN.js +4 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +4 -2
- package/lib/locale/lang/zh-CHT.js +4 -2
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +4 -2
- package/lib/locale/lang/zh-CN.js +4 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +4 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +26 -13
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +4 -1
- 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 +4 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +4 -2
- package/packages/locale/lang/de-DE.ts +4 -2
- package/packages/locale/lang/en-US.ts +4 -2
- package/packages/locale/lang/es-ES.ts +4 -2
- package/packages/locale/lang/fr-FR.ts +4 -2
- package/packages/locale/lang/hu-HU.ts +4 -2
- package/packages/locale/lang/hy-AM.ts +4 -2
- package/packages/locale/lang/id-ID.ts +4 -2
- package/packages/locale/lang/it-IT.ts +4 -2
- package/packages/locale/lang/ja-JP.ts +4 -2
- package/packages/locale/lang/ko-KR.ts +4 -2
- package/packages/locale/lang/ms-MY.ts +4 -2
- package/packages/locale/lang/nb-NO.ts +4 -2
- package/packages/locale/lang/pt-BR.ts +4 -2
- package/packages/locale/lang/ru-RU.ts +4 -2
- package/packages/locale/lang/th-TH.ts +4 -2
- package/packages/locale/lang/ug-CN.ts +4 -2
- package/packages/locale/lang/uk-UA.ts +4 -2
- package/packages/locale/lang/uz-UZ.ts +4 -2
- package/packages/locale/lang/vi-VN.ts +4 -2
- package/packages/locale/lang/zh-CHT.ts +4 -2
- package/packages/locale/lang/zh-CN.ts +4 -2
- package/packages/table/module/custom/panel.ts +71 -53
- package/packages/table/src/table.ts +1 -1
- package/packages/ui/index.ts +1 -0
- package/styles/components/table-module/custom.scss +5 -1
- /package/es/{iconfont.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
- /package/es/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
- /package/es/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
- /package/lib/{iconfont.1779330830416.ttf → iconfont.1779447236462.ttf} +0 -0
- /package/lib/{iconfont.1779330830416.woff → iconfont.1779447236462.woff} +0 -0
- /package/lib/{iconfont.1779330830416.woff2 → iconfont.1779447236462.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3311,7 +3311,7 @@ function getClass(property, params) {
|
|
|
3311
3311
|
/* unused harmony import specifier */ var VxeUI;
|
|
3312
3312
|
|
|
3313
3313
|
|
|
3314
|
-
const version = "3.21.
|
|
3314
|
+
const version = "3.21.1";
|
|
3315
3315
|
core_.VxeUI.version = version;
|
|
3316
3316
|
core_.VxeUI.tableVersion = version;
|
|
3317
3317
|
core_.VxeUI.setConfig({
|
|
@@ -3476,6 +3476,7 @@ core_.VxeUI.setConfig({
|
|
|
3476
3476
|
},
|
|
3477
3477
|
aggregateConfig: {
|
|
3478
3478
|
padding: true,
|
|
3479
|
+
placement: 'left',
|
|
3479
3480
|
rowField: 'id',
|
|
3480
3481
|
parentField: '_X_ROW_PARENT_KEY',
|
|
3481
3482
|
childrenField: '_X_ROW_CHILDREN',
|
|
@@ -3841,7 +3842,7 @@ var es_iterator_some = __webpack_require__(3579);
|
|
|
3841
3842
|
const {
|
|
3842
3843
|
log: log_log
|
|
3843
3844
|
} = core_.VxeUI;
|
|
3844
|
-
const log_version = `table v${"3.21.
|
|
3845
|
+
const log_version = `table v${"3.21.1"}`;
|
|
3845
3846
|
const warnLog = log_log.create('warn', log_version);
|
|
3846
3847
|
const errLog = log_log.create('error', log_version);
|
|
3847
3848
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -11207,6 +11208,8 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11207
11208
|
} = customPanelReactData;
|
|
11208
11209
|
const customOpts = $xeTable.computeCustomOpts;
|
|
11209
11210
|
const {
|
|
11211
|
+
showSortDragButton,
|
|
11212
|
+
allowSort,
|
|
11210
11213
|
immediate
|
|
11211
11214
|
} = customOpts;
|
|
11212
11215
|
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
@@ -11225,7 +11228,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11225
11228
|
evnt.preventDefault();
|
|
11226
11229
|
const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
|
|
11227
11230
|
const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
|
|
11228
|
-
if (!dragCol || dragCol && dragCol.id === column.id || !isCrossDrag && column.level > 1 || !immediate && column.level > 1) {
|
|
11231
|
+
if (!dragCol || !(showSortDragButton && allowSort) || dragCol && dragCol.id === column.id || !isCrossDrag && column.level > 1 || !immediate && column.level > 1 || !isCrossDrag && dragCol.level > 1 || !immediate && dragCol.level > 1) {
|
|
11229
11232
|
panel_showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos);
|
|
11230
11233
|
return;
|
|
11231
11234
|
}
|
|
@@ -11415,6 +11418,8 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11415
11418
|
allowVisible,
|
|
11416
11419
|
allowSort,
|
|
11417
11420
|
allowFixed,
|
|
11421
|
+
allowGroup,
|
|
11422
|
+
allowValues,
|
|
11418
11423
|
trigger,
|
|
11419
11424
|
placement,
|
|
11420
11425
|
showSortDragButton,
|
|
@@ -11500,7 +11505,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11500
11505
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
11501
11506
|
})]) : panel_renderEmptyElement($xeTable), h('div', {
|
|
11502
11507
|
class: 'vxe-table-custom--name-option'
|
|
11503
|
-
}, [allowSort && showSortDragButton
|
|
11508
|
+
}, [allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? h('div', {
|
|
11504
11509
|
class: 'vxe-table-custom--sort-option'
|
|
11505
11510
|
}, [h('span', {
|
|
11506
11511
|
class: ['vxe-table-custom--sort-btn', {
|
|
@@ -11515,7 +11520,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11515
11520
|
}
|
|
11516
11521
|
}, [h('i', {
|
|
11517
11522
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
11518
|
-
})])]) : panel_renderEmptyElement($xeTable), column.type === 'html' ? h('div', {
|
|
11523
|
+
})])]) : panel_renderEmptyElement($xeTable) : panel_renderEmptyElement($xeTable), column.type === 'html' ? h('div', {
|
|
11519
11524
|
key: '1',
|
|
11520
11525
|
class: 'vxe-table-custom--checkbox-label',
|
|
11521
11526
|
domProps: {
|
|
@@ -11734,21 +11739,25 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11734
11739
|
customColumnList
|
|
11735
11740
|
} = tableReactData;
|
|
11736
11741
|
const customOpts = $xeTable.computeCustomOpts;
|
|
11742
|
+
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
11743
|
+
const aggregateOpts = $xeTable.computeAggregateOpts;
|
|
11737
11744
|
const {
|
|
11745
|
+
placement: aggPlacement
|
|
11746
|
+
} = aggregateOpts;
|
|
11747
|
+
const {
|
|
11748
|
+
mode,
|
|
11738
11749
|
immediate,
|
|
11739
11750
|
showSortDragButton,
|
|
11740
11751
|
showSortMoveButton,
|
|
11741
|
-
showSortPutButton
|
|
11742
|
-
} = customOpts;
|
|
11743
|
-
const columnDragOpts = $xeTable.computeColumnDragOpts;
|
|
11744
|
-
const {
|
|
11745
|
-
mode,
|
|
11752
|
+
showSortPutButton,
|
|
11746
11753
|
modalOptions,
|
|
11747
11754
|
drawerOptions,
|
|
11748
11755
|
allowVisible,
|
|
11749
11756
|
allowSort,
|
|
11750
11757
|
allowFixed,
|
|
11751
11758
|
allowResizable,
|
|
11759
|
+
allowGroup,
|
|
11760
|
+
allowValues,
|
|
11752
11761
|
checkMethod,
|
|
11753
11762
|
visibleMethod
|
|
11754
11763
|
} = customOpts;
|
|
@@ -11776,6 +11785,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11776
11785
|
const trVNs = [];
|
|
11777
11786
|
const isAllChecked = customStore.isAll;
|
|
11778
11787
|
const isAllIndeterminate = customStore.isIndeterminate;
|
|
11788
|
+
const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
|
|
11779
11789
|
const params = {
|
|
11780
11790
|
$table: $xeTable,
|
|
11781
11791
|
$grid: $xeGrid,
|
|
@@ -11856,7 +11866,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11856
11866
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
11857
11867
|
}, [h('div', {
|
|
11858
11868
|
class: 'vxe-table-custom-popup--name'
|
|
11859
|
-
}, [allowSort
|
|
11869
|
+
}, [allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? h('div', {
|
|
11860
11870
|
class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
11861
11871
|
'is--disabled': isHidden
|
|
11862
11872
|
}],
|
|
@@ -11871,7 +11881,7 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11871
11881
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
11872
11882
|
})]) : h('div', {
|
|
11873
11883
|
class: 'vxe-table-custom-popup--column-sort-placeholder'
|
|
11874
|
-
})
|
|
11884
|
+
}) : panel_renderEmptyElement($xeTable), column.type === 'html' ? h('div', {
|
|
11875
11885
|
key: '1',
|
|
11876
11886
|
class: 'vxe-table-custom-popup--title',
|
|
11877
11887
|
domProps: {
|
|
@@ -11989,8 +11999,8 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
11989
11999
|
default: () => {
|
|
11990
12000
|
return h('div', {
|
|
11991
12001
|
ref: 'refBodyWrapperElem',
|
|
11992
|
-
class: 'vxe-table-custom-popup--body-wrapper'
|
|
11993
|
-
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params, h) : [!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
12002
|
+
class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`]
|
|
12003
|
+
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params, h) : [!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
11994
12004
|
props: {
|
|
11995
12005
|
customStore
|
|
11996
12006
|
}
|
|
@@ -12032,7 +12042,11 @@ function panel_hideDropTip($xeTableCustomPanel) {
|
|
|
12032
12042
|
}
|
|
12033
12043
|
}, trVNs)])]), bottomSlot ? h('div', {
|
|
12034
12044
|
class: 'vxe-table-custom-popup--table-bottom'
|
|
12035
|
-
}, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), $xeTableCustomPanel.renderDragTip(h)])
|
|
12045
|
+
}, $xeTable.callSlot(bottomSlot, params, h)) : panel_renderEmptyElement($xeTable), $xeTableCustomPanel.renderDragTip(h)]), isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? h($xeTable.getPivotTableAggregatePopupPanel(), {
|
|
12046
|
+
props: {
|
|
12047
|
+
customStore
|
|
12048
|
+
}
|
|
12049
|
+
}) : panel_renderEmptyElement($xeTable)]);
|
|
12036
12050
|
},
|
|
12037
12051
|
footer: () => {
|
|
12038
12052
|
if (footerSlot) {
|
|
@@ -21507,7 +21521,7 @@ function renderBody(h, $xeTable) {
|
|
|
21507
21521
|
warnLog('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected']);
|
|
21508
21522
|
}
|
|
21509
21523
|
if (mouseOpts.area && props.treeConfig && !treeOpts.transform) {
|
|
21510
|
-
errLog('vxe.error.
|
|
21524
|
+
errLog('vxe.error.notSupportProp', ['mouse-config.area', 'tree-config.transform=false', 'tree-config.transform=true']);
|
|
21511
21525
|
}
|
|
21512
21526
|
if (props.editConfig && editOpts.activeMethod) {
|
|
21513
21527
|
warnLog('vxe.error.delProp', ['table.edit-config.activeMethod', 'table.edit-config.beforeEditMethod']);
|
|
@@ -26988,7 +27002,8 @@ const Toolbar = VxeToolbar;
|
|
|
26988
27002
|
select: {
|
|
26989
27003
|
clear: '清除',
|
|
26990
27004
|
allChecked: '全选',
|
|
26991
|
-
total: '{0}
|
|
27005
|
+
total: '已选 {0} 项',
|
|
27006
|
+
close: '关闭',
|
|
26992
27007
|
search: '搜索',
|
|
26993
27008
|
loadingText: '加载中...',
|
|
26994
27009
|
emptyText: '暂无数据',
|
|
@@ -27005,7 +27020,8 @@ const Toolbar = VxeToolbar;
|
|
|
27005
27020
|
allChecked: '全选',
|
|
27006
27021
|
allExpand: '全部展开',
|
|
27007
27022
|
clearExpand: '全部收起',
|
|
27008
|
-
total: '已选 {0}',
|
|
27023
|
+
total: '已选 {0} 项',
|
|
27024
|
+
close: '关闭',
|
|
27009
27025
|
search: '搜索',
|
|
27010
27026
|
emptyText: '暂无数据'
|
|
27011
27027
|
},
|