@fmdeui/fmui 1.0.145 → 1.0.147

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.
@@ -33,6 +33,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
33
33
  type: StringConstructor;
34
34
  default: string;
35
35
  };
36
+ vToName: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
36
40
  vGroup: {
37
41
  type: {
38
42
  (arrayLength: number): any[];
@@ -157,6 +161,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
157
161
  type: StringConstructor;
158
162
  default: string;
159
163
  };
164
+ vToName: {
165
+ type: StringConstructor;
166
+ default: string;
167
+ };
160
168
  vGroup: {
161
169
  type: {
162
170
  (arrayLength: number): any[];
@@ -268,6 +276,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
268
276
  openType: number;
269
277
  accountService: string;
270
278
  accountAction: string;
279
+ vToName: string;
271
280
  vGroup: any[];
272
281
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
273
282
  tableUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -332,6 +332,10 @@ export declare const FmAutocompleteExt: DefineComponent<ExtractPropTypes<{
332
332
  type: StringConstructor;
333
333
  default: string;
334
334
  };
335
+ vToName: {
336
+ type: StringConstructor;
337
+ default: string;
338
+ };
335
339
  vGroup: {
336
340
  type: {
337
341
  (arrayLength: number): any[];
@@ -437,6 +441,10 @@ export declare const FmAutocompleteExt: DefineComponent<ExtractPropTypes<{
437
441
  type: StringConstructor;
438
442
  default: string;
439
443
  };
444
+ vToName: {
445
+ type: StringConstructor;
446
+ default: string;
447
+ };
440
448
  vGroup: {
441
449
  type: {
442
450
  (arrayLength: number): any[];
@@ -538,6 +546,7 @@ export declare const FmAutocompleteExt: DefineComponent<ExtractPropTypes<{
538
546
  openType: number;
539
547
  accountService: string;
540
548
  accountAction: string;
549
+ vToName: string;
541
550
  vGroup: any[];
542
551
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
543
552
  tableUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
@@ -55,6 +55,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  type: String,
56
56
  default: "name"
57
57
  },
58
+ vToName: {
59
+ type: String,
60
+ default: "name"
61
+ },
58
62
  vGroup: {
59
63
  type: Array,
60
64
  default: () => []
@@ -153,7 +157,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
153
157
  }
154
158
  const results = data.map((item) => ({
155
159
  ...item,
156
- displayText: `${item[props.vName]}`
160
+ displayText: `${item[props.vToName]}`
157
161
  // 自定义展示格式
158
162
  //fullData: item // 保留原始对象
159
163
  }));
@@ -161,16 +165,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
161
165
  };
162
166
  const handleSelect = (item) => {
163
167
  for (let keyitem of props.vGroup) {
164
- if (!item[keyitem.key]) {
168
+ if (!item[keyitem.tokey]) {
165
169
  continue;
166
170
  }
167
- modelValue.value[keyitem.key] = item[keyitem.key];
171
+ modelValue.value[keyitem.key] = item[keyitem.tokey];
168
172
  }
169
173
  emit("select", item);
170
174
  };
171
175
  const resetValue = () => {
172
176
  for (let item of props.vGroup) {
173
- if (!item.key || item.key === props.vName) {
177
+ if (!item.key || item.tokey === props.vName) {
174
178
  continue;
175
179
  }
176
180
  modelValue.value[item.key] = item.value;
@@ -180,10 +184,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
180
184
  const handleSelectDialogChange = (item) => {
181
185
  visibleopenDialog.value = false;
182
186
  for (let keyitem of props.vGroup) {
183
- if (!item[keyitem.key]) {
187
+ if (!item[keyitem.tokey]) {
184
188
  continue;
185
189
  }
186
- modelValue.value[keyitem.key] = item[keyitem.key];
190
+ modelValue.value[keyitem.key] = item[keyitem.tokey];
187
191
  }
188
192
  emit("select", item);
189
193
  };
@@ -232,7 +236,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
232
236
  createElementVNode(
233
237
  "div",
234
238
  _hoisted_1,
235
- toDisplayString(item[__props.vName]) + " " + toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
239
+ toDisplayString(item[__props.vToName]) + " " + toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
236
240
  1
237
241
  /* TEXT */
238
242
  )
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.145 */
1
+ /*! fmdeui-fmui v1.0.147 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -29922,6 +29922,10 @@
29922
29922
  type: String,
29923
29923
  default: "name"
29924
29924
  },
29925
+ vToName: {
29926
+ type: String,
29927
+ default: "name"
29928
+ },
29925
29929
  vGroup: {
29926
29930
  type: Array,
29927
29931
  default: () => []
@@ -30020,7 +30024,7 @@
30020
30024
  }
30021
30025
  const results = data.map((item) => ({
30022
30026
  ...item,
30023
- displayText: `${item[props.vName]}`
30027
+ displayText: `${item[props.vToName]}`
30024
30028
  // 自定义展示格式
30025
30029
  //fullData: item // 保留原始对象
30026
30030
  }));
@@ -30028,16 +30032,16 @@
30028
30032
  };
30029
30033
  const handleSelect = (item) => {
30030
30034
  for (let keyitem of props.vGroup) {
30031
- if (!item[keyitem.key]) {
30035
+ if (!item[keyitem.tokey]) {
30032
30036
  continue;
30033
30037
  }
30034
- modelValue.value[keyitem.key] = item[keyitem.key];
30038
+ modelValue.value[keyitem.key] = item[keyitem.tokey];
30035
30039
  }
30036
30040
  emit("select", item);
30037
30041
  };
30038
30042
  const resetValue = () => {
30039
30043
  for (let item of props.vGroup) {
30040
- if (!item.key || item.key === props.vName) {
30044
+ if (!item.key || item.tokey === props.vName) {
30041
30045
  continue;
30042
30046
  }
30043
30047
  modelValue.value[item.key] = item.value;
@@ -30047,10 +30051,10 @@
30047
30051
  const handleSelectDialogChange = (item) => {
30048
30052
  visibleopenDialog.value = false;
30049
30053
  for (let keyitem of props.vGroup) {
30050
- if (!item[keyitem.key]) {
30054
+ if (!item[keyitem.tokey]) {
30051
30055
  continue;
30052
30056
  }
30053
- modelValue.value[keyitem.key] = item[keyitem.key];
30057
+ modelValue.value[keyitem.key] = item[keyitem.tokey];
30054
30058
  }
30055
30059
  emit("select", item);
30056
30060
  };
@@ -30099,7 +30103,7 @@
30099
30103
  vue.createElementVNode(
30100
30104
  "div",
30101
30105
  _hoisted_1$l,
30102
- vue.toDisplayString(item[__props.vName]) + " " + vue.toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
30106
+ vue.toDisplayString(item[__props.vToName]) + " " + vue.toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
30103
30107
  1
30104
30108
  /* TEXT */
30105
30109
  )