dfs-page-config 0.4.97 → 0.4.99
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 +35 -29
- package/dist/dfs-page-config.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -27314,7 +27314,10 @@ function initData(k, L, ie) {
|
|
|
27314
27314
|
pe = _e, console.error("[警告] 不建议直接替换formData对象,建议使用修改属性值的方式进行更新"), console.error("不推荐: formData = { ... }"), console.error("推荐: formData.propertyName = value");
|
|
27315
27315
|
}
|
|
27316
27316
|
}), ae.elementGroup && ae.elementGroup.length ? ae.elementGroup.forEach((_e) => {
|
|
27317
|
-
|
|
27317
|
+
if (_e.prop) {
|
|
27318
|
+
const xe = Object.prototype.toString.call(_e.value);
|
|
27319
|
+
pe[_e.prop] = xe === "[object Object]" || xe === "[object Array]" ? JSON.parse(JSON.stringify(_e.value)) : _e.value ?? null;
|
|
27320
|
+
}
|
|
27318
27321
|
}) : ae.elementGroup = [];
|
|
27319
27322
|
}
|
|
27320
27323
|
ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), ae.initQuery && k.dispatch("_TABLE_QUERY", { pageKey: ie, tableComp: ae }));
|
|
@@ -28857,10 +28860,7 @@ const _sfc_main$l = defineComponent({
|
|
|
28857
28860
|
}, nr = (wr) => {
|
|
28858
28861
|
wr.type.includes("image") ? Ie.value = k.fileUrl || ie.state._BASE_URL + "/media-service/dfsGoodsCenterCn/image/upload" : Ie.value = k.fileUrl || ie.state._BASE_URL + "/media-service/dfsGoodsCenterCn/file/upload", Ne.value = getRequestHeaders(Ie.value), ie.commit("setLoading", !0);
|
|
28859
28862
|
const hr = _e.value.includes(wr.type), Ar = wr.size / 1024 / 1024 < xe.value;
|
|
28860
|
-
|
|
28861
|
-
return ElMessage.error(ae("上传图片格式错误") + "!");
|
|
28862
|
-
if (!Ar)
|
|
28863
|
-
return ElMessage.error(`${ae("上传图片大小不能超过")} ${xe.value}MB!`);
|
|
28863
|
+
return hr ? Ar ? !0 : (ElMessage.error(`${ae("上传图片大小不能超过")} ${xe.value}MB!`), !1) : (ElMessage.error(ae("上传图片格式错误") + "!"), !1);
|
|
28864
28864
|
}, er = () => {
|
|
28865
28865
|
console.log("DownLoad");
|
|
28866
28866
|
}, ar = () => ElMessage.warning(`${ae("文件数量不得超过")} ${k.limit} 个`), lr = (wr, hr) => {
|
|
@@ -28895,7 +28895,7 @@ const _sfc_main$l = defineComponent({
|
|
|
28895
28895
|
handleChange: lr
|
|
28896
28896
|
};
|
|
28897
28897
|
}
|
|
28898
|
-
}),
|
|
28898
|
+
}), UploadComp_vue_vue_type_style_index_0_scoped_ac43608a_lang = "", UploadComp_vue_vue_type_style_index_1_lang = "", _export_sfc = (k, L) => {
|
|
28899
28899
|
const ie = k.__vccOpts || k;
|
|
28900
28900
|
for (const [ae, pe] of L)
|
|
28901
28901
|
ie[ae] = pe;
|
|
@@ -28972,7 +28972,7 @@ function _sfc_render$k(k, L, ie, ae, pe, _e) {
|
|
|
28972
28972
|
}, null, 8, ["modelValue", "title"])
|
|
28973
28973
|
], 64);
|
|
28974
28974
|
}
|
|
28975
|
-
const UploadComp = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k], ["__scopeId", "data-v-
|
|
28975
|
+
const UploadComp = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$k], ["__scopeId", "data-v-ac43608a"]]), elSwitch = "", elTimeSelect = "", elScrollbar = "", elPopper = "", elInput = "", elTag = "", elOption = "", elOptionGroup = "", elSelect = "", elDatePicker = "", elCheckboxGroup = "", elCheckbox = "", elRadioButton = "", elRadioGroup = "", elRadio = "", elCascader = "", elCascaderPanel = "", elInputNumber = "", _sfc_main$k = defineComponent({
|
|
28976
28976
|
props: {
|
|
28977
28977
|
option: Object,
|
|
28978
28978
|
formComp: Object,
|
|
@@ -29686,7 +29686,7 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29686
29686
|
ze(Ue);
|
|
29687
29687
|
break;
|
|
29688
29688
|
case "cancel":
|
|
29689
|
-
Et(Ue.restTarget);
|
|
29689
|
+
Et(Ue.restTarget || Ue.target);
|
|
29690
29690
|
break;
|
|
29691
29691
|
case "submit":
|
|
29692
29692
|
qe(Ue);
|
|
@@ -29761,7 +29761,9 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29761
29761
|
}
|
|
29762
29762
|
function Et(Ue) {
|
|
29763
29763
|
const kt = store.getters._GET_DIALOGREF(k.pageKey);
|
|
29764
|
-
if (kt
|
|
29764
|
+
if (kt)
|
|
29765
|
+
kt.closeDialog();
|
|
29766
|
+
else if (Ue) {
|
|
29765
29767
|
const jt = getTargetComp(store, k.pageKey, Ue);
|
|
29766
29768
|
jt.reset && jt.reset();
|
|
29767
29769
|
}
|
|
@@ -29783,7 +29785,7 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29783
29785
|
// exportData
|
|
29784
29786
|
};
|
|
29785
29787
|
}
|
|
29786
|
-
}),
|
|
29788
|
+
}), ButtonGroup_vue_vue_type_style_index_0_scoped_f4a5d8d2_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$g = ["onClick"];
|
|
29787
29789
|
function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
29788
29790
|
const xe = Upload, Oe = ElIcon, Ie = ElButton;
|
|
29789
29791
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29839,7 +29841,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29839
29841
|
renderSlot(k.$slots, "default", {}, void 0, !0)
|
|
29840
29842
|
], 4);
|
|
29841
29843
|
}
|
|
29842
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
29844
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-f4a5d8d2"]]), _sfc_main$g = defineComponent({
|
|
29843
29845
|
props: {
|
|
29844
29846
|
gridApi: {
|
|
29845
29847
|
type: Object,
|
|
@@ -101664,41 +101666,45 @@ const __unplugin_components_0 = { name: "ep-warning-filled", render: render$1 },
|
|
|
101664
101666
|
option: {},
|
|
101665
101667
|
component: {},
|
|
101666
101668
|
compChildrenSlots: computed$1(() => {
|
|
101667
|
-
var
|
|
101668
|
-
const
|
|
101669
|
-
return (
|
|
101670
|
-
|
|
101671
|
-
}),
|
|
101669
|
+
var Ie;
|
|
101670
|
+
const Oe = [];
|
|
101671
|
+
return (Ie = ie.component.children) == null || Ie.forEach((Ne) => {
|
|
101672
|
+
Ne.slot && Oe.push(Ne), Oe.push(...getAllSlots(Ne));
|
|
101673
|
+
}), Oe;
|
|
101672
101674
|
}),
|
|
101673
101675
|
dialog: !1,
|
|
101674
101676
|
title: computed$1(() => typeof ie.component.title == "function" ? ie.component.title() : ie.component.title)
|
|
101675
101677
|
});
|
|
101676
101678
|
let ae = {};
|
|
101677
|
-
function pe(
|
|
101679
|
+
function pe(Oe) {
|
|
101678
101680
|
ae = {};
|
|
101679
|
-
const
|
|
101680
|
-
if (
|
|
101681
|
-
|
|
101682
|
-
const
|
|
101683
|
-
component:
|
|
101684
|
-
currentRow:
|
|
101681
|
+
const Ie = getTargetComp(L, k.pageKey, ie.option.target);
|
|
101682
|
+
if (Ie.beforeOpen) {
|
|
101683
|
+
Ie.currentRow = Oe;
|
|
101684
|
+
const Ne = {
|
|
101685
|
+
component: Ie,
|
|
101686
|
+
currentRow: Oe,
|
|
101685
101687
|
sourceOption: ie.option
|
|
101686
101688
|
};
|
|
101687
|
-
if (
|
|
101689
|
+
if (Ie.relation && (Ne.relation = getRelationComp(L, k.pageKey, Ie.relation)), Ie.beforeOpen(Ne) === !1)
|
|
101688
101690
|
return;
|
|
101689
101691
|
}
|
|
101690
|
-
|
|
101691
|
-
|
|
101692
|
-
}), ie.component =
|
|
101692
|
+
Ie.children && Ie.children.forEach((Ne) => {
|
|
101693
|
+
Ne.type === "Form" && (Oe && (Ne.row = Oe), ae = Ne);
|
|
101694
|
+
}), ie.component = Ie, ie.dialog = !0;
|
|
101693
101695
|
}
|
|
101694
101696
|
function _e() {
|
|
101695
|
-
ie.component.beforeClose && ie.component.beforeClose({ component: ie.component }) === !1 || (ie.dialog = !1
|
|
101697
|
+
ie.component.beforeClose && ie.component.beforeClose({ component: ie.component }) === !1 || (ie.dialog = !1);
|
|
101698
|
+
}
|
|
101699
|
+
function xe() {
|
|
101700
|
+
ae.reset && ae.reset();
|
|
101696
101701
|
}
|
|
101697
101702
|
return {
|
|
101698
101703
|
...toRefs(ie),
|
|
101699
101704
|
store: L,
|
|
101700
101705
|
showDialog: pe,
|
|
101701
101706
|
closeDialog: _e,
|
|
101707
|
+
resetForm: xe,
|
|
101702
101708
|
getAllSlots
|
|
101703
101709
|
};
|
|
101704
101710
|
}
|
|
@@ -101714,7 +101720,7 @@ function _sfc_render$9(k, L, ie, ae, pe, _e) {
|
|
|
101714
101720
|
center: k.component.center !== !1,
|
|
101715
101721
|
"close-on-click-modal": !1,
|
|
101716
101722
|
key: k.component.updateKey,
|
|
101717
|
-
onClose: k.
|
|
101723
|
+
onClose: k.resetForm
|
|
101718
101724
|
}, {
|
|
101719
101725
|
header: withCtx(() => [
|
|
101720
101726
|
k.component.dialogType === "warning" ? (openBlock(), createBlock(Oe, {
|