@qqt-product/ui 14.0.7 → 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 +34 -33
- package/dist/index.umd.js +1 -1
- package/dist/lib/components/page-layout/index.d.ts +1 -0
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +1 -0
- package/dist/lib/components/vxe-select/index.d.ts +1 -2
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +2 -3
- package/package.json +1 -1
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,
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
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
|
-
(
|
|
2179
|
-
const
|
|
2180
|
-
x.value =
|
|
2182
|
+
(ae) => {
|
|
2183
|
+
const Y = y ? ae ? ae.split(",") : [] : ae;
|
|
2184
|
+
x.value = Y;
|
|
2181
2185
|
},
|
|
2182
2186
|
{ immediate: !0 }
|
|
2183
|
-
), watch(l, (
|
|
2184
|
-
!
|
|
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:
|
|
2192
|
+
dictCode: ae
|
|
2189
2193
|
}
|
|
2190
|
-
}).then((
|
|
2191
|
-
if (
|
|
2192
|
-
const
|
|
2193
|
-
|
|
2194
|
-
...
|
|
2195
|
-
label:
|
|
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
|
|
2201
|
-
let
|
|
2204
|
+
const G = ({ value: ae }) => {
|
|
2205
|
+
let Y = "";
|
|
2202
2206
|
if (y)
|
|
2203
|
-
|
|
2207
|
+
Y = P.value.filter((se) => ae.includes(se.value)).map((se) => se.label).join(",");
|
|
2204
2208
|
else {
|
|
2205
|
-
let
|
|
2206
|
-
|
|
2209
|
+
let se = P.value.find((ce) => ce.value === ae);
|
|
2210
|
+
se && (Y = se.label);
|
|
2207
2211
|
}
|
|
2208
|
-
n.emit("update:modelValue", `${
|
|
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:
|
|
2217
|
-
onChange:
|
|
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(() =>
|
|
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,
|
|
@@ -17805,13 +17805,13 @@ function useRemoteConfig() {
|
|
|
17805
17805
|
};
|
|
17806
17806
|
return watchEffect(
|
|
17807
17807
|
async () => {
|
|
17808
|
+
D.value = !1;
|
|
17808
17809
|
try {
|
|
17809
|
-
D.value = !1, x.value = !0;
|
|
17810
17810
|
const ce = await P(s.businessType), we = await G(ce), Be = ae(we);
|
|
17811
|
-
O.value = se(Be), y.value = Y(Be)
|
|
17811
|
+
O.value = se(Be), y.value = Y(Be);
|
|
17812
17812
|
} catch {
|
|
17813
17813
|
} finally {
|
|
17814
|
-
|
|
17814
|
+
D.value = !0;
|
|
17815
17815
|
}
|
|
17816
17816
|
},
|
|
17817
17817
|
{ flush: "post" }
|
|
@@ -19085,6 +19085,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19085
19085
|
layoutConfig: p,
|
|
19086
19086
|
pageData: P,
|
|
19087
19087
|
loading: D,
|
|
19088
|
+
isFinishConfig: O,
|
|
19088
19089
|
layoutLoading: y,
|
|
19089
19090
|
customLoading: Ln
|
|
19090
19091
|
};
|
|
@@ -19096,7 +19097,7 @@ function _sfc_render$P(r, n, o, s, l, c) {
|
|
|
19096
19097
|
class: normalizeClass(r.classes)
|
|
19097
19098
|
}, [
|
|
19098
19099
|
createVNode$1(p, {
|
|
19099
|
-
spinning: r.loading || r.layoutLoading || r.customLoading
|
|
19100
|
+
spinning: !r.isFinishConfig || r.loading || r.layoutLoading || r.customLoading
|
|
19100
19101
|
}, {
|
|
19101
19102
|
default: withCtx(() => [
|
|
19102
19103
|
renderSlot(r.$slots, "default", {
|