vxe-table 4.13.21 → 4.13.23
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/grid/src/grid.js +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/id-ID.js +3 -0
- package/es/locale/lang/it-IT.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/ms-MY.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/th-TH.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/uz-UZ.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +71 -2
- package/es/table/src/cell.js +25 -11
- package/es/table/src/util.js +12 -15
- package/es/table/style.css +21 -8
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +6 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +21 -8
- package/es/vxe-table/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +125 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +3 -0
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +3 -0
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +3 -0
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +3 -0
- package/lib/locale/lang/id-ID.js +3 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +3 -0
- package/lib/locale/lang/it-IT.js +3 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +3 -0
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/ms-MY.js +3 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +3 -0
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/th-TH.js +3 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +3 -0
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +3 -0
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/uz-UZ.js +3 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +3 -0
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +82 -2
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/cell.js +16 -10
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/util.js +11 -14
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +21 -8
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +1 -0
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +7 -0
- package/lib/ui/src/dom.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 +21 -8
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +1 -1
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/id-ID.ts +3 -0
- package/packages/locale/lang/it-IT.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/ms-MY.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/th-TH.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/uz-UZ.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/render/index.ts +72 -2
- package/packages/table/src/cell.ts +25 -11
- package/packages/table/src/util.ts +12 -16
- package/packages/toolbar/src/toolbar.ts +1 -1
- package/packages/ui/src/dom.ts +7 -0
- package/styles/components/table.scss +27 -15
- /package/es/{iconfont.1746783164369.ttf → iconfont.1746863474194.ttf} +0 -0
- /package/es/{iconfont.1746783164369.woff → iconfont.1746863474194.woff} +0 -0
- /package/es/{iconfont.1746783164369.woff2 → iconfont.1746863474194.woff2} +0 -0
- /package/lib/{iconfont.1746783164369.ttf → iconfont.1746863474194.ttf} +0 -0
- /package/lib/{iconfont.1746783164369.woff → iconfont.1746863474194.woff} +0 -0
- /package/lib/{iconfont.1746783164369.woff2 → iconfont.1746863474194.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.13.
|
|
3141
|
+
const version = "4.13.23";
|
|
3142
3142
|
core_.VxeUI.version = version;
|
|
3143
3143
|
core_.VxeUI.tableVersion = version;
|
|
3144
3144
|
core_.VxeUI.setConfig({
|
|
@@ -3599,7 +3599,7 @@ var esnext_iterator_some = __webpack_require__(7550);
|
|
|
3599
3599
|
const {
|
|
3600
3600
|
log: log_log
|
|
3601
3601
|
} = core_.VxeUI;
|
|
3602
|
-
const log_version = `table v${"4.13.
|
|
3602
|
+
const log_version = `table v${"4.13.23"}`;
|
|
3603
3603
|
const warnLog = log_log.create('warn', log_version);
|
|
3604
3604
|
const errLog = log_log.create('error', log_version);
|
|
3605
3605
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -3851,6 +3851,12 @@ function toCssUnit(val, unit = 'px') {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
return `${val || ''}`;
|
|
3853
3853
|
}
|
|
3854
|
+
function queryElement(elem, selector) {
|
|
3855
|
+
if (elem) {
|
|
3856
|
+
return elem.querySelector(selector);
|
|
3857
|
+
}
|
|
3858
|
+
return null;
|
|
3859
|
+
}
|
|
3854
3860
|
function getDomNode() {
|
|
3855
3861
|
const documentElement = document.documentElement;
|
|
3856
3862
|
const bodyElem = document.body;
|
|
@@ -4138,7 +4144,7 @@ function getPaddingLeftRightSize(elem) {
|
|
|
4138
4144
|
}
|
|
4139
4145
|
return 0;
|
|
4140
4146
|
}
|
|
4141
|
-
function
|
|
4147
|
+
function getElementMarginAndWidth(elem) {
|
|
4142
4148
|
if (elem) {
|
|
4143
4149
|
const computedStyle = getComputedStyle(elem);
|
|
4144
4150
|
const marginLeft = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(computedStyle.marginLeft);
|
|
@@ -4147,9 +4153,6 @@ function getElementMarginWidth(elem) {
|
|
|
4147
4153
|
}
|
|
4148
4154
|
return 0;
|
|
4149
4155
|
}
|
|
4150
|
-
function queryCellElement(cell, selector) {
|
|
4151
|
-
return cell.querySelector('.vxe-cell' + selector);
|
|
4152
|
-
}
|
|
4153
4156
|
function toFilters(filters) {
|
|
4154
4157
|
if (filters && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(filters)) {
|
|
4155
4158
|
return filters.map(({
|
|
@@ -4262,19 +4265,19 @@ function getColReMinWidth(params) {
|
|
|
4262
4265
|
const showTitle = headOverflow === 'title';
|
|
4263
4266
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
4264
4267
|
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
4265
|
-
const minTitleWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor((external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(cell).fontSize) || 14) * 1.
|
|
4266
|
-
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(
|
|
4268
|
+
const minTitleWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor((external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(cell).fontSize) || 14) * 1.8);
|
|
4269
|
+
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(queryElement(cell, '.vxe-cell'));
|
|
4267
4270
|
let mWidth = minTitleWidth + paddingLeftRight;
|
|
4268
4271
|
// 默认最小宽处理
|
|
4269
4272
|
if (hasEllipsis) {
|
|
4270
|
-
const dragIconWidth =
|
|
4271
|
-
const checkboxIconWidth =
|
|
4272
|
-
const requiredIconWidth =
|
|
4273
|
-
const editIconWidth =
|
|
4274
|
-
const prefixIconWidth =
|
|
4275
|
-
const suffixIconWidth =
|
|
4276
|
-
const sortIconWidth =
|
|
4277
|
-
const filterIconWidth =
|
|
4273
|
+
const dragIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--drag-handle'));
|
|
4274
|
+
const checkboxIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--checkbox'));
|
|
4275
|
+
const requiredIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--required-icon'));
|
|
4276
|
+
const editIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--edit-icon'));
|
|
4277
|
+
const prefixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-prefix-icon'));
|
|
4278
|
+
const suffixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-suffix-icon'));
|
|
4279
|
+
const sortIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--sort'));
|
|
4280
|
+
const filterIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--filter'));
|
|
4278
4281
|
mWidth += dragIconWidth + checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth;
|
|
4279
4282
|
}
|
|
4280
4283
|
// 如果设置最小宽
|
|
@@ -4676,15 +4679,17 @@ function renderTitlePrefixIcon(params) {
|
|
|
4676
4679
|
} = params;
|
|
4677
4680
|
const titlePrefix = column.titlePrefix || column.titleHelp;
|
|
4678
4681
|
if (titlePrefix) {
|
|
4679
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('
|
|
4680
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : ''
|
|
4682
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4683
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : ''],
|
|
4681
4684
|
onMouseenter(evnt) {
|
|
4682
4685
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params);
|
|
4683
4686
|
},
|
|
4684
4687
|
onMouseleave(evnt) {
|
|
4685
4688
|
$table.handleTargetLeaveEvent(evnt);
|
|
4686
4689
|
}
|
|
4687
|
-
})
|
|
4690
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
4691
|
+
class: titlePrefix.icon || cell_getIcon().TABLE_TITLE_PREFIX
|
|
4692
|
+
})]);
|
|
4688
4693
|
}
|
|
4689
4694
|
return renderEmptyElement($table);
|
|
4690
4695
|
}
|
|
@@ -4695,15 +4700,17 @@ function renderTitleSuffixIcon(params) {
|
|
|
4695
4700
|
} = params;
|
|
4696
4701
|
const titleSuffix = column.titleSuffix;
|
|
4697
4702
|
if (titleSuffix) {
|
|
4698
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('
|
|
4699
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : ''
|
|
4703
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
4704
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : ''],
|
|
4700
4705
|
onMouseenter(evnt) {
|
|
4701
4706
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params);
|
|
4702
4707
|
},
|
|
4703
4708
|
onMouseleave(evnt) {
|
|
4704
4709
|
$table.handleTargetLeaveEvent(evnt);
|
|
4705
4710
|
}
|
|
4706
|
-
})
|
|
4711
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
4712
|
+
class: titleSuffix.icon || cell_getIcon().TABLE_TITLE_SUFFIX
|
|
4713
|
+
})]);
|
|
4707
4714
|
}
|
|
4708
4715
|
return renderEmptyElement($table);
|
|
4709
4716
|
}
|
|
@@ -5988,11 +5995,13 @@ const Cell = {
|
|
|
5988
5995
|
}
|
|
5989
5996
|
let editIconVNs = [];
|
|
5990
5997
|
if (isEnableConf(editConfig)) {
|
|
5991
|
-
editIconVNs = [isRequired && editOpts.showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('
|
|
5998
|
+
editIconVNs = [isRequired && editOpts.showAsterisk ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
5992
5999
|
class: 'vxe-cell--required-icon'
|
|
5993
|
-
}) : renderEmptyElement($table), isEnableConf(editRender) && editOpts.showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('
|
|
5994
|
-
class:
|
|
5995
|
-
}
|
|
6000
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i')]) : renderEmptyElement($table), isEnableConf(editRender) && editOpts.showIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6001
|
+
class: 'vxe-cell--edit-icon'
|
|
6002
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6003
|
+
class: editOpts.icon || cell_getIcon().TABLE_EDIT
|
|
6004
|
+
})]) : renderEmptyElement($table)];
|
|
5996
6005
|
}
|
|
5997
6006
|
return renderHeaderCellBaseVNs(params, editIconVNs.concat(Cell.renderHeaderTitle(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []));
|
|
5998
6007
|
},
|
|
@@ -11761,6 +11770,7 @@ const {
|
|
|
11761
11770
|
const gCommandOpts = toolbar_commands.get(code);
|
|
11762
11771
|
const params = {
|
|
11763
11772
|
code,
|
|
11773
|
+
button: null,
|
|
11764
11774
|
tool: item,
|
|
11765
11775
|
$table: $table,
|
|
11766
11776
|
$grid: $xeGrid,
|
|
@@ -12198,7 +12208,7 @@ const {
|
|
|
12198
12208
|
renderEmptyElement: grid_renderEmptyElement
|
|
12199
12209
|
} = core_.VxeUI;
|
|
12200
12210
|
const tableComponentPropKeys = Object.keys(src_props);
|
|
12201
|
-
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'setSort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
12211
|
+
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'setSort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
12202
12212
|
const gridComponentEmits = [...emits, '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'];
|
|
12203
12213
|
/* harmony default export */ var grid = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
12204
12214
|
name: 'VxeGrid',
|
|
@@ -19449,7 +19459,7 @@ const blurEvent = 'blur';
|
|
|
19449
19459
|
* @param modelFunc
|
|
19450
19460
|
* @param changeFunc
|
|
19451
19461
|
*/
|
|
19452
|
-
function getComponentOns(renderOpts, params, eFns) {
|
|
19462
|
+
function getComponentOns(renderOpts, params, eFns, eventOns) {
|
|
19453
19463
|
const {
|
|
19454
19464
|
events
|
|
19455
19465
|
} = renderOpts;
|
|
@@ -19493,7 +19503,7 @@ function getComponentOns(renderOpts, params, eFns) {
|
|
|
19493
19503
|
}
|
|
19494
19504
|
};
|
|
19495
19505
|
}
|
|
19496
|
-
return ons;
|
|
19506
|
+
return eventOns ? Object.assign(ons, eventOns) : ons;
|
|
19497
19507
|
}
|
|
19498
19508
|
function getEditOns(renderOpts, params) {
|
|
19499
19509
|
const {
|
|
@@ -20199,6 +20209,89 @@ render_renderer.mixin({
|
|
|
20199
20209
|
renderTableFilter: defaultFilterRender,
|
|
20200
20210
|
tableFilterDefaultMethod: handleFilterMethod
|
|
20201
20211
|
},
|
|
20212
|
+
VxeDateRangePicker: {
|
|
20213
|
+
tableAutoFocus: 'input',
|
|
20214
|
+
renderTableEdit(renderOpts, params) {
|
|
20215
|
+
const {
|
|
20216
|
+
startField,
|
|
20217
|
+
endField
|
|
20218
|
+
} = renderOpts;
|
|
20219
|
+
const {
|
|
20220
|
+
$table,
|
|
20221
|
+
row,
|
|
20222
|
+
column
|
|
20223
|
+
} = params;
|
|
20224
|
+
const {
|
|
20225
|
+
model
|
|
20226
|
+
} = column;
|
|
20227
|
+
const cellValue = getCellValue(row, column);
|
|
20228
|
+
const seProps = {};
|
|
20229
|
+
const seOs = {};
|
|
20230
|
+
if (startField && endField) {
|
|
20231
|
+
seProps.startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
20232
|
+
seProps.endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
20233
|
+
seOs['onUpdate:startValue'] = value => {
|
|
20234
|
+
if (startField) {
|
|
20235
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, startField, value);
|
|
20236
|
+
}
|
|
20237
|
+
};
|
|
20238
|
+
seOs['onUpdate:endValue'] = value => {
|
|
20239
|
+
if (endField) {
|
|
20240
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().set(row, endField, value);
|
|
20241
|
+
}
|
|
20242
|
+
};
|
|
20243
|
+
}
|
|
20244
|
+
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(getDefaultComponent(renderOpts), {
|
|
20245
|
+
...getCellEditProps(renderOpts, params, cellValue, seProps),
|
|
20246
|
+
...getComponentOns(renderOpts, params, {
|
|
20247
|
+
model(cellValue) {
|
|
20248
|
+
model.update = true;
|
|
20249
|
+
model.value = cellValue;
|
|
20250
|
+
setCellValue(row, column, cellValue);
|
|
20251
|
+
},
|
|
20252
|
+
change() {
|
|
20253
|
+
$table.updateStatus(params);
|
|
20254
|
+
},
|
|
20255
|
+
blur() {
|
|
20256
|
+
$table.handleCellRuleUpdateStatus('blur', params);
|
|
20257
|
+
}
|
|
20258
|
+
}, seOs)
|
|
20259
|
+
})];
|
|
20260
|
+
},
|
|
20261
|
+
renderTableCell(renderOpts, params) {
|
|
20262
|
+
const {
|
|
20263
|
+
startField,
|
|
20264
|
+
endField
|
|
20265
|
+
} = renderOpts;
|
|
20266
|
+
const {
|
|
20267
|
+
row,
|
|
20268
|
+
column
|
|
20269
|
+
} = params;
|
|
20270
|
+
let startValue = '';
|
|
20271
|
+
let endValue = '';
|
|
20272
|
+
if (startField && endField) {
|
|
20273
|
+
startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, startField);
|
|
20274
|
+
endValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, endField);
|
|
20275
|
+
} else {
|
|
20276
|
+
const cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
20277
|
+
if (cellValue) {
|
|
20278
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(cellValue)) {
|
|
20279
|
+
startValue = cellValue[0];
|
|
20280
|
+
endValue = cellValue[1];
|
|
20281
|
+
} else {
|
|
20282
|
+
const strs = `${cellValue}`.split(',');
|
|
20283
|
+
startValue = strs[0];
|
|
20284
|
+
endValue = strs[1];
|
|
20285
|
+
}
|
|
20286
|
+
}
|
|
20287
|
+
}
|
|
20288
|
+
let cellLabel = '';
|
|
20289
|
+
if (startValue && endValue) {
|
|
20290
|
+
cellLabel = `${startValue} ~ ${endValue}`;
|
|
20291
|
+
}
|
|
20292
|
+
return getCellLabelVNs(renderOpts, params, cellLabel);
|
|
20293
|
+
}
|
|
20294
|
+
},
|
|
20202
20295
|
VxeTextarea: {
|
|
20203
20296
|
tableAutoFocus: 'textarea',
|
|
20204
20297
|
renderTableEdit: defaultEditRender,
|
|
@@ -20824,6 +20917,9 @@ const Toolbar = VxeToolbar;
|
|
|
20824
20917
|
datePicker: {
|
|
20825
20918
|
yearTitle: '{0} 年'
|
|
20826
20919
|
},
|
|
20920
|
+
dateRangePicker: {
|
|
20921
|
+
pleaseRange: '请选择开始日期与结束日期'
|
|
20922
|
+
},
|
|
20827
20923
|
input: {
|
|
20828
20924
|
date: {
|
|
20829
20925
|
m1: '01 月',
|