vxe-table 3.8.10-beta.0 → 3.8.10-beta.2
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/lib/button/src/button.js +41 -37
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +21 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/src/checkbox.js +1 -1
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/custom/src/panel.js +13 -11
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/export/src/export-panel.js +6 -18
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +6 -11
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/mixin.js +51 -21
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/filter/src/mixin.js +5 -4
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +6 -3
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/icon/style/{iconfont.1719392965584.ttf → iconfont.1720163370412.ttf} +0 -0
- package/lib/icon/style/iconfont.1720163370412.woff +0 -0
- package/lib/icon/style/iconfont.1720163370412.woff2 +0 -0
- package/lib/icon/style/style.css +25 -10
- package/lib/icon/style/style.min.css +25 -10
- package/lib/{iconfont.1719392965584.ttf → iconfont.1720163370412.ttf} +0 -0
- package/lib/iconfont.1720163370412.woff +0 -0
- package/lib/iconfont.1720163370412.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.umd.js +173 -136
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +7 -3
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -3
- package/lib/locale/lang/es-ES.js +7 -3
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +7 -3
- package/lib/locale/lang/ja-JP.js +7 -3
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -3
- package/lib/locale/lang/pt-BR.js +7 -3
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +7 -3
- package/lib/locale/lang/zh-CN.js +7 -3
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -3
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -3
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -3
- package/lib/locale/lang/zh-TC.js +7 -3
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -3
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -3
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/header.js +3 -0
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +24 -20
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +6 -5
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +8 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +9 -2
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +25 -10
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-button/style/style.css +21 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +25 -10
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +8 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.js +41 -37
- package/packages/checkbox/src/checkbox.js +1 -1
- package/packages/custom/src/panel.js +13 -11
- package/packages/export/src/export-panel.js +6 -18
- package/packages/export/src/import-panel.js +7 -12
- package/packages/export/src/mixin.js +48 -23
- package/packages/filter/src/mixin.js +5 -4
- package/packages/filter/src/panel.js +3 -3
- package/packages/locale/lang/en-US.js +7 -3
- package/packages/locale/lang/es-ES.js +7 -3
- package/packages/locale/lang/ja-JP.js +7 -3
- package/packages/locale/lang/pt-BR.js +7 -3
- package/packages/locale/lang/zh-CN.js +7 -3
- package/packages/locale/lang/zh-TC.js +7 -3
- package/packages/table/src/header.js +1 -0
- package/packages/table/src/methods.js +22 -18
- package/packages/table/src/table.js +6 -4
- package/packages/v-x-e-table/src/conf.js +9 -2
- package/styles/button.scss +6 -0
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/icon.scss +26 -10
- package/styles/old-icon.scss +1 -1
- package/styles/table.scss +8 -1
- package/types/table.d.ts +2 -1
- package/lib/icon/style/iconfont.1719392965584.woff +0 -0
- package/lib/icon/style/iconfont.1719392965584.woff2 +0 -0
- package/lib/iconfont.1719392965584.woff +0 -0
- package/lib/iconfont.1719392965584.woff2 +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11164,9 +11164,16 @@ var iconPrefix = 'vxe-icon-';
|
|
|
11164
11164
|
allowFixed: true,
|
|
11165
11165
|
allowSort: true,
|
|
11166
11166
|
showFooter: true,
|
|
11167
|
-
placement: 'topRight'
|
|
11167
|
+
placement: 'topRight',
|
|
11168
11168
|
// storage: false,
|
|
11169
|
-
// checkMethod () {}
|
|
11169
|
+
// checkMethod () {},
|
|
11170
|
+
modalOptions: {
|
|
11171
|
+
showZoom: true,
|
|
11172
|
+
mask: true,
|
|
11173
|
+
lockView: true,
|
|
11174
|
+
resize: true,
|
|
11175
|
+
escClosable: true
|
|
11176
|
+
}
|
|
11170
11177
|
},
|
|
11171
11178
|
sortConfig: {
|
|
11172
11179
|
// remote: false,
|
|
@@ -11505,7 +11512,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11505
11512
|
|
|
11506
11513
|
|
|
11507
11514
|
function getLog(message, params) {
|
|
11508
|
-
return "[vxe-table v".concat("3.8.10-beta.
|
|
11515
|
+
return "[vxe-table v".concat("3.8.10-beta.2", "] ").concat(conf.i18n(message, params));
|
|
11509
11516
|
}
|
|
11510
11517
|
function outLog(type) {
|
|
11511
11518
|
return function (message, params) {
|
|
@@ -13200,7 +13207,7 @@ function component(comp) {
|
|
|
13200
13207
|
components[comp.name] = comp;
|
|
13201
13208
|
}
|
|
13202
13209
|
}
|
|
13203
|
-
var version = "3.8.10-beta.
|
|
13210
|
+
var version = "3.8.10-beta.2";
|
|
13204
13211
|
var tableVersion = version;
|
|
13205
13212
|
var VxeUI = {
|
|
13206
13213
|
v: v,
|
|
@@ -15212,6 +15219,9 @@ var cellType = 'header';
|
|
|
15212
15219
|
$xetable.emitEvent('resizable-change', _objectSpread2(_objectSpread2({}, params), {}, {
|
|
15213
15220
|
resizeWidth: resizeWidth
|
|
15214
15221
|
}), evnt);
|
|
15222
|
+
setTimeout(function () {
|
|
15223
|
+
return $xetable.recalculate(true);
|
|
15224
|
+
}, 300);
|
|
15215
15225
|
});
|
|
15216
15226
|
dom.removeClass($xetable.$el, 'drag--resize');
|
|
15217
15227
|
};
|
|
@@ -18125,7 +18135,7 @@ var Methods = {
|
|
|
18125
18135
|
var filterMethod = column.filterMethod,
|
|
18126
18136
|
filterRender = column.filterRender,
|
|
18127
18137
|
field = column.field;
|
|
18128
|
-
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
18138
|
+
var compConf = isEnableConf(filterRender) ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
18129
18139
|
var compFilterMethod = compConf && compConf.renderFilter ? compConf.tableFilterMethod || compConf.filterMethod : null;
|
|
18130
18140
|
var defaultFilterMethod = compConf ? compConf.defaultTableFilterMethod || compConf.defaultFilterMethod : null;
|
|
18131
18141
|
var cellValue = utils.getCellValue(row, column);
|
|
@@ -18432,7 +18442,6 @@ var Methods = {
|
|
|
18432
18442
|
setColumnFixed: function setColumnFixed(fieldOrColumn, fixed) {
|
|
18433
18443
|
var isMaxFixedColumn = this.isMaxFixedColumn,
|
|
18434
18444
|
columnOpts = this.columnOpts;
|
|
18435
|
-
var maxFixedSize = columnOpts.maxFixedSize;
|
|
18436
18445
|
var column = handleFieldOrColumn(this, fieldOrColumn);
|
|
18437
18446
|
var targetColumn = getRootColumn(this, column);
|
|
18438
18447
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
@@ -18441,7 +18450,7 @@ var Methods = {
|
|
|
18441
18450
|
if (v_x_e_table.modal) {
|
|
18442
18451
|
v_x_e_table.modal.message({
|
|
18443
18452
|
status: 'error',
|
|
18444
|
-
content: conf.i18n('vxe.table.maxFixedCol', [maxFixedSize])
|
|
18453
|
+
content: conf.i18n('vxe.table.maxFixedCol', [columnOpts.maxFixedSize])
|
|
18445
18454
|
});
|
|
18446
18455
|
}
|
|
18447
18456
|
return this.$nextTick();
|
|
@@ -18574,19 +18583,22 @@ var Methods = {
|
|
|
18574
18583
|
if (resizableData || sortData || visibleData || fixedData) {
|
|
18575
18584
|
tableFullColumn.forEach(function (column) {
|
|
18576
18585
|
var colKey = column.getKey();
|
|
18586
|
+
// 支持一级
|
|
18587
|
+
if (!parent) {
|
|
18588
|
+
if (fixedData && fixedData[colKey]) {
|
|
18589
|
+
column.fixed = fixedData[colKey];
|
|
18590
|
+
}
|
|
18591
|
+
if (sortData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(sortData[colKey])) {
|
|
18592
|
+
hasCustomSort = true;
|
|
18593
|
+
column.renderSortNumber = sortData[colKey];
|
|
18594
|
+
}
|
|
18595
|
+
}
|
|
18577
18596
|
if (resizableData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(resizableData[colKey])) {
|
|
18578
18597
|
column.resizeWidth = resizableData[colKey];
|
|
18579
18598
|
}
|
|
18580
18599
|
if (visibleData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(visibleData[colKey])) {
|
|
18581
18600
|
column.visible = visibleData[colKey];
|
|
18582
18601
|
}
|
|
18583
|
-
if (fixedData && fixedData[colKey]) {
|
|
18584
|
-
column.fixed = fixedData[colKey];
|
|
18585
|
-
}
|
|
18586
|
-
if (sortData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(sortData[colKey])) {
|
|
18587
|
-
hasCustomSort = true;
|
|
18588
|
-
column.renderSortNumber = sortData[colKey];
|
|
18589
|
-
}
|
|
18590
18602
|
});
|
|
18591
18603
|
// 如果自定义了顺序
|
|
18592
18604
|
if (hasCustomSort) {
|
|
@@ -18660,7 +18672,7 @@ var Methods = {
|
|
|
18660
18672
|
var hasFixedt = 0;
|
|
18661
18673
|
var hasVisible = 0;
|
|
18662
18674
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column, index, items, path, parent) {
|
|
18663
|
-
//
|
|
18675
|
+
// 只支持一级
|
|
18664
18676
|
if (!parent) {
|
|
18665
18677
|
collectColumn.forEach(function (column) {
|
|
18666
18678
|
var colKey = column.getKey();
|
|
@@ -18669,19 +18681,19 @@ var Methods = {
|
|
|
18669
18681
|
sortData[colKey] = column.renderSortNumber;
|
|
18670
18682
|
}
|
|
18671
18683
|
});
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18684
|
+
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
18685
|
+
var colKey = column.getKey();
|
|
18686
|
+
if (colKey) {
|
|
18687
|
+
hasFixedt = 1;
|
|
18688
|
+
fixedData[colKey] = column.fixed;
|
|
18689
|
+
}
|
|
18678
18690
|
}
|
|
18679
18691
|
}
|
|
18680
|
-
if (column.
|
|
18692
|
+
if (column.resizeWidth) {
|
|
18681
18693
|
var _colKey = column.getKey();
|
|
18682
18694
|
if (_colKey) {
|
|
18683
|
-
|
|
18684
|
-
|
|
18695
|
+
hasResizable = 1;
|
|
18696
|
+
resizableData[_colKey] = column.renderWidth;
|
|
18685
18697
|
}
|
|
18686
18698
|
}
|
|
18687
18699
|
if (!checkMethod || checkMethod({
|
|
@@ -22677,7 +22689,9 @@ var Methods = {
|
|
|
22677
22689
|
tableBodyElem.scrollLeft = 0;
|
|
22678
22690
|
}
|
|
22679
22691
|
scrollXStore.startIndex = 0;
|
|
22692
|
+
scrollXStore.endIndex = scrollXStore.visibleSize;
|
|
22680
22693
|
scrollYStore.startIndex = 0;
|
|
22694
|
+
scrollYStore.endIndex = scrollYStore.visibleSize;
|
|
22681
22695
|
return this.$nextTick();
|
|
22682
22696
|
},
|
|
22683
22697
|
/**
|
|
@@ -23004,7 +23018,6 @@ var Loading = (/* unused pure expression or super */ null && (VxeLoading));
|
|
|
23004
23018
|
|
|
23005
23019
|
|
|
23006
23020
|
|
|
23007
|
-
|
|
23008
23021
|
|
|
23009
23022
|
|
|
23010
23023
|
/**
|
|
@@ -23743,7 +23756,7 @@ function handleUupdateResize(_vm) {
|
|
|
23743
23756
|
var collectColumn = this.collectColumn;
|
|
23744
23757
|
var fixedSize = 0;
|
|
23745
23758
|
collectColumn.forEach(function (column) {
|
|
23746
|
-
if (column.
|
|
23759
|
+
if (column.renderFixed) {
|
|
23747
23760
|
fixedSize++;
|
|
23748
23761
|
}
|
|
23749
23762
|
});
|
|
@@ -24087,13 +24100,14 @@ function handleUupdateResize(_vm) {
|
|
|
24087
24100
|
hasTip = this.hasTip,
|
|
24088
24101
|
columnOpts = this.columnOpts,
|
|
24089
24102
|
rowOpts = this.rowOpts,
|
|
24103
|
+
checkboxOpts = this.checkboxOpts,
|
|
24090
24104
|
loadingOpts = this.loadingOpts,
|
|
24091
24105
|
editRules = this.editRules;
|
|
24092
24106
|
var leftList = columnStore.leftList,
|
|
24093
24107
|
rightList = columnStore.rightList;
|
|
24094
24108
|
var currLoading = this._isLoading || loading;
|
|
24095
24109
|
return h('div', {
|
|
24096
|
-
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && conf.cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), '
|
|
24110
|
+
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && conf.cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'checkbox--range', checkboxOpts.range), 'is--header', showHeader), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--footer', showFooter), 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), 'is--loading', currLoading), 'is--empty', !currLoading && !tableData.length), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--scroll-y', overflowY), 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
|
|
24097
24111
|
on: {
|
|
24098
24112
|
keydown: this.keydownEvent
|
|
24099
24113
|
}
|
|
@@ -24335,7 +24349,7 @@ var Table = VxeTable;
|
|
|
24335
24349
|
var args = filterStore.args,
|
|
24336
24350
|
column = filterStore.column;
|
|
24337
24351
|
var filterRender = column ? column.filterRender : null;
|
|
24338
|
-
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24352
|
+
var compConf = isEnableConf(filterRender) ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24339
24353
|
var filterClassName = compConf ? compConf.tableFilterClassName || compConf.filterClassName : '';
|
|
24340
24354
|
return h('div', {
|
|
24341
24355
|
class: ['vxe-table--filter-wrapper', 'filter--prevent-default', compConf && compConf.className ? compConf.className : '', utils.getClass(filterClassName, Object.assign({
|
|
@@ -24433,7 +24447,7 @@ var Table = VxeTable;
|
|
|
24433
24447
|
var column = filterStore.column,
|
|
24434
24448
|
multiple = filterStore.multiple;
|
|
24435
24449
|
var filterRender = column.filterRender;
|
|
24436
|
-
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24450
|
+
var compConf = isEnableConf(filterRender) ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24437
24451
|
var isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
24438
24452
|
return multiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false) : true) ? [h('div', {
|
|
24439
24453
|
class: 'vxe-table--filter-footer'
|
|
@@ -24529,6 +24543,7 @@ var Table = VxeTable;
|
|
|
24529
24543
|
|
|
24530
24544
|
|
|
24531
24545
|
|
|
24546
|
+
|
|
24532
24547
|
/* harmony default export */ var mixin = ({
|
|
24533
24548
|
methods: {
|
|
24534
24549
|
/**
|
|
@@ -24555,12 +24570,12 @@ var Table = VxeTable;
|
|
|
24555
24570
|
* @param {ColumnInfo} fieldOrColumn 列
|
|
24556
24571
|
* @param {Array} options 选项
|
|
24557
24572
|
*/
|
|
24558
|
-
_setFilter: function _setFilter(fieldOrColumn, options) {
|
|
24573
|
+
_setFilter: function _setFilter(fieldOrColumn, options, update) {
|
|
24559
24574
|
var column = handleFieldOrColumn(this, fieldOrColumn);
|
|
24560
24575
|
if (column && column.filters) {
|
|
24561
24576
|
column.filters = toFilters(options || []);
|
|
24562
24577
|
}
|
|
24563
|
-
return this.$nextTick();
|
|
24578
|
+
return update ? this.updateData() : this.$nextTick();
|
|
24564
24579
|
},
|
|
24565
24580
|
checkFilterOptions: function checkFilterOptions() {
|
|
24566
24581
|
var filterStore = this.filterStore;
|
|
@@ -24591,7 +24606,7 @@ var Table = VxeTable;
|
|
|
24591
24606
|
var filters = column.filters,
|
|
24592
24607
|
filterMultiple = column.filterMultiple,
|
|
24593
24608
|
filterRender = column.filterRender;
|
|
24594
|
-
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24609
|
+
var compConf = isEnableConf(filterRender) ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24595
24610
|
var filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
|
|
24596
24611
|
var _DomTools$getDomNode = dom.getDomNode(),
|
|
24597
24612
|
visibleWidth = _DomTools$getDomNode.visibleWidth;
|
|
@@ -24776,7 +24791,7 @@ var Table = VxeTable;
|
|
|
24776
24791
|
var filters = column.filters,
|
|
24777
24792
|
filterRender = column.filterRender;
|
|
24778
24793
|
if (filters) {
|
|
24779
|
-
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24794
|
+
var compConf = isEnableConf(filterRender) ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
24780
24795
|
var filterResetMethod = column.filterResetMethod || (compConf ? compConf.tableFilterResetMethod || compConf.filterResetMethod : null);
|
|
24781
24796
|
filters.forEach(function (item) {
|
|
24782
24797
|
item._checked = false;
|
|
@@ -30028,7 +30043,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
30028
30043
|
change: this.changeEvent
|
|
30029
30044
|
}
|
|
30030
30045
|
}), h('span', {
|
|
30031
|
-
class: ['vxe-checkbox--icon', indeterminate ? 'vxe-icon-checkbox-indeterminate' : isChecked ? 'vxe-icon-checkbox-checked' : 'vxe-icon-checkbox-unchecked']
|
|
30046
|
+
class: ['vxe-checkbox--icon', indeterminate ? 'vxe-icon-checkbox-indeterminate' : isChecked ? 'vxe-icon-checkbox-checked-fill' : 'vxe-icon-checkbox-unchecked']
|
|
30032
30047
|
}), h('span', {
|
|
30033
30048
|
class: 'vxe-checkbox--label'
|
|
30034
30049
|
}, $scopedSlots.default ? $scopedSlots.default.call(this, {}) : [getFuncText(content)])]);
|
|
@@ -31254,7 +31269,6 @@ Object.keys(props).forEach(function (name) {
|
|
|
31254
31269
|
|
|
31255
31270
|
|
|
31256
31271
|
|
|
31257
|
-
|
|
31258
31272
|
/* harmony default export */ var export_panel = ({
|
|
31259
31273
|
name: 'VxeTableExportPanel',
|
|
31260
31274
|
props: {
|
|
@@ -31384,21 +31398,15 @@ Object.keys(props).forEach(function (name) {
|
|
|
31384
31398
|
}
|
|
31385
31399
|
})])]), isPrint ? _e() : h('tr', [h('td', conf.i18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
31386
31400
|
props: {
|
|
31387
|
-
value: defaultOptions.type
|
|
31401
|
+
value: defaultOptions.type,
|
|
31402
|
+
options: storeData.typeList
|
|
31388
31403
|
},
|
|
31389
31404
|
on: {
|
|
31390
31405
|
input: function input(value) {
|
|
31391
31406
|
defaultOptions.type = value;
|
|
31392
31407
|
}
|
|
31393
31408
|
}
|
|
31394
|
-
},
|
|
31395
|
-
return h('vxe-option', {
|
|
31396
|
-
props: {
|
|
31397
|
-
value: item.value,
|
|
31398
|
-
label: conf.i18n(item.label)
|
|
31399
|
-
}
|
|
31400
|
-
});
|
|
31401
|
-
}))])]), isPrint || showSheet ? h('tr', [h('td', conf.i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
|
|
31409
|
+
})])]), isPrint || showSheet ? h('tr', [h('td', conf.i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
|
|
31402
31410
|
ref: 'sheetname',
|
|
31403
31411
|
props: {
|
|
31404
31412
|
value: defaultOptions.sheetName,
|
|
@@ -31413,21 +31421,15 @@ Object.keys(props).forEach(function (name) {
|
|
|
31413
31421
|
}
|
|
31414
31422
|
})])]) : _e(), h('tr', [h('td', conf.i18n('vxe.export.expMode')), h('td', [h('vxe-select', {
|
|
31415
31423
|
props: {
|
|
31416
|
-
value: defaultOptions.mode
|
|
31424
|
+
value: defaultOptions.mode,
|
|
31425
|
+
options: storeData.modeList
|
|
31417
31426
|
},
|
|
31418
31427
|
on: {
|
|
31419
31428
|
input: function input(value) {
|
|
31420
31429
|
defaultOptions.mode = value;
|
|
31421
31430
|
}
|
|
31422
31431
|
}
|
|
31423
|
-
},
|
|
31424
|
-
return h('vxe-option', {
|
|
31425
|
-
props: {
|
|
31426
|
-
value: item.value,
|
|
31427
|
-
label: conf.i18n(item.label)
|
|
31428
|
-
}
|
|
31429
|
-
});
|
|
31430
|
-
}))])]), h('tr', [h('td', [conf.i18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
31432
|
+
})])]), h('tr', [h('td', [conf.i18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
31431
31433
|
class: 'vxe-export--panel-column'
|
|
31432
31434
|
}, [h('ul', {
|
|
31433
31435
|
class: 'vxe-export--panel-column-header'
|
|
@@ -31830,7 +31832,7 @@ Object.keys(props).forEach(function (name) {
|
|
|
31830
31832
|
var selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, function (item) {
|
|
31831
31833
|
return type === item.value;
|
|
31832
31834
|
});
|
|
31833
|
-
return selectItem ?
|
|
31835
|
+
return selectItem ? selectItem.label : '*.*';
|
|
31834
31836
|
}
|
|
31835
31837
|
return "*.".concat(typeList.map(function (item) {
|
|
31836
31838
|
return item.value;
|
|
@@ -31848,7 +31850,7 @@ Object.keys(props).forEach(function (name) {
|
|
|
31848
31850
|
props: {
|
|
31849
31851
|
value: storeData.visible,
|
|
31850
31852
|
title: conf.i18n('vxe.import.impTitle'),
|
|
31851
|
-
width:
|
|
31853
|
+
width: 520,
|
|
31852
31854
|
mask: true,
|
|
31853
31855
|
lockView: true,
|
|
31854
31856
|
showFooter: false,
|
|
@@ -31889,22 +31891,17 @@ Object.keys(props).forEach(function (name) {
|
|
|
31889
31891
|
on: {
|
|
31890
31892
|
click: this.selectFileEvent
|
|
31891
31893
|
}
|
|
31892
|
-
}, conf.i18n('vxe.import.impSelect'))])]), h('tr', [h('td', conf.i18n('vxe.import.impType')), h('td', parseTypeLabel)]), h('tr', [h('td', conf.i18n('vxe.import.
|
|
31894
|
+
}, conf.i18n('vxe.import.impSelect'))])]), h('tr', [h('td', conf.i18n('vxe.import.impType')), h('td', parseTypeLabel)]), h('tr', [h('td', conf.i18n('vxe.import.impMode')), h('td', [h('vxe-select', {
|
|
31893
31895
|
props: {
|
|
31894
|
-
value: defaultOptions.mode
|
|
31896
|
+
value: defaultOptions.mode,
|
|
31897
|
+
options: storeData.modeList
|
|
31895
31898
|
},
|
|
31896
31899
|
on: {
|
|
31897
31900
|
input: function input(value) {
|
|
31898
31901
|
defaultOptions.mode = value;
|
|
31899
31902
|
}
|
|
31900
31903
|
}
|
|
31901
|
-
},
|
|
31902
|
-
return h('vxe-radio', {
|
|
31903
|
-
props: {
|
|
31904
|
-
label: item.value
|
|
31905
|
-
}
|
|
31906
|
-
}, conf.i18n(item.label));
|
|
31907
|
-
}))])])])]), h('div', {
|
|
31904
|
+
})])])])]), h('div', {
|
|
31908
31905
|
class: 'vxe-export--panel-btns'
|
|
31909
31906
|
}, [h('vxe-button', {
|
|
31910
31907
|
on: {
|
|
@@ -32916,7 +32913,7 @@ function handleImport($xetable, content, opts) {
|
|
|
32916
32913
|
if (status) {
|
|
32917
32914
|
$xetable.createData(rows).then(function (data) {
|
|
32918
32915
|
var loadRest;
|
|
32919
|
-
if (opts.mode === 'insert') {
|
|
32916
|
+
if (opts.mode === 'insert' || opts.mode === 'insertBottom') {
|
|
32920
32917
|
loadRest = $xetable.insert(data);
|
|
32921
32918
|
} else {
|
|
32922
32919
|
loadRest = $xetable.reloadData(data);
|
|
@@ -32989,7 +32986,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
32989
32986
|
$xetable._importReject = _importReject;
|
|
32990
32987
|
if (window.FileReader) {
|
|
32991
32988
|
var options = Object.assign({
|
|
32992
|
-
mode: '
|
|
32989
|
+
mode: 'insertBottom'
|
|
32993
32990
|
}, opts, {
|
|
32994
32991
|
type: type,
|
|
32995
32992
|
filename: filename
|
|
@@ -33176,7 +33173,8 @@ function handlePrint($xetable, opts, content) {
|
|
|
33176
33173
|
}
|
|
33177
33174
|
}
|
|
33178
33175
|
function handleExportAndPrint($xetable, options, isPrint) {
|
|
33179
|
-
var
|
|
33176
|
+
var $xegrid = $xetable.$xegrid,
|
|
33177
|
+
initStore = $xetable.initStore,
|
|
33180
33178
|
customOpts = $xetable.customOpts,
|
|
33181
33179
|
collectColumn = $xetable.collectColumn,
|
|
33182
33180
|
footerTableData = $xetable.footerTableData,
|
|
@@ -33185,16 +33183,19 @@ function handleExportAndPrint($xetable, options, isPrint) {
|
|
|
33185
33183
|
isGroup = $xetable.isGroup,
|
|
33186
33184
|
exportParams = $xetable.exportParams,
|
|
33187
33185
|
exportOpts = $xetable.exportOpts;
|
|
33186
|
+
var proxyOpts = $xegrid ? $xegrid.proxyOpts : {};
|
|
33188
33187
|
var selectRecords = $xetable.getCheckboxRecords();
|
|
33189
33188
|
var hasFooter = !!footerTableData.length;
|
|
33190
33189
|
var hasTree = treeConfig;
|
|
33191
33190
|
var hasMerge = !hasTree && mergeList.length;
|
|
33192
33191
|
var defOpts = Object.assign({
|
|
33193
33192
|
message: true,
|
|
33194
|
-
isHeader: true
|
|
33193
|
+
isHeader: true,
|
|
33194
|
+
current: 'current',
|
|
33195
|
+
modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
|
|
33195
33196
|
}, options);
|
|
33196
33197
|
var types = defOpts.types || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps);
|
|
33197
|
-
var modes = defOpts.modes;
|
|
33198
|
+
var modes = defOpts.modes || [];
|
|
33198
33199
|
var checkMethod = customOpts.checkMethod;
|
|
33199
33200
|
var exportColumns = collectColumn.slice(0);
|
|
33200
33201
|
var columns = defOpts.columns;
|
|
@@ -33202,13 +33203,19 @@ function handleExportAndPrint($xetable, options, isPrint) {
|
|
|
33202
33203
|
var typeList = types.map(function (value) {
|
|
33203
33204
|
return {
|
|
33204
33205
|
value: value,
|
|
33205
|
-
label: "vxe.export.types.".concat(value)
|
|
33206
|
+
label: conf.i18n("vxe.export.types.".concat(value))
|
|
33206
33207
|
};
|
|
33207
33208
|
});
|
|
33208
|
-
var modeList = modes.map(function (
|
|
33209
|
+
var modeList = modes.map(function (item) {
|
|
33210
|
+
if (item && item.value) {
|
|
33211
|
+
return {
|
|
33212
|
+
value: item.value,
|
|
33213
|
+
label: item.label || item.value
|
|
33214
|
+
};
|
|
33215
|
+
}
|
|
33209
33216
|
return {
|
|
33210
|
-
value:
|
|
33211
|
-
label: "vxe.export.modes.".concat(
|
|
33217
|
+
value: item,
|
|
33218
|
+
label: conf.i18n("vxe.export.modes.".concat(item))
|
|
33212
33219
|
};
|
|
33213
33220
|
});
|
|
33214
33221
|
// 默认选中
|
|
@@ -33258,11 +33265,15 @@ function handleExportAndPrint($xetable, options, isPrint) {
|
|
|
33258
33265
|
Object.assign(exportParams, {
|
|
33259
33266
|
mode: selectRecords.length ? 'selected' : 'current'
|
|
33260
33267
|
}, defOpts);
|
|
33261
|
-
if (
|
|
33262
|
-
exportParams.mode
|
|
33268
|
+
if (!modeList.some(function (item) {
|
|
33269
|
+
return item.value === exportParams.mode;
|
|
33270
|
+
})) {
|
|
33271
|
+
exportParams.mode = modeList[0].value;
|
|
33263
33272
|
}
|
|
33264
|
-
if (
|
|
33265
|
-
exportParams.type
|
|
33273
|
+
if (!typeList.some(function (item) {
|
|
33274
|
+
return item.value === exportParams.type;
|
|
33275
|
+
})) {
|
|
33276
|
+
exportParams.type = typeList[0].value;
|
|
33266
33277
|
}
|
|
33267
33278
|
initStore.export = true;
|
|
33268
33279
|
return $xetable.$nextTick();
|
|
@@ -33470,7 +33481,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
33470
33481
|
}
|
|
33471
33482
|
}
|
|
33472
33483
|
if (!opts.data) {
|
|
33473
|
-
opts.data =
|
|
33484
|
+
opts.data = [];
|
|
33474
33485
|
if (mode === 'selected') {
|
|
33475
33486
|
var selectRecords = this.getCheckboxRecords();
|
|
33476
33487
|
if (['html', 'pdf'].indexOf(type) > -1 && treeConfig) {
|
|
@@ -33515,6 +33526,8 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
33515
33526
|
});
|
|
33516
33527
|
}
|
|
33517
33528
|
}
|
|
33529
|
+
} else if (mode === 'current') {
|
|
33530
|
+
opts.data = afterFullData;
|
|
33518
33531
|
}
|
|
33519
33532
|
}
|
|
33520
33533
|
return handleExport(this, opts);
|
|
@@ -33610,13 +33623,16 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
33610
33623
|
});
|
|
33611
33624
|
},
|
|
33612
33625
|
_openImport: function _openImport(options) {
|
|
33626
|
+
var _this4 = this;
|
|
33613
33627
|
var importOpts = this.importOpts;
|
|
33614
33628
|
var defOpts = Object.assign({
|
|
33615
|
-
mode: '
|
|
33629
|
+
mode: 'insertBottom',
|
|
33616
33630
|
message: true,
|
|
33617
|
-
types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps)
|
|
33631
|
+
types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps),
|
|
33632
|
+
modes: ['insertBottom', 'covering']
|
|
33618
33633
|
}, options, importOpts);
|
|
33619
|
-
var types = defOpts.types;
|
|
33634
|
+
var types = defOpts.types || [];
|
|
33635
|
+
var modes = defOpts.modes || [];
|
|
33620
33636
|
var isTree = !!this.getTreeStatus();
|
|
33621
33637
|
if (isTree) {
|
|
33622
33638
|
if (defOpts.message) {
|
|
@@ -33634,13 +33650,19 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
33634
33650
|
var typeList = types.map(function (value) {
|
|
33635
33651
|
return {
|
|
33636
33652
|
value: value,
|
|
33637
|
-
label: "vxe.export.types.".concat(value)
|
|
33653
|
+
label: conf.i18n("vxe.export.types.".concat(value))
|
|
33638
33654
|
};
|
|
33639
33655
|
});
|
|
33640
|
-
var modeList =
|
|
33656
|
+
var modeList = modes.map(function (item) {
|
|
33657
|
+
if (item && item.value) {
|
|
33658
|
+
return {
|
|
33659
|
+
value: item.value,
|
|
33660
|
+
label: item.label || item.value
|
|
33661
|
+
};
|
|
33662
|
+
}
|
|
33641
33663
|
return {
|
|
33642
|
-
value:
|
|
33643
|
-
label: "vxe.import.modes.".concat(
|
|
33664
|
+
value: item,
|
|
33665
|
+
label: conf.i18n("vxe.import.modes.".concat(item))
|
|
33644
33666
|
};
|
|
33645
33667
|
});
|
|
33646
33668
|
Object.assign(this.importStore, {
|
|
@@ -33652,6 +33674,11 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
33652
33674
|
visible: true
|
|
33653
33675
|
});
|
|
33654
33676
|
Object.assign(this.importParams, defOpts);
|
|
33677
|
+
if (!modeList.some(function (item) {
|
|
33678
|
+
return item.value === _this4.importParams.mode;
|
|
33679
|
+
})) {
|
|
33680
|
+
this.importParams.mode = modeList[0].value;
|
|
33681
|
+
}
|
|
33655
33682
|
this.initStore.import = true;
|
|
33656
33683
|
},
|
|
33657
33684
|
_openExport: function _openExport(options) {
|
|
@@ -35024,6 +35051,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35024
35051
|
allowResizable = customOpts.allowResizable,
|
|
35025
35052
|
checkMethod = customOpts.checkMethod,
|
|
35026
35053
|
visibleMethod = customOpts.visibleMethod;
|
|
35054
|
+
var maxFixedSize = columnOpts.maxFixedSize;
|
|
35027
35055
|
var modalOpts = Object.assign({}, modalOptions);
|
|
35028
35056
|
var trVNs = [];
|
|
35029
35057
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column, index, items, path, parent) {
|
|
@@ -35137,21 +35165,22 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35137
35165
|
var isAllChecked = customStore.isAll;
|
|
35138
35166
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
35139
35167
|
return h('vxe-modal', {
|
|
35140
|
-
key: '
|
|
35168
|
+
key: 'modal',
|
|
35141
35169
|
props: {
|
|
35142
35170
|
className: ['vxe-table-custom-popup-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
|
|
35143
35171
|
value: customStore.visible,
|
|
35144
35172
|
title: modalOpts.title || conf.i18n('vxe.custom.cstmTitle'),
|
|
35145
|
-
width: modalOpts.width ||
|
|
35173
|
+
width: modalOpts.width || Math.min(880, document.documentElement.clientWidth),
|
|
35146
35174
|
minWidth: modalOpts.minWidth || 700,
|
|
35147
|
-
height: modalOpts.height ||
|
|
35175
|
+
height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
|
|
35148
35176
|
minHeight: modalOpts.minHeight || 400,
|
|
35149
|
-
|
|
35150
|
-
|
|
35151
|
-
|
|
35152
|
-
resize:
|
|
35153
|
-
escClosable:
|
|
35154
|
-
destroyOnClose: true
|
|
35177
|
+
showZoom: !!modalOpts.showZoom,
|
|
35178
|
+
mask: !!modalOpts.mask,
|
|
35179
|
+
lockView: !!modalOpts.lockView,
|
|
35180
|
+
resize: !!modalOpts.resize,
|
|
35181
|
+
escClosable: !!modalOpts.escClosable,
|
|
35182
|
+
destroyOnClose: true,
|
|
35183
|
+
showFooter: true
|
|
35155
35184
|
},
|
|
35156
35185
|
on: {
|
|
35157
35186
|
input: function input(value) {
|
|
@@ -35214,7 +35243,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35214
35243
|
});
|
|
35215
35244
|
}
|
|
35216
35245
|
}
|
|
35217
|
-
})]) : _e(), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, conf.i18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, conf.i18n(
|
|
35246
|
+
})]) : _e(), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, conf.i18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, conf.i18n("vxe.custom.setting.".concat(maxFixedSize ? 'colFixedMax' : 'colFixed'), [maxFixedSize])) : _e()])]), h('transition-group', {
|
|
35218
35247
|
class: 'vxe-table-custom--body',
|
|
35219
35248
|
props: {
|
|
35220
35249
|
tag: 'tbody',
|
|
@@ -35279,7 +35308,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35279
35308
|
render: function render(h) {
|
|
35280
35309
|
var $xetable = this.$xetable;
|
|
35281
35310
|
var customOpts = $xetable.customOpts;
|
|
35282
|
-
if (
|
|
35311
|
+
if (['modal', 'popup'].includes("".concat(customOpts.mode))) {
|
|
35283
35312
|
return renderPopupPanel(h, this);
|
|
35284
35313
|
}
|
|
35285
35314
|
return renderSimplePanel(h, this);
|
|
@@ -39029,7 +39058,7 @@ var Textarea = VxeTextarea;
|
|
|
39029
39058
|
GlobalEvent.on(this, 'mousedown', this.handleGlobalMousedownEvent);
|
|
39030
39059
|
},
|
|
39031
39060
|
beforeDestroy: function beforeDestroy() {
|
|
39032
|
-
var panelElem = this.$refs.
|
|
39061
|
+
var panelElem = this.$refs.btnPanel;
|
|
39033
39062
|
if (panelElem && panelElem.parentNode) {
|
|
39034
39063
|
panelElem.parentNode.removeChild(panelElem);
|
|
39035
39064
|
}
|
|
@@ -39066,8 +39095,8 @@ var Textarea = VxeTextarea;
|
|
|
39066
39095
|
// hover 触发
|
|
39067
39096
|
btnOns.mouseenter = this.mouseenterTargetEvent;
|
|
39068
39097
|
btnOns.mouseleave = this.mouseleaveTargetEvent;
|
|
39069
|
-
panelOns.
|
|
39070
|
-
panelOns.
|
|
39098
|
+
panelOns.mouseenter = this.mouseenterDropdownEvent;
|
|
39099
|
+
panelOns.mouseleave = this.mouseleaveDropdownEvent;
|
|
39071
39100
|
}
|
|
39072
39101
|
return downsSlot ? h('div', {
|
|
39073
39102
|
class: ['vxe-button--dropdown', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
@@ -39088,7 +39117,7 @@ var Textarea = VxeTextarea;
|
|
|
39088
39117
|
}, this.renderContent(h).concat([h('i', {
|
|
39089
39118
|
class: "vxe-button--dropdown-arrow ".concat(conf.icon.BUTTON_DROPDOWN)
|
|
39090
39119
|
})])), h('div', {
|
|
39091
|
-
ref: '
|
|
39120
|
+
ref: 'btnPanel',
|
|
39092
39121
|
class: ['vxe-button--dropdown-panel', popupClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(popupClassName) ? popupClassName({
|
|
39093
39122
|
$button: this
|
|
39094
39123
|
}) : popupClassName : '', _defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'animat--leave', animatVisible), 'animat--enter', visiblePanel)],
|
|
@@ -39153,7 +39182,7 @@ var Textarea = VxeTextarea;
|
|
|
39153
39182
|
return contents;
|
|
39154
39183
|
},
|
|
39155
39184
|
handleGlobalMousewheelEvent: function handleGlobalMousewheelEvent(evnt) {
|
|
39156
|
-
if (this.visiblePanel && !dom.getEventTargetNode(evnt, this.$refs.
|
|
39185
|
+
if (this.visiblePanel && !dom.getEventTargetNode(evnt, this.$refs.btnPanel).flag) {
|
|
39157
39186
|
this.closePanel();
|
|
39158
39187
|
}
|
|
39159
39188
|
},
|
|
@@ -39162,7 +39191,7 @@ var Textarea = VxeTextarea;
|
|
|
39162
39191
|
visiblePanel = this.visiblePanel;
|
|
39163
39192
|
if (!disabled) {
|
|
39164
39193
|
var el = this.$refs.$el;
|
|
39165
|
-
var panelElem = this.$refs.
|
|
39194
|
+
var panelElem = this.$refs.btnPanel;
|
|
39166
39195
|
this.isActivated = dom.getEventTargetNode(evnt, el).flag || dom.getEventTargetNode(evnt, panelElem).flag;
|
|
39167
39196
|
if (visiblePanel && !this.isActivated) {
|
|
39168
39197
|
this.closePanel();
|
|
@@ -39195,7 +39224,7 @@ var Textarea = VxeTextarea;
|
|
|
39195
39224
|
clickDropdownEvent: function clickDropdownEvent(evnt) {
|
|
39196
39225
|
var _this = this;
|
|
39197
39226
|
var dropdownElem = evnt.currentTarget;
|
|
39198
|
-
var panelElem = this.$refs.
|
|
39227
|
+
var panelElem = this.$refs.btnPanel;
|
|
39199
39228
|
var _DomTools$getEventTar = dom.getEventTargetNode(evnt, dropdownElem, 'vxe-button'),
|
|
39200
39229
|
flag = _DomTools$getEventTar.flag,
|
|
39201
39230
|
targetElem = _DomTools$getEventTar.targetElem;
|
|
@@ -39237,21 +39266,23 @@ var Textarea = VxeTextarea;
|
|
|
39237
39266
|
},
|
|
39238
39267
|
mouseenterDropdownEvent: function mouseenterDropdownEvent() {
|
|
39239
39268
|
var _this2 = this;
|
|
39240
|
-
var panelElem = this.$refs.
|
|
39241
|
-
panelElem
|
|
39242
|
-
|
|
39243
|
-
|
|
39244
|
-
|
|
39245
|
-
|
|
39246
|
-
|
|
39247
|
-
|
|
39248
|
-
|
|
39249
|
-
|
|
39250
|
-
_this2.
|
|
39251
|
-
|
|
39252
|
-
|
|
39253
|
-
|
|
39254
|
-
|
|
39269
|
+
var panelElem = this.$refs.btnPanel;
|
|
39270
|
+
if (panelElem) {
|
|
39271
|
+
panelElem.dataset.active = 'Y';
|
|
39272
|
+
this.animatVisible = true;
|
|
39273
|
+
setTimeout(function () {
|
|
39274
|
+
if (panelElem.dataset.active === 'Y') {
|
|
39275
|
+
_this2.visiblePanel = true;
|
|
39276
|
+
_this2.updateZindex();
|
|
39277
|
+
_this2.updatePlacement();
|
|
39278
|
+
setTimeout(function () {
|
|
39279
|
+
if (_this2.visiblePanel) {
|
|
39280
|
+
_this2.updatePlacement();
|
|
39281
|
+
}
|
|
39282
|
+
}, 50);
|
|
39283
|
+
}
|
|
39284
|
+
}, 20);
|
|
39285
|
+
}
|
|
39255
39286
|
},
|
|
39256
39287
|
mouseleaveDropdownEvent: function mouseleaveDropdownEvent() {
|
|
39257
39288
|
this.closePanel();
|
|
@@ -39270,26 +39301,28 @@ var Textarea = VxeTextarea;
|
|
|
39270
39301
|
openPanel: function openPanel() {
|
|
39271
39302
|
var _this3 = this;
|
|
39272
39303
|
var trigger = this.trigger;
|
|
39273
|
-
var panelElem = this.$refs.
|
|
39274
|
-
panelElem
|
|
39275
|
-
|
|
39276
|
-
this.inited
|
|
39277
|
-
|
|
39278
|
-
|
|
39304
|
+
var panelElem = this.$refs.btnPanel;
|
|
39305
|
+
if (panelElem) {
|
|
39306
|
+
panelElem.dataset.active = 'Y';
|
|
39307
|
+
if (!this.inited) {
|
|
39308
|
+
this.inited = true;
|
|
39309
|
+
if (this.transfer) {
|
|
39310
|
+
document.body.appendChild(panelElem);
|
|
39311
|
+
}
|
|
39279
39312
|
}
|
|
39313
|
+
this.showTime = setTimeout(function () {
|
|
39314
|
+
if (panelElem.dataset.active === 'Y') {
|
|
39315
|
+
_this3.mouseenterDropdownEvent();
|
|
39316
|
+
} else {
|
|
39317
|
+
_this3.animatVisible = false;
|
|
39318
|
+
}
|
|
39319
|
+
}, trigger === 'click' ? 50 : 250);
|
|
39280
39320
|
}
|
|
39281
|
-
this.showTime = setTimeout(function () {
|
|
39282
|
-
if (panelElem.dataset.active === 'Y') {
|
|
39283
|
-
_this3.mouseenterDropdownEvent();
|
|
39284
|
-
} else {
|
|
39285
|
-
_this3.animatVisible = false;
|
|
39286
|
-
}
|
|
39287
|
-
}, trigger === 'click' ? 50 : 250);
|
|
39288
39321
|
return this.$nextTick();
|
|
39289
39322
|
},
|
|
39290
39323
|
closePanel: function closePanel() {
|
|
39291
39324
|
var _this4 = this;
|
|
39292
|
-
var panelElem = this.$refs.
|
|
39325
|
+
var panelElem = this.$refs.btnPanel;
|
|
39293
39326
|
clearTimeout(this.showTime);
|
|
39294
39327
|
if (panelElem) {
|
|
39295
39328
|
panelElem.dataset.active = 'N';
|
|
@@ -39317,7 +39350,7 @@ var Textarea = VxeTextarea;
|
|
|
39317
39350
|
placement = _this5.placement,
|
|
39318
39351
|
panelIndex = _this5.panelIndex;
|
|
39319
39352
|
var targetElem = $refs.xBtn;
|
|
39320
|
-
var panelElem = $refs.
|
|
39353
|
+
var panelElem = $refs.btnPanel;
|
|
39321
39354
|
if (panelElem && targetElem) {
|
|
39322
39355
|
var targetHeight = targetElem.offsetHeight;
|
|
39323
39356
|
var targetWidth = targetElem.offsetWidth;
|
|
@@ -42475,7 +42508,8 @@ var Pulldown = VxePulldown;
|
|
|
42475
42508
|
colTitle: '标题',
|
|
42476
42509
|
colResizable: '列宽(像素)',
|
|
42477
42510
|
colVisible: '是否显示',
|
|
42478
|
-
colFixed: '
|
|
42511
|
+
colFixed: '冻结列',
|
|
42512
|
+
colFixedMax: '冻结列(最多 {0} 列)',
|
|
42479
42513
|
fixedLeft: '左侧',
|
|
42480
42514
|
fixedUnset: '不设置',
|
|
42481
42515
|
fixedRight: '右侧'
|
|
@@ -42483,14 +42517,17 @@ var Pulldown = VxePulldown;
|
|
|
42483
42517
|
},
|
|
42484
42518
|
import: {
|
|
42485
42519
|
modes: {
|
|
42486
|
-
covering: '
|
|
42487
|
-
insert: '
|
|
42520
|
+
covering: '覆盖方式(直接覆盖表格数据)',
|
|
42521
|
+
insert: '底部追加(在表格的底部追加新数据)',
|
|
42522
|
+
insertTop: '顶部追加(在表格的顶部追加新数据)',
|
|
42523
|
+
insertBottom: '底部追加(在表格的底部追加新数据)'
|
|
42488
42524
|
},
|
|
42489
42525
|
impTitle: '导入数据',
|
|
42490
42526
|
impFile: '文件名',
|
|
42491
42527
|
impSelect: '选择文件',
|
|
42492
42528
|
impType: '文件类型',
|
|
42493
42529
|
impOpts: '参数设置',
|
|
42530
|
+
impMode: '导入模式',
|
|
42494
42531
|
impConfirm: '导入',
|
|
42495
42532
|
impCancel: '取消'
|
|
42496
42533
|
},
|