vxe-table 4.17.0-beta.6 → 4.17.0-beta.8
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/style.css +1 -1
- package/es/table/module/custom/panel.js +34 -32
- package/es/table/module/export/export-panel.js +22 -22
- package/es/table/module/export/import-panel.js +8 -8
- package/es/table/src/emits.js +2 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +56 -52
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +26 -24
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/export/export-panel.js +19 -18
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +8 -7
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/src/emits.js +1 -1
- package/lib/table/src/emits.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/table/module/custom/panel.ts +34 -32
- package/packages/table/module/export/export-panel.ts +22 -22
- package/packages/table/module/export/import-panel.ts +8 -8
- package/packages/table/src/emits.ts +2 -0
- /package/es/{iconfont.1760422740535.ttf → iconfont.1760580064178.ttf} +0 -0
- /package/es/{iconfont.1760422740535.woff → iconfont.1760580064178.woff} +0 -0
- /package/es/{iconfont.1760422740535.woff2 → iconfont.1760580064178.woff2} +0 -0
- /package/lib/{iconfont.1760422740535.ttf → iconfont.1760580064178.ttf} +0 -0
- /package/lib/{iconfont.1760422740535.woff → iconfont.1760580064178.woff} +0 -0
- /package/lib/{iconfont.1760422740535.woff2 → iconfont.1760580064178.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3138
|
;// ./packages/ui/index.ts
|
|
3139
3139
|
|
|
3140
3140
|
|
|
3141
|
-
const version = "4.17.0-beta.
|
|
3141
|
+
const version = "4.17.0-beta.8";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3650,7 +3650,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3650
3650
|
const {
|
|
3651
3651
|
log: log_log
|
|
3652
3652
|
} = core_.VxeUI;
|
|
3653
|
-
const log_version = `table v${"4.17.0-beta.
|
|
3653
|
+
const log_version = `table v${"4.17.0-beta.8"}`;
|
|
3654
3654
|
const warnLog = log_log.create('warn', log_version);
|
|
3655
3655
|
const errLog = log_log.create('error', log_version);
|
|
3656
3656
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7168,7 +7168,7 @@ const gridProps = {
|
|
|
7168
7168
|
}
|
|
7169
7169
|
};
|
|
7170
7170
|
;// ./packages/table/src/emits.ts
|
|
7171
|
-
const tableEmits = ['update:data', 'keydown-start', 'keydown', 'keydown-end', 'paste', 'copy', 'cut', 'columns-change', 'data-change', 'footer-data-change', 'current-change', 'current-row-change', 'current-row-disabled', 'current-column-change', 'current-column-disabled', 'radio-change', 'checkbox-change', 'checkbox-all', 'checkbox-range-start', 'checkbox-range-change', 'checkbox-range-end', 'checkbox-range-select', 'cell-click', 'cell-dblclick', 'cell-menu', 'cell-mouseenter', 'cell-mouseleave', 'cell-selected', 'cell-delete-value', 'cell-backspace-value', 'header-cell-click', 'header-cell-dblclick', 'header-cell-menu', 'footer-cell-click', 'footer-cell-dblclick', 'footer-cell-menu', 'clear-merge', 'sort-change', 'clear-sort', 'clear-all-sort', 'filter-change', 'filter-visible', 'clear-filter', 'clear-all-filter', 'resizable-change', 'column-resizable-change', 'row-resizable-change', 'toggle-row-group-expand', 'toggle-row-expand', 'toggle-tree-expand', 'menu-click', 'edit-closed', 'row-dragstart', 'row-dragover', 'row-dragend', 'row-remove-dragend', 'row-insert-dragend', 'column-dragstart', 'column-dragover', 'column-dragend', 'enter-append-row', 'edit-actived', 'edit-activated', 'edit-disabled', 'valid-error', 'scroll', 'scroll-boundary', 'custom', 'custom-visible-change', 'custom-visible-all', 'custom-fixed-change', 'change-fnr', 'open-fnr', 'show-fnr', 'hide-fnr', 'fnr-change', 'fnr-find', 'fnr-find-all', 'fnr-replace', 'fnr-replace-all', 'cell-area-copy', 'cell-area-cut', 'cell-area-paste', 'cell-area-merge', 'clear-cell-area-selection', 'clear-cell-area-merge', 'header-cell-area-selection', 'cell-area-selection-invalid', 'cell-area-selection-start', 'cell-area-selection-drag', 'cell-area-selection-end', 'cell-area-extension-start', 'cell-area-extension-drag', 'cell-area-extension-end', 'cell-area-selection-all-start', 'cell-area-selection-all-end', 'cell-area-arrows-start', 'cell-area-arrows-end', 'active-cell-change-start', 'active-cell-change-end'];
|
|
7171
|
+
const tableEmits = ['update:data', 'keydown-start', 'keydown', 'keydown-end', 'paste', 'copy', 'cut', 'columns-change', 'data-change', 'footer-data-change', 'current-change', 'current-row-change', 'current-row-disabled', 'current-column-change', 'current-column-disabled', 'radio-change', 'checkbox-change', 'checkbox-all', 'checkbox-range-start', 'checkbox-range-change', 'checkbox-range-end', 'checkbox-range-select', 'cell-click', 'cell-dblclick', 'cell-menu', 'cell-mouseenter', 'cell-mouseleave', 'cell-selected', 'cell-delete-value', 'cell-backspace-value', 'header-cell-click', 'header-cell-dblclick', 'header-cell-menu', 'footer-cell-click', 'footer-cell-dblclick', 'footer-cell-menu', 'clear-merge', 'sort-change', 'clear-sort', 'clear-all-sort', 'filter-change', 'filter-visible', 'clear-filter', 'clear-all-filter', 'resizable-change', 'column-resizable-change', 'row-resizable-change', 'toggle-row-group-expand', 'toggle-row-expand', 'toggle-tree-expand', 'menu-click', 'edit-closed', 'row-dragstart', 'row-dragover', 'row-dragend', 'row-remove-dragend', 'row-insert-dragend', 'column-dragstart', 'column-dragover', 'column-dragend', 'enter-append-row', 'edit-actived', 'edit-activated', 'edit-disabled', 'valid-error', 'scroll', 'scroll-boundary', 'custom', 'custom-visible-change', 'custom-visible-all', 'custom-fixed-change', 'custom-sort-change', 'change-fnr', 'open-fnr', 'show-fnr', 'hide-fnr', 'fnr-change', 'fnr-find', 'fnr-find-all', 'fnr-replace', 'fnr-replace-all', 'cell-area-copy', 'cell-area-cut', 'cell-area-paste', 'cell-area-merge', 'clear-cell-area-selection', 'clear-cell-area-merge', 'header-cell-area-selection', 'cell-area-selection-invalid', 'cell-area-selection-start', 'cell-area-selection-drag', 'cell-area-selection-end', 'cell-area-extension-start', 'cell-area-extension-drag', 'cell-area-extension-end', 'cell-area-extension-fill', 'cell-area-selection-all-start', 'cell-area-selection-all-end', 'cell-area-arrows-start', 'cell-area-arrows-end', 'active-cell-change-start', 'active-cell-change-end'];
|
|
7172
7172
|
;// ./packages/grid/src/emits.ts
|
|
7173
7173
|
|
|
7174
7174
|
const gridEmits = [...tableEmits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'];
|
|
@@ -9819,7 +9819,7 @@ function panel_createInternalData() {
|
|
|
9819
9819
|
$xeTable.clearCopyCellArea();
|
|
9820
9820
|
}
|
|
9821
9821
|
}
|
|
9822
|
-
|
|
9822
|
+
const csParams = {
|
|
9823
9823
|
oldColumn: dragColumn,
|
|
9824
9824
|
newColumn,
|
|
9825
9825
|
dragColumn,
|
|
@@ -9829,7 +9829,9 @@ function panel_createInternalData() {
|
|
|
9829
9829
|
newIndex: nafIndex,
|
|
9830
9830
|
oldIndex: oafIndex
|
|
9831
9831
|
}
|
|
9832
|
-
}
|
|
9832
|
+
};
|
|
9833
|
+
$xeTable.dispatchEvent('custom-sort-change', csParams, evnt);
|
|
9834
|
+
$xeTable.dispatchEvent('column-dragend', csParams, evnt);
|
|
9833
9835
|
if (immediate) {
|
|
9834
9836
|
tableReactData.customColumnList = collectColumn.slice(0);
|
|
9835
9837
|
$xeTable.handleColDragSwapColumn();
|
|
@@ -10013,7 +10015,7 @@ function panel_createInternalData() {
|
|
|
10013
10015
|
}
|
|
10014
10016
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10015
10017
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10016
|
-
})]) : (
|
|
10018
|
+
})]) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10017
10019
|
class: 'vxe-table-custom--name-option'
|
|
10018
10020
|
}, [allowSort && ((isCrossDrag ? immediate : false) || column.level === 1) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10019
10021
|
class: 'vxe-table-custom--sort-option'
|
|
@@ -10028,7 +10030,7 @@ function panel_createInternalData() {
|
|
|
10028
10030
|
})
|
|
10029
10031
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
10030
10032
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
10031
|
-
})])]) : (
|
|
10033
|
+
})])]) : panel_renderEmptyElement($xeTable), column.type === 'html' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10032
10034
|
key: '1',
|
|
10033
10035
|
class: 'vxe-table-custom--checkbox-label',
|
|
10034
10036
|
innerHTML: colTitle
|
|
@@ -10048,7 +10050,7 @@ function panel_createInternalData() {
|
|
|
10048
10050
|
}) => {
|
|
10049
10051
|
changeFixedOption(column, 'left', $event);
|
|
10050
10052
|
}
|
|
10051
|
-
}) : (
|
|
10053
|
+
}) : panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10052
10054
|
mode: 'text',
|
|
10053
10055
|
icon: column.renderFixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
|
|
10054
10056
|
status: column.renderFixed === 'right' ? 'primary' : '',
|
|
@@ -10059,7 +10061,7 @@ function panel_createInternalData() {
|
|
|
10059
10061
|
}) => {
|
|
10060
10062
|
changeFixedOption(column, 'right', $event);
|
|
10061
10063
|
}
|
|
10062
|
-
}) : (
|
|
10064
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable)]));
|
|
10063
10065
|
}
|
|
10064
10066
|
});
|
|
10065
10067
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -10122,20 +10124,20 @@ function panel_createInternalData() {
|
|
|
10122
10124
|
content: customOpts.resetButtonText || panel_getI18n('vxe.table.customRestore'),
|
|
10123
10125
|
disabled: !isCustomStatus,
|
|
10124
10126
|
onClick: resetCustomEvent
|
|
10125
|
-
}) : (
|
|
10127
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10126
10128
|
mode: 'text',
|
|
10127
10129
|
content: customOpts.closeButtonText || panel_getI18n('vxe.table.customClose'),
|
|
10128
10130
|
onClick: cancelCloseEvent
|
|
10129
|
-
}) : (
|
|
10131
|
+
}) : panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10130
10132
|
mode: 'text',
|
|
10131
10133
|
content: customOpts.cancelButtonText || panel_getI18n('vxe.table.customCancel'),
|
|
10132
10134
|
onClick: cancelCustomEvent
|
|
10133
|
-
}) : (
|
|
10135
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10134
10136
|
mode: 'text',
|
|
10135
10137
|
status: 'primary',
|
|
10136
10138
|
content: customOpts.confirmButtonText || panel_getI18n('vxe.table.customConfirm'),
|
|
10137
10139
|
onClick: confirmCustomEvent
|
|
10138
|
-
}) : (
|
|
10140
|
+
}) : panel_renderEmptyElement($xeTable)])]) : null]), renderDragTip()])] : []);
|
|
10139
10141
|
};
|
|
10140
10142
|
const renderPopupPanel = () => {
|
|
10141
10143
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -10260,7 +10262,7 @@ function panel_createInternalData() {
|
|
|
10260
10262
|
}
|
|
10261
10263
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10262
10264
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10263
|
-
})])]) : (
|
|
10265
|
+
})])]) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
10264
10266
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
10265
10267
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10266
10268
|
class: 'vxe-table-custom-popup--name'
|
|
@@ -10277,7 +10279,7 @@ function panel_createInternalData() {
|
|
|
10277
10279
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
10278
10280
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10279
10281
|
class: 'vxe-table-custom-popup--column-sort-placeholder'
|
|
10280
|
-
}) : (
|
|
10282
|
+
}) : panel_renderEmptyElement($xeTable), column.type === 'html' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10281
10283
|
key: '1',
|
|
10282
10284
|
class: 'vxe-table-custom-popup--title',
|
|
10283
10285
|
innerHTML: colTitle
|
|
@@ -10301,7 +10303,7 @@ function panel_createInternalData() {
|
|
|
10301
10303
|
onChange() {
|
|
10302
10304
|
changeColumnWidth(column);
|
|
10303
10305
|
}
|
|
10304
|
-
}) : (
|
|
10306
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
10305
10307
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
10306
10308
|
}, [parent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : VxeUIRadioGroupComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIRadioGroupComponent, {
|
|
10307
10309
|
modelValue: column.renderFixed || '',
|
|
@@ -10327,7 +10329,7 @@ function panel_createInternalData() {
|
|
|
10327
10329
|
}) {
|
|
10328
10330
|
changeFixedOption(column, label, $event);
|
|
10329
10331
|
}
|
|
10330
|
-
}) : (
|
|
10332
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable)]));
|
|
10331
10333
|
}
|
|
10332
10334
|
});
|
|
10333
10335
|
const scopedSlots = {
|
|
@@ -10344,13 +10346,13 @@ function panel_createInternalData() {
|
|
|
10344
10346
|
class: 'vxe-table-custom-popup--table-wrapper'
|
|
10345
10347
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('colgroup', {}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10346
10348
|
class: 'vxe-table-custom-popup--table-col-seq'
|
|
10347
|
-
}) : (
|
|
10349
|
+
}) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10348
10350
|
class: 'vxe-table-custom-popup--table-col-title'
|
|
10349
10351
|
}), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10350
10352
|
class: 'vxe-table-custom-popup--table-col-width'
|
|
10351
|
-
}) : (
|
|
10353
|
+
}) : panel_renderEmptyElement($xeTable), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10352
10354
|
class: 'vxe-table-custom-popup--table-col-fixed'
|
|
10353
|
-
}) : (
|
|
10355
|
+
}) : panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('thead', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {}, [allowVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10354
10356
|
class: ['vxe-table-custom--checkbox-option', {
|
|
10355
10357
|
'is--checked': isAllChecked,
|
|
10356
10358
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -10361,7 +10363,7 @@ function panel_createInternalData() {
|
|
|
10361
10363
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10362
10364
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10363
10365
|
class: 'vxe-checkbox--label'
|
|
10364
|
-
}, panel_getI18n('vxe.toolbar.customAll'))])]) : (
|
|
10366
|
+
}, panel_getI18n('vxe.toolbar.customAll'))])]) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : panel_renderEmptyElement($xeTable), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('th', {}, panel_getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize])) : panel_renderEmptyElement($xeTable)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(external_commonjs_vue_commonjs2_vue_root_Vue_.TransitionGroup, {
|
|
10365
10367
|
class: 'vxe-table-custom--panel-list',
|
|
10366
10368
|
tag: 'tbody',
|
|
10367
10369
|
name: 'vxe-table-custom--list'
|
|
@@ -10383,17 +10385,17 @@ function panel_createInternalData() {
|
|
|
10383
10385
|
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmRestore'),
|
|
10384
10386
|
disabled: !isCustomStatus,
|
|
10385
10387
|
onClick: resetCustomEvent
|
|
10386
|
-
}) : (
|
|
10388
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10387
10389
|
content: customOpts.closeButtonText || panel_getI18n('vxe.table.customClose'),
|
|
10388
10390
|
onClick: cancelCloseEvent
|
|
10389
|
-
}) : (
|
|
10391
|
+
}) : panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10390
10392
|
content: customOpts.cancelButtonText || panel_getI18n('vxe.table.customCancel'),
|
|
10391
10393
|
onClick: cancelCustomEvent
|
|
10392
|
-
}) : (
|
|
10394
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10393
10395
|
status: 'primary',
|
|
10394
10396
|
content: customOpts.confirmButtonText || panel_getI18n('vxe.custom.cstmConfirm'),
|
|
10395
10397
|
onClick: confirmCustomEvent
|
|
10396
|
-
}) : (
|
|
10398
|
+
}) : panel_renderEmptyElement($xeTable)]);
|
|
10397
10399
|
}
|
|
10398
10400
|
};
|
|
10399
10401
|
if (headerSlot) {
|
|
@@ -10415,7 +10417,7 @@ function panel_createInternalData() {
|
|
|
10415
10417
|
'onUpdate:modelValue'(value) {
|
|
10416
10418
|
customStore.visible = value;
|
|
10417
10419
|
}
|
|
10418
|
-
}, scopedSlots) : (
|
|
10420
|
+
}, scopedSlots) : panel_renderEmptyElement($xeTable);
|
|
10419
10421
|
}
|
|
10420
10422
|
return VxeUIModalComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIModalComponent, {
|
|
10421
10423
|
key: 'modal',
|
|
@@ -10439,7 +10441,7 @@ function panel_createInternalData() {
|
|
|
10439
10441
|
'onUpdate:modelValue'(value) {
|
|
10440
10442
|
customStore.visible = value;
|
|
10441
10443
|
}
|
|
10442
|
-
}, scopedSlots) : (
|
|
10444
|
+
}, scopedSlots) : panel_renderEmptyElement($xeTable);
|
|
10443
10445
|
};
|
|
10444
10446
|
const renderVN = () => {
|
|
10445
10447
|
const customOpts = computeCustomOpts.value;
|
|
@@ -10802,7 +10804,8 @@ var esnext_iterator_find = __webpack_require__(2577);
|
|
|
10802
10804
|
|
|
10803
10805
|
const {
|
|
10804
10806
|
getI18n: import_panel_getI18n,
|
|
10805
|
-
getIcon: import_panel_getIcon
|
|
10807
|
+
getIcon: import_panel_getIcon,
|
|
10808
|
+
renderEmptyElement: import_panel_renderEmptyElement
|
|
10806
10809
|
} = core_.VxeUI;
|
|
10807
10810
|
/* harmony default export */ var import_panel = (defineVxeComponent({
|
|
10808
10811
|
name: 'VxeTableImportPanel',
|
|
@@ -10948,7 +10951,7 @@ const {
|
|
|
10948
10951
|
class: 'vxe-table-export--panel'
|
|
10949
10952
|
}, [topSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10950
10953
|
class: 'vxe-table-export--panel-top'
|
|
10951
|
-
}, $xeTable.callSlot(topSlot, params)) : (
|
|
10954
|
+
}, $xeTable.callSlot(topSlot, params)) : import_panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10952
10955
|
class: 'vxe-table-export--panel-body'
|
|
10953
10956
|
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
|
|
10954
10957
|
class: 'vxe-table-export--panel-table',
|
|
@@ -10971,9 +10974,9 @@ const {
|
|
|
10971
10974
|
'onUpdate:modelValue'(value) {
|
|
10972
10975
|
defaultOptions.mode = value;
|
|
10973
10976
|
}
|
|
10974
|
-
}) : (
|
|
10977
|
+
}) : import_panel_renderEmptyElement($xeTable)])])])])]), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10975
10978
|
class: 'vxe-table-export--panel-bottom'
|
|
10976
|
-
}, $xeTable.callSlot(bottomSlot, params)) : (
|
|
10979
|
+
}, $xeTable.callSlot(bottomSlot, params)) : import_panel_renderEmptyElement($xeTable)]);
|
|
10977
10980
|
},
|
|
10978
10981
|
footer() {
|
|
10979
10982
|
const params = {
|
|
@@ -10990,14 +10993,14 @@ const {
|
|
|
10990
10993
|
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10991
10994
|
content: import_panel_getI18n('vxe.import.impCancel'),
|
|
10992
10995
|
onClick: cancelEvent
|
|
10993
|
-
}) : (
|
|
10996
|
+
}) : import_panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10994
10997
|
status: 'primary',
|
|
10995
10998
|
disabled: !hasFile || reactData.loading,
|
|
10996
10999
|
content: import_panel_getI18n('vxe.import.impConfirm'),
|
|
10997
11000
|
onClick: importEvent
|
|
10998
|
-
}) : (
|
|
11001
|
+
}) : import_panel_renderEmptyElement($xeTable)])]);
|
|
10999
11002
|
}
|
|
11000
|
-
}) : (
|
|
11003
|
+
}) : import_panel_renderEmptyElement($xeTable);
|
|
11001
11004
|
};
|
|
11002
11005
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
11003
11006
|
if (!VxeUIModalComponent) {
|
|
@@ -11027,7 +11030,8 @@ const {
|
|
|
11027
11030
|
|
|
11028
11031
|
const {
|
|
11029
11032
|
getI18n: export_panel_getI18n,
|
|
11030
|
-
getIcon: export_panel_getIcon
|
|
11033
|
+
getIcon: export_panel_getIcon,
|
|
11034
|
+
renderEmptyElement: export_panel_renderEmptyElement
|
|
11031
11035
|
} = core_.VxeUI;
|
|
11032
11036
|
/* harmony default export */ var export_panel = (defineVxeComponent({
|
|
11033
11037
|
name: 'VxeTableExportPanel',
|
|
@@ -11299,14 +11303,14 @@ const {
|
|
|
11299
11303
|
class: 'vxe-table-export--panel'
|
|
11300
11304
|
}, [topSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11301
11305
|
class: 'vxe-table-export--panel-top'
|
|
11302
|
-
}, $xeTable.callSlot(topSlot, params)) : (
|
|
11306
|
+
}, $xeTable.callSlot(topSlot, params)) : export_panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11303
11307
|
class: 'vxe-table-export--panel-body'
|
|
11304
11308
|
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
|
|
11305
11309
|
class: 'vxe-table-export--panel-table',
|
|
11306
11310
|
cellspacing: 0,
|
|
11307
11311
|
cellpadding: 0,
|
|
11308
11312
|
border: 0
|
|
11309
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? (
|
|
11313
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? export_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expName')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUIInputComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIInputComponent, {
|
|
11310
11314
|
ref: xInputFilename,
|
|
11311
11315
|
modelValue: defaultOptions.filename,
|
|
11312
11316
|
type: 'text',
|
|
@@ -11315,13 +11319,13 @@ const {
|
|
|
11315
11319
|
'onUpdate:modelValue'(value) {
|
|
11316
11320
|
defaultOptions.filename = value;
|
|
11317
11321
|
}
|
|
11318
|
-
}) : (
|
|
11322
|
+
}) : export_panel_renderEmptyElement($xeTable)])]), isPrint ? export_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
|
|
11319
11323
|
modelValue: defaultOptions.type,
|
|
11320
11324
|
options: storeData.typeList,
|
|
11321
11325
|
'onUpdate:modelValue'(value) {
|
|
11322
11326
|
defaultOptions.type = value;
|
|
11323
11327
|
}
|
|
11324
|
-
}) : (
|
|
11328
|
+
}) : export_panel_renderEmptyElement($xeTable)])]), isPrint || showSheet ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expSheetName')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUIInputComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIInputComponent, {
|
|
11325
11329
|
ref: xInputSheetname,
|
|
11326
11330
|
modelValue: defaultOptions.sheetName,
|
|
11327
11331
|
type: 'text',
|
|
@@ -11330,7 +11334,7 @@ const {
|
|
|
11330
11334
|
'onUpdate:modelValue'(value) {
|
|
11331
11335
|
defaultOptions.sheetName = value;
|
|
11332
11336
|
}
|
|
11333
|
-
}) : (
|
|
11337
|
+
}) : export_panel_renderEmptyElement($xeTable)])]) : export_panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expMode')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
|
|
11334
11338
|
modelValue: defaultOptions.mode,
|
|
11335
11339
|
options: storeData.modeList.map(item => {
|
|
11336
11340
|
return {
|
|
@@ -11341,7 +11345,7 @@ const {
|
|
|
11341
11345
|
'onUpdate:modelValue'(value) {
|
|
11342
11346
|
defaultOptions.mode = value;
|
|
11343
11347
|
}
|
|
11344
|
-
}) : (
|
|
11348
|
+
}) : export_panel_renderEmptyElement($xeTable)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [export_panel_getI18n('vxe.export.expColumn')]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11345
11349
|
class: 'vxe-table-export--panel-column'
|
|
11346
11350
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
11347
11351
|
class: 'vxe-table-export--panel-column-header'
|
|
@@ -11370,7 +11374,7 @@ const {
|
|
|
11370
11374
|
'onUpdate:modelValue'(value) {
|
|
11371
11375
|
defaultOptions.isHeader = value;
|
|
11372
11376
|
}
|
|
11373
|
-
}) : (
|
|
11377
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11374
11378
|
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
11375
11379
|
disabled: !isHeader,
|
|
11376
11380
|
title: export_panel_getI18n('vxe.export.expTitleTitle'),
|
|
@@ -11378,7 +11382,7 @@ const {
|
|
|
11378
11382
|
'onUpdate:modelValue'(value) {
|
|
11379
11383
|
defaultOptions.isTitle = value;
|
|
11380
11384
|
}
|
|
11381
|
-
}) : (
|
|
11385
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11382
11386
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
11383
11387
|
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
11384
11388
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
@@ -11386,7 +11390,7 @@ const {
|
|
|
11386
11390
|
'onUpdate:modelValue'(value) {
|
|
11387
11391
|
defaultOptions.isColgroup = value;
|
|
11388
11392
|
}
|
|
11389
|
-
}) : (
|
|
11393
|
+
}) : export_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11390
11394
|
class: 'vxe-table-export--panel-option-row'
|
|
11391
11395
|
}, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11392
11396
|
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
@@ -11396,7 +11400,7 @@ const {
|
|
|
11396
11400
|
'onUpdate:modelValue'(value) {
|
|
11397
11401
|
defaultOptions.original = value;
|
|
11398
11402
|
}
|
|
11399
|
-
}) : (
|
|
11403
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11400
11404
|
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
11401
11405
|
title: export_panel_getI18n('vxe.export.expMergeTitle'),
|
|
11402
11406
|
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
@@ -11404,7 +11408,7 @@ const {
|
|
|
11404
11408
|
'onUpdate:modelValue'(value) {
|
|
11405
11409
|
defaultOptions.isMerge = value;
|
|
11406
11410
|
}
|
|
11407
|
-
}) : (
|
|
11411
|
+
}) : export_panel_renderEmptyElement($xeTable), isPrint || !VxeUICheckboxComponent ? export_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11408
11412
|
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
11409
11413
|
disabled: !supportStyle,
|
|
11410
11414
|
title: export_panel_getI18n('vxe.export.expUseStyleTitle'),
|
|
@@ -11420,7 +11424,7 @@ const {
|
|
|
11420
11424
|
'onUpdate:modelValue'(value) {
|
|
11421
11425
|
defaultOptions.isAllExpand = value;
|
|
11422
11426
|
}
|
|
11423
|
-
}) : (
|
|
11427
|
+
}) : export_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11424
11428
|
class: 'vxe-table-export--panel-option-row'
|
|
11425
11429
|
}, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11426
11430
|
modelValue: defaultOptions.isFooter,
|
|
@@ -11430,9 +11434,9 @@ const {
|
|
|
11430
11434
|
'onUpdate:modelValue'(value) {
|
|
11431
11435
|
defaultOptions.isFooter = value;
|
|
11432
11436
|
}
|
|
11433
|
-
}) : (
|
|
11437
|
+
}) : export_panel_renderEmptyElement($xeTable)])])])]])])]), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11434
11438
|
class: 'vxe-table-export--panel-bottom'
|
|
11435
|
-
}, $xeTable.callSlot(bottomSlot, params)) : (
|
|
11439
|
+
}, $xeTable.callSlot(bottomSlot, params)) : export_panel_renderEmptyElement($xeTable)]);
|
|
11436
11440
|
},
|
|
11437
11441
|
footer() {
|
|
11438
11442
|
const params = {
|
|
@@ -11450,14 +11454,14 @@ const {
|
|
|
11450
11454
|
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
11451
11455
|
content: export_panel_getI18n('vxe.export.expCancel'),
|
|
11452
11456
|
onClick: cancelEvent
|
|
11453
|
-
}) : (
|
|
11457
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
11454
11458
|
ref: xButtonConfirm,
|
|
11455
11459
|
status: 'primary',
|
|
11456
11460
|
content: export_panel_getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
11457
11461
|
onClick: confirmEvent
|
|
11458
|
-
}) : (
|
|
11462
|
+
}) : export_panel_renderEmptyElement($xeTable)])]);
|
|
11459
11463
|
}
|
|
11460
|
-
}) : (
|
|
11464
|
+
}) : export_panel_renderEmptyElement($xeTable);
|
|
11461
11465
|
};
|
|
11462
11466
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
11463
11467
|
if (!VxeUIModalComponent) {
|