qidian-vue-ui 1.0.78 → 1.0.80

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.
@@ -79,7 +79,7 @@ const _export_sfc = (sfc, props) => {
79
79
  }
80
80
  return target;
81
81
  };
82
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-75d8db87"]]);
82
+ const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-75d8db87"]]);
83
83
  const qdCardProps = {
84
84
  bordered: false
85
85
  };
@@ -12022,8 +12022,8 @@ const QdConfigProvider = vue.defineComponent({
12022
12022
  vue.watchEffect(async () => {
12023
12023
  const localeMap = {
12024
12024
  "zh-CN": () => Promise.resolve().then(() => zhCN$1),
12025
- "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-CWCKJ4er.js")),
12026
- "en-US": () => Promise.resolve().then(() => require("./en-US-k1qUrTeE.js"))
12025
+ "zh-TW": () => Promise.resolve().then(() => require("./zh-TW-C7okul_R.js")),
12026
+ "en-US": () => Promise.resolve().then(() => require("./en-US-CRhCG6dB.js"))
12027
12027
  };
12028
12028
  const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
12029
12029
  const [err, res] = await to(
@@ -15218,7 +15218,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
15218
15218
  };
15219
15219
  }
15220
15220
  });
15221
- const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7fcb430a"]]);
15221
+ const QdServiceList = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-992de771"]]);
15222
15222
  const qdDictConvStrSeparator = ",";
15223
15223
  const qdDictSelectProps = {
15224
15224
  showArrow: true,
@@ -17575,13 +17575,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
17575
17575
  });
17576
17576
  const table = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-bdb9c97a"]]);
17577
17577
  const _hoisted_1$1 = {
17578
- class: "qd-crud-list"
17578
+ key: 0,
17579
+ class: "qd-crud-list__header"
17579
17580
  };
17580
17581
  const _hoisted_2 = {
17581
- class: "qd-crud-list__body"
17582
- };
17583
- const _hoisted_3 = {
17584
- key: 0,
17582
+ key: 1,
17585
17583
  class: "qd-crud-list__toolbar"
17586
17584
  };
17587
17585
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
@@ -17696,7 +17694,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
17696
17694
  });
17697
17695
  __expose(expose);
17698
17696
  return (_ctx, _cache) => {
17699
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [reProps.value.searchOptions?.items?.length ? (vue.openBlock(), vue.createBlock(QdCrudSearch, vue.mergeProps({
17697
+ return vue.openBlock(), vue.createElementBlock("div", {
17698
+ class: vue.normalizeClass(["qd-crud-list", reProps.value.serviceListOptions.scroll?.target ? "qd-crud-list--has-scroll-target" : ""])
17699
+ }, [reProps.value.searchOptions?.items?.length || _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [reProps.value.searchOptions?.items?.length ? (vue.openBlock(), vue.createBlock(QdCrudSearch, vue.mergeProps({
17700
17700
  key: 0,
17701
17701
  ref: "search",
17702
17702
  data: vue.unref(searchData),
@@ -17724,13 +17724,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
17724
17724
  _: 1
17725
17725
  })]),
17726
17726
  _: 1
17727
- }, 16, ["data"])) : vue.createCommentVNode("", true), vue.createElementVNode("div", _hoisted_2, [_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [vue.createVNode(vue.unref(tdesignVueNext.Space), {
17727
+ }, 16, ["data"])) : vue.createCommentVNode("", true), _ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [vue.createVNode(vue.unref(tdesignVueNext.Space), {
17728
17728
  align: "center",
17729
17729
  size: "small"
17730
17730
  }, {
17731
17731
  default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "actions", {}, void 0, true)]),
17732
17732
  _: 3
17733
- })])) : vue.createCommentVNode("", true), vue.createVNode(vue.unref(QdServiceList), vue.mergeProps({
17733
+ })])) : vue.createCommentVNode("", true)])) : vue.createCommentVNode("", true), vue.createVNode(vue.unref(QdServiceList), vue.mergeProps({
17734
17734
  ref: "list",
17735
17735
  data: vue.unref(data),
17736
17736
  "onUpdate:data": _cache[1] || (_cache[1] = ($event) => vue.isRef(data) ? data.value = $event : null)
@@ -17745,11 +17745,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
17745
17745
  name: item.filterName,
17746
17746
  fn: vue.withCtx((slotProps) => [vue.renderSlot(_ctx.$slots, item.originalName, vue.normalizeProps(vue.guardReactiveProps(slotProps)), void 0, true)])
17747
17747
  };
17748
- })]), 1040, ["data"])])]);
17748
+ })]), 1040, ["data"])], 2);
17749
17749
  };
17750
17750
  }
17751
17751
  });
17752
- const list = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-4b3f4055"]]);
17752
+ const list = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-c15e270f"]]);
17753
17753
  function defineQdCrudTable(config) {
17754
17754
  return config;
17755
17755
  }
@@ -18471,6 +18471,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18471
18471
  valueMode: {},
18472
18472
  theme: {},
18473
18473
  accept: {},
18474
+ onlyView: { type: Boolean },
18474
18475
  listOssByIds: {},
18475
18476
  listOssByUrls: {},
18476
18477
  del: {},
@@ -18586,9 +18587,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18586
18587
  formatResponse,
18587
18588
  onSuccess,
18588
18589
  onRemove,
18590
+ onlyView,
18589
18591
  listOssByIds,
18590
18592
  listOssByUrls,
18591
18593
  del,
18594
+ showImageFileName,
18595
+ showUploadProgress,
18596
+ draggable,
18592
18597
  ...uploadOptions
18593
18598
  } = props;
18594
18599
  const reSizeLimit = isEmpty(sizeLimit) ? void 0 : easyCopy(qdUploadSizeLimit);
@@ -18665,12 +18670,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18665
18670
  sizeLimit: reSizeLimit,
18666
18671
  accept: acceptStr,
18667
18672
  multiple: multiple ?? props.max !== 1,
18668
- disabled: disabled ?? (tdDisabled.value || tdReadonly.value),
18673
+ disabled: onlyView ? true : disabled ?? (tdDisabled.value || tdReadonly.value),
18669
18674
  beforeUpload: reBeforeUpload,
18670
18675
  onValidate: reOnValidate,
18671
18676
  formatResponse: reFormatResponse,
18672
18677
  onSuccess: reOnSuccess,
18673
18678
  onRemove: reOnRemove,
18679
+ showImageFileName: onlyView ? false : showImageFileName,
18680
+ showUploadProgress: onlyView ? false : showUploadProgress,
18681
+ draggable: onlyView ? false : draggable,
18674
18682
  ...uploadOptions
18675
18683
  };
18676
18684
  if (globalUploadProps) {
@@ -18685,6 +18693,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18685
18693
  valueMode,
18686
18694
  accept,
18687
18695
  handlePopupRemove,
18696
+ onlyView,
18688
18697
  listOssByIds: {
18689
18698
  ...globalUploadProps?.listOssByIds,
18690
18699
  ...listOssByIds
@@ -18855,10 +18864,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18855
18864
  return (_ctx, _cache) => {
18856
18865
  return vue.openBlock(), vue.createBlock(vue.unref(tdesignVueNext.Upload), vue.mergeProps({
18857
18866
  ref: "upload",
18858
- class: ["qd-upload", `qd-upload--${reProps.value.theme}`],
18867
+ class: [
18868
+ "qd-upload",
18869
+ `qd-upload--${reProps.value.theme}`,
18870
+ reProps.value.onlyView ? "qd-upload--only-view" : ""
18871
+ ],
18859
18872
  files: vue.unref(fileList),
18860
18873
  "onUpdate:files": _cache[2] || (_cache[2] = ($event) => vue.isRef(fileList) ? fileList.value = $event : null)
18861
- }, reProps.value.uploadOptions), {
18874
+ }, reProps.value.uploadOptions), vue.createSlots({
18862
18875
  default: vue.withCtx(() => [
18863
18876
  __props.theme === "btn-image-popup" ? (vue.openBlock(), vue.createBlock(vue.unref(tdesignVueNext.Space), {
18864
18877
  key: 0,
@@ -18925,11 +18938,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18925
18938
  _: 1
18926
18939
  })) : vue.createCommentVNode("", true)
18927
18940
  ]),
18928
- _: 1
18929
- }, 16, ["class", "files"]);
18941
+ _: 2
18942
+ }, [
18943
+ vue.renderList(_ctx.$slots, (_, name) => {
18944
+ return {
18945
+ name,
18946
+ fn: vue.withCtx((slotProps) => [
18947
+ vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps)), void 0, true)
18948
+ ])
18949
+ };
18950
+ })
18951
+ ]), 1040, ["class", "files"]);
18930
18952
  };
18931
18953
  }
18932
18954
  });
18955
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-12f87975"]]);
18933
18956
  exports.PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE = PROVIDE_FORM_ADD_BEFORE_SUBMIT_QUEUE;
18934
18957
  exports.PROVIDE_GRID_ITEM_PROPS_KEY = PROVIDE_GRID_ITEM_PROPS_KEY;
18935
18958
  exports.PROVIDE_GRID_WIDTH_KEY = PROVIDE_GRID_WIDTH_KEY;
@@ -18945,7 +18968,6 @@ exports._sfc_main$2 = _sfc_main$d;
18945
18968
  exports._sfc_main$3 = _sfc_main$8;
18946
18969
  exports._sfc_main$4 = _sfc_main$4;
18947
18970
  exports._sfc_main$5 = _sfc_main$9;
18948
- exports._sfc_main$6 = _sfc_main;
18949
18971
  exports._typeof = _typeof;
18950
18972
  exports.auth = auth;
18951
18973
  exports.checkboxGroup = checkboxGroup;
@@ -18958,7 +18980,8 @@ exports.hasPermi = hasPermi;
18958
18980
  exports.hasPermiDirective = hasPermiDirective;
18959
18981
  exports.hasRole = hasRole;
18960
18982
  exports.hasRoleDirective = hasRoleDirective;
18961
- exports.index = index;
18983
+ exports.index = index$1;
18984
+ exports.index$1 = index;
18962
18985
  exports.list = list;
18963
18986
  exports.parseVModelPath = parseVModelPath;
18964
18987
  exports.qdAsyncCompute = qdAsyncCompute;
@@ -18977,4 +19000,4 @@ exports.useDictDynamic = useDictDynamic;
18977
19000
  exports.useDisabled = useDisabled;
18978
19001
  exports.useModal = useModal;
18979
19002
  exports.useReadonly = useReadonly;
18980
- //# sourceMappingURL=index-CWxAZ81Q.js.map
19003
+ //# sourceMappingURL=index-C_utdxmy.js.map