qidian-vue-ui 1.0.72 → 1.0.73
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/components/service/types.d.ts +3 -1
- package/dist/{en-US-CMpUZa8x.js → en-US-Bn_vxxsU.js} +2 -2
- package/dist/{en-US-CMpUZa8x.js.map → en-US-Bn_vxxsU.js.map} +1 -1
- package/dist/{en-US-BD3_KJjx.mjs → en-US-eFFubRMn.mjs} +2 -2
- package/dist/{en-US-BD3_KJjx.mjs.map → en-US-eFFubRMn.mjs.map} +1 -1
- package/dist/{index-B9OY1KvY.js → index-CIDRZ5Z2.js} +40 -11
- package/dist/{index-B9OY1KvY.js.map → index-CIDRZ5Z2.js.map} +1 -1
- package/dist/{index-CeExET1J.mjs → index-DJv7PdD8.mjs} +40 -11
- package/dist/{index-CeExET1J.mjs.map → index-DJv7PdD8.mjs.map} +1 -1
- package/dist/qidian-vue-ui.css +15 -5
- package/dist/qidian-vue-ui.js +1 -1
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-BZkNQa_r.mjs → zh-TW-BSOP99L6.mjs} +2 -2
- package/dist/{zh-TW-BZkNQa_r.mjs.map → zh-TW-BSOP99L6.mjs.map} +1 -1
- package/dist/{zh-TW-D5Z0fkAS.js → zh-TW-DX8ooDaX.js} +2 -2
- package/dist/{zh-TW-D5Z0fkAS.js.map → zh-TW-DX8ooDaX.js.map} +1 -1
- package/package.json +1 -1
|
@@ -12021,8 +12021,8 @@ const QdConfigProvider = defineComponent({
|
|
|
12021
12021
|
watchEffect(async () => {
|
|
12022
12022
|
const localeMap = {
|
|
12023
12023
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12024
|
-
"zh-TW": () => import("./zh-TW-
|
|
12025
|
-
"en-US": () => import("./en-US-
|
|
12024
|
+
"zh-TW": () => import("./zh-TW-BSOP99L6.mjs"),
|
|
12025
|
+
"en-US": () => import("./en-US-eFFubRMn.mjs")
|
|
12026
12026
|
};
|
|
12027
12027
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12028
12028
|
const [err, res] = await to(
|
|
@@ -14929,6 +14929,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14929
14929
|
pagination: rePagination.value
|
|
14930
14930
|
}), createSlots({
|
|
14931
14931
|
empty: withCtx(() => [createVNode(unref(Empty), {
|
|
14932
|
+
class: "qd-service-table__empty",
|
|
14932
14933
|
title: unref(t)("emptyText")
|
|
14933
14934
|
}, null, 8, ["title"])]),
|
|
14934
14935
|
_: 2
|
|
@@ -14941,7 +14942,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14941
14942
|
};
|
|
14942
14943
|
}
|
|
14943
14944
|
});
|
|
14944
|
-
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
14945
|
+
const QdServiceTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-020b9102"]]);
|
|
14945
14946
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
14946
14947
|
...{
|
|
14947
14948
|
name: "QdServiceList"
|
|
@@ -14949,6 +14950,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14949
14950
|
__name: "list",
|
|
14950
14951
|
props: /* @__PURE__ */ mergeDefaults({
|
|
14951
14952
|
data: {},
|
|
14953
|
+
loading: { type: Boolean },
|
|
14954
|
+
loadingProps: {},
|
|
14952
14955
|
asyncLoading: {},
|
|
14953
14956
|
footer: {},
|
|
14954
14957
|
header: {},
|
|
@@ -14986,10 +14989,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
14986
14989
|
onSuccess,
|
|
14987
14990
|
onError,
|
|
14988
14991
|
data: data2,
|
|
14992
|
+
loading: externalLoad,
|
|
14989
14993
|
asyncLoading: externalAsyncLoad,
|
|
14990
14994
|
...listOptions
|
|
14991
14995
|
} = props;
|
|
14992
14996
|
return {
|
|
14997
|
+
externalLoad,
|
|
14993
14998
|
externalAsyncLoad,
|
|
14994
14999
|
listOptions,
|
|
14995
15000
|
serviceOptions: {
|
|
@@ -15030,6 +15035,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15030
15035
|
}
|
|
15031
15036
|
});
|
|
15032
15037
|
const empty = computed(() => noMore.value && !data.value.length);
|
|
15038
|
+
const listLoad = computed(() => {
|
|
15039
|
+
return {
|
|
15040
|
+
loading: reProps.value.externalLoad || firstLoad.value,
|
|
15041
|
+
size: "small",
|
|
15042
|
+
...props.loadingProps
|
|
15043
|
+
};
|
|
15044
|
+
});
|
|
15045
|
+
const listAsyncLoad = computed(() => {
|
|
15046
|
+
const { externalLoad, externalAsyncLoad } = reProps.value;
|
|
15047
|
+
if (externalLoad || firstLoad.value) return "";
|
|
15048
|
+
if (externalAsyncLoad) return externalAsyncLoad;
|
|
15049
|
+
if (loading.value) return "loading";
|
|
15050
|
+
return "";
|
|
15051
|
+
});
|
|
15033
15052
|
function onScroll({
|
|
15034
15053
|
scrollBottom
|
|
15035
15054
|
}) {
|
|
@@ -15058,13 +15077,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15058
15077
|
});
|
|
15059
15078
|
__expose(expose);
|
|
15060
15079
|
return (_ctx, _cache) => {
|
|
15061
|
-
|
|
15080
|
+
const _directive_loading = resolveDirective("loading");
|
|
15081
|
+
return withDirectives((openBlock(), createBlock(unref(List), mergeProps({
|
|
15062
15082
|
ref: "list",
|
|
15063
|
-
class: "qd-service-list"
|
|
15083
|
+
class: "qd-service-list",
|
|
15084
|
+
"async-loading": listAsyncLoad.value
|
|
15064
15085
|
}, reProps.value.listOptions, { onScroll }), createSlots({
|
|
15065
15086
|
default: withCtx(() => [
|
|
15066
|
-
empty.value ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
15087
|
+
!listLoad.value.loading && !listAsyncLoad.value && empty.value ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
15067
15088
|
createVNode(unref(Empty), {
|
|
15089
|
+
class: "qd-service-list__empty",
|
|
15068
15090
|
title: unref(t)("emptyText")
|
|
15069
15091
|
}, null, 8, ["title"])
|
|
15070
15092
|
], true) : createCommentVNode("", true),
|
|
@@ -15080,11 +15102,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
15080
15102
|
])
|
|
15081
15103
|
};
|
|
15082
15104
|
})
|
|
15083
|
-
]), 1040)
|
|
15105
|
+
]), 1040, ["async-loading"])), [
|
|
15106
|
+
[_directive_loading, listLoad.value]
|
|
15107
|
+
]);
|
|
15084
15108
|
};
|
|
15085
15109
|
}
|
|
15086
15110
|
});
|
|
15087
|
-
const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
15111
|
+
const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-278ab729"]]);
|
|
15088
15112
|
const qdDictConvStrSeparator = ",";
|
|
15089
15113
|
const qdDictSelectProps = {
|
|
15090
15114
|
showArrow: true,
|
|
@@ -16020,8 +16044,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16020
16044
|
const formRef = useTemplateRef("form");
|
|
16021
16045
|
const submitShowErrorMessage = ref();
|
|
16022
16046
|
const reProps = computed(() => {
|
|
16023
|
-
const { grid, gutter, items, onSubmit, data: data2, scrollToFirstError, ...formOptions } = props;
|
|
16047
|
+
const { grid, gutter, items, onSubmit, data: data2, scrollToFirstError, loading: externalLoad, ...formOptions } = props;
|
|
16024
16048
|
return {
|
|
16049
|
+
externalLoad,
|
|
16025
16050
|
formOptions: {
|
|
16026
16051
|
...formOptions,
|
|
16027
16052
|
scrollToFirstError: submitShowErrorMessage.value === false ? "" : scrollToFirstError
|
|
@@ -16038,7 +16063,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16038
16063
|
const submitLoad = ref(false);
|
|
16039
16064
|
const formLoad = computed(() => {
|
|
16040
16065
|
return {
|
|
16041
|
-
loading:
|
|
16066
|
+
loading: reProps.value.externalLoad || submitLoad.value,
|
|
16042
16067
|
size: "small",
|
|
16043
16068
|
...props.loadingProps
|
|
16044
16069
|
};
|
|
@@ -17451,6 +17476,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17451
17476
|
search: {},
|
|
17452
17477
|
searchData: {},
|
|
17453
17478
|
data: {},
|
|
17479
|
+
loading: {
|
|
17480
|
+
type: Boolean
|
|
17481
|
+
},
|
|
17482
|
+
loadingProps: {},
|
|
17454
17483
|
asyncLoading: {},
|
|
17455
17484
|
footer: {},
|
|
17456
17485
|
header: {},
|
|
@@ -18836,4 +18865,4 @@ export {
|
|
|
18836
18865
|
qdFormGutter as y,
|
|
18837
18866
|
qdFormGrid as z
|
|
18838
18867
|
};
|
|
18839
|
-
//# sourceMappingURL=index-
|
|
18868
|
+
//# sourceMappingURL=index-DJv7PdD8.mjs.map
|