@qqt-product/ui 14.1.3 → 14.1.5
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
|
@@ -2154,43 +2154,47 @@ const select = "", _sfc_main$Z = defineComponent({
|
|
|
2154
2154
|
props: vxeSelectProps,
|
|
2155
2155
|
emits: ["update:modelValue", "change"],
|
|
2156
2156
|
setup(r, n) {
|
|
2157
|
-
const { modelValue: o, busAccount: s, dictCode: l, multiple: c } = toRefs(r), p = qqtApi.useHttp(), { classes: b } = useSelect$1(), y = c.value,
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2157
|
+
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) => {
|
|
2158
|
+
let { label: Y, title: se, ...ce } = ae;
|
|
2159
|
+
return Y || (Y = se), se || (se = Y), {
|
|
2160
|
+
...ce,
|
|
2161
|
+
label: Y,
|
|
2162
|
+
title: se
|
|
2163
|
+
};
|
|
2164
|
+
}), P = ref(D);
|
|
2161
2165
|
watch(
|
|
2162
2166
|
o,
|
|
2163
|
-
(
|
|
2164
|
-
const
|
|
2165
|
-
x.value =
|
|
2167
|
+
(ae) => {
|
|
2168
|
+
const Y = y ? ae ? ae.split(",") : [] : ae;
|
|
2169
|
+
x.value = Y;
|
|
2166
2170
|
},
|
|
2167
2171
|
{ immediate: !0 }
|
|
2168
|
-
), watch(l, (
|
|
2169
|
-
!
|
|
2172
|
+
), watch(l, (ae) => {
|
|
2173
|
+
!ae || P.value && P.value.length > 0 || p.post({
|
|
2170
2174
|
url: "/base/dict/findDictItems",
|
|
2171
2175
|
data: {
|
|
2172
2176
|
busAccount: s.value,
|
|
2173
|
-
dictCode:
|
|
2177
|
+
dictCode: ae
|
|
2174
2178
|
}
|
|
2175
|
-
}).then((
|
|
2176
|
-
if (
|
|
2177
|
-
const
|
|
2178
|
-
|
|
2179
|
-
...
|
|
2180
|
-
label:
|
|
2179
|
+
}).then((Y) => {
|
|
2180
|
+
if (Y.success) {
|
|
2181
|
+
const se = Y.result;
|
|
2182
|
+
P.value = se.map((ce) => ({
|
|
2183
|
+
...ce,
|
|
2184
|
+
label: ce.title
|
|
2181
2185
|
}));
|
|
2182
2186
|
}
|
|
2183
2187
|
});
|
|
2184
2188
|
}, { immediate: !0 });
|
|
2185
|
-
const
|
|
2186
|
-
let
|
|
2189
|
+
const G = ({ value: ae }) => {
|
|
2190
|
+
let Y = "";
|
|
2187
2191
|
if (y)
|
|
2188
|
-
|
|
2192
|
+
Y = P.value.filter((se) => ae.includes(se.value)).map((se) => se.label).join(",");
|
|
2189
2193
|
else {
|
|
2190
|
-
let
|
|
2191
|
-
|
|
2194
|
+
let se = P.value.find((ce) => ce.value === ae);
|
|
2195
|
+
se && (Y = se.label);
|
|
2192
2196
|
}
|
|
2193
|
-
n.emit("update:modelValue", `${
|
|
2197
|
+
n.emit("update:modelValue", `${ae || ""}`), n.emit("change", { value: `${ae || ""}`, label: Y });
|
|
2194
2198
|
};
|
|
2195
2199
|
return {
|
|
2196
2200
|
classes: b,
|
|
@@ -2198,8 +2202,8 @@ const select = "", _sfc_main$Z = defineComponent({
|
|
|
2198
2202
|
maxTagCount: r.maxTagCount,
|
|
2199
2203
|
placeholder: r.placeholder,
|
|
2200
2204
|
multiple: r.multiple,
|
|
2201
|
-
options:
|
|
2202
|
-
onChange:
|
|
2205
|
+
options: P,
|
|
2206
|
+
onChange: G,
|
|
2203
2207
|
props: r
|
|
2204
2208
|
};
|
|
2205
2209
|
}
|
|
@@ -17737,11 +17741,7 @@ function useRemoteConfig() {
|
|
|
17737
17741
|
}));
|
|
17738
17742
|
});
|
|
17739
17743
|
});
|
|
17740
|
-
const Sn = computed(() => l.value.busAccount || l.value.elsAccount), ze = Be.map((En) => En.item && En.item.options && En.item.options.length ? Promise.resolve().then(() =>
|
|
17741
|
-
Ln.title = Ln.label;
|
|
17742
|
-
}), {
|
|
17743
|
-
result: En.item.options
|
|
17744
|
-
})) : r.post({
|
|
17744
|
+
const Sn = computed(() => l.value.busAccount || l.value.elsAccount), ze = Be.map((En) => En.item && En.item.options && En.item.options.length ? Promise.resolve().then(() => En.item.options) : r.post({
|
|
17745
17745
|
url: "/base/dict/findDictItems",
|
|
17746
17746
|
data: {
|
|
17747
17747
|
busAccount: Sn.value,
|
|
@@ -17790,13 +17790,13 @@ function useRemoteConfig() {
|
|
|
17790
17790
|
};
|
|
17791
17791
|
return watchEffect(
|
|
17792
17792
|
async () => {
|
|
17793
|
+
D.value = !1;
|
|
17793
17794
|
try {
|
|
17794
|
-
D.value = !1, x.value = !0;
|
|
17795
17795
|
const ce = await P(s.businessType), Be = await G(ce), we = ae(Be);
|
|
17796
|
-
O.value = se(we), y.value = Y(we)
|
|
17796
|
+
O.value = se(we), y.value = Y(we);
|
|
17797
17797
|
} catch {
|
|
17798
17798
|
} finally {
|
|
17799
|
-
|
|
17799
|
+
D.value = !0;
|
|
17800
17800
|
}
|
|
17801
17801
|
},
|
|
17802
17802
|
{ flush: "post" }
|
|
@@ -19071,6 +19071,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19071
19071
|
layoutConfig: p,
|
|
19072
19072
|
pageData: P,
|
|
19073
19073
|
loading: D,
|
|
19074
|
+
isFinishConfig: O,
|
|
19074
19075
|
layoutLoading: y,
|
|
19075
19076
|
customLoading: Ln
|
|
19076
19077
|
};
|
|
@@ -19082,7 +19083,7 @@ function _sfc_render$Q(r, n, o, s, l, c) {
|
|
|
19082
19083
|
class: normalizeClass(r.classes)
|
|
19083
19084
|
}, [
|
|
19084
19085
|
createVNode$1(p, {
|
|
19085
|
-
spinning: r.loading || r.layoutLoading || r.customLoading
|
|
19086
|
+
spinning: !r.isFinishConfig || r.loading || r.layoutLoading || r.customLoading
|
|
19086
19087
|
}, {
|
|
19087
19088
|
default: withCtx(() => [
|
|
19088
19089
|
renderSlot(r.$slots, "default", {
|