dfs-page-config 0.6.24 → 0.6.26
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/dfs-page-config.js +10 -11
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -30069,7 +30069,7 @@ const _sfc_main$p = defineComponent({
|
|
|
30069
30069
|
const tAe = useStore(), { t: iAe } = ((ZAe = (tme = (jAe = (nme = (ome = getCurrentInstance()) == null ? void 0 : ome.appContext) == null ? void 0 : nme.config) == null ? void 0 : jAe.globalProperties) == null ? void 0 : tme.useI18n) == null ? void 0 : ZAe.call(tme)) || {
|
|
30070
30070
|
t: (XAe) => XAe
|
|
30071
30071
|
// 如果获取不到翻译函数,直接返回原字符串
|
|
30072
|
-
}, { fileUrl: uAe, format: pAe, maxSize: hAe
|
|
30072
|
+
}, { fileUrl: uAe, format: pAe, maxSize: hAe } = toRefs(Ff), AAe = ref({ ...Ff.params }), vAe = ref(""), CAe = ref({}), wAe = ref(null), EAe = ref(!0), SAe = ref([]), xAe = ref(!1), DAe = reactive({
|
|
30073
30073
|
fileList: []
|
|
30074
30074
|
});
|
|
30075
30075
|
watch$1(
|
|
@@ -30093,9 +30093,8 @@ const _sfc_main$p = defineComponent({
|
|
|
30093
30093
|
}, TAe = (XAe, ime) => {
|
|
30094
30094
|
XAe.code ? ElMessage.error(iAe("上传失败")) : (XAe.data.url = XAe.data.cnUrl, XAe.data.name = XAe.data.fileName = ime.raw.name, SAe.value.push(XAe.data), kh.emit("fileUrlInfo", SAe.value), ElMessage.success(iAe("上传成功"))), tAe.commit("setLoading", !1);
|
|
30095
30095
|
}, BAe = (XAe) => {
|
|
30096
|
-
XAe.type.includes("image") ? vAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/image/upload" : vAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/file/upload", CAe.value = getRequestHeaders(vAe.value);
|
|
30097
30096
|
const ime = pAe.value.includes(XAe.type), ume = XAe.size / 1024 / 1024 < hAe.value;
|
|
30098
|
-
return ime ? ume ? !0 : (ElMessage.error(`${iAe("上传图片大小不能超过")} ${hAe.value}MB!`), !1) : (ElMessage.error(iAe("上传图片格式错误") + "!"), !1);
|
|
30097
|
+
return ime ? ume ? (XAe.type.includes("image") ? vAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/image/upload" : vAe.value = Ff.fileUrl || tAe.state._BASE_URL + "/media-service/dfsGoodsCenterCn/file/upload", AAe.value.fileName = XAe.name.substring(0, XAe.name.lastIndexOf(".")), CAe.value = getRequestHeaders(vAe.value), !0) : (ElMessage.error(`${iAe("上传图片大小不能超过")} ${hAe.value}MB!`), !1) : (ElMessage.error(iAe("上传图片格式错误") + "!"), !1);
|
|
30099
30098
|
}, FAe = () => {
|
|
30100
30099
|
console.log("DownLoad");
|
|
30101
30100
|
}, IAe = () => ElMessage.warning(`${iAe("文件数量不得超过")} ${Ff.limit} 个`), LAe = (XAe, ime) => {
|
|
@@ -30204,19 +30203,19 @@ const _sfc_main$p = defineComponent({
|
|
|
30204
30203
|
format: pAe,
|
|
30205
30204
|
bol: EAe,
|
|
30206
30205
|
handleExceed: IAe,
|
|
30207
|
-
|
|
30206
|
+
uploadParams: AAe,
|
|
30208
30207
|
handleChange: LAe,
|
|
30209
30208
|
handleMouseEnter: VAe,
|
|
30210
30209
|
handleMouseLeave: WAe,
|
|
30211
30210
|
isHovered: xAe
|
|
30212
30211
|
};
|
|
30213
30212
|
}
|
|
30214
|
-
}),
|
|
30213
|
+
}), UploadComp_vue_vue_type_style_index_0_scoped_8035d053_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc$1 = (Ff, kh) => {
|
|
30215
30214
|
const tAe = Ff.__vccOpts || Ff;
|
|
30216
30215
|
for (const [iAe, uAe] of kh)
|
|
30217
30216
|
tAe[iAe] = uAe;
|
|
30218
30217
|
return tAe;
|
|
30219
|
-
}, _withScopeId$4 = (Ff) => (pushScopeId("data-v-
|
|
30218
|
+
}, _withScopeId$4 = (Ff) => (pushScopeId("data-v-8035d053"), Ff = Ff(), popScopeId(), Ff), _hoisted_1$r = { class: "el-upload__tip" }, _hoisted_2$i = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", {
|
|
30220
30219
|
class: "el-upload__tip",
|
|
30221
30220
|
style: { color: "#409eff", "font-size": "12px" }
|
|
30222
30221
|
}, " 悬浮时可按 Ctrl+V 粘贴图片 ", -1));
|
|
@@ -30230,7 +30229,7 @@ function _sfc_render$m(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
|
30230
30229
|
drag: Ff.drag,
|
|
30231
30230
|
"list-type": Ff.listType,
|
|
30232
30231
|
ref: "uploadRef",
|
|
30233
|
-
data: Ff.
|
|
30232
|
+
data: Ff.uploadParams,
|
|
30234
30233
|
action: Ff.uploadUrl,
|
|
30235
30234
|
"show-file-list": !0,
|
|
30236
30235
|
"file-list": Ff.fileList,
|
|
@@ -30292,7 +30291,7 @@ function _sfc_render$m(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
|
30292
30291
|
} : void 0
|
|
30293
30292
|
]), 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"]);
|
|
30294
30293
|
}
|
|
30295
|
-
const UploadComp = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$m], ["__scopeId", "data-v-
|
|
30294
|
+
const UploadComp = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$m], ["__scopeId", "data-v-8035d053"]]), elSwitch = "", elTimeSelect = "", elScrollbar = "", elPopper = "", elTag = "", elOption = "", elOptionGroup = "", elSelect = "", elDatePicker = "", elCheckboxGroup = "", elCheckbox = "", elRadioButton = "", elRadioGroup = "", elRadio = "", elCascader = "", elCascaderPanel = "", style = "";
|
|
30296
30295
|
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
30297
30296
|
function t(Ff) {
|
|
30298
30297
|
return Ff && Ff.__esModule && Object.prototype.hasOwnProperty.call(Ff, "default") ? Ff.default : Ff;
|
|
@@ -53465,7 +53464,7 @@ const __unplugin_components_1$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["
|
|
|
53465
53464
|
fileUrlInfo: wAe
|
|
53466
53465
|
};
|
|
53467
53466
|
}
|
|
53468
|
-
}),
|
|
53467
|
+
}), Form_vue_vue_type_style_index_0_scoped_70be87ba_lang = "", Form_vue_vue_type_style_index_1_lang = "", _hoisted_1$m = {
|
|
53469
53468
|
key: 0,
|
|
53470
53469
|
class: "mask"
|
|
53471
53470
|
}, _hoisted_2$g = ["innerHTML"];
|
|
@@ -53744,7 +53743,7 @@ function _sfc_render$i(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
|
53744
53743
|
onChange: (XAe) => jAe.change && jAe.change({ formComp: Ff.componentOption, value: Ff.formData[jAe.prop], option: jAe })
|
|
53745
53744
|
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue", "clearable", "disabled", "value-format", "onChange"])) : jAe.type === "Date" ? (openBlock(), createBlock(FAe, {
|
|
53746
53745
|
key: 15,
|
|
53747
|
-
type: typeof jAe.
|
|
53746
|
+
type: typeof jAe.dateType == "function" ? jAe.dateType({ formComp: Ff.componentOption, value: Ff.formData[jAe.prop], option: jAe }) : jAe.dateType || "date",
|
|
53748
53747
|
placeholder: jAe.placeholder,
|
|
53749
53748
|
modelValue: Ff.formData[jAe.prop],
|
|
53750
53749
|
"onUpdate:modelValue": (XAe) => Ff.formData[jAe.prop] = XAe,
|
|
@@ -53869,7 +53868,7 @@ function _sfc_render$i(Ff, kh, tAe, iAe, uAe, pAe) {
|
|
|
53869
53868
|
_: 3
|
|
53870
53869
|
}, 8, ["class", "model", "size", "inline", "label-width", "label-position", "style", "hide-required-asterisk"]);
|
|
53871
53870
|
}
|
|
53872
|
-
const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$i], ["__scopeId", "data-v-
|
|
53871
|
+
const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$i], ["__scopeId", "data-v-70be87ba"]]), _hoisted_1$l = {
|
|
53873
53872
|
viewBox: "0 0 1024 1024",
|
|
53874
53873
|
width: "1.2em",
|
|
53875
53874
|
height: "1.2em"
|