vxe-table 4.3.0-beta.9 → 4.3.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/README.en.md +3 -3
- package/README.md +3 -3
- package/README.zh-TW.md +3 -3
- package/es/checkbox/src/checkbox.js +20 -7
- package/es/checkbox/src/group.js +14 -2
- package/es/checkbox/style.css +1 -1
- package/es/export/style.css +1 -1
- package/es/filter/style.css +1 -1
- package/es/form/src/form.js +1 -1
- package/es/form/style.css +1 -0
- package/es/grid/style.css +1 -1
- package/es/icon/src/icon.js +3 -2
- package/es/icon/style.css +69 -10
- package/es/list/src/list.js +1 -1
- package/es/loading/index.d.ts +4 -0
- package/es/loading/src/loading.js +33 -23
- package/es/loading/style.css +98 -0
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/locale/lang/zh-TC.js +1 -1
- package/es/modal/src/modal.js +1 -1
- package/es/modal/style.css +2 -2
- package/es/pager/style.css +1 -1
- package/es/select/src/select.js +25 -3
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/body.js +17 -10
- package/es/table/src/props.js +2 -0
- package/es/table/src/table.js +8 -1
- package/es/table/style.css +93 -1
- package/es/toolbar/src/toolbar.js +7 -6
- package/es/toolbar/style.css +2 -2
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +71 -11
- package/es/vxe-checkbox/style.css +1 -1
- package/es/vxe-form/style.css +1 -0
- package/es/vxe-grid/style.css +1 -1
- package/es/vxe-icon/style.css +69 -10
- package/es/vxe-loading/index.d.ts +4 -0
- package/es/vxe-loading/index.js +3 -0
- package/es/vxe-loading/style.css +98 -0
- package/es/vxe-modal/style.css +2 -2
- package/es/vxe-module-export/style.css +1 -1
- package/es/vxe-module-filter/style.css +1 -1
- package/es/vxe-pager/style.css +1 -1
- package/es/vxe-table/style.css +93 -1
- package/es/vxe-toolbar/style.css +2 -2
- package/lib/checkbox/src/checkbox.js +23 -7
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +21 -1
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox/style/style.css +1 -1
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/export/style/style.css +1 -1
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/style/style.css +1 -1
- package/lib/filter/style/style.min.css +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +1 -0
- package/lib/form/style/style.min.css +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/icon/src/icon.js +3 -2
- package/lib/icon/src/icon.min.js +1 -1
- package/lib/icon/style/style.css +69 -10
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +155 -51
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +1 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.d.ts +4 -0
- package/lib/loading/src/loading.js +28 -18
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/loading/style/index.js +1 -0
- package/lib/loading/style/style.css +98 -0
- package/lib/loading/style/style.min.css +1 -0
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -1
- package/lib/locale/lang/zh-TC.js +1 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -1
- package/lib/modal/src/modal.js +1 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -2
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/select/src/select.js +37 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +16 -7
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/props.js +2 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +8 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +93 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +7 -6
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +2 -2
- package/lib/toolbar/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/style/style.css +71 -11
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-checkbox/style/style.css +1 -1
- package/lib/vxe-checkbox/style/style.min.css +1 -1
- package/lib/vxe-form/style/style.css +1 -0
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-grid/style/style.css +1 -1
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +69 -10
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-loading/index.d.ts +4 -0
- package/lib/vxe-loading/index.js +30 -0
- package/lib/vxe-loading/index.min.js +1 -0
- package/lib/vxe-loading/style/style.css +98 -0
- package/lib/vxe-loading/style/style.min.css +1 -0
- package/lib/vxe-modal/style/style.css +2 -2
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-module-export/style/style.css +1 -1
- package/lib/vxe-module-export/style/style.min.css +1 -1
- package/lib/vxe-module-filter/style/style.css +1 -1
- package/lib/vxe-module-filter/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +1 -1
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +93 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/style/style.css +2 -2
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/checkbox/src/checkbox.ts +20 -7
- package/packages/checkbox/src/group.ts +18 -3
- package/packages/form/src/form.ts +1 -1
- package/packages/icon/src/icon.ts +3 -2
- package/packages/list/src/list.ts +1 -1
- package/packages/loading/index.d.ts +4 -0
- package/packages/loading/src/loading.ts +34 -22
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/locale/lang/zh-TC.ts +1 -1
- package/packages/modal/src/modal.ts +1 -1
- package/packages/select/src/select.ts +27 -3
- package/packages/table/src/body.ts +15 -8
- package/packages/table/src/props.ts +2 -0
- package/packages/table/src/table.ts +9 -1
- package/packages/toolbar/src/toolbar.ts +7 -6
- package/styles/base/checked.scss +1 -1
- package/styles/footer.scss +0 -22
- package/styles/form.scss +1 -0
- package/styles/icon.scss +91 -15
- package/styles/loading.scss +3 -1
- package/styles/modules.scss +1 -6
- package/styles/table.scss +28 -0
- package/styles/variable.scss +2 -1
- package/types/all.d.ts +4 -2
- package/types/checkbox-group.d.ts +8 -1
- package/types/icon.d.ts +2 -0
- package/types/loading.d.ts +10 -0
- package/types/select.d.ts +2 -0
- package/types/table.d.ts +9 -0
- package/types/toolbar.d.ts +6 -1
- package/types/v-x-e-table/index.d.ts +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -8872,7 +8872,7 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
8872
8872
|
|
|
8873
8873
|
|
|
8874
8874
|
function getLog(message, params) {
|
|
8875
|
-
return "[vxe-table v".concat("4.3.
|
|
8875
|
+
return "[vxe-table v".concat("4.3.2", "] ").concat(src_conf.i18n(message, params));
|
|
8876
8876
|
}
|
|
8877
8877
|
|
|
8878
8878
|
function outLog(type) {
|
|
@@ -10906,7 +10906,7 @@ var v_x_e_table_config = new v_x_e_table_VXETableConfig();
|
|
|
10906
10906
|
var v = 'v4';
|
|
10907
10907
|
var VXETable = {
|
|
10908
10908
|
v: v,
|
|
10909
|
-
version: "4.3.
|
|
10909
|
+
version: "4.3.2",
|
|
10910
10910
|
setup: setup_setup,
|
|
10911
10911
|
interceptor: interceptor,
|
|
10912
10912
|
renderer: renderer,
|
|
@@ -13815,25 +13815,35 @@ function useSize(props) {
|
|
|
13815
13815
|
/* harmony default export */ var src_loading = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
13816
13816
|
name: 'VxeLoading',
|
|
13817
13817
|
props: {
|
|
13818
|
-
|
|
13818
|
+
modelValue: Boolean,
|
|
13819
|
+
icon: String,
|
|
13820
|
+
text: String
|
|
13819
13821
|
},
|
|
13820
|
-
|
|
13821
|
-
var
|
|
13822
|
-
|
|
13823
|
-
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
13833
|
-
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13822
|
+
setup: function setup(props) {
|
|
13823
|
+
var computeLoadingIcon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
13824
|
+
return props.icon || src_conf.icon.LOADING;
|
|
13825
|
+
});
|
|
13826
|
+
var computeLoadingText = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
13827
|
+
var loadingText = src_conf.loadingText;
|
|
13828
|
+
return props.text || (loadingText === null ? loadingText : src_conf.i18n('vxe.loading.text'));
|
|
13829
|
+
});
|
|
13830
|
+
return function () {
|
|
13831
|
+
var loadingIcon = computeLoadingIcon.value;
|
|
13832
|
+
var loadingText = computeLoadingText.value;
|
|
13833
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
13834
|
+
class: ['vxe-loading', {
|
|
13835
|
+
'is--visible': props.modelValue
|
|
13836
|
+
}]
|
|
13837
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
13838
|
+
class: 'vxe-loading--chunk'
|
|
13839
|
+
}, [loadingIcon ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('i', {
|
|
13840
|
+
class: loadingIcon
|
|
13841
|
+
}) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
13842
|
+
class: 'vxe-loading--spinner'
|
|
13843
|
+
}), loadingText ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
13844
|
+
class: 'vxe-loading--text'
|
|
13845
|
+
}, "".concat(loadingText)) : null])]);
|
|
13846
|
+
};
|
|
13837
13847
|
}
|
|
13838
13848
|
}));
|
|
13839
13849
|
// CONCATENATED MODULE: ./packages/loading/index.ts
|
|
@@ -14928,7 +14938,7 @@ var msgQueue = [];
|
|
|
14928
14938
|
*/
|
|
14929
14939
|
contVNs.push(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])(packages_loading, {
|
|
14930
14940
|
class: 'vxe-modal--loading',
|
|
14931
|
-
|
|
14941
|
+
modelValue: props.loading
|
|
14932
14942
|
}));
|
|
14933
14943
|
}
|
|
14934
14944
|
|
|
@@ -17860,17 +17870,36 @@ var quarterSize = 8;
|
|
|
17860
17870
|
var checkboxMethods = {};
|
|
17861
17871
|
var computeSize = useSize(props);
|
|
17862
17872
|
var $xecheckboxgroup = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('$xecheckboxgroup', null);
|
|
17863
|
-
var
|
|
17864
|
-
|
|
17873
|
+
var computeIsChecked = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
17874
|
+
if ($xecheckboxgroup) {
|
|
17875
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.includes($xecheckboxgroup.props.modelValue, props.label);
|
|
17876
|
+
}
|
|
17877
|
+
|
|
17878
|
+
return props.modelValue === props.checkedValue;
|
|
17865
17879
|
});
|
|
17866
|
-
var
|
|
17867
|
-
|
|
17880
|
+
var computeIsDisabled = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
17881
|
+
if (props.disabled) {
|
|
17882
|
+
return true;
|
|
17883
|
+
}
|
|
17884
|
+
|
|
17885
|
+
if ($xecheckboxgroup) {
|
|
17886
|
+
var groupProps = $xecheckboxgroup.props;
|
|
17887
|
+
|
|
17888
|
+
var _$xecheckboxgroup$get = $xecheckboxgroup.getComputeMaps(),
|
|
17889
|
+
computeIsMaximize = _$xecheckboxgroup$get.computeIsMaximize;
|
|
17890
|
+
|
|
17891
|
+
var isMaximize = computeIsMaximize.value;
|
|
17892
|
+
var isChecked = computeIsChecked.value;
|
|
17893
|
+
return groupProps.disabled || isMaximize && !isChecked;
|
|
17894
|
+
}
|
|
17895
|
+
|
|
17896
|
+
return false;
|
|
17868
17897
|
});
|
|
17869
17898
|
|
|
17870
17899
|
var changeEvent = function changeEvent(evnt) {
|
|
17871
17900
|
var checkedValue = props.checkedValue,
|
|
17872
17901
|
uncheckedValue = props.uncheckedValue;
|
|
17873
|
-
var isDisabled =
|
|
17902
|
+
var isDisabled = computeIsDisabled.value;
|
|
17874
17903
|
|
|
17875
17904
|
if (!isDisabled) {
|
|
17876
17905
|
var checked = evnt.target.checked;
|
|
@@ -17908,8 +17937,8 @@ var quarterSize = 8;
|
|
|
17908
17937
|
var _ref;
|
|
17909
17938
|
|
|
17910
17939
|
var vSize = computeSize.value;
|
|
17911
|
-
var isDisabled =
|
|
17912
|
-
var isChecked =
|
|
17940
|
+
var isDisabled = computeIsDisabled.value;
|
|
17941
|
+
var isChecked = computeIsChecked.value;
|
|
17913
17942
|
var indeterminate = props.indeterminate;
|
|
17914
17943
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('label', {
|
|
17915
17944
|
class: ['vxe-checkbox', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--indeterminate', indeterminate), _defineProperty(_ref, 'is--disabled', isDisabled), _defineProperty(_ref, 'is--checked', isChecked), _ref)],
|
|
@@ -17991,6 +18020,10 @@ function getOptUniqueId() {
|
|
|
17991
18020
|
optionGroupProps: Object,
|
|
17992
18021
|
optionConfig: Object,
|
|
17993
18022
|
className: [String, Function],
|
|
18023
|
+
max: {
|
|
18024
|
+
type: [String, Number],
|
|
18025
|
+
default: null
|
|
18026
|
+
},
|
|
17994
18027
|
size: {
|
|
17995
18028
|
type: String,
|
|
17996
18029
|
default: function _default() {
|
|
@@ -18085,6 +18118,17 @@ function getOptUniqueId() {
|
|
|
18085
18118
|
var groupPropsOpts = computeGroupPropsOpts.value;
|
|
18086
18119
|
return groupPropsOpts.options || 'options';
|
|
18087
18120
|
});
|
|
18121
|
+
var computeIsMaximize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
18122
|
+
var modelValue = props.modelValue,
|
|
18123
|
+
multiple = props.multiple,
|
|
18124
|
+
max = props.max;
|
|
18125
|
+
|
|
18126
|
+
if (multiple && max) {
|
|
18127
|
+
return (modelValue ? modelValue.length : 0) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(max);
|
|
18128
|
+
}
|
|
18129
|
+
|
|
18130
|
+
return false;
|
|
18131
|
+
});
|
|
18088
18132
|
var computeOptionOpts = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
18089
18133
|
return Object.assign({}, src_conf.select.optionConfig, props.optionConfig);
|
|
18090
18134
|
});
|
|
@@ -18782,6 +18826,24 @@ function getOptUniqueId() {
|
|
|
18782
18826
|
}
|
|
18783
18827
|
};
|
|
18784
18828
|
|
|
18829
|
+
var checkOptionDisabled = function checkOptionDisabled(isSelected, option, group) {
|
|
18830
|
+
if (option.disabled) {
|
|
18831
|
+
return true;
|
|
18832
|
+
}
|
|
18833
|
+
|
|
18834
|
+
if (group && group.disabled) {
|
|
18835
|
+
return true;
|
|
18836
|
+
}
|
|
18837
|
+
|
|
18838
|
+
var isMaximize = computeIsMaximize.value;
|
|
18839
|
+
|
|
18840
|
+
if (isMaximize && !isSelected) {
|
|
18841
|
+
return true;
|
|
18842
|
+
}
|
|
18843
|
+
|
|
18844
|
+
return false;
|
|
18845
|
+
};
|
|
18846
|
+
|
|
18785
18847
|
var renderOption = function renderOption(list, group) {
|
|
18786
18848
|
var optionKey = props.optionKey,
|
|
18787
18849
|
modelValue = props.modelValue,
|
|
@@ -18795,9 +18857,10 @@ function getOptUniqueId() {
|
|
|
18795
18857
|
return list.map(function (option, cIndex) {
|
|
18796
18858
|
var slots = option.slots,
|
|
18797
18859
|
className = option.className;
|
|
18798
|
-
var isVisible = !isGroup || isOptionVisible(option);
|
|
18799
|
-
var isDisabled = group && group.disabled || option.disabled;
|
|
18800
18860
|
var optionValue = option[valueField];
|
|
18861
|
+
var isSelected = multiple ? modelValue && modelValue.indexOf(optionValue) > -1 : modelValue === optionValue;
|
|
18862
|
+
var isVisible = !isGroup || isOptionVisible(option);
|
|
18863
|
+
var isDisabled = checkOptionDisabled(isSelected, option, group);
|
|
18801
18864
|
var optid = getOptid(option);
|
|
18802
18865
|
var defaultSlot = slots ? slots.default : null;
|
|
18803
18866
|
return isVisible ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
@@ -18807,7 +18870,7 @@ function getOptUniqueId() {
|
|
|
18807
18870
|
$select: $xeselect
|
|
18808
18871
|
}) : className : '', {
|
|
18809
18872
|
'is--disabled': isDisabled,
|
|
18810
|
-
'is--selected':
|
|
18873
|
+
'is--selected': isSelected,
|
|
18811
18874
|
'is--hover': currentValue === optionValue
|
|
18812
18875
|
}],
|
|
18813
18876
|
// attrs
|
|
@@ -22901,7 +22964,8 @@ var Validator = VxeModuleValidator;
|
|
|
22901
22964
|
/* harmony default export */ var src_icon = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
22902
22965
|
name: 'VxeIcon',
|
|
22903
22966
|
props: {
|
|
22904
|
-
name: String
|
|
22967
|
+
name: String,
|
|
22968
|
+
roll: Boolean
|
|
22905
22969
|
},
|
|
22906
22970
|
emits: ['click'],
|
|
22907
22971
|
setup: function setup(props, _ref) {
|
|
@@ -22915,7 +22979,7 @@ var Validator = VxeModuleValidator;
|
|
|
22915
22979
|
|
|
22916
22980
|
return function () {
|
|
22917
22981
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('i', {
|
|
22918
|
-
class: "vxe-icon-".concat(props.name),
|
|
22982
|
+
class: ["vxe-icon-".concat(props.name), props.roll ? 'roll' : ''],
|
|
22919
22983
|
onClick: clickEvent
|
|
22920
22984
|
});
|
|
22921
22985
|
};
|
|
@@ -24365,6 +24429,8 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
24365
24429
|
validConfig: Object,
|
|
24366
24430
|
// 校验规则配置项
|
|
24367
24431
|
editRules: Object,
|
|
24432
|
+
// 加载中配置项
|
|
24433
|
+
loadingConfig: Object,
|
|
24368
24434
|
// 空内容渲染配置项
|
|
24369
24435
|
emptyRender: Object,
|
|
24370
24436
|
// 自定义列配置项
|
|
@@ -26160,13 +26226,13 @@ dynamicApp.component(grid.name, grid);
|
|
|
26160
26226
|
var refreshOpts = computeRefreshOpts.value;
|
|
26161
26227
|
|
|
26162
26228
|
if (!isRefresh) {
|
|
26163
|
-
var
|
|
26229
|
+
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
26164
26230
|
|
|
26165
|
-
if (
|
|
26231
|
+
if (queryMethod) {
|
|
26166
26232
|
reactData.isRefresh = true;
|
|
26167
26233
|
|
|
26168
26234
|
try {
|
|
26169
|
-
Promise.resolve(
|
|
26235
|
+
Promise.resolve(queryMethod({})).catch(function (e) {
|
|
26170
26236
|
return e;
|
|
26171
26237
|
}).then(function () {
|
|
26172
26238
|
reactData.isRefresh = false;
|
|
@@ -26176,7 +26242,7 @@ dynamicApp.component(grid.name, grid);
|
|
|
26176
26242
|
}
|
|
26177
26243
|
} else if ($xegrid) {
|
|
26178
26244
|
reactData.isRefresh = true;
|
|
26179
|
-
$xegrid.commitProxy('reload').catch(function (e) {
|
|
26245
|
+
$xegrid.commitProxy(refreshOpts.code || 'reload').catch(function (e) {
|
|
26180
26246
|
return e;
|
|
26181
26247
|
}).then(function () {
|
|
26182
26248
|
reactData.isRefresh = false;
|
|
@@ -26534,9 +26600,10 @@ dynamicApp.component(grid.name, grid);
|
|
|
26534
26600
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
26535
26601
|
var refresh = props.refresh;
|
|
26536
26602
|
var refreshOpts = computeRefreshOpts.value;
|
|
26603
|
+
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
26537
26604
|
|
|
26538
|
-
if (refresh && !$xegrid && !
|
|
26539
|
-
warnLog('vxe.error.notFunc', ['
|
|
26605
|
+
if (refresh && !$xegrid && !queryMethod) {
|
|
26606
|
+
warnLog('vxe.error.notFunc', ['queryMethod']);
|
|
26540
26607
|
}
|
|
26541
26608
|
});
|
|
26542
26609
|
|
|
@@ -27231,11 +27298,16 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
27231
27298
|
|
|
27232
27299
|
|
|
27233
27300
|
|
|
27301
|
+
|
|
27234
27302
|
/* harmony default export */ var checkbox_src_group = (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["defineComponent"])({
|
|
27235
27303
|
name: 'VxeCheckboxGroup',
|
|
27236
27304
|
props: {
|
|
27237
27305
|
modelValue: Array,
|
|
27238
27306
|
disabled: Boolean,
|
|
27307
|
+
max: {
|
|
27308
|
+
type: [String, Number],
|
|
27309
|
+
default: null
|
|
27310
|
+
},
|
|
27239
27311
|
size: {
|
|
27240
27312
|
type: String,
|
|
27241
27313
|
default: function _default() {
|
|
@@ -27250,10 +27322,26 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
27250
27322
|
var $xeform = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('$xeform', null);
|
|
27251
27323
|
var $xeformiteminfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["inject"])('$xeformiteminfo', null);
|
|
27252
27324
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.uniqueId();
|
|
27325
|
+
var computeIsMaximize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27326
|
+
var modelValue = props.modelValue,
|
|
27327
|
+
max = props.max;
|
|
27328
|
+
|
|
27329
|
+
if (max) {
|
|
27330
|
+
return (modelValue ? modelValue.length : 0) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toNumber(max);
|
|
27331
|
+
}
|
|
27332
|
+
|
|
27333
|
+
return false;
|
|
27334
|
+
});
|
|
27335
|
+
var computeMaps = {
|
|
27336
|
+
computeIsMaximize: computeIsMaximize
|
|
27337
|
+
};
|
|
27253
27338
|
var $xecheckboxgroup = {
|
|
27254
27339
|
xID: xID,
|
|
27255
27340
|
props: props,
|
|
27256
|
-
context: context
|
|
27341
|
+
context: context,
|
|
27342
|
+
getComputeMaps: function getComputeMaps() {
|
|
27343
|
+
return computeMaps;
|
|
27344
|
+
}
|
|
27257
27345
|
};
|
|
27258
27346
|
useSize(props);
|
|
27259
27347
|
var checkboxGroupMethods = {
|
|
@@ -29587,7 +29675,7 @@ function getResetValue(value, resetValue) {
|
|
|
29587
29675
|
*/
|
|
29588
29676
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])(packages_loading, {
|
|
29589
29677
|
class: 'vxe-form--loading',
|
|
29590
|
-
|
|
29678
|
+
modelValue: loading
|
|
29591
29679
|
}),
|
|
29592
29680
|
/**
|
|
29593
29681
|
* 工具提示
|
|
@@ -30802,7 +30890,7 @@ function createResizeEvent(callback) {
|
|
|
30802
30890
|
*/
|
|
30803
30891
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])(packages_loading, {
|
|
30804
30892
|
class: 'vxe-list--loading',
|
|
30805
|
-
|
|
30893
|
+
modelValue: loading
|
|
30806
30894
|
})]);
|
|
30807
30895
|
};
|
|
30808
30896
|
|
|
@@ -31239,6 +31327,7 @@ var lineOffsetSizes = {
|
|
|
31239
31327
|
computeKeyboardOpts = _$xetable$getComputeM.computeKeyboardOpts,
|
|
31240
31328
|
computeTooltipOpts = _$xetable$getComputeM.computeTooltipOpts,
|
|
31241
31329
|
computeRadioOpts = _$xetable$getComputeM.computeRadioOpts,
|
|
31330
|
+
computeExpandOpts = _$xetable$getComputeM.computeExpandOpts,
|
|
31242
31331
|
computeTreeOpts = _$xetable$getComputeM.computeTreeOpts,
|
|
31243
31332
|
computeCheckboxOpts = _$xetable$getComputeM.computeCheckboxOpts,
|
|
31244
31333
|
computeValidOpts = _$xetable$getComputeM.computeValidOpts,
|
|
@@ -31699,12 +31788,16 @@ var lineOffsetSizes = {
|
|
|
31699
31788
|
}))); // 如果行被展开了
|
|
31700
31789
|
|
|
31701
31790
|
if (isExpandRow) {
|
|
31702
|
-
var
|
|
31791
|
+
var expandOpts = computeExpandOpts.value;
|
|
31792
|
+
var expandHeight = expandOpts.height;
|
|
31793
|
+
var cellStyle = {};
|
|
31794
|
+
|
|
31795
|
+
if (expandHeight) {
|
|
31796
|
+
cellStyle.height = "".concat(expandHeight, "px");
|
|
31797
|
+
}
|
|
31703
31798
|
|
|
31704
31799
|
if (treeConfig) {
|
|
31705
|
-
cellStyle =
|
|
31706
|
-
paddingLeft: "".concat(rowLevel * treeOpts.indent + 30, "px")
|
|
31707
|
-
};
|
|
31800
|
+
cellStyle.paddingLeft = "".concat(rowLevel * treeOpts.indent + 30, "px");
|
|
31708
31801
|
}
|
|
31709
31802
|
|
|
31710
31803
|
var showOverflow = expandColumn.showOverflow;
|
|
@@ -31726,13 +31819,17 @@ var lineOffsetSizes = {
|
|
|
31726
31819
|
key: "expand_".concat(rowid),
|
|
31727
31820
|
style: rowStyle ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(rowStyle) ? rowStyle(expandParams) : rowStyle : null
|
|
31728
31821
|
}, trOn), [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('td', {
|
|
31729
|
-
class:
|
|
31822
|
+
class: {
|
|
31823
|
+
'vxe-body--expanded-column': 1,
|
|
31730
31824
|
'fixed--hidden': fixedType && !hasFixedColumn,
|
|
31731
31825
|
'col--ellipsis': hasEllipsis
|
|
31732
|
-
}
|
|
31826
|
+
},
|
|
31733
31827
|
colspan: tableColumn.length
|
|
31734
31828
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
31735
|
-
class:
|
|
31829
|
+
class: {
|
|
31830
|
+
'vxe-body--expanded-cell': 1,
|
|
31831
|
+
'is--ellipsis': expandHeight
|
|
31832
|
+
},
|
|
31736
31833
|
style: cellStyle
|
|
31737
31834
|
}, [expandColumn.renderData(expandParams)])])]));
|
|
31738
31835
|
} // 如果是树形表格
|
|
@@ -33488,6 +33585,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
33488
33585
|
var computeEmptyOpts = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
33489
33586
|
return Object.assign({}, src_conf.table.emptyRender, props.emptyRender);
|
|
33490
33587
|
});
|
|
33588
|
+
var computeLoadingOpts = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
33589
|
+
return Object.assign({}, src_conf.table.loadingConfig, props.loadingConfig);
|
|
33590
|
+
});
|
|
33491
33591
|
var computeCellOffsetWidth = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
33492
33592
|
return props.border ? Math.max(2, Math.ceil(reactData.scrollbarWidth / reactData.tableColumn.length)) : 1;
|
|
33493
33593
|
});
|
|
@@ -33587,6 +33687,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
33587
33687
|
computeExpandOpts: computeExpandOpts,
|
|
33588
33688
|
computeTreeOpts: computeTreeOpts,
|
|
33589
33689
|
computeEmptyOpts: computeEmptyOpts,
|
|
33690
|
+
computeLoadingOpts: computeLoadingOpts,
|
|
33590
33691
|
computeCustomOpts: computeCustomOpts,
|
|
33591
33692
|
computeIsAllCheckboxDisabled: computeIsAllCheckboxDisabled
|
|
33592
33693
|
};
|
|
@@ -40541,6 +40642,7 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
40541
40642
|
var mouseOpts = computeMouseOpts.value;
|
|
40542
40643
|
var validOpts = computeValidOpts.value;
|
|
40543
40644
|
var validTipOpts = computeValidTipOpts.value;
|
|
40645
|
+
var loadingOpts = computeLoadingOpts.value;
|
|
40544
40646
|
var isMenu = computeIsMenu.value;
|
|
40545
40647
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])('div', {
|
|
40546
40648
|
ref: refElem,
|
|
@@ -40622,7 +40724,9 @@ var visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE';
|
|
|
40622
40724
|
*/
|
|
40623
40725
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["h"])(packages_loading, {
|
|
40624
40726
|
class: 'vxe-table--loading',
|
|
40625
|
-
|
|
40727
|
+
modelValue: loading,
|
|
40728
|
+
icon: loadingOpts.icon,
|
|
40729
|
+
text: loadingOpts.text
|
|
40626
40730
|
}),
|
|
40627
40731
|
/**
|
|
40628
40732
|
* 筛选
|
|
@@ -40700,7 +40804,7 @@ dynamicApp.component(table.name, table);
|
|
|
40700
40804
|
/* harmony default export */ var zh_CN = ({
|
|
40701
40805
|
vxe: {
|
|
40702
40806
|
loading: {
|
|
40703
|
-
text: '
|
|
40807
|
+
text: '加载中...'
|
|
40704
40808
|
},
|
|
40705
40809
|
error: {
|
|
40706
40810
|
groupFixed: '如果使用分组表头,固定列必须按组设置',
|