act-plus 0.0.0
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/act-plus.js +6 -0
- package/act-plus.umd.cjs +38 -0
- package/lib/configBtns-8f8a2510.js +149 -0
- package/lib/configFileds-1fdc39d4.js +196 -0
- package/lib/configForm-b9e9ca98.js +129 -0
- package/lib/configTable-f5bdd5fc.js +337 -0
- package/lib/dialogAddField-b0a162f5.js +919 -0
- package/lib/dialogConfigBtn-7f410c08.js +768 -0
- package/lib/enum-99519ce0.js +114 -0
- package/lib/index-1c08d835.js +12028 -0
- package/lib/index-4c95799f.js +26 -0
- package/package.json +20 -0
- package/style.css +1 -0
- package/svg/btn-add-241f3e4f.js +4 -0
- package/svg/btn-back-93621853.js +4 -0
- package/svg/btn-bohui-b0a206a4.js +4 -0
- package/svg/btn-daochu-7b5b32e2.js +4 -0
- package/svg/btn-daoru-8ba48f49.js +4 -0
- package/svg/btn-delete-65a52caf.js +4 -0
- package/svg/btn-edit-e5232a18.js +4 -0
- package/svg/btn-fenpei-4bba16c2.js +4 -0
- package/svg/btn-lianjie-bdc679ea.js +4 -0
- package/svg/btn-lishitianbao-eb1212d2.js +4 -0
- package/svg/btn-liuchengtu-9591bcdb.js +4 -0
- package/svg/btn-mulu-0bbcf3d6.js +4 -0
- package/svg/btn-peizhi-d53bd4b5.js +4 -0
- package/svg/btn-qianshou-1acd18d0.js +4 -0
- package/svg/btn-quanxian-4607f51a.js +4 -0
- package/svg/btn-reset-1b0db495.js +4 -0
- package/svg/btn-rizhi-8836492c.js +4 -0
- package/svg/btn-search-54ecb613.js +4 -0
- package/svg/btn-shenpi-22b55f3c.js +4 -0
- package/svg/btn-start-173d3cfb.js +4 -0
- package/svg/btn-stop-d76fb767.js +4 -0
- package/svg/btn-tianbao-d57c7020.js +4 -0
- package/svg/btn-tianjiachengyuan-a613c5da.js +4 -0
- package/svg/btn-xiangqing-89b17590.js +4 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { defineAsyncComponent as U, reactive as M, ref as g, provide as D, watch as T, resolveComponent as m, openBlock as W, createBlock as A, withCtx as s, createVNode as b, unref as i, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
|
|
2
|
+
import { _ as E, g as P, a as H } from "./index-1c08d835.js";
|
|
3
|
+
import { useRoute as K } from "vue-router";
|
|
4
|
+
const $ = (r) => (j("data-v-148598b5"), r = r(), z(), r), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
|
|
5
|
+
/* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
|
|
6
|
+
], -1)), J = {
|
|
7
|
+
__name: "configBtns",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Object, default: () => [] }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(r, { expose: V, emit: Q }) {
|
|
13
|
+
const h = K(), L = U(() => import("./dialogConfigBtn-7f410c08.js")), d = r, w = () => ({
|
|
14
|
+
sort: 0,
|
|
15
|
+
permissionCode: null,
|
|
16
|
+
requestUrl: "",
|
|
17
|
+
btnName: "",
|
|
18
|
+
btnAlias: "",
|
|
19
|
+
btnIcon: "",
|
|
20
|
+
btnPostion: "",
|
|
21
|
+
btnType: "",
|
|
22
|
+
btnColor: "",
|
|
23
|
+
submitWay: "",
|
|
24
|
+
isCustomBtn: !1,
|
|
25
|
+
customType: "",
|
|
26
|
+
codeStr: "",
|
|
27
|
+
customComponentName: "",
|
|
28
|
+
customComponentUrl: "",
|
|
29
|
+
// isBatchOperate: false,
|
|
30
|
+
associationMenuId: "",
|
|
31
|
+
submitFields: [],
|
|
32
|
+
matchFields: []
|
|
33
|
+
});
|
|
34
|
+
let o = M((() => ({
|
|
35
|
+
tableLoading: !1,
|
|
36
|
+
showConfigBtnDialog: !1,
|
|
37
|
+
dialogData: {}
|
|
38
|
+
}))()), C = g(null), y = 0, v = [], c = g([]), N = [
|
|
39
|
+
{ prop: "checkbox", width: 60 },
|
|
40
|
+
{ prop: "serialNumber", width: 80 },
|
|
41
|
+
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
42
|
+
{ label: "权限码", prop: "permissionCode", minWidth: 200 },
|
|
43
|
+
{ label: "按钮别名", prop: "btnAlias", minWidth: 120 },
|
|
44
|
+
{ label: "按钮图标", prop: "btnIcon", minWidth: 120 },
|
|
45
|
+
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
46
|
+
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
47
|
+
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
48
|
+
], f = g([]);
|
|
49
|
+
const S = (a, t) => {
|
|
50
|
+
Object.assign(f.value[y], a), t(!0);
|
|
51
|
+
}, k = async (a) => {
|
|
52
|
+
try {
|
|
53
|
+
o.tableLoading = !0;
|
|
54
|
+
const t = d.id ? d.id : h.params.id, { data: l } = await H({ id: t });
|
|
55
|
+
c.value = (l || []).filter((n) => (a || []).some((u) => u.permissionCode == n.unique)).map((n) => n.unique), f.value = (l || []).map((n, u) => {
|
|
56
|
+
let _ = w(), p = (a || []).find((e) => e.permissionCode == n.unique) || {};
|
|
57
|
+
return { ..._, ...p, btnName: n.name, permissionCode: n.unique, sort: p.sort ? p.sort : (u + 1) * 10 };
|
|
58
|
+
}), o.tableLoading = !1;
|
|
59
|
+
} catch (t) {
|
|
60
|
+
o.tableLoading = !1, console.error(t);
|
|
61
|
+
}
|
|
62
|
+
}, R = () => C.value.getSelectionRows() || [];
|
|
63
|
+
D("associationMenuList", v), D("createDefaultButtonItem", w), T(
|
|
64
|
+
() => d.modelValue,
|
|
65
|
+
async (a, t) => {
|
|
66
|
+
try {
|
|
67
|
+
const l = d.id ? d.id : h.params.id;
|
|
68
|
+
v = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: l }] })).data || [], await k(a);
|
|
69
|
+
} catch (l) {
|
|
70
|
+
o.tableLoading = !1, console.error(l);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{ deep: !0, immediate: !0 }
|
|
74
|
+
);
|
|
75
|
+
const q = (a) => {
|
|
76
|
+
o.dialogData = a.row, y = a.$index, o.showConfigBtnDialog = !0;
|
|
77
|
+
};
|
|
78
|
+
return V({ getTableSelectionRows: R }), (a, t) => {
|
|
79
|
+
const l = m("el-tag"), n = m("el-input-number"), u = m("el-button"), _ = m("a-table"), p = m("el-card");
|
|
80
|
+
return W(), A(p, {
|
|
81
|
+
class: "form-card",
|
|
82
|
+
shadow: "hover"
|
|
83
|
+
}, {
|
|
84
|
+
header: s(() => [
|
|
85
|
+
G
|
|
86
|
+
]),
|
|
87
|
+
default: s(() => [
|
|
88
|
+
b(_, {
|
|
89
|
+
ref_key: "tableRef",
|
|
90
|
+
ref: C,
|
|
91
|
+
loading: i(o).tableLoading,
|
|
92
|
+
rowKey: "permissionCode",
|
|
93
|
+
selection: i(c),
|
|
94
|
+
"onUpdate:selection": t[0] || (t[0] = (e) => F(c) ? c.value = e : c = e),
|
|
95
|
+
headers: i(N),
|
|
96
|
+
data: i(f),
|
|
97
|
+
showPagination: !1
|
|
98
|
+
}, {
|
|
99
|
+
isCustomBtn: s(({ scope: e }) => [
|
|
100
|
+
b(l, {
|
|
101
|
+
type: "primary",
|
|
102
|
+
effect: "dark",
|
|
103
|
+
size: "small"
|
|
104
|
+
}, {
|
|
105
|
+
default: s(() => [
|
|
106
|
+
I(O(e.row.isCustomBtn ? "是" : "否"), 1)
|
|
107
|
+
]),
|
|
108
|
+
_: 2
|
|
109
|
+
}, 1024)
|
|
110
|
+
]),
|
|
111
|
+
sort: s(({ scope: e }) => [
|
|
112
|
+
b(n, {
|
|
113
|
+
modelValue: e.row.sort,
|
|
114
|
+
"onUpdate:modelValue": (B) => e.row.sort = B,
|
|
115
|
+
min: 0
|
|
116
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
117
|
+
]),
|
|
118
|
+
operate: s(({ scope: e }) => [
|
|
119
|
+
b(u, {
|
|
120
|
+
type: "primary",
|
|
121
|
+
text: "",
|
|
122
|
+
size: "small",
|
|
123
|
+
icon: "",
|
|
124
|
+
onClick: (B) => q(e)
|
|
125
|
+
}, {
|
|
126
|
+
default: s(() => [
|
|
127
|
+
I(" 配置 ")
|
|
128
|
+
]),
|
|
129
|
+
_: 2
|
|
130
|
+
}, 1032, ["onClick"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["loading", "selection", "headers", "data"]),
|
|
134
|
+
b(i(L), {
|
|
135
|
+
visible: i(o).showConfigBtnDialog,
|
|
136
|
+
"onUpdate:visible": t[1] || (t[1] = (e) => i(o).showConfigBtnDialog = e),
|
|
137
|
+
title: "配置按钮",
|
|
138
|
+
data: i(o).dialogData,
|
|
139
|
+
onRefresh: S
|
|
140
|
+
}, null, 8, ["visible", "data"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}, te = /* @__PURE__ */ E(J, [["__scopeId", "data-v-148598b5"]]);
|
|
147
|
+
export {
|
|
148
|
+
te as default
|
|
149
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as o, createElementVNode as C, createVNode as d, createTextVNode as i, unref as r, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
|
|
2
|
+
import { a as J } from "./enum-99519ce0.js";
|
|
3
|
+
import { _ as M } from "./index-1c08d835.js";
|
|
4
|
+
import "vue-router";
|
|
5
|
+
const Q = (u) => (Y("data-v-4087a081"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
|
|
6
|
+
__name: "configFileds",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { type: Object, default: () => [] }
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(u, { emit: v }) {
|
|
12
|
+
const F = I(() => import("./dialogAddField-b0a162f5.js")), g = v, h = u, V = H("configData")();
|
|
13
|
+
let l = U((() => ({
|
|
14
|
+
tableLoading: !1,
|
|
15
|
+
showAddFieldDialog: !1,
|
|
16
|
+
dialogTitle: "字段配置",
|
|
17
|
+
dialogData: {}
|
|
18
|
+
}))()), p = 0, D = [
|
|
19
|
+
{ label: "序号", prop: "serialNumber", width: 60 },
|
|
20
|
+
{ label: "字段", prop: "fieldName", width: 220 },
|
|
21
|
+
{ label: "字段Key", prop: "fieldKey", width: 180 },
|
|
22
|
+
{ label: "字段类型", prop: "fieldType", width: 180, render: !0 },
|
|
23
|
+
{ label: "使用场景", prop: "useScenes", minWidth: 180, render: !0 },
|
|
24
|
+
{ label: "是否自定义表头", prop: "customTableHeaderName", width: 140, render: !0 },
|
|
25
|
+
{ label: "场景自定义", prop: "formCustomComponentes", width: 140, render: !0 },
|
|
26
|
+
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
27
|
+
{ label: "操作", prop: "operate", width: 180, render: !0, fixed: "right" }
|
|
28
|
+
], s = j([]);
|
|
29
|
+
const S = (e) => {
|
|
30
|
+
if (!Reflect.has(e, "fieldType"))
|
|
31
|
+
return "";
|
|
32
|
+
const a = J.find((n) => n.value == e.fieldType);
|
|
33
|
+
return (a == null ? void 0 : a.key) || "";
|
|
34
|
+
}, T = (e) => Reflect.has(e, "useScenes") ? [
|
|
35
|
+
{ btnName: "表格查询", permissionCode: "tableSearch" },
|
|
36
|
+
{ btnName: "表格展示", permissionCode: "tableShow" },
|
|
37
|
+
...V.value.buttons || []
|
|
38
|
+
].filter((n) => e.useScenes.includes(n.permissionCode)).map((n) => n.btnName) : [], y = (e) => (e.formCustomComponentes || []).filter((a) => a.isFiledCustom).map((a) => `${a.btnName}:是`).join(), k = (e, a) => {
|
|
39
|
+
if (p == null) {
|
|
40
|
+
const n = s.value.length;
|
|
41
|
+
s.value.push({ ...e, sort: (n + 1) * 10 });
|
|
42
|
+
} else
|
|
43
|
+
s.value[p] = {
|
|
44
|
+
...e,
|
|
45
|
+
postRequestParams: [...e.postRequestParams],
|
|
46
|
+
useScenes: [...e.useScenes],
|
|
47
|
+
formCustomComponentes: [...e.formCustomComponentes]
|
|
48
|
+
};
|
|
49
|
+
g("update:modelValue", s.value), a(!0);
|
|
50
|
+
}, x = async () => {
|
|
51
|
+
try {
|
|
52
|
+
l.tableLoading = !0, s.value = (h.modelValue || []).map((e) => ({ ...e, sort: e.sort ? e.sort : 0 })), l.tableLoading = !1;
|
|
53
|
+
} catch (e) {
|
|
54
|
+
l.tableLoading = !1, console.error(e);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
B(
|
|
58
|
+
() => h.modelValue,
|
|
59
|
+
async (e, a) => {
|
|
60
|
+
await x();
|
|
61
|
+
},
|
|
62
|
+
{ deep: !0, immediate: !0 }
|
|
63
|
+
);
|
|
64
|
+
const N = () => {
|
|
65
|
+
p = null, l.dialogData = {}, l.showAddFieldDialog = !0;
|
|
66
|
+
}, A = (e) => {
|
|
67
|
+
p = e.$index, l.dialogData = e.row, l.showAddFieldDialog = !0;
|
|
68
|
+
}, L = () => {
|
|
69
|
+
g("update:modelValue", s.value);
|
|
70
|
+
}, E = (e) => {
|
|
71
|
+
s.value.splice(e.$index, 1), g("update:modelValue", s.value);
|
|
72
|
+
};
|
|
73
|
+
return (e, a) => {
|
|
74
|
+
const n = m("el-button"), b = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
|
|
75
|
+
return f(), w($, {
|
|
76
|
+
class: "form-card",
|
|
77
|
+
shadow: "hover"
|
|
78
|
+
}, {
|
|
79
|
+
header: o(() => [
|
|
80
|
+
C("div", X, [
|
|
81
|
+
Z,
|
|
82
|
+
d(n, {
|
|
83
|
+
class: "card-header-operate",
|
|
84
|
+
type: "primary",
|
|
85
|
+
icon: "Plus",
|
|
86
|
+
onClick: a[0] || (a[0] = (t) => N())
|
|
87
|
+
}, {
|
|
88
|
+
default: o(() => [
|
|
89
|
+
i("添加字段")
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
default: o(() => [
|
|
96
|
+
d(R, {
|
|
97
|
+
loading: r(l).tableLoading,
|
|
98
|
+
headers: r(D),
|
|
99
|
+
data: r(s),
|
|
100
|
+
showPagination: !1
|
|
101
|
+
}, {
|
|
102
|
+
fieldType: o(({ scope: t }) => [
|
|
103
|
+
i(_(S(t.row)), 1)
|
|
104
|
+
]),
|
|
105
|
+
useScenes: o(({ scope: t }) => [
|
|
106
|
+
(f(!0), q(K, null, O(T(t.row), (c, z) => (f(), w(b, {
|
|
107
|
+
style: { margin: "0 4px" },
|
|
108
|
+
key: z,
|
|
109
|
+
type: "success",
|
|
110
|
+
effect: "dark",
|
|
111
|
+
size: "small"
|
|
112
|
+
}, {
|
|
113
|
+
default: o(() => [
|
|
114
|
+
i(_(c), 1)
|
|
115
|
+
]),
|
|
116
|
+
_: 2
|
|
117
|
+
}, 1024))), 128))
|
|
118
|
+
]),
|
|
119
|
+
customTableHeaderName: o(({ scope: t }) => [
|
|
120
|
+
d(b, {
|
|
121
|
+
type: "primary",
|
|
122
|
+
effect: "dark",
|
|
123
|
+
size: "small"
|
|
124
|
+
}, {
|
|
125
|
+
default: o(() => [
|
|
126
|
+
i(_(t.row.customTableHeaderName ? "是" : "否"), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1024)
|
|
130
|
+
]),
|
|
131
|
+
formCustomComponentes: o(({ scope: t }) => [
|
|
132
|
+
y(t.row) ? (f(), w(b, {
|
|
133
|
+
key: 0,
|
|
134
|
+
type: "primary",
|
|
135
|
+
effect: "dark",
|
|
136
|
+
size: "small"
|
|
137
|
+
}, {
|
|
138
|
+
default: o(() => [
|
|
139
|
+
i(_(y(t.row)), 1)
|
|
140
|
+
]),
|
|
141
|
+
_: 2
|
|
142
|
+
}, 1024)) : W("", !0)
|
|
143
|
+
]),
|
|
144
|
+
sort: o(({ scope: t }) => [
|
|
145
|
+
d(P, {
|
|
146
|
+
modelValue: t.row.sort,
|
|
147
|
+
"onUpdate:modelValue": (c) => t.row.sort = c,
|
|
148
|
+
min: 0,
|
|
149
|
+
onChange: L
|
|
150
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
151
|
+
]),
|
|
152
|
+
operate: o(({ scope: t }) => [
|
|
153
|
+
d(n, {
|
|
154
|
+
type: "primary",
|
|
155
|
+
text: "",
|
|
156
|
+
size: "small",
|
|
157
|
+
icon: "EditPen",
|
|
158
|
+
onClick: (c) => A(t)
|
|
159
|
+
}, {
|
|
160
|
+
default: o(() => [
|
|
161
|
+
i(" 编辑 ")
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["onClick"]),
|
|
165
|
+
d(n, {
|
|
166
|
+
type: "danger",
|
|
167
|
+
text: "",
|
|
168
|
+
size: "small",
|
|
169
|
+
icon: "Delete",
|
|
170
|
+
onClick: (c) => E(t)
|
|
171
|
+
}, {
|
|
172
|
+
default: o(() => [
|
|
173
|
+
i(" 删除 ")
|
|
174
|
+
]),
|
|
175
|
+
_: 2
|
|
176
|
+
}, 1032, ["onClick"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["loading", "headers", "data"]),
|
|
180
|
+
d(r(F), {
|
|
181
|
+
visible: r(l).showAddFieldDialog,
|
|
182
|
+
"onUpdate:visible": a[1] || (a[1] = (t) => r(l).showAddFieldDialog = t),
|
|
183
|
+
title: r(l).dialogTitle,
|
|
184
|
+
configData: h.data,
|
|
185
|
+
data: r(l).dialogData,
|
|
186
|
+
onRefresh: k
|
|
187
|
+
}, null, 8, ["visible", "title", "configData", "data"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
}, se = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-4087a081"]]);
|
|
194
|
+
export {
|
|
195
|
+
se as default
|
|
196
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { ref as _, watch as P, resolveComponent as m, openBlock as i, createBlock as p, withCtx as o, createVNode as e, unref as a, createElementBlock as R, Fragment as W, renderList as F } from "vue";
|
|
2
|
+
import { F as O } from "./enum-99519ce0.js";
|
|
3
|
+
const C = {
|
|
4
|
+
__name: "configForm",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: { type: Object, default: () => ({}) }
|
|
7
|
+
},
|
|
8
|
+
emits: ["update:modelValue"],
|
|
9
|
+
setup(c, { expose: b, emit: y }) {
|
|
10
|
+
const V = c, g = () => ({
|
|
11
|
+
formRow: 1,
|
|
12
|
+
dialogWidth: 800,
|
|
13
|
+
formLabelWidth: 120,
|
|
14
|
+
formLabelPosition: "top"
|
|
15
|
+
});
|
|
16
|
+
let s = _(null), l = _(g());
|
|
17
|
+
return P(
|
|
18
|
+
() => V.modelValue,
|
|
19
|
+
(d, n) => {
|
|
20
|
+
d && (l.value = Object.assign(l.value, { ...d }));
|
|
21
|
+
},
|
|
22
|
+
{ deep: !0, immediate: !0 }
|
|
23
|
+
), b({ formRef: s, form: l }), (d, n) => {
|
|
24
|
+
const f = m("el-input-number"), r = m("el-form-item"), u = m("el-col"), L = m("el-option"), w = m("el-select"), h = m("el-row"), v = m("el-form"), x = m("el-card");
|
|
25
|
+
return i(), p(x, {
|
|
26
|
+
class: "form-card",
|
|
27
|
+
shadow: "hover",
|
|
28
|
+
header: "表单配置"
|
|
29
|
+
}, {
|
|
30
|
+
default: o(() => [
|
|
31
|
+
e(v, {
|
|
32
|
+
ref_key: "formRef",
|
|
33
|
+
ref: s,
|
|
34
|
+
model: a(l),
|
|
35
|
+
"label-suffix": ":",
|
|
36
|
+
"label-width": "110px"
|
|
37
|
+
}, {
|
|
38
|
+
default: o(() => [
|
|
39
|
+
e(h, null, {
|
|
40
|
+
default: o(() => [
|
|
41
|
+
e(u, { span: 8 }, {
|
|
42
|
+
default: o(() => [
|
|
43
|
+
e(r, { label: "弹窗宽度" }, {
|
|
44
|
+
default: o(() => [
|
|
45
|
+
e(f, {
|
|
46
|
+
modelValue: a(l).dialogWidth,
|
|
47
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => a(l).dialogWidth = t),
|
|
48
|
+
min: 800
|
|
49
|
+
}, null, 8, ["modelValue"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
e(u, { span: 8 }, {
|
|
57
|
+
default: o(() => [
|
|
58
|
+
e(r, { label: "排版列数" }, {
|
|
59
|
+
default: o(() => [
|
|
60
|
+
e(f, {
|
|
61
|
+
modelValue: a(l).formRow,
|
|
62
|
+
"onUpdate:modelValue": n[1] || (n[1] = (t) => a(l).formRow = t),
|
|
63
|
+
min: 1,
|
|
64
|
+
max: 4
|
|
65
|
+
}, null, 8, ["modelValue"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
e(u, { span: 8 }, {
|
|
73
|
+
default: o(() => [
|
|
74
|
+
e(r, { label: "label宽度" }, {
|
|
75
|
+
default: o(() => [
|
|
76
|
+
e(f, {
|
|
77
|
+
modelValue: a(l).formLabelWidth,
|
|
78
|
+
"onUpdate:modelValue": n[2] || (n[2] = (t) => a(l).formLabelWidth = t),
|
|
79
|
+
min: 80
|
|
80
|
+
}, null, 8, ["modelValue"])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
e(u, { span: 8 }, {
|
|
88
|
+
default: o(() => [
|
|
89
|
+
e(r, {
|
|
90
|
+
label: "label位置",
|
|
91
|
+
rules: [{ required: !0, message: "必填项", trigger: ["change"] }],
|
|
92
|
+
prop: "formLabelPosition"
|
|
93
|
+
}, {
|
|
94
|
+
default: o(() => [
|
|
95
|
+
e(w, {
|
|
96
|
+
modelValue: a(l).formLabelPosition,
|
|
97
|
+
"onUpdate:modelValue": n[3] || (n[3] = (t) => a(l).formLabelPosition = t),
|
|
98
|
+
placeholder: "请选择"
|
|
99
|
+
}, {
|
|
100
|
+
default: o(() => [
|
|
101
|
+
(i(!0), R(W, null, F(a(O), (t, k) => (i(), p(L, {
|
|
102
|
+
key: k + "labelPosition",
|
|
103
|
+
label: t.key,
|
|
104
|
+
value: t.value
|
|
105
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["modelValue"])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["model"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
export {
|
|
128
|
+
C as default
|
|
129
|
+
};
|