qidian-vue-ui 1.0.77 → 1.0.79
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/upload/index.vue.d.ts +4 -1
- package/dist/components/upload/types.d.ts +1 -0
- package/dist/{en-US-BRgdJEVB.js → en-US-BCWyKocW.js} +2 -2
- package/dist/{en-US-BRgdJEVB.js.map → en-US-BCWyKocW.js.map} +1 -1
- package/dist/{en-US-DY0i8PQq.mjs → en-US-DJI8XPcg.mjs} +2 -2
- package/dist/{en-US-DY0i8PQq.mjs.map → en-US-DJI8XPcg.mjs.map} +1 -1
- package/dist/{index-C-RG1oKB.js → index-CTyL2e-l.js} +38 -11
- package/dist/index-CTyL2e-l.js.map +1 -0
- package/dist/{index-BmODYZnF.mjs → index-RGhLiR39.mjs} +38 -11
- package/dist/index-RGhLiR39.mjs.map +1 -0
- package/dist/qidian-vue-ui.css +15 -0
- package/dist/qidian-vue-ui.js +2 -2
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-B5JmWw65.js → zh-TW-xawlr0UJ.js} +2 -2
- package/dist/{zh-TW-B5JmWw65.js.map → zh-TW-xawlr0UJ.js.map} +1 -1
- package/dist/{zh-TW-BP_yzerF.mjs → zh-TW-z4up4fX8.mjs} +2 -2
- package/dist/{zh-TW-BP_yzerF.mjs.map → zh-TW-z4up4fX8.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-BmODYZnF.mjs.map +0 -1
- package/dist/index-C-RG1oKB.js.map +0 -1
|
@@ -78,7 +78,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
};
|
|
81
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-75d8db87"]]);
|
|
81
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-75d8db87"]]);
|
|
82
82
|
const qdCardProps = {
|
|
83
83
|
bordered: false
|
|
84
84
|
};
|
|
@@ -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-z4up4fX8.mjs"),
|
|
12025
|
+
"en-US": () => import("./en-US-DJI8XPcg.mjs")
|
|
12026
12026
|
};
|
|
12027
12027
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12028
12028
|
const [err, res] = await to(
|
|
@@ -15997,6 +15997,10 @@ function useModal() {
|
|
|
15997
15997
|
return;
|
|
15998
15998
|
}
|
|
15999
15999
|
instance?.destroy();
|
|
16000
|
+
},
|
|
16001
|
+
onClose: (context) => {
|
|
16002
|
+
options.onClose?.(context);
|
|
16003
|
+
instance?.destroy();
|
|
16000
16004
|
}
|
|
16001
16005
|
});
|
|
16002
16006
|
return instance;
|
|
@@ -18466,6 +18470,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18466
18470
|
valueMode: {},
|
|
18467
18471
|
theme: {},
|
|
18468
18472
|
accept: {},
|
|
18473
|
+
onlyView: { type: Boolean },
|
|
18469
18474
|
listOssByIds: {},
|
|
18470
18475
|
listOssByUrls: {},
|
|
18471
18476
|
del: {},
|
|
@@ -18581,9 +18586,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18581
18586
|
formatResponse,
|
|
18582
18587
|
onSuccess,
|
|
18583
18588
|
onRemove,
|
|
18589
|
+
onlyView,
|
|
18584
18590
|
listOssByIds,
|
|
18585
18591
|
listOssByUrls,
|
|
18586
18592
|
del,
|
|
18593
|
+
showImageFileName,
|
|
18594
|
+
showUploadProgress,
|
|
18595
|
+
draggable,
|
|
18587
18596
|
...uploadOptions
|
|
18588
18597
|
} = props;
|
|
18589
18598
|
const reSizeLimit = isEmpty(sizeLimit) ? void 0 : easyCopy(qdUploadSizeLimit);
|
|
@@ -18660,12 +18669,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18660
18669
|
sizeLimit: reSizeLimit,
|
|
18661
18670
|
accept: acceptStr,
|
|
18662
18671
|
multiple: multiple ?? props.max !== 1,
|
|
18663
|
-
disabled: disabled ?? (tdDisabled.value || tdReadonly.value),
|
|
18672
|
+
disabled: onlyView ? true : disabled ?? (tdDisabled.value || tdReadonly.value),
|
|
18664
18673
|
beforeUpload: reBeforeUpload,
|
|
18665
18674
|
onValidate: reOnValidate,
|
|
18666
18675
|
formatResponse: reFormatResponse,
|
|
18667
18676
|
onSuccess: reOnSuccess,
|
|
18668
18677
|
onRemove: reOnRemove,
|
|
18678
|
+
showImageFileName: onlyView ? false : showImageFileName,
|
|
18679
|
+
showUploadProgress: onlyView ? false : showUploadProgress,
|
|
18680
|
+
draggable: onlyView ? false : draggable,
|
|
18669
18681
|
...uploadOptions
|
|
18670
18682
|
};
|
|
18671
18683
|
if (globalUploadProps) {
|
|
@@ -18680,6 +18692,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18680
18692
|
valueMode,
|
|
18681
18693
|
accept,
|
|
18682
18694
|
handlePopupRemove,
|
|
18695
|
+
onlyView,
|
|
18683
18696
|
listOssByIds: {
|
|
18684
18697
|
...globalUploadProps?.listOssByIds,
|
|
18685
18698
|
...listOssByIds
|
|
@@ -18850,10 +18863,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18850
18863
|
return (_ctx, _cache) => {
|
|
18851
18864
|
return openBlock(), createBlock(unref(Upload), mergeProps({
|
|
18852
18865
|
ref: "upload",
|
|
18853
|
-
class: [
|
|
18866
|
+
class: [
|
|
18867
|
+
"qd-upload",
|
|
18868
|
+
`qd-upload--${reProps.value.theme}`,
|
|
18869
|
+
reProps.value.onlyView ? "qd-upload--only-view" : ""
|
|
18870
|
+
],
|
|
18854
18871
|
files: unref(fileList),
|
|
18855
18872
|
"onUpdate:files": _cache[2] || (_cache[2] = ($event) => isRef(fileList) ? fileList.value = $event : null)
|
|
18856
|
-
}, reProps.value.uploadOptions), {
|
|
18873
|
+
}, reProps.value.uploadOptions), createSlots({
|
|
18857
18874
|
default: withCtx(() => [
|
|
18858
18875
|
__props.theme === "btn-image-popup" ? (openBlock(), createBlock(unref(Space), {
|
|
18859
18876
|
key: 0,
|
|
@@ -18920,11 +18937,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18920
18937
|
_: 1
|
|
18921
18938
|
})) : createCommentVNode("", true)
|
|
18922
18939
|
]),
|
|
18923
|
-
_:
|
|
18924
|
-
},
|
|
18940
|
+
_: 2
|
|
18941
|
+
}, [
|
|
18942
|
+
renderList(_ctx.$slots, (_, name) => {
|
|
18943
|
+
return {
|
|
18944
|
+
name,
|
|
18945
|
+
fn: withCtx((slotProps) => [
|
|
18946
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)
|
|
18947
|
+
])
|
|
18948
|
+
};
|
|
18949
|
+
})
|
|
18950
|
+
]), 1040, ["class", "files"]);
|
|
18925
18951
|
};
|
|
18926
18952
|
}
|
|
18927
18953
|
});
|
|
18954
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-12f87975"]]);
|
|
18928
18955
|
export {
|
|
18929
18956
|
QdGrid as A,
|
|
18930
18957
|
QdGridItem as B,
|
|
@@ -18933,7 +18960,7 @@ export {
|
|
|
18933
18960
|
QdServiceTable as E,
|
|
18934
18961
|
QdServiceList as F,
|
|
18935
18962
|
select as G,
|
|
18936
|
-
|
|
18963
|
+
index as H,
|
|
18937
18964
|
hasPermiDirective as I,
|
|
18938
18965
|
hasPermi as J,
|
|
18939
18966
|
hasRoleDirective as K,
|
|
@@ -18955,7 +18982,7 @@ export {
|
|
|
18955
18982
|
qdUseComputeValue as f,
|
|
18956
18983
|
getValueByPath as g,
|
|
18957
18984
|
defineQdCrudTable as h,
|
|
18958
|
-
index as i,
|
|
18985
|
+
index$1 as i,
|
|
18959
18986
|
defineQdCrudList as j,
|
|
18960
18987
|
_sfc_main$d as k,
|
|
18961
18988
|
list as l,
|
|
@@ -18974,4 +19001,4 @@ export {
|
|
|
18974
19001
|
qdFormGutter as y,
|
|
18975
19002
|
qdFormGrid as z
|
|
18976
19003
|
};
|
|
18977
|
-
//# sourceMappingURL=index-
|
|
19004
|
+
//# sourceMappingURL=index-RGhLiR39.mjs.map
|