dfs-page-config 0.4.97 → 0.4.98
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 +33 -32
- 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,10 +29761,7 @@ 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
|
-
|
|
29765
|
-
const jt = getTargetComp(store, k.pageKey, Ue);
|
|
29766
|
-
jt.reset && jt.reset();
|
|
29767
|
-
}
|
|
29764
|
+
kt && kt.closeDialog();
|
|
29768
29765
|
}
|
|
29769
29766
|
function qe(Ue) {
|
|
29770
29767
|
getTargetComp(store, k.pageKey, Ue.target).submit((jt) => {
|
|
@@ -29783,7 +29780,7 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29783
29780
|
// exportData
|
|
29784
29781
|
};
|
|
29785
29782
|
}
|
|
29786
|
-
}),
|
|
29783
|
+
}), ButtonGroup_vue_vue_type_style_index_0_scoped_578dc16d_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$g = ["onClick"];
|
|
29787
29784
|
function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
29788
29785
|
const xe = Upload, Oe = ElIcon, Ie = ElButton;
|
|
29789
29786
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29839,7 +29836,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29839
29836
|
renderSlot(k.$slots, "default", {}, void 0, !0)
|
|
29840
29837
|
], 4);
|
|
29841
29838
|
}
|
|
29842
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
29839
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-578dc16d"]]), _sfc_main$g = defineComponent({
|
|
29843
29840
|
props: {
|
|
29844
29841
|
gridApi: {
|
|
29845
29842
|
type: Object,
|
|
@@ -101664,41 +101661,45 @@ const __unplugin_components_0 = { name: "ep-warning-filled", render: render$1 },
|
|
|
101664
101661
|
option: {},
|
|
101665
101662
|
component: {},
|
|
101666
101663
|
compChildrenSlots: computed$1(() => {
|
|
101667
|
-
var
|
|
101668
|
-
const
|
|
101669
|
-
return (
|
|
101670
|
-
|
|
101671
|
-
}),
|
|
101664
|
+
var Ie;
|
|
101665
|
+
const Oe = [];
|
|
101666
|
+
return (Ie = ie.component.children) == null || Ie.forEach((Ne) => {
|
|
101667
|
+
Ne.slot && Oe.push(Ne), Oe.push(...getAllSlots(Ne));
|
|
101668
|
+
}), Oe;
|
|
101672
101669
|
}),
|
|
101673
101670
|
dialog: !1,
|
|
101674
101671
|
title: computed$1(() => typeof ie.component.title == "function" ? ie.component.title() : ie.component.title)
|
|
101675
101672
|
});
|
|
101676
101673
|
let ae = {};
|
|
101677
|
-
function pe(
|
|
101674
|
+
function pe(Oe) {
|
|
101678
101675
|
ae = {};
|
|
101679
|
-
const
|
|
101680
|
-
if (
|
|
101681
|
-
|
|
101682
|
-
const
|
|
101683
|
-
component:
|
|
101684
|
-
currentRow:
|
|
101676
|
+
const Ie = getTargetComp(L, k.pageKey, ie.option.target);
|
|
101677
|
+
if (Ie.beforeOpen) {
|
|
101678
|
+
Ie.currentRow = Oe;
|
|
101679
|
+
const Ne = {
|
|
101680
|
+
component: Ie,
|
|
101681
|
+
currentRow: Oe,
|
|
101685
101682
|
sourceOption: ie.option
|
|
101686
101683
|
};
|
|
101687
|
-
if (
|
|
101684
|
+
if (Ie.relation && (Ne.relation = getRelationComp(L, k.pageKey, Ie.relation)), Ie.beforeOpen(Ne) === !1)
|
|
101688
101685
|
return;
|
|
101689
101686
|
}
|
|
101690
|
-
|
|
101691
|
-
|
|
101692
|
-
}), ie.component =
|
|
101687
|
+
Ie.children && Ie.children.forEach((Ne) => {
|
|
101688
|
+
Ne.type === "Form" && (Oe && (Ne.row = Oe), ae = Ne);
|
|
101689
|
+
}), ie.component = Ie, ie.dialog = !0;
|
|
101693
101690
|
}
|
|
101694
101691
|
function _e() {
|
|
101695
|
-
ie.component.beforeClose && ie.component.beforeClose({ component: ie.component }) === !1 || (ie.dialog = !1
|
|
101692
|
+
ie.component.beforeClose && ie.component.beforeClose({ component: ie.component }) === !1 || (ie.dialog = !1);
|
|
101693
|
+
}
|
|
101694
|
+
function xe() {
|
|
101695
|
+
ae.reset && ae.reset();
|
|
101696
101696
|
}
|
|
101697
101697
|
return {
|
|
101698
101698
|
...toRefs(ie),
|
|
101699
101699
|
store: L,
|
|
101700
101700
|
showDialog: pe,
|
|
101701
101701
|
closeDialog: _e,
|
|
101702
|
+
resetForm: xe,
|
|
101702
101703
|
getAllSlots
|
|
101703
101704
|
};
|
|
101704
101705
|
}
|
|
@@ -101714,7 +101715,7 @@ function _sfc_render$9(k, L, ie, ae, pe, _e) {
|
|
|
101714
101715
|
center: k.component.center !== !1,
|
|
101715
101716
|
"close-on-click-modal": !1,
|
|
101716
101717
|
key: k.component.updateKey,
|
|
101717
|
-
onClose: k.
|
|
101718
|
+
onClose: k.resetForm
|
|
101718
101719
|
}, {
|
|
101719
101720
|
header: withCtx(() => [
|
|
101720
101721
|
k.component.dialogType === "warning" ? (openBlock(), createBlock(Oe, {
|