mali-ui-plus 1.0.153 → 1.0.154
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/mali-ui-plus.common.js +21 -13
- package/lib/mali-ui-plus.umd.js +21 -13
- package/lib/mali-ui-plus.umd.min.js +2 -2
- package/package.json +1 -1
|
@@ -69790,10 +69790,6 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69790
69790
|
}) {
|
|
69791
69791
|
const props = __props;
|
|
69792
69792
|
const eTreeRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
69793
|
-
const selectRowMaps = {
|
|
69794
|
-
checked: [],
|
|
69795
|
-
halfChecked: []
|
|
69796
|
-
};
|
|
69797
69793
|
const selectRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.checkRowKeys || []);
|
|
69798
69794
|
const checkedRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
69799
69795
|
const expandRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
@@ -69866,7 +69862,6 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69866
69862
|
rows.push(item);
|
|
69867
69863
|
list.push(item[nodeOts.key]);
|
|
69868
69864
|
});
|
|
69869
|
-
selectRowMaps.checked = list;
|
|
69870
69865
|
selectRowKeys.value = list;
|
|
69871
69866
|
emit('update:checkRowKeys', list);
|
|
69872
69867
|
emit('checkbox-all', {
|
|
@@ -69945,6 +69940,7 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69945
69940
|
};
|
|
69946
69941
|
const checkEvent = (row, checked) => {
|
|
69947
69942
|
const checkedKeys = eTreeRef.value.getCheckedKeys();
|
|
69943
|
+
checkedRowKeys.value = checkedKeys;
|
|
69948
69944
|
emit('update:checkRowKeys', checkedKeys);
|
|
69949
69945
|
emit('checkbox-change', {
|
|
69950
69946
|
row,
|
|
@@ -69956,7 +69952,8 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69956
69952
|
const checkStrictlyEvent = (row, checked) => {
|
|
69957
69953
|
const nodeOts = nodeOpts.value;
|
|
69958
69954
|
const operKeys = {};
|
|
69959
|
-
|
|
69955
|
+
const checkedKeys = eTreeRef.value.getCheckedKeys();
|
|
69956
|
+
let checkKeys = [...checkedKeys];
|
|
69960
69957
|
if (props.indeterminateToChecked) {
|
|
69961
69958
|
if (row.children && row.children.length > 0) {
|
|
69962
69959
|
xe_utils_default().eachTree([row], item => {
|
|
@@ -69974,13 +69971,13 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69974
69971
|
} else {
|
|
69975
69972
|
checkKeys = checkKeys.filter(key => !operKeys[key]);
|
|
69976
69973
|
}
|
|
69977
|
-
selectRowMaps.checked = checkKeys;
|
|
69978
69974
|
}
|
|
69979
|
-
|
|
69975
|
+
checkedRowKeys.value = checkKeys;
|
|
69976
|
+
emit('update:checkRowKeys', checkKeys);
|
|
69980
69977
|
emit('checkbox-change', {
|
|
69981
69978
|
row,
|
|
69982
69979
|
checked,
|
|
69983
|
-
checkedKeys:
|
|
69980
|
+
checkedKeys: checkKeys,
|
|
69984
69981
|
checkedRows: []
|
|
69985
69982
|
});
|
|
69986
69983
|
};
|
|
@@ -75704,11 +75701,13 @@ VXETable.renderer.mixin({
|
|
|
75704
75701
|
} = column;
|
|
75705
75702
|
const {
|
|
75706
75703
|
props,
|
|
75707
|
-
events
|
|
75704
|
+
events,
|
|
75705
|
+
options
|
|
75708
75706
|
} = renderOpts;
|
|
75709
75707
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-cascader"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
75710
75708
|
"modelValue": xe_utils_default().get(row, field)
|
|
75711
75709
|
}, props, {
|
|
75710
|
+
"options": options || (props ? props.options : []),
|
|
75712
75711
|
"onUpdate:modelValue": val => {
|
|
75713
75712
|
xe_utils_default().set(row, field, val);
|
|
75714
75713
|
},
|
|
@@ -76442,12 +76441,14 @@ VXETable.renderer.mixin({
|
|
|
76442
76441
|
} = params;
|
|
76443
76442
|
const {
|
|
76444
76443
|
props,
|
|
76445
|
-
events
|
|
76444
|
+
events,
|
|
76445
|
+
options
|
|
76446
76446
|
} = renderOpts;
|
|
76447
76447
|
const itemValue = xe_utils_default().get(data, field);
|
|
76448
76448
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-cascader"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
76449
76449
|
"modelValue": itemValue
|
|
76450
76450
|
}, props, {
|
|
76451
|
+
"options": options || (props ? props.options : []),
|
|
76451
76452
|
"onUpdate:modelValue": val => {
|
|
76452
76453
|
xe_utils_default().set(data, field, val);
|
|
76453
76454
|
},
|
|
@@ -76915,10 +76916,17 @@ function index_config(options) {
|
|
|
76915
76916
|
return config_0;
|
|
76916
76917
|
}
|
|
76917
76918
|
const MaliUI = {
|
|
76918
|
-
version: "1.0.
|
|
76919
|
+
version: "1.0.153",
|
|
76919
76920
|
install: index_install,
|
|
76920
76921
|
config: index_config,
|
|
76921
|
-
renderer:
|
|
76922
|
+
renderer: {
|
|
76923
|
+
add(name, options) {
|
|
76924
|
+
return index_esm.renderer.add(name, options);
|
|
76925
|
+
},
|
|
76926
|
+
mixin(options) {
|
|
76927
|
+
return index_esm.renderer.mixin(options);
|
|
76928
|
+
}
|
|
76929
|
+
},
|
|
76922
76930
|
MaliUtils: utils,
|
|
76923
76931
|
MaliClipboard: clipboard,
|
|
76924
76932
|
MaliXlsx: xlsx,
|
package/lib/mali-ui-plus.umd.js
CHANGED
|
@@ -69800,10 +69800,6 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69800
69800
|
}) {
|
|
69801
69801
|
const props = __props;
|
|
69802
69802
|
const eTreeRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
69803
|
-
const selectRowMaps = {
|
|
69804
|
-
checked: [],
|
|
69805
|
-
halfChecked: []
|
|
69806
|
-
};
|
|
69807
69803
|
const selectRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(props.checkRowKeys || []);
|
|
69808
69804
|
const checkedRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
69809
69805
|
const expandRowKeys = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)([]);
|
|
@@ -69876,7 +69872,6 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69876
69872
|
rows.push(item);
|
|
69877
69873
|
list.push(item[nodeOts.key]);
|
|
69878
69874
|
});
|
|
69879
|
-
selectRowMaps.checked = list;
|
|
69880
69875
|
selectRowKeys.value = list;
|
|
69881
69876
|
emit('update:checkRowKeys', list);
|
|
69882
69877
|
emit('checkbox-all', {
|
|
@@ -69955,6 +69950,7 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69955
69950
|
};
|
|
69956
69951
|
const checkEvent = (row, checked) => {
|
|
69957
69952
|
const checkedKeys = eTreeRef.value.getCheckedKeys();
|
|
69953
|
+
checkedRowKeys.value = checkedKeys;
|
|
69958
69954
|
emit('update:checkRowKeys', checkedKeys);
|
|
69959
69955
|
emit('checkbox-change', {
|
|
69960
69956
|
row,
|
|
@@ -69966,7 +69962,8 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69966
69962
|
const checkStrictlyEvent = (row, checked) => {
|
|
69967
69963
|
const nodeOts = nodeOpts.value;
|
|
69968
69964
|
const operKeys = {};
|
|
69969
|
-
|
|
69965
|
+
const checkedKeys = eTreeRef.value.getCheckedKeys();
|
|
69966
|
+
let checkKeys = [...checkedKeys];
|
|
69970
69967
|
if (props.indeterminateToChecked) {
|
|
69971
69968
|
if (row.children && row.children.length > 0) {
|
|
69972
69969
|
xe_utils_default().eachTree([row], item => {
|
|
@@ -69984,13 +69981,13 @@ const MlTreevue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
|
69984
69981
|
} else {
|
|
69985
69982
|
checkKeys = checkKeys.filter(key => !operKeys[key]);
|
|
69986
69983
|
}
|
|
69987
|
-
selectRowMaps.checked = checkKeys;
|
|
69988
69984
|
}
|
|
69989
|
-
|
|
69985
|
+
checkedRowKeys.value = checkKeys;
|
|
69986
|
+
emit('update:checkRowKeys', checkKeys);
|
|
69990
69987
|
emit('checkbox-change', {
|
|
69991
69988
|
row,
|
|
69992
69989
|
checked,
|
|
69993
|
-
checkedKeys:
|
|
69990
|
+
checkedKeys: checkKeys,
|
|
69994
69991
|
checkedRows: []
|
|
69995
69992
|
});
|
|
69996
69993
|
};
|
|
@@ -75714,11 +75711,13 @@ VXETable.renderer.mixin({
|
|
|
75714
75711
|
} = column;
|
|
75715
75712
|
const {
|
|
75716
75713
|
props,
|
|
75717
|
-
events
|
|
75714
|
+
events,
|
|
75715
|
+
options
|
|
75718
75716
|
} = renderOpts;
|
|
75719
75717
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-cascader"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
75720
75718
|
"modelValue": xe_utils_default().get(row, field)
|
|
75721
75719
|
}, props, {
|
|
75720
|
+
"options": options || (props ? props.options : []),
|
|
75722
75721
|
"onUpdate:modelValue": val => {
|
|
75723
75722
|
xe_utils_default().set(row, field, val);
|
|
75724
75723
|
},
|
|
@@ -76452,12 +76451,14 @@ VXETable.renderer.mixin({
|
|
|
76452
76451
|
} = params;
|
|
76453
76452
|
const {
|
|
76454
76453
|
props,
|
|
76455
|
-
events
|
|
76454
|
+
events,
|
|
76455
|
+
options
|
|
76456
76456
|
} = renderOpts;
|
|
76457
76457
|
const itemValue = xe_utils_default().get(data, field);
|
|
76458
76458
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-cascader"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
|
|
76459
76459
|
"modelValue": itemValue
|
|
76460
76460
|
}, props, {
|
|
76461
|
+
"options": options || (props ? props.options : []),
|
|
76461
76462
|
"onUpdate:modelValue": val => {
|
|
76462
76463
|
xe_utils_default().set(data, field, val);
|
|
76463
76464
|
},
|
|
@@ -76925,10 +76926,17 @@ function index_config(options) {
|
|
|
76925
76926
|
return config_0;
|
|
76926
76927
|
}
|
|
76927
76928
|
const MaliUI = {
|
|
76928
|
-
version: "1.0.
|
|
76929
|
+
version: "1.0.153",
|
|
76929
76930
|
install: index_install,
|
|
76930
76931
|
config: index_config,
|
|
76931
|
-
renderer:
|
|
76932
|
+
renderer: {
|
|
76933
|
+
add(name, options) {
|
|
76934
|
+
return index_esm.renderer.add(name, options);
|
|
76935
|
+
},
|
|
76936
|
+
mixin(options) {
|
|
76937
|
+
return index_esm.renderer.mixin(options);
|
|
76938
|
+
}
|
|
76939
|
+
},
|
|
76932
76940
|
MaliUtils: utils,
|
|
76933
76941
|
MaliClipboard: clipboard,
|
|
76934
76942
|
MaliXlsx: xlsx,
|