@qqt-product/ui 14.0.8 → 14.0.9

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/dist/index.es.js CHANGED
@@ -2169,43 +2169,47 @@ const select = "", _sfc_main$Y = defineComponent({
2169
2169
  props: vxeSelectProps,
2170
2170
  emits: ["update:modelValue", "change"],
2171
2171
  setup(r, n) {
2172
- const { modelValue: o, busAccount: s, dictCode: l, multiple: c } = toRefs(r), p = qqtApi.useHttp(), { classes: b } = useSelect$1(), y = c.value, O = reactive({
2173
- realValue: y ? [] : "",
2174
- options: r.options
2175
- }), { realValue: x, options: D } = toRefs(O);
2172
+ const { modelValue: o, busAccount: s, dictCode: l, multiple: c } = toRefs(r), p = qqtApi.useHttp(), { classes: b } = useSelect$1(), y = c.value, x = ref(y ? [] : ""), D = r.options.map((ae) => {
2173
+ let { label: Y, title: se, ...ce } = ae;
2174
+ return Y || (Y = se), se || (se = Y), {
2175
+ ...ce,
2176
+ label: Y,
2177
+ title: se
2178
+ };
2179
+ }), P = ref(D);
2176
2180
  watch(
2177
2181
  o,
2178
- (G) => {
2179
- const ae = y ? G ? G.split(",") : [] : G;
2180
- x.value = ae;
2182
+ (ae) => {
2183
+ const Y = y ? ae ? ae.split(",") : [] : ae;
2184
+ x.value = Y;
2181
2185
  },
2182
2186
  { immediate: !0 }
2183
- ), watch(l, (G) => {
2184
- !G || D.value && D.value.length > 0 || p.post({
2187
+ ), watch(l, (ae) => {
2188
+ !ae || P.value && P.value.length > 0 || p.post({
2185
2189
  url: "/base/dict/findDictItems",
2186
2190
  data: {
2187
2191
  busAccount: s.value,
2188
- dictCode: G
2192
+ dictCode: ae
2189
2193
  }
2190
- }).then((ae) => {
2191
- if (ae.success) {
2192
- const Y = ae.result;
2193
- D.value = Y.map((se) => ({
2194
- ...se,
2195
- label: se.title
2194
+ }).then((Y) => {
2195
+ if (Y.success) {
2196
+ const se = Y.result;
2197
+ P.value = se.map((ce) => ({
2198
+ ...ce,
2199
+ label: ce.title
2196
2200
  }));
2197
2201
  }
2198
2202
  });
2199
2203
  }, { immediate: !0 });
2200
- const R = ({ value: G }) => {
2201
- let ae = "";
2204
+ const G = ({ value: ae }) => {
2205
+ let Y = "";
2202
2206
  if (y)
2203
- ae = D.value.filter((Y) => G.includes(Y.value)).map((Y) => Y.label).join(",");
2207
+ Y = P.value.filter((se) => ae.includes(se.value)).map((se) => se.label).join(",");
2204
2208
  else {
2205
- let Y = D.value.find((se) => se.value === G);
2206
- Y && (ae = Y.label);
2209
+ let se = P.value.find((ce) => ce.value === ae);
2210
+ se && (Y = se.label);
2207
2211
  }
2208
- n.emit("update:modelValue", `${G || ""}`), n.emit("change", { value: `${G || ""}`, label: ae });
2212
+ n.emit("update:modelValue", `${ae || ""}`), n.emit("change", { value: `${ae || ""}`, label: Y });
2209
2213
  };
2210
2214
  return {
2211
2215
  classes: b,
@@ -2213,8 +2217,8 @@ const select = "", _sfc_main$Y = defineComponent({
2213
2217
  maxTagCount: r.maxTagCount,
2214
2218
  placeholder: r.placeholder,
2215
2219
  multiple: r.multiple,
2216
- options: D,
2217
- onChange: R,
2220
+ options: P,
2221
+ onChange: G,
2218
2222
  props: r
2219
2223
  };
2220
2224
  }
@@ -17752,11 +17756,7 @@ function useRemoteConfig() {
17752
17756
  }));
17753
17757
  });
17754
17758
  });
17755
- const Sn = computed(() => l.value.busAccount || l.value.elsAccount), ze = we.map((En) => En.item && En.item.options && En.item.options.length ? Promise.resolve().then(() => (En.item.options.forEach((Ln) => {
17756
- Ln.title = Ln.label;
17757
- }), {
17758
- result: En.item.options
17759
- })) : r.post({
17759
+ const Sn = computed(() => l.value.busAccount || l.value.elsAccount), ze = we.map((En) => En.item && En.item.options && En.item.options.length ? Promise.resolve().then(() => En.item.options) : r.post({
17760
17760
  url: "/base/dict/findDictItems",
17761
17761
  data: {
17762
17762
  busAccount: Sn.value,