mali-ui-plus 1.0.161 → 1.0.162

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.
@@ -41049,6 +41049,8 @@ const MlTreeSelectvue_type_script_lang_ts_setup_true_hoisted_1 = {
41049
41049
  type: Boolean,
41050
41050
  default: false
41051
41051
  },
41052
+ checkStrictly: Boolean,
41053
+ indeterminateToChecked: Boolean,
41052
41054
  maxTagCount: Number,
41053
41055
  disabled: {
41054
41056
  type: Boolean,
@@ -41166,11 +41168,12 @@ const MlTreeSelectvue_type_script_lang_ts_setup_true_hoisted_1 = {
41166
41168
  data: __props.options,
41167
41169
  props: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(treeProps),
41168
41170
  "node-key": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField),
41171
+ "check-strictly": __props.checkStrictly,
41169
41172
  placeholder: __props.placeholder,
41170
41173
  "show-checkbox": __props.multiple,
41171
41174
  clearable: __props.clearable,
41172
41175
  onChange: changeEvent
41173
- }, null, 8, ["modelValue", "disabled", "multiple", "data", "props", "node-key", "placeholder", "show-checkbox", "clearable"]));
41176
+ }, null, 8, ["modelValue", "disabled", "multiple", "data", "props", "node-key", "check-strictly", "placeholder", "show-checkbox", "clearable"]));
41174
41177
  };
41175
41178
  }
41176
41179
  }));
@@ -75940,6 +75943,62 @@ VXETable.renderer.mixin({
75940
75943
  return selectlabel;
75941
75944
  }
75942
75945
  },
75946
+ /**
75947
+ * 编辑-下拉树选择
75948
+ */
75949
+ MlTreeSelect: {
75950
+ renderEdit(renderOpts, params) {
75951
+ const {
75952
+ row,
75953
+ column,
75954
+ $table
75955
+ } = params;
75956
+ const {
75957
+ field
75958
+ } = column;
75959
+ const {
75960
+ props = {},
75961
+ events,
75962
+ options,
75963
+ optionProps
75964
+ } = renderOpts;
75965
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-tree-select"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
75966
+ "modelValue": xe_utils_default().get(row, field)
75967
+ }, props, {
75968
+ "options": options || props.options,
75969
+ "optionProps": optionProps || props.optionProps,
75970
+ "onUpdate:modelValue": val => {
75971
+ xe_utils_default().set(row, field, val);
75972
+ },
75973
+ "onChange": () => {
75974
+ $table.updateStatus(params);
75975
+ if (events && events.change) {
75976
+ events.change(params);
75977
+ }
75978
+ }
75979
+ }), null);
75980
+ },
75981
+ renderCell(renderOpts, params) {
75982
+ const {
75983
+ row,
75984
+ column
75985
+ } = params;
75986
+ const {
75987
+ field
75988
+ } = column;
75989
+ const {
75990
+ props = {}
75991
+ } = renderOpts;
75992
+ const {
75993
+ multiple
75994
+ } = props;
75995
+ const cellValue = xe_utils_default().get(row, field);
75996
+ const selectlabel = xe_utils_default().map(multiple ? cellValue : [cellValue], value => {
75997
+ return value;
75998
+ }).join(', ');
75999
+ return selectlabel;
76000
+ }
76001
+ },
75943
76002
  /**
75944
76003
  * 编辑-上传
75945
76004
  */
@@ -76702,6 +76761,38 @@ VXETable.renderer.mixin({
76702
76761
  }), null);
76703
76762
  }
76704
76763
  },
76764
+ /**
76765
+ * 编辑-下拉树选择
76766
+ */
76767
+ MlTreeSelect: {
76768
+ renderItemContent(renderOpts, params) {
76769
+ const {
76770
+ data,
76771
+ field
76772
+ } = params;
76773
+ const {
76774
+ props = {},
76775
+ events,
76776
+ options,
76777
+ optionProps
76778
+ } = renderOpts;
76779
+ const itemValue = xe_utils_default().get(data, field);
76780
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-tree-select"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
76781
+ "modelValue": itemValue
76782
+ }, props, {
76783
+ "options": options || props.options,
76784
+ "optionProps": optionProps || props.optionProps,
76785
+ "onUpdate:modelValue": val => {
76786
+ xe_utils_default().set(data, field, val);
76787
+ },
76788
+ "onChange": () => {
76789
+ if (events && events.change) {
76790
+ events.change(params);
76791
+ }
76792
+ }
76793
+ }), null);
76794
+ }
76795
+ },
76705
76796
  /**
76706
76797
  * 编辑-复选框
76707
76798
  */
@@ -77126,7 +77217,7 @@ function index_config(options) {
77126
77217
  return config_0;
77127
77218
  }
77128
77219
  const MaliUI = {
77129
- version: "1.0.160",
77220
+ version: "1.0.161",
77130
77221
  install: index_install,
77131
77222
  config: index_config,
77132
77223
  renderer: {
@@ -41059,6 +41059,8 @@ const MlTreeSelectvue_type_script_lang_ts_setup_true_hoisted_1 = {
41059
41059
  type: Boolean,
41060
41060
  default: false
41061
41061
  },
41062
+ checkStrictly: Boolean,
41063
+ indeterminateToChecked: Boolean,
41062
41064
  maxTagCount: Number,
41063
41065
  disabled: {
41064
41066
  type: Boolean,
@@ -41176,11 +41178,12 @@ const MlTreeSelectvue_type_script_lang_ts_setup_true_hoisted_1 = {
41176
41178
  data: __props.options,
41177
41179
  props: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(treeProps),
41178
41180
  "node-key": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(optValueField),
41181
+ "check-strictly": __props.checkStrictly,
41179
41182
  placeholder: __props.placeholder,
41180
41183
  "show-checkbox": __props.multiple,
41181
41184
  clearable: __props.clearable,
41182
41185
  onChange: changeEvent
41183
- }, null, 8, ["modelValue", "disabled", "multiple", "data", "props", "node-key", "placeholder", "show-checkbox", "clearable"]));
41186
+ }, null, 8, ["modelValue", "disabled", "multiple", "data", "props", "node-key", "check-strictly", "placeholder", "show-checkbox", "clearable"]));
41184
41187
  };
41185
41188
  }
41186
41189
  }));
@@ -75950,6 +75953,62 @@ VXETable.renderer.mixin({
75950
75953
  return selectlabel;
75951
75954
  }
75952
75955
  },
75956
+ /**
75957
+ * 编辑-下拉树选择
75958
+ */
75959
+ MlTreeSelect: {
75960
+ renderEdit(renderOpts, params) {
75961
+ const {
75962
+ row,
75963
+ column,
75964
+ $table
75965
+ } = params;
75966
+ const {
75967
+ field
75968
+ } = column;
75969
+ const {
75970
+ props = {},
75971
+ events,
75972
+ options,
75973
+ optionProps
75974
+ } = renderOpts;
75975
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-tree-select"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
75976
+ "modelValue": xe_utils_default().get(row, field)
75977
+ }, props, {
75978
+ "options": options || props.options,
75979
+ "optionProps": optionProps || props.optionProps,
75980
+ "onUpdate:modelValue": val => {
75981
+ xe_utils_default().set(row, field, val);
75982
+ },
75983
+ "onChange": () => {
75984
+ $table.updateStatus(params);
75985
+ if (events && events.change) {
75986
+ events.change(params);
75987
+ }
75988
+ }
75989
+ }), null);
75990
+ },
75991
+ renderCell(renderOpts, params) {
75992
+ const {
75993
+ row,
75994
+ column
75995
+ } = params;
75996
+ const {
75997
+ field
75998
+ } = column;
75999
+ const {
76000
+ props = {}
76001
+ } = renderOpts;
76002
+ const {
76003
+ multiple
76004
+ } = props;
76005
+ const cellValue = xe_utils_default().get(row, field);
76006
+ const selectlabel = xe_utils_default().map(multiple ? cellValue : [cellValue], value => {
76007
+ return value;
76008
+ }).join(', ');
76009
+ return selectlabel;
76010
+ }
76011
+ },
75953
76012
  /**
75954
76013
  * 编辑-上传
75955
76014
  */
@@ -76712,6 +76771,38 @@ VXETable.renderer.mixin({
76712
76771
  }), null);
76713
76772
  }
76714
76773
  },
76774
+ /**
76775
+ * 编辑-下拉树选择
76776
+ */
76777
+ MlTreeSelect: {
76778
+ renderItemContent(renderOpts, params) {
76779
+ const {
76780
+ data,
76781
+ field
76782
+ } = params;
76783
+ const {
76784
+ props = {},
76785
+ events,
76786
+ options,
76787
+ optionProps
76788
+ } = renderOpts;
76789
+ const itemValue = xe_utils_default().get(data, field);
76790
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-tree-select"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
76791
+ "modelValue": itemValue
76792
+ }, props, {
76793
+ "options": options || props.options,
76794
+ "optionProps": optionProps || props.optionProps,
76795
+ "onUpdate:modelValue": val => {
76796
+ xe_utils_default().set(data, field, val);
76797
+ },
76798
+ "onChange": () => {
76799
+ if (events && events.change) {
76800
+ events.change(params);
76801
+ }
76802
+ }
76803
+ }), null);
76804
+ }
76805
+ },
76715
76806
  /**
76716
76807
  * 编辑-复选框
76717
76808
  */
@@ -77136,7 +77227,7 @@ function index_config(options) {
77136
77227
  return config_0;
77137
77228
  }
77138
77229
  const MaliUI = {
77139
- version: "1.0.160",
77230
+ version: "1.0.161",
77140
77231
  install: index_install,
77141
77232
  config: index_config,
77142
77233
  renderer: {