qidian-vue-ui 1.0.78 → 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.
@@ -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-DYs-qpTH.mjs"),
12025
- "en-US": () => import("./en-US-CiZf-4xZ.mjs")
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(
@@ -18470,6 +18470,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18470
18470
  valueMode: {},
18471
18471
  theme: {},
18472
18472
  accept: {},
18473
+ onlyView: { type: Boolean },
18473
18474
  listOssByIds: {},
18474
18475
  listOssByUrls: {},
18475
18476
  del: {},
@@ -18585,9 +18586,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18585
18586
  formatResponse,
18586
18587
  onSuccess,
18587
18588
  onRemove,
18589
+ onlyView,
18588
18590
  listOssByIds,
18589
18591
  listOssByUrls,
18590
18592
  del,
18593
+ showImageFileName,
18594
+ showUploadProgress,
18595
+ draggable,
18591
18596
  ...uploadOptions
18592
18597
  } = props;
18593
18598
  const reSizeLimit = isEmpty(sizeLimit) ? void 0 : easyCopy(qdUploadSizeLimit);
@@ -18664,12 +18669,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18664
18669
  sizeLimit: reSizeLimit,
18665
18670
  accept: acceptStr,
18666
18671
  multiple: multiple ?? props.max !== 1,
18667
- disabled: disabled ?? (tdDisabled.value || tdReadonly.value),
18672
+ disabled: onlyView ? true : disabled ?? (tdDisabled.value || tdReadonly.value),
18668
18673
  beforeUpload: reBeforeUpload,
18669
18674
  onValidate: reOnValidate,
18670
18675
  formatResponse: reFormatResponse,
18671
18676
  onSuccess: reOnSuccess,
18672
18677
  onRemove: reOnRemove,
18678
+ showImageFileName: onlyView ? false : showImageFileName,
18679
+ showUploadProgress: onlyView ? false : showUploadProgress,
18680
+ draggable: onlyView ? false : draggable,
18673
18681
  ...uploadOptions
18674
18682
  };
18675
18683
  if (globalUploadProps) {
@@ -18684,6 +18692,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18684
18692
  valueMode,
18685
18693
  accept,
18686
18694
  handlePopupRemove,
18695
+ onlyView,
18687
18696
  listOssByIds: {
18688
18697
  ...globalUploadProps?.listOssByIds,
18689
18698
  ...listOssByIds
@@ -18854,10 +18863,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18854
18863
  return (_ctx, _cache) => {
18855
18864
  return openBlock(), createBlock(unref(Upload), mergeProps({
18856
18865
  ref: "upload",
18857
- class: ["qd-upload", `qd-upload--${reProps.value.theme}`],
18866
+ class: [
18867
+ "qd-upload",
18868
+ `qd-upload--${reProps.value.theme}`,
18869
+ reProps.value.onlyView ? "qd-upload--only-view" : ""
18870
+ ],
18858
18871
  files: unref(fileList),
18859
18872
  "onUpdate:files": _cache[2] || (_cache[2] = ($event) => isRef(fileList) ? fileList.value = $event : null)
18860
- }, reProps.value.uploadOptions), {
18873
+ }, reProps.value.uploadOptions), createSlots({
18861
18874
  default: withCtx(() => [
18862
18875
  __props.theme === "btn-image-popup" ? (openBlock(), createBlock(unref(Space), {
18863
18876
  key: 0,
@@ -18924,11 +18937,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18924
18937
  _: 1
18925
18938
  })) : createCommentVNode("", true)
18926
18939
  ]),
18927
- _: 1
18928
- }, 16, ["class", "files"]);
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"]);
18929
18951
  };
18930
18952
  }
18931
18953
  });
18954
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-12f87975"]]);
18932
18955
  export {
18933
18956
  QdGrid as A,
18934
18957
  QdGridItem as B,
@@ -18937,7 +18960,7 @@ export {
18937
18960
  QdServiceTable as E,
18938
18961
  QdServiceList as F,
18939
18962
  select as G,
18940
- _sfc_main as H,
18963
+ index as H,
18941
18964
  hasPermiDirective as I,
18942
18965
  hasPermi as J,
18943
18966
  hasRoleDirective as K,
@@ -18959,7 +18982,7 @@ export {
18959
18982
  qdUseComputeValue as f,
18960
18983
  getValueByPath as g,
18961
18984
  defineQdCrudTable as h,
18962
- index as i,
18985
+ index$1 as i,
18963
18986
  defineQdCrudList as j,
18964
18987
  _sfc_main$d as k,
18965
18988
  list as l,
@@ -18978,4 +19001,4 @@ export {
18978
19001
  qdFormGutter as y,
18979
19002
  qdFormGrid as z
18980
19003
  };
18981
- //# sourceMappingURL=index-CBrT89IZ.mjs.map
19004
+ //# sourceMappingURL=index-RGhLiR39.mjs.map