dfs-page-config 0.4.79 → 0.4.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.
- package/dist/dfs-page-config.js +16 -16
- 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
|
@@ -27138,7 +27138,7 @@ function getComp(k, L) {
|
|
|
27138
27138
|
}
|
|
27139
27139
|
function getRelationComp(k, L, ie) {
|
|
27140
27140
|
const ae = {};
|
|
27141
|
-
return ie.forEach((pe) => {
|
|
27141
|
+
return ie && ie.length && ie.forEach((pe) => {
|
|
27142
27142
|
const _e = getTargetComp(k, L, pe);
|
|
27143
27143
|
ae[pe] = _e;
|
|
27144
27144
|
}), ae;
|
|
@@ -27274,11 +27274,12 @@ const store = createStore$1({
|
|
|
27274
27274
|
[Ne]: Ie || {},
|
|
27275
27275
|
method: L.method || "POST"
|
|
27276
27276
|
}).then(($e) => {
|
|
27277
|
+
var qe;
|
|
27277
27278
|
const Et = filterRes($e, L);
|
|
27278
|
-
L.searchAfter && L.searchAfter(Et, $e, L) === !1 || (pe ? L.selectedNodes.forEach((
|
|
27279
|
-
for (let
|
|
27280
|
-
const
|
|
27281
|
-
|
|
27279
|
+
L.searchAfter && L.searchAfter(Et, $e, L) === !1 || (pe ? (qe = L.selectedNodes) == null || qe.forEach((Dt) => {
|
|
27280
|
+
for (let Ue = 0; Ue < Et.result.length; Ue++) {
|
|
27281
|
+
const kt = Et.result[Ue];
|
|
27282
|
+
Dt.data[pe.dataKey] == kt[pe.dataKey] && Dt.setData(kt);
|
|
27282
27283
|
}
|
|
27283
27284
|
}) : k.commit("updateRowData", { tableComp: L, res: Et }));
|
|
27284
27285
|
}).finally(() => {
|
|
@@ -29088,9 +29089,10 @@ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["re
|
|
|
29088
29089
|
allDisabled: !1,
|
|
29089
29090
|
formData: pe.formData,
|
|
29090
29091
|
row: {},
|
|
29091
|
-
loading: !1
|
|
29092
|
+
loading: !1,
|
|
29093
|
+
relation: getRelationComp(ie, k.pageKey, pe.relation)
|
|
29092
29094
|
});
|
|
29093
|
-
pe.submit = Ne, pe.reset = Ie, _e.elementGroup = computed$1(() => pe.elementGroup.filter((Dt) => Dt.isShow === void 0 || typeof Dt.isShow == "function" && Dt.isShow(_e.formData)));
|
|
29095
|
+
pe.submit = Ne, pe.reset = Ie, _e.elementGroup = computed$1(() => pe.elementGroup.filter((Dt) => Dt.isShow === void 0 || typeof Dt.isShow == "function" && Dt.isShow(_e.formData, _e.relation)));
|
|
29094
29096
|
function xe() {
|
|
29095
29097
|
pe.elementGroup.forEach((Dt) => {
|
|
29096
29098
|
(Dt.type === "Select" || Dt.type === "Cascader" || Dt.type === "radioGroup") && Dt.url && !Dt.remote && getSelectOption(ie, Dt, k.pageKey);
|
|
@@ -29137,10 +29139,8 @@ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["re
|
|
|
29137
29139
|
}
|
|
29138
29140
|
function $e(Dt) {
|
|
29139
29141
|
if (pe.submitBefore) {
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
const kt = pe.submitBefore({ relation: Ue, formData: pe.formData, row: pe.row, triggerButton: Dt });
|
|
29143
|
-
return kt === !1 ? !1 : kt;
|
|
29142
|
+
const Ue = pe.submitBefore({ relation: _e.relation, formData: pe.formData, row: pe.row, triggerButton: Dt });
|
|
29143
|
+
return Ue === !1 ? !1 : Ue;
|
|
29144
29144
|
}
|
|
29145
29145
|
return !0;
|
|
29146
29146
|
}
|
|
@@ -29175,7 +29175,7 @@ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["re
|
|
|
29175
29175
|
remoteMethod: Oe
|
|
29176
29176
|
};
|
|
29177
29177
|
}
|
|
29178
|
-
}),
|
|
29178
|
+
}), Form_vue_vue_type_style_index_0_scoped_85691c08_lang = "", _hoisted_1$g = {
|
|
29179
29179
|
key: 0,
|
|
29180
29180
|
class: "mask"
|
|
29181
29181
|
};
|
|
@@ -29196,7 +29196,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29196
29196
|
key: ir.prop,
|
|
29197
29197
|
label: ir.label,
|
|
29198
29198
|
prop: ir.prop || "",
|
|
29199
|
-
rules: typeof ir.rules == "function" ? ir.rules(k.formData) : ir.rules,
|
|
29199
|
+
rules: typeof ir.rules == "function" ? ir.rules(k.formData, k.relation) : ir.rules,
|
|
29200
29200
|
class: normalizeClass([ir.className, !k.open && wr > 4 ? "hide-item" : ""]),
|
|
29201
29201
|
style: normalizeStyle({
|
|
29202
29202
|
width: ir.width || k.formItemWidth,
|
|
@@ -29213,7 +29213,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29213
29213
|
}, null, 8, ["option", "formComp", "pageKey"])) : ir.type === "Input" ? (openBlock(), createBlock(Oe, {
|
|
29214
29214
|
key: 1,
|
|
29215
29215
|
clearable: "",
|
|
29216
|
-
disabled: typeof ir.disabled == "function" ? ir.disabled(k.formData) : ir.disabled || ir.disable,
|
|
29216
|
+
disabled: typeof ir.disabled == "function" ? ir.disabled(k.formData, k.relation) : ir.disabled || ir.disable,
|
|
29217
29217
|
"show-password": ir.inputType === "password",
|
|
29218
29218
|
type: ir.inputType || "text",
|
|
29219
29219
|
modelValue: k.formData[ir.prop],
|
|
@@ -29269,7 +29269,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29269
29269
|
onVisibleChange: (hr) => {
|
|
29270
29270
|
ir.visibleChange && ir.visibleChange(hr, { formComp: k.componentOption, value: k.formData[ir.prop], option: ir });
|
|
29271
29271
|
},
|
|
29272
|
-
disabled: typeof ir.disabled == "function" ? ir.disabled(k.formData) : ir.disabled,
|
|
29272
|
+
disabled: typeof ir.disabled == "function" ? ir.disabled(k.formData, k.relation) : ir.disabled,
|
|
29273
29273
|
"collapse-tags": ir.collapseTags,
|
|
29274
29274
|
"collapse-tags-tooltip": ir.collapseTagsTooltip
|
|
29275
29275
|
}, {
|
|
@@ -29498,7 +29498,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29498
29498
|
_: 3
|
|
29499
29499
|
}, 8, ["class", "model", "size", "inline", "label-width", "style"]);
|
|
29500
29500
|
}
|
|
29501
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
29501
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-85691c08"]]), _sfc_main$h = defineComponent({
|
|
29502
29502
|
name: "Upload",
|
|
29503
29503
|
props: {
|
|
29504
29504
|
url: String,
|