vxe-table 3.8.20 → 3.8.22
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/style/style.css +2 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/button-group/style/style.css +1 -0
- package/lib/checkbox/style/style.css +1 -0
- package/lib/checkbox-group/style/style.css +1 -0
- package/lib/colgroup/style/style.css +1 -0
- package/lib/column/style/style.css +1 -0
- package/lib/custom/style/style.css +3 -0
- package/lib/custom/style/style.min.css +1 -1
- package/lib/edit/src/mixin.js +2 -2
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/edit/style/style.css +1 -0
- package/lib/export/src/mixin.js +1 -1
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/export/style/style.css +1 -0
- package/lib/filter/style/style.css +1 -0
- package/lib/form/style/style.css +1 -0
- package/lib/form-gather/style/style.css +1 -0
- package/lib/form-item/style/style.css +1 -0
- package/lib/grid/style/style.css +2 -0
- package/lib/grid/style/style.min.css +1 -1
- package/lib/icon/style/style.css +4 -2
- package/lib/icon/style/style.min.css +4 -2
- package/lib/index.css +1 -1
- package/lib/index.umd.js +173 -148
- package/lib/index.umd.min.js +1 -1
- package/lib/input/style/style.css +4 -3
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/style/style.css +1 -0
- package/lib/list/style/style.css +1 -0
- package/lib/loading/style/style.css +1 -0
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -0
- package/lib/locale/lang/zh-TC.js +1 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -0
- package/lib/menu/style/style.css +1 -0
- package/lib/modal/style/style.css +4 -0
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/style/style.css +1 -0
- package/lib/option/style/style.css +1 -0
- package/lib/pager/src/pager.js +29 -25
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +2 -19
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/style/style.css +3 -1
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/style/style.css +1 -0
- package/lib/radio-button/style/style.css +1 -0
- package/lib/radio-group/style/style.css +1 -0
- package/lib/select/style/style.css +2 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/style/style.css +1 -0
- package/lib/table/src/header.js +4 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +56 -37
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +17 -10
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/style/style.css +1 -0
- package/lib/toolbar/style/style.css +1 -0
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tooltip/style/style.css +1 -0
- 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/renderer.js +78 -78
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +3 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/style/style.css +1 -0
- package/lib/vxe-button/style/style.css +2 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-button-group/style/style.css +1 -0
- package/lib/vxe-checkbox/style/style.css +1 -0
- package/lib/vxe-checkbox-group/style/style.css +1 -0
- package/lib/vxe-colgroup/style/style.css +1 -0
- package/lib/vxe-column/style/style.css +1 -0
- package/lib/vxe-form/style/style.css +1 -0
- package/lib/vxe-form-gather/style/style.css +1 -0
- package/lib/vxe-form-item/style/style.css +1 -0
- package/lib/vxe-grid/style/style.css +2 -0
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +3 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-input/style/style.css +4 -3
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/style/style.css +1 -0
- package/lib/vxe-loading/style/style.css +1 -0
- package/lib/vxe-modal/style/style.css +4 -0
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-optgroup/style/style.css +1 -0
- package/lib/vxe-option/style/style.css +1 -0
- package/lib/vxe-pager/style/style.css +2 -19
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +3 -1
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-radio/style/style.css +1 -0
- package/lib/vxe-radio-button/style/style.css +1 -0
- package/lib/vxe-radio-group/style/style.css +1 -0
- package/lib/vxe-select/style/style.css +2 -0
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +1 -0
- package/lib/vxe-table/style/style.css +17 -10
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/style/style.css +3 -0
- package/lib/vxe-table-custom-module/style/style.min.css +1 -1
- package/lib/vxe-table-edit-module/style/style.css +1 -0
- package/lib/vxe-table-export-module/style/style.css +1 -0
- package/lib/vxe-table-filter-module/style/style.css +1 -0
- package/lib/vxe-table-keyboard-module/style/style.css +1 -0
- package/lib/vxe-table-menu-module/style/style.css +1 -0
- package/lib/vxe-table-validator-module/style/style.css +1 -0
- package/lib/vxe-textarea/style/style.css +1 -0
- package/lib/vxe-toolbar/style/style.css +1 -0
- package/lib/vxe-tooltip/style/style.css +1 -0
- package/package.json +1 -1
- package/packages/edit/src/mixin.js +2 -2
- package/packages/export/src/mixin.js +1 -1
- package/packages/locale/lang/en-US.js +1 -0
- package/packages/locale/lang/es-ES.js +1 -0
- package/packages/locale/lang/ja-JP.js +1 -0
- package/packages/locale/lang/pt-BR.js +1 -0
- package/packages/locale/lang/zh-CN.js +1 -0
- package/packages/locale/lang/zh-TC.js +1 -0
- package/packages/pager/src/pager.js +24 -21
- package/packages/table/src/header.js +4 -3
- package/packages/table/src/methods.js +46 -23
- package/packages/v-x-e-table/src/renderer.js +78 -78
- package/styles/button.scss +1 -0
- package/styles/custom.scss +2 -0
- package/styles/grid.scss +1 -0
- package/styles/input.scss +3 -3
- package/styles/modal.scss +3 -0
- package/styles/old-icon.scss +1 -1
- package/styles/pager.scss +1 -19
- package/styles/pulldown.scss +2 -1
- package/styles/select.scss +1 -0
- package/styles/table.scss +14 -8
- package/styles/variable.scss +4 -0
- /package/lib/icon/style/{iconfont.1724204493937.ttf → iconfont.1724292682903.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1724204493937.woff → iconfont.1724292682903.woff} +0 -0
- /package/lib/icon/style/{iconfont.1724204493937.woff2 → iconfont.1724292682903.woff2} +0 -0
- /package/lib/{iconfont.1724204493937.ttf → iconfont.1724292682903.ttf} +0 -0
- /package/lib/{iconfont.1724204493937.woff → iconfont.1724292682903.woff} +0 -0
- /package/lib/{iconfont.1724204493937.woff2 → iconfont.1724292682903.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11521,7 +11521,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11521
11521
|
|
|
11522
11522
|
|
|
11523
11523
|
function getLog(message, params) {
|
|
11524
|
-
return "[vxe-table v".concat("3.8.
|
|
11524
|
+
return "[vxe-table v".concat("3.8.22", "] ").concat(conf.i18n(message, params));
|
|
11525
11525
|
}
|
|
11526
11526
|
function outLog(type) {
|
|
11527
11527
|
return function (message, params) {
|
|
@@ -12511,25 +12511,25 @@ function oldFormItemRadioAndCheckboxRender(h, renderOpts, params) {
|
|
|
12511
12511
|
*/
|
|
12512
12512
|
var renderMap = {
|
|
12513
12513
|
input: {
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12514
|
+
tableAutofocus: 'input',
|
|
12515
|
+
renderTableEdit: nativeEditRender,
|
|
12516
|
+
renderTableDefault: nativeEditRender,
|
|
12517
|
+
renderTableFilter: nativeFilterRender,
|
|
12518
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
12519
|
+
renderFormItemContent: nativeItemRender
|
|
12520
12520
|
},
|
|
12521
12521
|
textarea: {
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12522
|
+
tableAutofocus: 'textarea',
|
|
12523
|
+
renderTableEdit: nativeEditRender,
|
|
12524
|
+
renderFormItemContent: nativeItemRender
|
|
12525
12525
|
},
|
|
12526
12526
|
select: {
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12527
|
+
renderTableEdit: nativeSelectEditRender,
|
|
12528
|
+
renderTableDefault: nativeSelectEditRender,
|
|
12529
|
+
renderTableCell: function renderTableCell(h, renderOpts, params) {
|
|
12530
12530
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
12531
12531
|
},
|
|
12532
|
-
|
|
12532
|
+
renderTableFilter: function renderTableFilter(h, renderOpts, params) {
|
|
12533
12533
|
var column = params.column;
|
|
12534
12534
|
return column.filters.map(function (option, oIndex) {
|
|
12535
12535
|
return h('select', {
|
|
@@ -12540,20 +12540,20 @@ var renderMap = {
|
|
|
12540
12540
|
}, renderOpts.optionGroups ? renderNativeOptgroups(h, renderOpts, params, renderNativeOptions) : renderNativeOptions(h, renderOpts.options, renderOpts, params));
|
|
12541
12541
|
});
|
|
12542
12542
|
},
|
|
12543
|
-
|
|
12544
|
-
|
|
12543
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
12544
|
+
renderFormItemContent: function renderFormItemContent(h, renderOpts, params) {
|
|
12545
12545
|
return [h('select', {
|
|
12546
12546
|
class: 'vxe-default-select',
|
|
12547
12547
|
attrs: getNativeAttrs(renderOpts),
|
|
12548
12548
|
on: getNativeItemOns(renderOpts, params)
|
|
12549
12549
|
}, renderOpts.optionGroups ? renderNativeOptgroups(h, renderOpts, params, renderNativeFormOptions) : renderNativeFormOptions(h, renderOpts.options, renderOpts, params))];
|
|
12550
12550
|
},
|
|
12551
|
-
|
|
12551
|
+
tableExportMethod: handleExportSelectMethod
|
|
12552
12552
|
},
|
|
12553
12553
|
VxeInput: {
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12554
|
+
tableAutofocus: '.vxe-input--inner',
|
|
12555
|
+
renderTableEdit: defaultEditRender,
|
|
12556
|
+
renderTableCell: function renderTableCell(h, renderOpts, params) {
|
|
12557
12557
|
var _renderOpts$props2 = renderOpts.props,
|
|
12558
12558
|
props = _renderOpts$props2 === void 0 ? {} : _renderOpts$props2;
|
|
12559
12559
|
var row = params.row,
|
|
@@ -12576,22 +12576,22 @@ var renderMap = {
|
|
|
12576
12576
|
}
|
|
12577
12577
|
return getCellLabelVNs(h, renderOpts, params, cellValue);
|
|
12578
12578
|
},
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12579
|
+
renderTableDefault: defaultEditRender,
|
|
12580
|
+
renderTableFilter: defaultFilterRender,
|
|
12581
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
12582
|
+
renderFormItemContent: defaultItemRender
|
|
12583
12583
|
},
|
|
12584
12584
|
VxeTextarea: {
|
|
12585
|
-
|
|
12586
|
-
|
|
12585
|
+
tableAutofocus: '.vxe-textarea--inner',
|
|
12586
|
+
renderFormItemContent: defaultItemRender
|
|
12587
12587
|
},
|
|
12588
12588
|
VxeButton: {
|
|
12589
|
-
|
|
12590
|
-
|
|
12589
|
+
renderTableDefault: defaultCellRender,
|
|
12590
|
+
renderFormItemContent: defaultFormItemRender
|
|
12591
12591
|
},
|
|
12592
12592
|
VxeButtonGroup: {
|
|
12593
|
-
|
|
12594
|
-
|
|
12593
|
+
renderTableDefault: defaultCellRender,
|
|
12594
|
+
renderFormItemContent: function renderFormItemContent(h, renderOpts, params) {
|
|
12595
12595
|
var options = renderOpts.options;
|
|
12596
12596
|
var data = params.data,
|
|
12597
12597
|
property = params.property;
|
|
@@ -12606,13 +12606,13 @@ var renderMap = {
|
|
|
12606
12606
|
}
|
|
12607
12607
|
},
|
|
12608
12608
|
VxeSelect: {
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12609
|
+
tableAutofocus: '.vxe-input--inner',
|
|
12610
|
+
renderTableEdit: defaultSelectEditRender,
|
|
12611
|
+
renderTableDefault: defaultSelectEditRender,
|
|
12612
|
+
renderTableCell: function renderTableCell(h, renderOpts, params) {
|
|
12613
12613
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
12614
12614
|
},
|
|
12615
|
-
|
|
12615
|
+
renderTableFilter: function renderTableFilter(h, renderOpts, params) {
|
|
12616
12616
|
var column = params.column;
|
|
12617
12617
|
var options = renderOpts.options,
|
|
12618
12618
|
optionProps = renderOpts.optionProps,
|
|
@@ -12634,8 +12634,8 @@ var renderMap = {
|
|
|
12634
12634
|
});
|
|
12635
12635
|
});
|
|
12636
12636
|
},
|
|
12637
|
-
|
|
12638
|
-
|
|
12637
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
12638
|
+
renderFormItemContent: function renderFormItemContent(h, renderOpts, params) {
|
|
12639
12639
|
var data = params.data,
|
|
12640
12640
|
property = params.property;
|
|
12641
12641
|
var options = renderOpts.options,
|
|
@@ -12654,35 +12654,35 @@ var renderMap = {
|
|
|
12654
12654
|
nativeOn: getNativeOns(renderOpts, params)
|
|
12655
12655
|
})];
|
|
12656
12656
|
},
|
|
12657
|
-
|
|
12657
|
+
tableExportMethod: handleExportSelectMethod
|
|
12658
12658
|
},
|
|
12659
12659
|
VxeRadio: {
|
|
12660
|
-
|
|
12661
|
-
|
|
12660
|
+
tableAutofocus: '.vxe-radio--input',
|
|
12661
|
+
renderFormItemContent: defaultFormItemRender
|
|
12662
12662
|
},
|
|
12663
12663
|
VxeRadioGroup: {
|
|
12664
|
-
|
|
12665
|
-
|
|
12664
|
+
tableAutofocus: '.vxe-radio--input',
|
|
12665
|
+
renderFormItemContent: formItemRadioAndCheckboxRender
|
|
12666
12666
|
},
|
|
12667
12667
|
VxeCheckbox: {
|
|
12668
|
-
|
|
12669
|
-
|
|
12668
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
12669
|
+
renderFormItemContent: defaultFormItemRender
|
|
12670
12670
|
},
|
|
12671
12671
|
VxeCheckboxGroup: {
|
|
12672
|
-
|
|
12673
|
-
|
|
12672
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
12673
|
+
renderFormItemContent: formItemRadioAndCheckboxRender
|
|
12674
12674
|
},
|
|
12675
12675
|
VxeSwitch: {
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12676
|
+
tableAutofocus: '.vxe-switch--button',
|
|
12677
|
+
renderTableEdit: defaultEditRender,
|
|
12678
|
+
renderTableDefault: defaultEditRender,
|
|
12679
|
+
renderFormItemContent: defaultItemRender
|
|
12680
12680
|
},
|
|
12681
12681
|
// 以下已废弃
|
|
12682
12682
|
$input: {
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12683
|
+
tableAutofocus: '.vxe-input--inner',
|
|
12684
|
+
renderTableEdit: oldEditRender,
|
|
12685
|
+
renderTableCell: function renderTableCell(h, renderOpts, params) {
|
|
12686
12686
|
var _renderOpts$props3 = renderOpts.props,
|
|
12687
12687
|
props = _renderOpts$props3 === void 0 ? {} : _renderOpts$props3;
|
|
12688
12688
|
var row = params.row,
|
|
@@ -12704,31 +12704,31 @@ var renderMap = {
|
|
|
12704
12704
|
}
|
|
12705
12705
|
return getCellLabelVNs(h, renderOpts, params, cellValue);
|
|
12706
12706
|
},
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12707
|
+
renderTableDefault: oldEditRender,
|
|
12708
|
+
renderTableFilter: oldFilterRender,
|
|
12709
|
+
defaultTableFilterMethod: handleInputFilterMethod,
|
|
12710
|
+
renderFormItemContent: oldItemRender
|
|
12711
12711
|
},
|
|
12712
12712
|
$textarea: {
|
|
12713
|
-
|
|
12714
|
-
|
|
12713
|
+
tableAutofocus: '.vxe-textarea--inner',
|
|
12714
|
+
renderFormItemContent: oldItemRender
|
|
12715
12715
|
},
|
|
12716
12716
|
$button: {
|
|
12717
|
-
|
|
12718
|
-
|
|
12717
|
+
renderTableDefault: oldButtonEditRender,
|
|
12718
|
+
renderFormItemContent: oldButtonItemRender
|
|
12719
12719
|
},
|
|
12720
12720
|
$buttons: {
|
|
12721
|
-
|
|
12722
|
-
|
|
12721
|
+
renderTableDefault: oldButtonsEditRender,
|
|
12722
|
+
renderFormItemContent: oldButtonsItemRender
|
|
12723
12723
|
},
|
|
12724
12724
|
$select: {
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12725
|
+
tableAutofocus: '.vxe-input--inner',
|
|
12726
|
+
renderTableEdit: oldSelectEditRender,
|
|
12727
|
+
renderTableDefault: oldSelectEditRender,
|
|
12728
|
+
renderTableCell: function renderTableCell(h, renderOpts, params) {
|
|
12729
12729
|
return getCellLabelVNs(h, renderOpts, params, getSelectCellValue(renderOpts, params));
|
|
12730
12730
|
},
|
|
12731
|
-
|
|
12731
|
+
renderTableFilter: function renderTableFilter(h, renderOpts, params) {
|
|
12732
12732
|
var column = params.column;
|
|
12733
12733
|
var options = renderOpts.options,
|
|
12734
12734
|
optionProps = renderOpts.optionProps,
|
|
@@ -12750,8 +12750,8 @@ var renderMap = {
|
|
|
12750
12750
|
});
|
|
12751
12751
|
});
|
|
12752
12752
|
},
|
|
12753
|
-
|
|
12754
|
-
|
|
12753
|
+
defaultTableFilterMethod: handleFilterMethod,
|
|
12754
|
+
renderFormItemContent: function renderFormItemContent(h, renderOpts, params) {
|
|
12755
12755
|
var data = params.data,
|
|
12756
12756
|
property = params.property;
|
|
12757
12757
|
var options = renderOpts.options,
|
|
@@ -12770,21 +12770,21 @@ var renderMap = {
|
|
|
12770
12770
|
nativeOn: getNativeOns(renderOpts, params)
|
|
12771
12771
|
})];
|
|
12772
12772
|
},
|
|
12773
|
-
|
|
12773
|
+
tableExportMethod: handleExportSelectMethod
|
|
12774
12774
|
},
|
|
12775
12775
|
$radio: {
|
|
12776
|
-
|
|
12777
|
-
|
|
12776
|
+
tableAutofocus: '.vxe-radio--input',
|
|
12777
|
+
renderFormItemContent: oldFormItemRadioAndCheckboxRender
|
|
12778
12778
|
},
|
|
12779
12779
|
$checkbox: {
|
|
12780
|
-
|
|
12781
|
-
|
|
12780
|
+
tableAutofocus: '.vxe-checkbox--input',
|
|
12781
|
+
renderFormItemContent: oldFormItemRadioAndCheckboxRender
|
|
12782
12782
|
},
|
|
12783
12783
|
$switch: {
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12784
|
+
tableAutofocus: '.vxe-switch--button',
|
|
12785
|
+
renderTableEdit: oldEditRender,
|
|
12786
|
+
renderTableDefault: oldEditRender,
|
|
12787
|
+
renderFormItemContent: oldItemRender
|
|
12788
12788
|
}
|
|
12789
12789
|
// 以上已废弃
|
|
12790
12790
|
};
|
|
@@ -13225,7 +13225,7 @@ function component(comp) {
|
|
|
13225
13225
|
components[comp.name] = comp;
|
|
13226
13226
|
}
|
|
13227
13227
|
}
|
|
13228
|
-
var version = "3.8.
|
|
13228
|
+
var version = "3.8.22";
|
|
13229
13229
|
var tableVersion = version;
|
|
13230
13230
|
var VxeUI = {
|
|
13231
13231
|
v: v,
|
|
@@ -15062,6 +15062,7 @@ var cellType = 'header';
|
|
|
15062
15062
|
align = column.align,
|
|
15063
15063
|
headerClassName = column.headerClassName;
|
|
15064
15064
|
// const { enabled } = tooltipOpts
|
|
15065
|
+
var colid = column.id;
|
|
15065
15066
|
var isColGroup = column.children && column.children.length;
|
|
15066
15067
|
var fixedHiddenColumn = fixedType ? column.fixed !== fixedType && !isColGroup : column.fixed && overflowX;
|
|
15067
15068
|
var headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
@@ -15110,15 +15111,15 @@ var cellType = 'header';
|
|
|
15110
15111
|
};
|
|
15111
15112
|
}
|
|
15112
15113
|
return h('th', {
|
|
15113
|
-
class: ['vxe-header--column',
|
|
15114
|
+
class: ['vxe-header--column', colid, (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "col--".concat(headAlign), headAlign), "col--".concat(type), type), 'col--last', $columnIndex === cols.length - 1), 'col--fixed', column.fixed), 'col--group', isColGroup), 'col--ellipsis', hasEllipsis), 'fixed--hidden', fixedHiddenColumn), 'is--sortable', column.sortable), 'col--filter', !!column.filters), 'is--filter-active', hasFilter), _defineProperty(_ref, 'col--current', currentColumn === column)), utils.getClass(headerClassName, params), utils.getClass(headerCellClassName, params)],
|
|
15114
15115
|
attrs: {
|
|
15115
|
-
colid:
|
|
15116
|
+
colid: colid,
|
|
15116
15117
|
colspan: column.colSpan > 1 ? column.colSpan : null,
|
|
15117
15118
|
rowspan: column.rowSpan > 1 ? column.rowSpan : null
|
|
15118
15119
|
},
|
|
15119
15120
|
style: headerCellStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle : null,
|
|
15120
15121
|
on: thOns,
|
|
15121
|
-
key: columnKey || columnOpts.useKey || isColGroup ?
|
|
15122
|
+
key: columnKey || columnOpts.useKey || isColGroup ? colid : $columnIndex
|
|
15122
15123
|
}, [h('div', {
|
|
15123
15124
|
class: ['vxe-cell', {
|
|
15124
15125
|
'c--title': showTitle,
|
|
@@ -19797,7 +19798,7 @@ var Methods = {
|
|
|
19797
19798
|
var isUpArrow = keyCode === 38;
|
|
19798
19799
|
var isRightArrow = keyCode === 39;
|
|
19799
19800
|
var isDwArrow = keyCode === 40;
|
|
19800
|
-
var
|
|
19801
|
+
var hasDeleteKey = keyCode === 46;
|
|
19801
19802
|
var isF2 = keyCode === 113;
|
|
19802
19803
|
var isContextMenu = keyCode === 93;
|
|
19803
19804
|
var hasMetaKey = evnt.metaKey;
|
|
@@ -19808,6 +19809,7 @@ var Methods = {
|
|
|
19808
19809
|
var operCtxMenu = isCtxMenu && ctxMenuStore.visible && (isEnter || isSpacebar || operArrow);
|
|
19809
19810
|
var isEditStatus = isEnableConf(editConfig) && actived.column && actived.row;
|
|
19810
19811
|
var childrenField = treeOpts.children || treeOpts.childrenField;
|
|
19812
|
+
var beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
|
|
19811
19813
|
var params;
|
|
19812
19814
|
if (filterStore.visible) {
|
|
19813
19815
|
if (isEsc) {
|
|
@@ -19915,25 +19917,43 @@ var Methods = {
|
|
|
19915
19917
|
} else if (actived.row || actived.column) {
|
|
19916
19918
|
_this31.moveTabSelected(actived.args, hasShiftKey, evnt);
|
|
19917
19919
|
}
|
|
19918
|
-
} else if (keyboardConfig &&
|
|
19920
|
+
} else if (keyboardConfig && keyboardOpts.isDel && hasDeleteKey && isEnableConf(editConfig) && (selected.row || selected.column)) {
|
|
19921
|
+
// 如果是删除键
|
|
19919
19922
|
if (!isEditStatus) {
|
|
19920
|
-
var delMethod = keyboardOpts.delMethod
|
|
19921
|
-
|
|
19923
|
+
var delMethod = keyboardOpts.delMethod;
|
|
19924
|
+
var delPaqrams = {
|
|
19925
|
+
row: selected.row,
|
|
19926
|
+
rowIndex: _this31.getRowIndex(selected.row),
|
|
19927
|
+
column: selected.column,
|
|
19928
|
+
columnIndex: _this31.getColumnIndex(selected.column),
|
|
19929
|
+
$table: _this31
|
|
19930
|
+
};
|
|
19931
|
+
// 是否被禁用
|
|
19932
|
+
if (!beforeEditMethod || beforeEditMethod(params)) {
|
|
19933
|
+
if (delMethod) {
|
|
19934
|
+
delMethod(delPaqrams);
|
|
19935
|
+
} else {
|
|
19936
|
+
setCellValue(selected.row, selected.column, null);
|
|
19937
|
+
}
|
|
19938
|
+
// 如果按下 del 键,更新表尾数据
|
|
19939
|
+
_this31.updateFooter();
|
|
19940
|
+
_this31.emitEvent('cell-delete-value', delPaqrams, evnt);
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
} else if (hasBackspaceKey && keyboardConfig && keyboardOpts.isBack && isEnableConf(editConfig) && (selected.row || selected.column)) {
|
|
19944
|
+
if (!isEditStatus) {
|
|
19945
|
+
var backMethod = keyboardOpts.backMethod;
|
|
19922
19946
|
// 如果是删除键
|
|
19923
19947
|
if (keyboardOpts.isDel && isEnableConf(editConfig) && (selected.row || selected.column)) {
|
|
19924
|
-
var
|
|
19948
|
+
var _delPaqrams = {
|
|
19925
19949
|
row: selected.row,
|
|
19926
19950
|
rowIndex: _this31.getRowIndex(selected.row),
|
|
19927
19951
|
column: selected.column,
|
|
19928
19952
|
columnIndex: _this31.getColumnIndex(selected.column),
|
|
19929
19953
|
$table: _this31
|
|
19930
19954
|
};
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
} else {
|
|
19934
|
-
setCellValue(selected.row, selected.column, null);
|
|
19935
|
-
}
|
|
19936
|
-
if (hasBackspaceKey) {
|
|
19955
|
+
// 是否被禁用
|
|
19956
|
+
if (!beforeEditMethod || beforeEditMethod(params)) {
|
|
19937
19957
|
if (backMethod) {
|
|
19938
19958
|
backMethod({
|
|
19939
19959
|
row: selected.row,
|
|
@@ -19943,35 +19963,35 @@ var Methods = {
|
|
|
19943
19963
|
$table: _this31
|
|
19944
19964
|
});
|
|
19945
19965
|
} else {
|
|
19966
|
+
setCellValue(selected.row, selected.column, null);
|
|
19946
19967
|
_this31.handleActived(selected.args, evnt);
|
|
19947
19968
|
}
|
|
19948
|
-
|
|
19949
|
-
// 如果按下 del 键,更新表尾数据
|
|
19950
|
-
_this31.updateFooter();
|
|
19951
|
-
}
|
|
19952
|
-
_this31.emitEvent('cell-delete-value', delPaqrams, evnt);
|
|
19953
|
-
} else if (hasBackspaceKey && keyboardOpts.isArrow && treeConfig && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
|
|
19954
|
-
// 如果树形表格回退键关闭当前行返回父节点
|
|
19955
|
-
var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this31.afterFullData, function (item) {
|
|
19956
|
-
return item === currentRow;
|
|
19957
|
-
}, {
|
|
19958
|
-
children: childrenField
|
|
19959
|
-
}),
|
|
19960
|
-
parentRow = _XEUtils$findTree.parent;
|
|
19961
|
-
if (parentRow) {
|
|
19962
|
-
evnt.preventDefault();
|
|
19963
|
-
params = {
|
|
19964
|
-
$table: _this31,
|
|
19965
|
-
row: parentRow
|
|
19966
|
-
};
|
|
19967
|
-
_this31.setTreeExpand(parentRow, false).then(function () {
|
|
19968
|
-
return _this31.scrollToRow(parentRow);
|
|
19969
|
-
}).then(function () {
|
|
19970
|
-
return _this31.triggerCurrentRowEvent(evnt, params);
|
|
19971
|
-
});
|
|
19969
|
+
_this31.emitEvent('cell-backspace-value', _delPaqrams, evnt);
|
|
19972
19970
|
}
|
|
19973
19971
|
}
|
|
19974
19972
|
}
|
|
19973
|
+
} else if (hasBackspaceKey && keyboardConfig && treeConfig && keyboardOpts.isBack && (rowOpts.isCurrent || highlightCurrentRow) && currentRow) {
|
|
19974
|
+
// 如果树形表格回退键关闭当前行返回父节点
|
|
19975
|
+
var _XEUtils$findTree = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(_this31.afterTreeFullData, function (item) {
|
|
19976
|
+
return item === currentRow;
|
|
19977
|
+
}, {
|
|
19978
|
+
children: childrenField
|
|
19979
|
+
}),
|
|
19980
|
+
parentRow = _XEUtils$findTree.parent;
|
|
19981
|
+
if (parentRow) {
|
|
19982
|
+
evnt.preventDefault();
|
|
19983
|
+
params = {
|
|
19984
|
+
$table: _this31,
|
|
19985
|
+
row: parentRow,
|
|
19986
|
+
rowIndex: _this31.getRowIndex(parentRow),
|
|
19987
|
+
$rowIndex: _this31.getVMRowIndex(parentRow)
|
|
19988
|
+
};
|
|
19989
|
+
_this31.setTreeExpand(parentRow, false).then(function () {
|
|
19990
|
+
return _this31.scrollToRow(parentRow);
|
|
19991
|
+
}).then(function () {
|
|
19992
|
+
return _this31.triggerCurrentRowEvent(evnt, params);
|
|
19993
|
+
});
|
|
19994
|
+
}
|
|
19975
19995
|
} else if (keyboardConfig && keyboardOpts.isEdit && !hasCtrlKey && !hasMetaKey && (isSpacebar || keyCode >= 48 && keyCode <= 57 || keyCode >= 65 && keyCode <= 90 || keyCode >= 96 && keyCode <= 111 || keyCode >= 186 && keyCode <= 192 || keyCode >= 219 && keyCode <= 222)) {
|
|
19976
19996
|
var editMethod = keyboardOpts.editMethod;
|
|
19977
19997
|
// 启用编辑后,空格键功能将失效
|
|
@@ -19980,8 +20000,8 @@ var Methods = {
|
|
|
19980
20000
|
// }
|
|
19981
20001
|
// 如果是按下非功能键之外允许直接编辑
|
|
19982
20002
|
if (selected.column && selected.row && isEnableConf(selected.column.editRender)) {
|
|
19983
|
-
var
|
|
19984
|
-
if (!
|
|
20003
|
+
var _beforeEditMethod = editOpts.beforeEditMethod || editOpts.activeMethod;
|
|
20004
|
+
if (!_beforeEditMethod || _beforeEditMethod(_objectSpread2(_objectSpread2({}, selected.args), {}, {
|
|
19985
20005
|
$table: _this31,
|
|
19986
20006
|
$grid: _this31.$xegrid
|
|
19987
20007
|
}))) {
|
|
@@ -26224,10 +26244,10 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
26224
26244
|
var autoSelect = editRender.autoSelect || editRender.autoselect;
|
|
26225
26245
|
var inputElem;
|
|
26226
26246
|
if (!autoFocus && compRender) {
|
|
26227
|
-
autoFocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autofocus;
|
|
26247
|
+
autoFocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autoFocus || compRender.autofocus;
|
|
26228
26248
|
}
|
|
26229
26249
|
if (!autoSelect && compRender) {
|
|
26230
|
-
autoSelect = compRender.tableAutoSelect || compRender.autoselect;
|
|
26250
|
+
autoSelect = compRender.tableAutoSelect || compRender.autoSelect || compRender.autoselect;
|
|
26231
26251
|
}
|
|
26232
26252
|
// 如果指定了聚焦 class
|
|
26233
26253
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(autoFocus)) {
|
|
@@ -32371,7 +32391,7 @@ function getLabelData($xetable, opts, columns, datas) {
|
|
|
32371
32391
|
if (!exportLabelMethod && renderOpts && renderOpts.name) {
|
|
32372
32392
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
32373
32393
|
if (compConf) {
|
|
32374
|
-
exportLabelMethod = compConf.exportMethod || compConf.cellExportMethod;
|
|
32394
|
+
exportLabelMethod = compConf.tableExportMethod || compConf.exportMethod || compConf.cellExportMethod;
|
|
32375
32395
|
}
|
|
32376
32396
|
}
|
|
32377
32397
|
if (exportLabelMethod) {
|
|
@@ -38292,21 +38312,26 @@ var Toolbar = VxeToolbar;
|
|
|
38292
38312
|
},
|
|
38293
38313
|
// Jump
|
|
38294
38314
|
renderJump: function renderJump(h, isFull) {
|
|
38315
|
+
var _this3 = this;
|
|
38295
38316
|
return h('span', {
|
|
38296
38317
|
class: 'vxe-pager--jump'
|
|
38297
38318
|
}, [isFull ? h('span', {
|
|
38298
38319
|
class: 'vxe-pager--goto-text'
|
|
38299
|
-
}, conf.i18n('vxe.pager.goto')) : null, h('input', {
|
|
38320
|
+
}, conf.i18n('vxe.pager.goto')) : null, h('vxe-input', {
|
|
38300
38321
|
class: 'vxe-pager--goto',
|
|
38301
|
-
|
|
38302
|
-
value: this.inpCurrPage
|
|
38303
|
-
|
|
38304
|
-
|
|
38305
|
-
type: '
|
|
38306
|
-
|
|
38322
|
+
props: {
|
|
38323
|
+
value: this.inpCurrPage,
|
|
38324
|
+
placeholder: conf.i18n('vxe.pager.gotoTitle'),
|
|
38325
|
+
align: 'center',
|
|
38326
|
+
type: 'integer',
|
|
38327
|
+
max: this.pageCount,
|
|
38328
|
+
min: 1,
|
|
38329
|
+
controls: false
|
|
38307
38330
|
},
|
|
38308
38331
|
on: {
|
|
38309
|
-
|
|
38332
|
+
modelValue: function modelValue(val) {
|
|
38333
|
+
_this3.inpCurrPage = val;
|
|
38334
|
+
},
|
|
38310
38335
|
keydown: this.jumpKeydownEvent,
|
|
38311
38336
|
blur: this.triggerJumpEvent
|
|
38312
38337
|
}
|
|
@@ -38330,7 +38355,7 @@ var Toolbar = VxeToolbar;
|
|
|
38330
38355
|
},
|
|
38331
38356
|
// number
|
|
38332
38357
|
renderPageBtn: function renderPageBtn(h, showJump) {
|
|
38333
|
-
var
|
|
38358
|
+
var _this4 = this;
|
|
38334
38359
|
var numList = this.numList,
|
|
38335
38360
|
currentPage = this.currentPage,
|
|
38336
38361
|
pageCount = this.pageCount,
|
|
@@ -38356,7 +38381,7 @@ var Toolbar = VxeToolbar;
|
|
|
38356
38381
|
},
|
|
38357
38382
|
on: {
|
|
38358
38383
|
click: function click() {
|
|
38359
|
-
return
|
|
38384
|
+
return _this4.jumpPage(1);
|
|
38360
38385
|
}
|
|
38361
38386
|
}
|
|
38362
38387
|
}, 1), this.renderPrevJump(h, 'span'));
|
|
@@ -38373,7 +38398,7 @@ var Toolbar = VxeToolbar;
|
|
|
38373
38398
|
},
|
|
38374
38399
|
on: {
|
|
38375
38400
|
click: function click() {
|
|
38376
|
-
return
|
|
38401
|
+
return _this4.jumpPage(number);
|
|
38377
38402
|
}
|
|
38378
38403
|
},
|
|
38379
38404
|
key: number
|
|
@@ -38388,7 +38413,7 @@ var Toolbar = VxeToolbar;
|
|
|
38388
38413
|
},
|
|
38389
38414
|
on: {
|
|
38390
38415
|
click: function click() {
|
|
38391
|
-
return
|
|
38416
|
+
return _this4.jumpPage(pageCount);
|
|
38392
38417
|
}
|
|
38393
38418
|
}
|
|
38394
38419
|
}, pageCount));
|
|
@@ -38455,25 +38480,24 @@ var Toolbar = VxeToolbar;
|
|
|
38455
38480
|
currentPage: currentPage
|
|
38456
38481
|
});
|
|
38457
38482
|
},
|
|
38458
|
-
|
|
38459
|
-
|
|
38460
|
-
|
|
38461
|
-
|
|
38462
|
-
if (
|
|
38463
|
-
|
|
38464
|
-
} else if (evnt.keyCode === 38) {
|
|
38465
|
-
evnt.preventDefault();
|
|
38483
|
+
jumpKeydownEvent: function jumpKeydownEvent(params) {
|
|
38484
|
+
var $event = params.$event;
|
|
38485
|
+
if ($event.keyCode === 13) {
|
|
38486
|
+
this.triggerJumpEvent(params);
|
|
38487
|
+
} else if ($event.keyCode === 38) {
|
|
38488
|
+
$event.preventDefault();
|
|
38466
38489
|
this.nextPage();
|
|
38467
|
-
} else if (
|
|
38468
|
-
|
|
38490
|
+
} else if ($event.keyCode === 40) {
|
|
38491
|
+
$event.preventDefault();
|
|
38469
38492
|
this.prevPage();
|
|
38470
38493
|
}
|
|
38471
38494
|
},
|
|
38472
|
-
triggerJumpEvent: function triggerJumpEvent(
|
|
38473
|
-
var
|
|
38495
|
+
triggerJumpEvent: function triggerJumpEvent(params) {
|
|
38496
|
+
var $event = params.$event;
|
|
38497
|
+
var value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger($event.target.value);
|
|
38474
38498
|
var current = value <= 0 ? 1 : value >= this.pageCount ? this.pageCount : value;
|
|
38475
38499
|
var currPage = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(current);
|
|
38476
|
-
|
|
38500
|
+
$event.target.value = currPage;
|
|
38477
38501
|
this.inpCurrPage = currPage;
|
|
38478
38502
|
this.jumpPage(current);
|
|
38479
38503
|
}
|
|
@@ -42797,6 +42821,7 @@ var Pulldown = VxePulldown;
|
|
|
42797
42821
|
},
|
|
42798
42822
|
pager: {
|
|
42799
42823
|
goto: '前往',
|
|
42824
|
+
gotoTitle: '页数',
|
|
42800
42825
|
pagesize: '{0}条/页',
|
|
42801
42826
|
total: '共 {0} 条记录',
|
|
42802
42827
|
pageClassifier: '页',
|