dfs-page-config 0.4.40 → 0.4.42
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 +87 -89
- 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
|
@@ -2014,21 +2014,7 @@ var view_default = /* @__PURE__ */ export_helper_default(view_vue_vue_type_scrip
|
|
|
2014
2014
|
function _sfc_render287(k, L, ie, ae, pe, _e) {
|
|
2015
2015
|
return openBlock(), createElementBlock("svg", _hoisted_1287, _hoisted_3286);
|
|
2016
2016
|
}
|
|
2017
|
-
var warning_filled_default = /* @__PURE__ */ export_helper_default(warning_filled_vue_vue_type_script_lang_default, [["render", _sfc_render287], ["__file", "warning-filled.vue"]]),
|
|
2018
|
-
name: "Warning"
|
|
2019
|
-
}, _hoisted_1288 = {
|
|
2020
|
-
viewBox: "0 0 1024 1024",
|
|
2021
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2022
|
-
}, _hoisted_2288 = /* @__PURE__ */ createElementVNode("path", {
|
|
2023
|
-
fill: "currentColor",
|
|
2024
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768zm48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"
|
|
2025
|
-
}, null, -1), _hoisted_3287 = [
|
|
2026
|
-
_hoisted_2288
|
|
2027
|
-
];
|
|
2028
|
-
function _sfc_render288(k, L, ie, ae, pe, _e) {
|
|
2029
|
-
return openBlock(), createElementBlock("svg", _hoisted_1288, _hoisted_3287);
|
|
2030
|
-
}
|
|
2031
|
-
var warning_default = /* @__PURE__ */ export_helper_default(warning_vue_vue_type_script_lang_default, [["render", _sfc_render288], ["__file", "warning.vue"]]), zoom_in_vue_vue_type_script_lang_default = {
|
|
2017
|
+
var warning_filled_default = /* @__PURE__ */ export_helper_default(warning_filled_vue_vue_type_script_lang_default, [["render", _sfc_render287], ["__file", "warning-filled.vue"]]), zoom_in_vue_vue_type_script_lang_default = {
|
|
2032
2018
|
name: "ZoomIn"
|
|
2033
2019
|
}, _hoisted_1292 = {
|
|
2034
2020
|
viewBox: "0 0 1024 1024",
|
|
@@ -28945,7 +28931,7 @@ const uploadComp = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_ren
|
|
|
28945
28931
|
remoteMethod: Oe
|
|
28946
28932
|
};
|
|
28947
28933
|
}
|
|
28948
|
-
}),
|
|
28934
|
+
}), Form_vue_vue_type_style_index_0_scoped_46e19068_lang = "", _hoisted_1$g = {
|
|
28949
28935
|
key: 0,
|
|
28950
28936
|
class: "mask"
|
|
28951
28937
|
};
|
|
@@ -29050,8 +29036,9 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29050
29036
|
label: typeof ir.itemName == "function" ? ir.itemName(Ar) : Ar[ir.itemName || "label"],
|
|
29051
29037
|
value: typeof ir.itemValue == "function" ? ir.itemValue(Ar) : Ar[ir.itemValue || "value"],
|
|
29052
29038
|
key: Ar.value,
|
|
29053
|
-
disabled: Ar.disabled
|
|
29054
|
-
|
|
29039
|
+
disabled: Ar.disabled,
|
|
29040
|
+
onClick: (hr) => ir.optionClick && ir.optionClick({ formComp: k.componentOption, value: k.formData[ir.prop], option: Ar })
|
|
29041
|
+
}, null, 8, ["label", "value", "disabled", "onClick"]))), 128))
|
|
29055
29042
|
]),
|
|
29056
29043
|
_: 2
|
|
29057
29044
|
}, 1032, ["clearable", "filterable", "placeholder", "multiple", "modelValue", "onUpdate:modelValue", "onChange", "onVisibleChange", "disabled", "collapse-tags", "collapse-tags-tooltip"])) : createCommentVNode("", !0),
|
|
@@ -29175,8 +29162,9 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29175
29162
|
modelValue: k.formData[ir.prop],
|
|
29176
29163
|
"onUpdate:modelValue": (Ar) => k.formData[ir.prop] = Ar,
|
|
29177
29164
|
clearable: ir.clearable !== !1,
|
|
29178
|
-
disabled: ir.disabled
|
|
29179
|
-
|
|
29165
|
+
disabled: ir.disabled,
|
|
29166
|
+
"disabled-date": ir.disabledDate
|
|
29167
|
+
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue", "clearable", "disabled", "disabled-date"])) : createCommentVNode("", !0),
|
|
29180
29168
|
ir.type === "Daterange" ? (openBlock(), createBlock(tr, {
|
|
29181
29169
|
key: 13,
|
|
29182
29170
|
type: "daterange",
|
|
@@ -29269,7 +29257,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29269
29257
|
_: 3
|
|
29270
29258
|
}, 8, ["class", "model", "size", "inline", "label-width", "style"]);
|
|
29271
29259
|
}
|
|
29272
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
29260
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-46e19068"]]), _sfc_main$h = defineComponent({
|
|
29273
29261
|
name: "Upload",
|
|
29274
29262
|
props: {
|
|
29275
29263
|
url: String,
|
|
@@ -29825,7 +29813,7 @@ function getDefaultData(k, L) {
|
|
|
29825
29813
|
}
|
|
29826
29814
|
const _sfc_main$g = defineComponent({
|
|
29827
29815
|
name: "ButtonGroup",
|
|
29828
|
-
components: { Upload
|
|
29816
|
+
components: { Upload },
|
|
29829
29817
|
props: {
|
|
29830
29818
|
pageKey: {
|
|
29831
29819
|
type: String,
|
|
@@ -29967,7 +29955,7 @@ const _sfc_main$g = defineComponent({
|
|
|
29967
29955
|
// exportData
|
|
29968
29956
|
};
|
|
29969
29957
|
}
|
|
29970
|
-
}),
|
|
29958
|
+
}), ButtonGroup_vue_vue_type_style_index_0_scoped_d62fa4e8_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$f = ["onClick"];
|
|
29971
29959
|
function _sfc_render$f(k, L, ie, ae, pe, _e) {
|
|
29972
29960
|
const xe = Upload, Oe = ElIcon, Ie = ElButton;
|
|
29973
29961
|
return openBlock(), createElementBlock("div", {
|
|
@@ -30005,6 +29993,7 @@ function _sfc_render$f(k, L, ie, ae, pe, _e) {
|
|
|
30005
29993
|
createTextVNode(" " + toDisplayString(Ne.text), 1)
|
|
30006
29994
|
], 12, _hoisted_1$f)) : (openBlock(), createBlock(Ie, {
|
|
30007
29995
|
key: 1,
|
|
29996
|
+
style: normalizeStyle(Ne.style),
|
|
30008
29997
|
type: Ne.buttonType || "primary",
|
|
30009
29998
|
size: k.size,
|
|
30010
29999
|
onClick: ($e) => k.handleClick(Ne),
|
|
@@ -30014,7 +30003,7 @@ function _sfc_render$f(k, L, ie, ae, pe, _e) {
|
|
|
30014
30003
|
createTextVNode(toDisplayString(Ne.text), 1)
|
|
30015
30004
|
]),
|
|
30016
30005
|
_: 2
|
|
30017
|
-
}, 1032, ["type", "size", "onClick", "disabled"]))
|
|
30006
|
+
}, 1032, ["style", "type", "size", "onClick", "disabled"]))
|
|
30018
30007
|
], 64))
|
|
30019
30008
|
], 64))
|
|
30020
30009
|
], 64))), 128)),
|
|
@@ -30024,7 +30013,7 @@ function _sfc_render$f(k, L, ie, ae, pe, _e) {
|
|
|
30024
30013
|
}, void 0, !0)), 128))
|
|
30025
30014
|
], 4);
|
|
30026
30015
|
}
|
|
30027
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
30016
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f], ["__scopeId", "data-v-d62fa4e8"]]), _sfc_main$f = defineComponent({
|
|
30028
30017
|
props: {
|
|
30029
30018
|
gridApi: {
|
|
30030
30019
|
type: Object,
|
|
@@ -101791,34 +101780,38 @@ const HeaderTip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_rend
|
|
|
101791
101780
|
});
|
|
101792
101781
|
function _sfc_render$9(k, L, ie, ae, pe, _e) {
|
|
101793
101782
|
const xe = resolveComponent("ChildrenComponent", !0);
|
|
101794
|
-
return openBlock(!0), createElementBlock(Fragment, null, renderList(k.configOption, (Oe) => (openBlock(),
|
|
101795
|
-
key: (Oe.updateKey || "") + Oe.key
|
|
101796
|
-
componentOption: Oe,
|
|
101797
|
-
pageKey: k.pageKey
|
|
101798
|
-
}, createSlots({
|
|
101799
|
-
default: withCtx(() => [
|
|
101800
|
-
Oe.children && Oe.children.length ? (openBlock(), createBlock(xe, {
|
|
101801
|
-
key: 0,
|
|
101802
|
-
pageKey: k.pageKey,
|
|
101803
|
-
configOption: Oe.children
|
|
101804
|
-
}, createSlots({ _: 2 }, [
|
|
101805
|
-
renderList(k.getAllSlots(Oe), (Ie) => ({
|
|
101806
|
-
name: Ie.slot,
|
|
101807
|
-
fn: withCtx(() => [
|
|
101808
|
-
renderSlot(k.$slots, Ie.slot)
|
|
101809
|
-
])
|
|
101810
|
-
}))
|
|
101811
|
-
]), 1032, ["pageKey", "configOption"])) : createCommentVNode("", !0)
|
|
101812
|
-
]),
|
|
101813
|
-
_: 2
|
|
101783
|
+
return openBlock(!0), createElementBlock(Fragment, null, renderList(k.configOption, (Oe) => (openBlock(), createElementBlock(Fragment, {
|
|
101784
|
+
key: (Oe.updateKey || "") + Oe.key
|
|
101814
101785
|
}, [
|
|
101815
|
-
|
|
101816
|
-
|
|
101817
|
-
|
|
101818
|
-
|
|
101819
|
-
|
|
101820
|
-
|
|
101821
|
-
|
|
101786
|
+
Oe.slot ? renderSlot(k.$slots, Oe.slot, { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(Oe.type), {
|
|
101787
|
+
key: 1,
|
|
101788
|
+
componentOption: Oe,
|
|
101789
|
+
pageKey: k.pageKey
|
|
101790
|
+
}, createSlots({
|
|
101791
|
+
default: withCtx(() => [
|
|
101792
|
+
Oe.children && Oe.children.length ? (openBlock(), createBlock(xe, {
|
|
101793
|
+
key: 0,
|
|
101794
|
+
pageKey: k.pageKey,
|
|
101795
|
+
configOption: Oe.children
|
|
101796
|
+
}, createSlots({ _: 2 }, [
|
|
101797
|
+
renderList(k.getAllSlots(Oe), (Ie) => ({
|
|
101798
|
+
name: Ie.slot,
|
|
101799
|
+
fn: withCtx(() => [
|
|
101800
|
+
renderSlot(k.$slots, Ie.slot)
|
|
101801
|
+
])
|
|
101802
|
+
}))
|
|
101803
|
+
]), 1032, ["pageKey", "configOption"])) : createCommentVNode("", !0)
|
|
101804
|
+
]),
|
|
101805
|
+
_: 2
|
|
101806
|
+
}, [
|
|
101807
|
+
renderList(k.getAllSlots(Oe), (Ie) => ({
|
|
101808
|
+
name: Ie.slot,
|
|
101809
|
+
fn: withCtx(() => [
|
|
101810
|
+
renderSlot(k.$slots, Ie.slot)
|
|
101811
|
+
])
|
|
101812
|
+
}))
|
|
101813
|
+
]), 1032, ["componentOption", "pageKey"]))
|
|
101814
|
+
], 64))), 128);
|
|
101822
101815
|
}
|
|
101823
101816
|
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), _hoisted_1$9 = {
|
|
101824
101817
|
viewBox: "0 0 1024 1024",
|
|
@@ -101845,6 +101838,13 @@ const __unplugin_components_0 = { name: "ep-warning-filled", render: render$1 },
|
|
|
101845
101838
|
const L = useStore(), ie = reactive({
|
|
101846
101839
|
option: {},
|
|
101847
101840
|
component: {},
|
|
101841
|
+
compChildrenSlots: computed$1(() => {
|
|
101842
|
+
var Oe;
|
|
101843
|
+
const xe = [];
|
|
101844
|
+
return (Oe = ie.component.children) == null || Oe.forEach((Ie) => {
|
|
101845
|
+
Ie.slot && xe.push(Ie), xe.push(...getAllSlots(Ie));
|
|
101846
|
+
}), xe;
|
|
101847
|
+
}),
|
|
101848
101848
|
dialog: !1,
|
|
101849
101849
|
title: computed$1(() => typeof ie.component.title == "function" ? ie.component.title() : ie.component.title)
|
|
101850
101850
|
});
|
|
@@ -101863,7 +101863,8 @@ const __unplugin_components_0 = { name: "ep-warning-filled", render: render$1 },
|
|
|
101863
101863
|
...toRefs(ie),
|
|
101864
101864
|
store: L,
|
|
101865
101865
|
showDialog: pe,
|
|
101866
|
-
closeDialog: _e
|
|
101866
|
+
closeDialog: _e,
|
|
101867
|
+
getAllSlots
|
|
101867
101868
|
};
|
|
101868
101869
|
}
|
|
101869
101870
|
}), Dialog_vue_vue_type_style_index_0_lang = "", _hoisted_1$8 = ["innerHTML"];
|
|
@@ -101875,34 +101876,36 @@ function _sfc_render$8(k, L, ie, ae, pe, _e) {
|
|
|
101875
101876
|
modelValue: k.dialog,
|
|
101876
101877
|
"onUpdate:modelValue": L[0] || (L[0] = ($e) => k.dialog = $e),
|
|
101877
101878
|
width: k.component.width || "500px",
|
|
101878
|
-
center:
|
|
101879
|
+
center: k.component.center !== !1,
|
|
101879
101880
|
"close-on-click-modal": !1,
|
|
101880
101881
|
key: k.component.updateKey,
|
|
101881
101882
|
onClose: k.closeDialog
|
|
101882
101883
|
}, {
|
|
101883
101884
|
header: withCtx(() => [
|
|
101884
|
-
|
|
101885
|
-
|
|
101886
|
-
|
|
101887
|
-
|
|
101888
|
-
|
|
101889
|
-
|
|
101890
|
-
|
|
101891
|
-
|
|
101892
|
-
|
|
101893
|
-
|
|
101894
|
-
|
|
101895
|
-
|
|
101885
|
+
k.component.dialogType === "warning" ? (openBlock(), createBlock(Oe, {
|
|
101886
|
+
key: 0,
|
|
101887
|
+
style: { position: "relative", top: "2px" }
|
|
101888
|
+
}, {
|
|
101889
|
+
default: withCtx(() => [
|
|
101890
|
+
createVNode(xe, { color: "#e6a23c" })
|
|
101891
|
+
]),
|
|
101892
|
+
_: 1
|
|
101893
|
+
})) : createCommentVNode("", !0),
|
|
101894
|
+
createElementVNode("div", {
|
|
101895
|
+
innerHTML: k.title,
|
|
101896
|
+
style: { display: "inline-block", "margin-left": "6px" }
|
|
101897
|
+
}, null, 8, _hoisted_1$8)
|
|
101896
101898
|
]),
|
|
101897
101899
|
default: withCtx(() => [
|
|
101898
101900
|
createVNode(Ie, {
|
|
101899
101901
|
configOption: k.component.children,
|
|
101900
101902
|
pageKey: k.pageKey
|
|
101901
101903
|
}, createSlots({ _: 2 }, [
|
|
101902
|
-
renderList(k.
|
|
101904
|
+
renderList(k.compChildrenSlots, ($e) => ({
|
|
101903
101905
|
name: $e.slot,
|
|
101904
|
-
fn: withCtx(() => [
|
|
101906
|
+
fn: withCtx(({ data: Et, slot: qe }) => [
|
|
101905
101907
|
renderSlot(k.$slots, $e.slot, {
|
|
101908
|
+
data: Et,
|
|
101906
101909
|
slot: $e.slot
|
|
101907
101910
|
})
|
|
101908
101911
|
])
|
|
@@ -101910,7 +101913,7 @@ function _sfc_render$8(k, L, ie, ae, pe, _e) {
|
|
|
101910
101913
|
]), 1032, ["configOption", "pageKey"])
|
|
101911
101914
|
]),
|
|
101912
101915
|
_: 3
|
|
101913
|
-
}, 8, ["title", "modelValue", "width", "onClose"]);
|
|
101916
|
+
}, 8, ["title", "modelValue", "width", "center", "onClose"]);
|
|
101914
101917
|
}
|
|
101915
101918
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), elDescriptions = "", elDescriptionsItem = "", _sfc_main$8 = defineComponent({
|
|
101916
101919
|
name: "Descriptions",
|
|
@@ -102123,14 +102126,15 @@ const SplitScreen = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
102123
102126
|
}
|
|
102124
102127
|
},
|
|
102125
102128
|
setup(k) {
|
|
102126
|
-
const L = useStore(), ie = ref(), ae = k.pageConfigData, pe = [];
|
|
102127
|
-
return ae.components.forEach((
|
|
102128
|
-
|
|
102129
|
-
}), initPage({ pageKey: ae.pageKey, components:
|
|
102130
|
-
const
|
|
102131
|
-
|
|
102129
|
+
const L = useStore(), ie = ref(), ae = k.pageConfigData, pe = ae.components.reduce((xe, Oe) => Oe.type === "dialog" ? [...xe, ...Oe.children] : xe, []).reduce((xe, Oe) => (Oe.slot && xe.push(Oe), [...xe, ...getAllSlots(Oe)]), []), _e = [];
|
|
102130
|
+
return ae.components.forEach((xe) => {
|
|
102131
|
+
xe.type === "SplitScreen" ? xe.topComponents && xe.downComponents && _e.push(...xe.topComponents, ...xe.downComponents) : _e.push(xe);
|
|
102132
|
+
}), initPage({ pageKey: ae.pageKey, components: _e, dialogRef: ie }, L), handleEnter((xe) => {
|
|
102133
|
+
const Oe = xe.target.dataset.pagekey, Ie = xe.target.dataset.target;
|
|
102134
|
+
Ie && queryData(L, Oe, Ie);
|
|
102132
102135
|
}), {
|
|
102133
102136
|
dialogRef: ie,
|
|
102137
|
+
dialogSlots: pe,
|
|
102134
102138
|
getAllSlots
|
|
102135
102139
|
};
|
|
102136
102140
|
}
|
|
@@ -102247,20 +102251,14 @@ function _sfc_render$3(k, L, ie, ae, pe, _e) {
|
|
|
102247
102251
|
key: 0,
|
|
102248
102252
|
ref: "dialogRef",
|
|
102249
102253
|
pageKey: k.pageConfigData.pageKey
|
|
102250
|
-
}, {
|
|
102251
|
-
|
|
102252
|
-
|
|
102253
|
-
|
|
102254
|
-
|
|
102255
|
-
|
|
102256
|
-
|
|
102257
|
-
|
|
102258
|
-
$e.slot == Ie.slot ? renderSlot(k.$slots, $e.slot, { key: 0 }) : createCommentVNode("", !0)
|
|
102259
|
-
], 64))), 128))
|
|
102260
|
-
], 64))), 128))
|
|
102261
|
-
]),
|
|
102262
|
-
_: 3
|
|
102263
|
-
}, 8, ["pageKey"])) : createCommentVNode("", !0)
|
|
102254
|
+
}, createSlots({ _: 2 }, [
|
|
102255
|
+
renderList(k.dialogSlots, (Ie) => ({
|
|
102256
|
+
name: Ie.slot,
|
|
102257
|
+
fn: withCtx(({ data: Ne }) => [
|
|
102258
|
+
renderSlot(k.$slots, Ie.slot, { data: Ne })
|
|
102259
|
+
])
|
|
102260
|
+
}))
|
|
102261
|
+
]), 1032, ["pageKey"])) : createCommentVNode("", !0)
|
|
102264
102262
|
], 64);
|
|
102265
102263
|
}
|
|
102266
102264
|
const Page = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$3]]);
|