vxe-table 4.17.0-beta.7 → 4.17.0-beta.9
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/module/keyboard/hook.js +4 -26
- package/es/table/src/emits.js +2 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/utils.js +6 -5
- package/lib/index.umd.js +70 -88
- 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/module/keyboard/hook.js +3 -28
- package/lib/table/module/keyboard/hook.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/lib/ui/src/utils.js +8 -5
- package/lib/ui/src/utils.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/module/keyboard/hook.ts +4 -28
- package/packages/table/src/emits.ts +2 -0
- package/packages/ui/src/utils.ts +7 -5
- /package/es/{iconfont.1760436686233.ttf → iconfont.1760602279303.ttf} +0 -0
- /package/es/{iconfont.1760436686233.woff → iconfont.1760602279303.woff} +0 -0
- /package/es/{iconfont.1760436686233.woff2 → iconfont.1760602279303.woff2} +0 -0
- /package/lib/{iconfont.1760436686233.ttf → iconfont.1760602279303.ttf} +0 -0
- /package/lib/{iconfont.1760436686233.woff → iconfont.1760602279303.woff} +0 -0
- /package/lib/{iconfont.1760436686233.woff2 → iconfont.1760602279303.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2830,7 +2830,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2830
2830
|
config: function() { return /* reexport */ config; },
|
|
2831
2831
|
"default": function() { return /* binding */ entry_lib; },
|
|
2832
2832
|
formats: function() { return /* reexport */ formats; },
|
|
2833
|
-
getConfig: function() { return /* reexport */
|
|
2833
|
+
getConfig: function() { return /* reexport */ ui_getConfig; },
|
|
2834
2834
|
getI18n: function() { return /* reexport */ getI18n; },
|
|
2835
2835
|
getIcon: function() { return /* reexport */ getIcon; },
|
|
2836
2836
|
getTheme: function() { return /* reexport */ getTheme; },
|
|
@@ -2879,7 +2879,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
2879
2879
|
commands: function() { return commands; },
|
|
2880
2880
|
config: function() { return config; },
|
|
2881
2881
|
formats: function() { return formats; },
|
|
2882
|
-
getConfig: function() { return
|
|
2882
|
+
getConfig: function() { return ui_getConfig; },
|
|
2883
2883
|
getI18n: function() { return getI18n; },
|
|
2884
2884
|
getIcon: function() { return getIcon; },
|
|
2885
2885
|
getTheme: function() { return getTheme; },
|
|
@@ -3094,6 +3094,9 @@ updateVar();
|
|
|
3094
3094
|
|
|
3095
3095
|
|
|
3096
3096
|
|
|
3097
|
+
const {
|
|
3098
|
+
getConfig
|
|
3099
|
+
} = core_.VxeUI;
|
|
3097
3100
|
function isEnableConf(conf) {
|
|
3098
3101
|
return conf && conf.enabled !== false;
|
|
3099
3102
|
}
|
|
@@ -3120,14 +3123,14 @@ function hasChildrenList(item) {
|
|
|
3120
3123
|
return item && item.children && item.children.length > 0;
|
|
3121
3124
|
}
|
|
3122
3125
|
function getFuncText(content, args) {
|
|
3123
|
-
if (content) {
|
|
3124
|
-
|
|
3125
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(translate ? translate('' + content, args) : content);
|
|
3126
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(content)) {
|
|
3127
|
+
return '';
|
|
3126
3128
|
}
|
|
3127
|
-
|
|
3129
|
+
const translate = getConfig().translate;
|
|
3130
|
+
return `${translate ? translate('' + content, args) : content}`;
|
|
3128
3131
|
}
|
|
3129
3132
|
function formatText(value, placeholder) {
|
|
3130
|
-
return '' + (isEmptyValue(value) ? placeholder ?
|
|
3133
|
+
return '' + (isEmptyValue(value) ? placeholder ? getConfig().emptyCell : '' : value);
|
|
3131
3134
|
}
|
|
3132
3135
|
/**
|
|
3133
3136
|
* 判断值为:'' | null | undefined 时都属于空值
|
|
@@ -3138,7 +3141,7 @@ function eqEmptyValue(cellValue) {
|
|
|
3138
3141
|
;// ./packages/ui/index.ts
|
|
3139
3142
|
|
|
3140
3143
|
|
|
3141
|
-
const version = "4.17.0-beta.
|
|
3144
|
+
const version = "4.17.0-beta.9";
|
|
3142
3145
|
core_.VxeUI.version = version;
|
|
3143
3146
|
core_.VxeUI.tableVersion = version;
|
|
3144
3147
|
core_.VxeUI.setConfig({
|
|
@@ -3499,7 +3502,7 @@ core_.VxeUI.setIcon({
|
|
|
3499
3502
|
const setTheme = core_.VxeUI.setTheme;
|
|
3500
3503
|
const getTheme = core_.VxeUI.getTheme;
|
|
3501
3504
|
const setConfig = core_.VxeUI.setConfig;
|
|
3502
|
-
const
|
|
3505
|
+
const ui_getConfig = core_.VxeUI.getConfig;
|
|
3503
3506
|
const setIcon = core_.VxeUI.setIcon;
|
|
3504
3507
|
const getIcon = core_.VxeUI.getIcon;
|
|
3505
3508
|
const setLanguage = core_.VxeUI.setLanguage;
|
|
@@ -3650,7 +3653,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3650
3653
|
const {
|
|
3651
3654
|
log: log_log
|
|
3652
3655
|
} = core_.VxeUI;
|
|
3653
|
-
const log_version = `table v${"4.17.0-beta.
|
|
3656
|
+
const log_version = `table v${"4.17.0-beta.9"}`;
|
|
3654
3657
|
const warnLog = log_log.create('warn', log_version);
|
|
3655
3658
|
const errLog = log_log.create('error', log_version);
|
|
3656
3659
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -7168,7 +7171,7 @@ const gridProps = {
|
|
|
7168
7171
|
}
|
|
7169
7172
|
};
|
|
7170
7173
|
;// ./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'];
|
|
7174
|
+
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
7175
|
;// ./packages/grid/src/emits.ts
|
|
7173
7176
|
|
|
7174
7177
|
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 +9822,7 @@ function panel_createInternalData() {
|
|
|
9819
9822
|
$xeTable.clearCopyCellArea();
|
|
9820
9823
|
}
|
|
9821
9824
|
}
|
|
9822
|
-
|
|
9825
|
+
const csParams = {
|
|
9823
9826
|
oldColumn: dragColumn,
|
|
9824
9827
|
newColumn,
|
|
9825
9828
|
dragColumn,
|
|
@@ -9829,7 +9832,9 @@ function panel_createInternalData() {
|
|
|
9829
9832
|
newIndex: nafIndex,
|
|
9830
9833
|
oldIndex: oafIndex
|
|
9831
9834
|
}
|
|
9832
|
-
}
|
|
9835
|
+
};
|
|
9836
|
+
$xeTable.dispatchEvent('custom-sort-change', csParams, evnt);
|
|
9837
|
+
$xeTable.dispatchEvent('column-dragend', csParams, evnt);
|
|
9833
9838
|
if (immediate) {
|
|
9834
9839
|
tableReactData.customColumnList = collectColumn.slice(0);
|
|
9835
9840
|
$xeTable.handleColDragSwapColumn();
|
|
@@ -10013,7 +10018,7 @@ function panel_createInternalData() {
|
|
|
10013
10018
|
}
|
|
10014
10019
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10015
10020
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10016
|
-
})]) : (
|
|
10021
|
+
})]) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10017
10022
|
class: 'vxe-table-custom--name-option'
|
|
10018
10023
|
}, [allowSort && ((isCrossDrag ? immediate : false) || column.level === 1) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10019
10024
|
class: 'vxe-table-custom--sort-option'
|
|
@@ -10028,7 +10033,7 @@ function panel_createInternalData() {
|
|
|
10028
10033
|
})
|
|
10029
10034
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
10030
10035
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
10031
|
-
})])]) : (
|
|
10036
|
+
})])]) : panel_renderEmptyElement($xeTable), column.type === 'html' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10032
10037
|
key: '1',
|
|
10033
10038
|
class: 'vxe-table-custom--checkbox-label',
|
|
10034
10039
|
innerHTML: colTitle
|
|
@@ -10048,7 +10053,7 @@ function panel_createInternalData() {
|
|
|
10048
10053
|
}) => {
|
|
10049
10054
|
changeFixedOption(column, 'left', $event);
|
|
10050
10055
|
}
|
|
10051
|
-
}) : (
|
|
10056
|
+
}) : panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10052
10057
|
mode: 'text',
|
|
10053
10058
|
icon: column.renderFixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
|
|
10054
10059
|
status: column.renderFixed === 'right' ? 'primary' : '',
|
|
@@ -10059,7 +10064,7 @@ function panel_createInternalData() {
|
|
|
10059
10064
|
}) => {
|
|
10060
10065
|
changeFixedOption(column, 'right', $event);
|
|
10061
10066
|
}
|
|
10062
|
-
}) : (
|
|
10067
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable)]));
|
|
10063
10068
|
}
|
|
10064
10069
|
});
|
|
10065
10070
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -10122,20 +10127,20 @@ function panel_createInternalData() {
|
|
|
10122
10127
|
content: customOpts.resetButtonText || panel_getI18n('vxe.table.customRestore'),
|
|
10123
10128
|
disabled: !isCustomStatus,
|
|
10124
10129
|
onClick: resetCustomEvent
|
|
10125
|
-
}) : (
|
|
10130
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10126
10131
|
mode: 'text',
|
|
10127
10132
|
content: customOpts.closeButtonText || panel_getI18n('vxe.table.customClose'),
|
|
10128
10133
|
onClick: cancelCloseEvent
|
|
10129
|
-
}) : (
|
|
10134
|
+
}) : panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10130
10135
|
mode: 'text',
|
|
10131
10136
|
content: customOpts.cancelButtonText || panel_getI18n('vxe.table.customCancel'),
|
|
10132
10137
|
onClick: cancelCustomEvent
|
|
10133
|
-
}) : (
|
|
10138
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10134
10139
|
mode: 'text',
|
|
10135
10140
|
status: 'primary',
|
|
10136
10141
|
content: customOpts.confirmButtonText || panel_getI18n('vxe.table.customConfirm'),
|
|
10137
10142
|
onClick: confirmCustomEvent
|
|
10138
|
-
}) : (
|
|
10143
|
+
}) : panel_renderEmptyElement($xeTable)])]) : null]), renderDragTip()])] : []);
|
|
10139
10144
|
};
|
|
10140
10145
|
const renderPopupPanel = () => {
|
|
10141
10146
|
const $xeGrid = $xeTable.xeGrid;
|
|
@@ -10260,7 +10265,7 @@ function panel_createInternalData() {
|
|
|
10260
10265
|
}
|
|
10261
10266
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10262
10267
|
class: ['vxe-checkbox--icon', isIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10263
|
-
})])]) : (
|
|
10268
|
+
})])]) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
10264
10269
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
10265
10270
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10266
10271
|
class: 'vxe-table-custom-popup--name'
|
|
@@ -10277,7 +10282,7 @@ function panel_createInternalData() {
|
|
|
10277
10282
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
10278
10283
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10279
10284
|
class: 'vxe-table-custom-popup--column-sort-placeholder'
|
|
10280
|
-
}) : (
|
|
10285
|
+
}) : panel_renderEmptyElement($xeTable), column.type === 'html' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10281
10286
|
key: '1',
|
|
10282
10287
|
class: 'vxe-table-custom-popup--title',
|
|
10283
10288
|
innerHTML: colTitle
|
|
@@ -10301,7 +10306,7 @@ function panel_createInternalData() {
|
|
|
10301
10306
|
onChange() {
|
|
10302
10307
|
changeColumnWidth(column);
|
|
10303
10308
|
}
|
|
10304
|
-
}) : (
|
|
10309
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
10305
10310
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
10306
10311
|
}, [parent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : VxeUIRadioGroupComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIRadioGroupComponent, {
|
|
10307
10312
|
modelValue: column.renderFixed || '',
|
|
@@ -10327,7 +10332,7 @@ function panel_createInternalData() {
|
|
|
10327
10332
|
}) {
|
|
10328
10333
|
changeFixedOption(column, label, $event);
|
|
10329
10334
|
}
|
|
10330
|
-
}) : (
|
|
10335
|
+
}) : panel_renderEmptyElement($xeTable)]) : panel_renderEmptyElement($xeTable)]));
|
|
10331
10336
|
}
|
|
10332
10337
|
});
|
|
10333
10338
|
const scopedSlots = {
|
|
@@ -10344,13 +10349,13 @@ function panel_createInternalData() {
|
|
|
10344
10349
|
class: 'vxe-table-custom-popup--table-wrapper'
|
|
10345
10350
|
}, [(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
10351
|
class: 'vxe-table-custom-popup--table-col-seq'
|
|
10347
|
-
}) : (
|
|
10352
|
+
}) : panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10348
10353
|
class: 'vxe-table-custom-popup--table-col-title'
|
|
10349
10354
|
}), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10350
10355
|
class: 'vxe-table-custom-popup--table-col-width'
|
|
10351
|
-
}) : (
|
|
10356
|
+
}) : panel_renderEmptyElement($xeTable), allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('col', {
|
|
10352
10357
|
class: 'vxe-table-custom-popup--table-col-fixed'
|
|
10353
|
-
}) : (
|
|
10358
|
+
}) : 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
10359
|
class: ['vxe-table-custom--checkbox-option', {
|
|
10355
10360
|
'is--checked': isAllChecked,
|
|
10356
10361
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -10361,7 +10366,7 @@ function panel_createInternalData() {
|
|
|
10361
10366
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? panel_getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? panel_getIcon().TABLE_CHECKBOX_CHECKED : panel_getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
10362
10367
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
10363
10368
|
class: 'vxe-checkbox--label'
|
|
10364
|
-
}, panel_getI18n('vxe.toolbar.customAll'))])]) : (
|
|
10369
|
+
}, 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
10370
|
class: 'vxe-table-custom--panel-list',
|
|
10366
10371
|
tag: 'tbody',
|
|
10367
10372
|
name: 'vxe-table-custom--list'
|
|
@@ -10383,17 +10388,17 @@ function panel_createInternalData() {
|
|
|
10383
10388
|
content: customOpts.resetButtonText || panel_getI18n('vxe.custom.cstmRestore'),
|
|
10384
10389
|
disabled: !isCustomStatus,
|
|
10385
10390
|
onClick: resetCustomEvent
|
|
10386
|
-
}) : (
|
|
10391
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10387
10392
|
content: customOpts.closeButtonText || panel_getI18n('vxe.table.customClose'),
|
|
10388
10393
|
onClick: cancelCloseEvent
|
|
10389
|
-
}) : (
|
|
10394
|
+
}) : panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10390
10395
|
content: customOpts.cancelButtonText || panel_getI18n('vxe.table.customCancel'),
|
|
10391
10396
|
onClick: cancelCustomEvent
|
|
10392
|
-
}) : (
|
|
10397
|
+
}) : panel_renderEmptyElement($xeTable), immediate ? panel_renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10393
10398
|
status: 'primary',
|
|
10394
10399
|
content: customOpts.confirmButtonText || panel_getI18n('vxe.custom.cstmConfirm'),
|
|
10395
10400
|
onClick: confirmCustomEvent
|
|
10396
|
-
}) : (
|
|
10401
|
+
}) : panel_renderEmptyElement($xeTable)]);
|
|
10397
10402
|
}
|
|
10398
10403
|
};
|
|
10399
10404
|
if (headerSlot) {
|
|
@@ -10415,7 +10420,7 @@ function panel_createInternalData() {
|
|
|
10415
10420
|
'onUpdate:modelValue'(value) {
|
|
10416
10421
|
customStore.visible = value;
|
|
10417
10422
|
}
|
|
10418
|
-
}, scopedSlots) : (
|
|
10423
|
+
}, scopedSlots) : panel_renderEmptyElement($xeTable);
|
|
10419
10424
|
}
|
|
10420
10425
|
return VxeUIModalComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIModalComponent, {
|
|
10421
10426
|
key: 'modal',
|
|
@@ -10439,7 +10444,7 @@ function panel_createInternalData() {
|
|
|
10439
10444
|
'onUpdate:modelValue'(value) {
|
|
10440
10445
|
customStore.visible = value;
|
|
10441
10446
|
}
|
|
10442
|
-
}, scopedSlots) : (
|
|
10447
|
+
}, scopedSlots) : panel_renderEmptyElement($xeTable);
|
|
10443
10448
|
};
|
|
10444
10449
|
const renderVN = () => {
|
|
10445
10450
|
const customOpts = computeCustomOpts.value;
|
|
@@ -10802,7 +10807,8 @@ var esnext_iterator_find = __webpack_require__(2577);
|
|
|
10802
10807
|
|
|
10803
10808
|
const {
|
|
10804
10809
|
getI18n: import_panel_getI18n,
|
|
10805
|
-
getIcon: import_panel_getIcon
|
|
10810
|
+
getIcon: import_panel_getIcon,
|
|
10811
|
+
renderEmptyElement: import_panel_renderEmptyElement
|
|
10806
10812
|
} = core_.VxeUI;
|
|
10807
10813
|
/* harmony default export */ var import_panel = (defineVxeComponent({
|
|
10808
10814
|
name: 'VxeTableImportPanel',
|
|
@@ -10948,7 +10954,7 @@ const {
|
|
|
10948
10954
|
class: 'vxe-table-export--panel'
|
|
10949
10955
|
}, [topSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10950
10956
|
class: 'vxe-table-export--panel-top'
|
|
10951
|
-
}, $xeTable.callSlot(topSlot, params)) : (
|
|
10957
|
+
}, $xeTable.callSlot(topSlot, params)) : import_panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10952
10958
|
class: 'vxe-table-export--panel-body'
|
|
10953
10959
|
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
|
|
10954
10960
|
class: 'vxe-table-export--panel-table',
|
|
@@ -10971,9 +10977,9 @@ const {
|
|
|
10971
10977
|
'onUpdate:modelValue'(value) {
|
|
10972
10978
|
defaultOptions.mode = value;
|
|
10973
10979
|
}
|
|
10974
|
-
}) : (
|
|
10980
|
+
}) : import_panel_renderEmptyElement($xeTable)])])])])]), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10975
10981
|
class: 'vxe-table-export--panel-bottom'
|
|
10976
|
-
}, $xeTable.callSlot(bottomSlot, params)) : (
|
|
10982
|
+
}, $xeTable.callSlot(bottomSlot, params)) : import_panel_renderEmptyElement($xeTable)]);
|
|
10977
10983
|
},
|
|
10978
10984
|
footer() {
|
|
10979
10985
|
const params = {
|
|
@@ -10990,14 +10996,14 @@ const {
|
|
|
10990
10996
|
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10991
10997
|
content: import_panel_getI18n('vxe.import.impCancel'),
|
|
10992
10998
|
onClick: cancelEvent
|
|
10993
|
-
}) : (
|
|
10999
|
+
}) : import_panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
10994
11000
|
status: 'primary',
|
|
10995
11001
|
disabled: !hasFile || reactData.loading,
|
|
10996
11002
|
content: import_panel_getI18n('vxe.import.impConfirm'),
|
|
10997
11003
|
onClick: importEvent
|
|
10998
|
-
}) : (
|
|
11004
|
+
}) : import_panel_renderEmptyElement($xeTable)])]);
|
|
10999
11005
|
}
|
|
11000
|
-
}) : (
|
|
11006
|
+
}) : import_panel_renderEmptyElement($xeTable);
|
|
11001
11007
|
};
|
|
11002
11008
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
11003
11009
|
if (!VxeUIModalComponent) {
|
|
@@ -11027,7 +11033,8 @@ const {
|
|
|
11027
11033
|
|
|
11028
11034
|
const {
|
|
11029
11035
|
getI18n: export_panel_getI18n,
|
|
11030
|
-
getIcon: export_panel_getIcon
|
|
11036
|
+
getIcon: export_panel_getIcon,
|
|
11037
|
+
renderEmptyElement: export_panel_renderEmptyElement
|
|
11031
11038
|
} = core_.VxeUI;
|
|
11032
11039
|
/* harmony default export */ var export_panel = (defineVxeComponent({
|
|
11033
11040
|
name: 'VxeTableExportPanel',
|
|
@@ -11299,14 +11306,14 @@ const {
|
|
|
11299
11306
|
class: 'vxe-table-export--panel'
|
|
11300
11307
|
}, [topSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11301
11308
|
class: 'vxe-table-export--panel-top'
|
|
11302
|
-
}, $xeTable.callSlot(topSlot, params)) : (
|
|
11309
|
+
}, $xeTable.callSlot(topSlot, params)) : export_panel_renderEmptyElement($xeTable), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11303
11310
|
class: 'vxe-table-export--panel-body'
|
|
11304
11311
|
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('table', {
|
|
11305
11312
|
class: 'vxe-table-export--panel-table',
|
|
11306
11313
|
cellspacing: 0,
|
|
11307
11314
|
cellpadding: 0,
|
|
11308
11315
|
border: 0
|
|
11309
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tbody', [[isPrint ? (
|
|
11316
|
+
}, [(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
11317
|
ref: xInputFilename,
|
|
11311
11318
|
modelValue: defaultOptions.filename,
|
|
11312
11319
|
type: 'text',
|
|
@@ -11315,13 +11322,13 @@ const {
|
|
|
11315
11322
|
'onUpdate:modelValue'(value) {
|
|
11316
11323
|
defaultOptions.filename = value;
|
|
11317
11324
|
}
|
|
11318
|
-
}) : (
|
|
11325
|
+
}) : 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
11326
|
modelValue: defaultOptions.type,
|
|
11320
11327
|
options: storeData.typeList,
|
|
11321
11328
|
'onUpdate:modelValue'(value) {
|
|
11322
11329
|
defaultOptions.type = value;
|
|
11323
11330
|
}
|
|
11324
|
-
}) : (
|
|
11331
|
+
}) : 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
11332
|
ref: xInputSheetname,
|
|
11326
11333
|
modelValue: defaultOptions.sheetName,
|
|
11327
11334
|
type: 'text',
|
|
@@ -11330,7 +11337,7 @@ const {
|
|
|
11330
11337
|
'onUpdate:modelValue'(value) {
|
|
11331
11338
|
defaultOptions.sheetName = value;
|
|
11332
11339
|
}
|
|
11333
|
-
}) : (
|
|
11340
|
+
}) : 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
11341
|
modelValue: defaultOptions.mode,
|
|
11335
11342
|
options: storeData.modeList.map(item => {
|
|
11336
11343
|
return {
|
|
@@ -11341,7 +11348,7 @@ const {
|
|
|
11341
11348
|
'onUpdate:modelValue'(value) {
|
|
11342
11349
|
defaultOptions.mode = value;
|
|
11343
11350
|
}
|
|
11344
|
-
}) : (
|
|
11351
|
+
}) : 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
11352
|
class: 'vxe-table-export--panel-column'
|
|
11346
11353
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('ul', {
|
|
11347
11354
|
class: 'vxe-table-export--panel-column-header'
|
|
@@ -11370,7 +11377,7 @@ const {
|
|
|
11370
11377
|
'onUpdate:modelValue'(value) {
|
|
11371
11378
|
defaultOptions.isHeader = value;
|
|
11372
11379
|
}
|
|
11373
|
-
}) : (
|
|
11380
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11374
11381
|
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
11375
11382
|
disabled: !isHeader,
|
|
11376
11383
|
title: export_panel_getI18n('vxe.export.expTitleTitle'),
|
|
@@ -11378,7 +11385,7 @@ const {
|
|
|
11378
11385
|
'onUpdate:modelValue'(value) {
|
|
11379
11386
|
defaultOptions.isTitle = value;
|
|
11380
11387
|
}
|
|
11381
|
-
}) : (
|
|
11388
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11382
11389
|
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
11383
11390
|
title: export_panel_getI18n('vxe.export.expColgroupTitle'),
|
|
11384
11391
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
@@ -11386,7 +11393,7 @@ const {
|
|
|
11386
11393
|
'onUpdate:modelValue'(value) {
|
|
11387
11394
|
defaultOptions.isColgroup = value;
|
|
11388
11395
|
}
|
|
11389
|
-
}) : (
|
|
11396
|
+
}) : export_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11390
11397
|
class: 'vxe-table-export--panel-option-row'
|
|
11391
11398
|
}, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11392
11399
|
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
@@ -11396,7 +11403,7 @@ const {
|
|
|
11396
11403
|
'onUpdate:modelValue'(value) {
|
|
11397
11404
|
defaultOptions.original = value;
|
|
11398
11405
|
}
|
|
11399
|
-
}) : (
|
|
11406
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11400
11407
|
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
11401
11408
|
title: export_panel_getI18n('vxe.export.expMergeTitle'),
|
|
11402
11409
|
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
@@ -11404,7 +11411,7 @@ const {
|
|
|
11404
11411
|
'onUpdate:modelValue'(value) {
|
|
11405
11412
|
defaultOptions.isMerge = value;
|
|
11406
11413
|
}
|
|
11407
|
-
}) : (
|
|
11414
|
+
}) : export_panel_renderEmptyElement($xeTable), isPrint || !VxeUICheckboxComponent ? export_panel_renderEmptyElement($xeTable) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11408
11415
|
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
11409
11416
|
disabled: !supportStyle,
|
|
11410
11417
|
title: export_panel_getI18n('vxe.export.expUseStyleTitle'),
|
|
@@ -11420,7 +11427,7 @@ const {
|
|
|
11420
11427
|
'onUpdate:modelValue'(value) {
|
|
11421
11428
|
defaultOptions.isAllExpand = value;
|
|
11422
11429
|
}
|
|
11423
|
-
}) : (
|
|
11430
|
+
}) : export_panel_renderEmptyElement($xeTable)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11424
11431
|
class: 'vxe-table-export--panel-option-row'
|
|
11425
11432
|
}, [VxeUICheckboxComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUICheckboxComponent, {
|
|
11426
11433
|
modelValue: defaultOptions.isFooter,
|
|
@@ -11430,9 +11437,9 @@ const {
|
|
|
11430
11437
|
'onUpdate:modelValue'(value) {
|
|
11431
11438
|
defaultOptions.isFooter = value;
|
|
11432
11439
|
}
|
|
11433
|
-
}) : (
|
|
11440
|
+
}) : export_panel_renderEmptyElement($xeTable)])])])]])])]), bottomSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
11434
11441
|
class: 'vxe-table-export--panel-bottom'
|
|
11435
|
-
}, $xeTable.callSlot(bottomSlot, params)) : (
|
|
11442
|
+
}, $xeTable.callSlot(bottomSlot, params)) : export_panel_renderEmptyElement($xeTable)]);
|
|
11436
11443
|
},
|
|
11437
11444
|
footer() {
|
|
11438
11445
|
const params = {
|
|
@@ -11450,14 +11457,14 @@ const {
|
|
|
11450
11457
|
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
11451
11458
|
content: export_panel_getI18n('vxe.export.expCancel'),
|
|
11452
11459
|
onClick: cancelEvent
|
|
11453
|
-
}) : (
|
|
11460
|
+
}) : export_panel_renderEmptyElement($xeTable), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
11454
11461
|
ref: xButtonConfirm,
|
|
11455
11462
|
status: 'primary',
|
|
11456
11463
|
content: export_panel_getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
11457
11464
|
onClick: confirmEvent
|
|
11458
|
-
}) : (
|
|
11465
|
+
}) : export_panel_renderEmptyElement($xeTable)])]);
|
|
11459
11466
|
}
|
|
11460
|
-
}) : (
|
|
11467
|
+
}) : export_panel_renderEmptyElement($xeTable);
|
|
11461
11468
|
};
|
|
11462
11469
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
11463
11470
|
if (!VxeUIModalComponent) {
|
|
@@ -15780,31 +15787,6 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
15780
15787
|
const {
|
|
15781
15788
|
hooks: keyboard_hook_hooks
|
|
15782
15789
|
} = core_.VxeUI;
|
|
15783
|
-
const browseObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
|
|
15784
|
-
function getTargetOffset(target, container) {
|
|
15785
|
-
let offsetTop = 0;
|
|
15786
|
-
let offsetLeft = 0;
|
|
15787
|
-
const triggerCheckboxLabel = !browseObj.firefox && hasClass(target, 'vxe-checkbox--label');
|
|
15788
|
-
if (triggerCheckboxLabel) {
|
|
15789
|
-
const checkboxLabelStyle = getComputedStyle(target);
|
|
15790
|
-
offsetTop -= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(checkboxLabelStyle.paddingTop);
|
|
15791
|
-
offsetLeft -= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(checkboxLabelStyle.paddingLeft);
|
|
15792
|
-
}
|
|
15793
|
-
while (target && target !== container) {
|
|
15794
|
-
offsetTop += target.offsetTop;
|
|
15795
|
-
offsetLeft += target.offsetLeft;
|
|
15796
|
-
target = target.offsetParent;
|
|
15797
|
-
if (triggerCheckboxLabel) {
|
|
15798
|
-
const checkboxStyle = getComputedStyle(target);
|
|
15799
|
-
offsetTop -= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(checkboxStyle.paddingTop);
|
|
15800
|
-
offsetLeft -= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(checkboxStyle.paddingLeft);
|
|
15801
|
-
}
|
|
15802
|
-
}
|
|
15803
|
-
return {
|
|
15804
|
-
offsetTop,
|
|
15805
|
-
offsetLeft
|
|
15806
|
-
};
|
|
15807
|
-
}
|
|
15808
15790
|
keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
15809
15791
|
setupTable($xeTable) {
|
|
15810
15792
|
const {
|
|
@@ -15924,6 +15906,7 @@ keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
|
15924
15906
|
if (!bodyWrapperElem) {
|
|
15925
15907
|
return;
|
|
15926
15908
|
}
|
|
15909
|
+
const bodyRect = bodyWrapperElem.getBoundingClientRect();
|
|
15927
15910
|
const el = refElem.value;
|
|
15928
15911
|
const disX = evnt.clientX;
|
|
15929
15912
|
const disY = evnt.clientY;
|
|
@@ -15932,9 +15915,8 @@ keyboard_hook_hooks.add('tableKeyboardModule', {
|
|
|
15932
15915
|
const selectRecords = $xeTable.getCheckboxRecords();
|
|
15933
15916
|
let lastRangeRows = [];
|
|
15934
15917
|
const marginSize = 1;
|
|
15935
|
-
const
|
|
15936
|
-
const
|
|
15937
|
-
const startLeft = offsetRest.offsetLeft + evnt.offsetX;
|
|
15918
|
+
const startTop = evnt.clientY - bodyRect.y + bodyWrapperElem.scrollTop;
|
|
15919
|
+
const startLeft = evnt.clientX - bodyRect.x + bodyWrapperElem.scrollLeft;
|
|
15938
15920
|
const startScrollTop = bodyWrapperElem.scrollTop;
|
|
15939
15921
|
const rowHeight = trElem.offsetHeight;
|
|
15940
15922
|
const trRect = trElem.getBoundingClientRect();
|