dfs-page-config 0.6.37 → 0.6.39

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.
@@ -32747,7 +32747,7 @@ const _sfc_main$p = defineComponent({
32747
32747
  let KAe = ame.raw ? URL.createObjectURL(ame.raw) : ame.url || ((nme = (XAe = ame.response) == null ? void 0 : XAe.data) == null ? void 0 : nme.url) || ((dme = (cme = ame.response) == null ? void 0 : cme.data) == null ? void 0 : dme.cnUrl);
32748
32748
  window.open(KAe);
32749
32749
  }, PAe = (ame, KAe) => {
32750
- ame.code == 0 ? (ame.data.url = ame.data.cnUrl, ame.data.name = ame.data.fileName = KAe.raw.name, bAe.value.push(ame.data), kh.emit("fileUrlInfo", bAe.value), ElMessage.success(oAe("上传成功"))) : (kh.emit("onError", ame), ElMessage.error(oAe("上传失败"))), tAe.commit("setLoading", !1);
32750
+ ame.code == 0 ? (ame.data.url = ame.data.cnUrl, ame.data.name = ame.data.fileName = KAe.raw.name, bAe.value.push(ame.data), kh.emit("fileUrlInfo", bAe.value), ElMessage.success(oAe("上传成功"))) : (kh.emit("onError", ame), yAe.value.handleRemove(KAe), ElMessage.error(oAe("上传失败"))), tAe.commit("setLoading", !1);
32751
32751
  }, BAe = (ame) => {
32752
32752
  const KAe = uAe.value.includes(ame.type), XAe = ame.size / 1024 / 1024 < pAe.value;
32753
32753
  return KAe ? XAe ? (ame.type.includes("image") ? gAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/image/upload" : gAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/file/upload", hAe.value.fileName = ame.name.substring(0, ame.name.lastIndexOf(".")), vAe.value = getRequestHeaders(gAe.value), !0) : (ElMessage.error(`${oAe("上传文件大小不能超过")} ${pAe.value}MB!`), !1) : (ElMessage.error(oAe("上传文件格式错误") + "!"), !1);
@@ -32866,12 +32866,12 @@ const _sfc_main$p = defineComponent({
32866
32866
  isHovered: _Ae
32867
32867
  };
32868
32868
  }
32869
- }), UploadComp_vue_vue_type_style_index_0_scoped_8543173a_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc$1 = (Ff, kh) => {
32869
+ }), UploadComp_vue_vue_type_style_index_0_scoped_6a4cb8b6_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc$1 = (Ff, kh) => {
32870
32870
  const tAe = Ff.__vccOpts || Ff;
32871
32871
  for (const [oAe, uAe] of kh)
32872
32872
  tAe[oAe] = uAe;
32873
32873
  return tAe;
32874
- }, _withScopeId$4 = (Ff) => (pushScopeId("data-v-8543173a"), Ff = Ff(), popScopeId(), Ff), _hoisted_1$r = { class: "el-upload__tip" }, _hoisted_2$i = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", {
32874
+ }, _withScopeId$4 = (Ff) => (pushScopeId("data-v-6a4cb8b6"), Ff = Ff(), popScopeId(), Ff), _hoisted_1$r = { class: "el-upload__tip" }, _hoisted_2$i = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", {
32875
32875
  class: "el-upload__tip",
32876
32876
  style: { color: "#409eff", "font-size": "12px" }
32877
32877
  }, " 悬浮时可按 Ctrl+V 粘贴图片 ", -1));
@@ -32947,7 +32947,7 @@ function _sfc_render$m(Ff, kh, tAe, oAe, uAe, pAe) {
32947
32947
  } : void 0
32948
32948
  ]), 1032, ["class", "style", "name", "multiple", "drag", "list-type", "data", "action", "file-list", "limit", "accept", "auto-upload", "on-exceed", "on-success", "before-upload", "on-preview", "on-remove", "headers", "disabled", "on-change", "onMouseenter", "onMouseleave"]);
32949
32949
  }
32950
- const UploadComp = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$m], ["__scopeId", "data-v-8543173a"]]), elSwitch = "", elTimeSelect = "", elScrollbar = "", elPopper = "", elTag = "", elOption = "", elOptionGroup = "", elSelect = "", elDatePicker = "", elDatePickerPanel = "", elCheckbox = "", elCheckboxGroup = "", elRadioButton = "", elRadio = "", elRadioGroup = "", elCascader = "", elCascaderPanel = "", style = "";
32950
+ const UploadComp = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$m], ["__scopeId", "data-v-6a4cb8b6"]]), elSwitch = "", elTimeSelect = "", elScrollbar = "", elPopper = "", elTag = "", elOption = "", elOptionGroup = "", elSelect = "", elDatePicker = "", elDatePickerPanel = "", elCheckbox = "", elCheckboxGroup = "", elRadioButton = "", elRadio = "", elRadioGroup = "", elCascader = "", elCascaderPanel = "", style = "";
32951
32951
  var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
32952
32952
  function t(Ff) {
32953
32953
  return Ff && Ff.__esModule && Object.prototype.hasOwnProperty.call(Ff, "default") ? Ff.default : Ff;
@@ -56854,7 +56854,7 @@ const Upload = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_rende
56854
56854
  // exportData
56855
56855
  };
56856
56856
  }
56857
- }), ButtonGroup_vue_vue_type_style_index_0_scoped_c63ae0ca_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$j = ["onClick"];
56857
+ }), ButtonGroup_vue_vue_type_style_index_0_scoped_4fe9c53f_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$j = ["onClick"];
56858
56858
  function _sfc_render$g(Ff, kh, tAe, oAe, uAe, pAe) {
56859
56859
  const hAe = Upload, gAe = ElIcon, vAe = __unplugin_components_2$3, yAe = ElButton;
56860
56860
  return openBlock(), createElementBlock("div", {
@@ -56890,7 +56890,7 @@ function _sfc_render$g(Ff, kh, tAe, oAe, uAe, pAe) {
56890
56890
  ]),
56891
56891
  _: 2
56892
56892
  }, 1024)) : createCommentVNode("", !0),
56893
- createTextVNode(" " + toDisplayString(wAe.text), 1)
56893
+ createTextVNode(" " + toDisplayString(typeof wAe.text == "function" ? wAe.text(Ff.getRelationComponents(wAe)) : wAe.text), 1)
56894
56894
  ], 12, _hoisted_1$j)) : (openBlock(), createBlock(yAe, {
56895
56895
  key: 1,
56896
56896
  style: normalizeStyle(wAe.style),
@@ -56906,7 +56906,7 @@ function _sfc_render$g(Ff, kh, tAe, oAe, uAe, pAe) {
56906
56906
  ]),
56907
56907
  _: 1
56908
56908
  })) : createCommentVNode("", !0),
56909
- createTextVNode(" " + toDisplayString(wAe.text), 1)
56909
+ createTextVNode(" " + toDisplayString(typeof wAe.text == "function" ? wAe.text(Ff.getRelationComponents(wAe)) : wAe.text), 1)
56910
56910
  ]),
56911
56911
  _: 2
56912
56912
  }, 1032, ["style", "type", "size", "onClick", "disabled"]))
@@ -56916,7 +56916,7 @@ function _sfc_render$g(Ff, kh, tAe, oAe, uAe, pAe) {
56916
56916
  renderSlot(Ff.$slots, "default", {}, void 0, !0)
56917
56917
  ], 6);
56918
56918
  }
56919
- const ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$g], ["__scopeId", "data-v-c63ae0ca"]]), _sfc_main$h = defineComponent({
56919
+ const ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["render", _sfc_render$g], ["__scopeId", "data-v-4fe9c53f"]]), _sfc_main$h = defineComponent({
56920
56920
  props: {
56921
56921
  gridApi: {
56922
56922
  type: Object,