@web-utils/form-ui 1.0.0-beta78 → 1.0.0-beta79
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/chunks/{DOdaQmeD.mjs → B8NokGUg.mjs} +2941 -2981
- package/chunks/{D4FXesiK2.mjs → Bu1M7um22.mjs} +1 -1
- package/chunks/{BUdSoC0y.mjs → C-zPVdz-.mjs} +46 -45
- package/chunks/{CfZWeZDD.mjs → CONqKD47.mjs} +1 -1
- package/chunks/{C4TRh7-t2.mjs → ChP-pNSi2.mjs} +1 -1
- package/chunks/{BPkYHRo52.mjs → D6mInNk02.mjs} +71 -69
- package/chunks/{YuRYvOxL.mjs → DMSbDBCP.mjs} +194 -193
- package/chunks/{Cwh7YPxJ.mjs → D_q3C3v4.mjs} +184 -183
- package/chunks/{DDcaXGrf2.mjs → DgH_4qOn2.mjs} +3 -0
- package/chunks/{DydcNRkF.mjs → DhqOVe4S.mjs} +99 -98
- package/chunks/{xe1XzZUE2.mjs → Dz_TTgwF2.mjs} +91 -89
- package/chunks/{DvGAwr6C.mjs → T2V8nxIu.mjs} +361 -360
- package/chunks/{8i6khBvL2.mjs → mqi8hesW2.mjs} +8 -8
- package/chunks/{D9p3yGUu.mjs → tqW2DSco.mjs} +47 -46
- package/data-table-picker/index.mjs +16 -15
- package/editable-tree/index.mjs +111 -110
- package/flow-designer/index.d.ts +1 -26
- package/flow-designer/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-view/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +8 -8
- package/package.json +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.mjs +90 -88
- package/toolbar/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
|
|
2
2
|
import { n, o as r } from "./CkLpOk7H.mjs";
|
|
3
|
-
import { n as i, t as a } from "./
|
|
3
|
+
import { n as i, t as a } from "./D6mInNk02.mjs";
|
|
4
4
|
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
5
|
//#region src/components/table/form-table.ts
|
|
6
6
|
var u = {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
2
|
import { t } from "./V-Js6hNd.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { t as n } from "./mnqSaATq.mjs";
|
|
4
|
+
import { ElDivider as r, ElForm as i, ElFormItem as a, ElInput as o, ElMessageBox as s, ElTable as c, ElTableColumn as l } from "element-plus/es";
|
|
4
5
|
import "element-plus/es/components/base/style/css";
|
|
5
6
|
import "element-plus/es/components/input/style/css";
|
|
6
|
-
import { createElementBlock as
|
|
7
|
-
import { fastClone as
|
|
8
|
-
import "element-plus/es/components/
|
|
7
|
+
import { createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, openBlock as m, withCtx as h, withModifiers as g } from "vue";
|
|
8
|
+
import { fastClone as _ } from "@web-utils/core";
|
|
9
|
+
import "element-plus/es/components/message-box/style/css";
|
|
9
10
|
import "element-plus/es/components/table/style/css";
|
|
10
11
|
import "element-plus/es/components/table-column/style/css";
|
|
11
12
|
import "element-plus/es/components/form-item/style/css";
|
|
12
13
|
import "element-plus/es/components/form/style/css";
|
|
13
14
|
import "element-plus/es/components/divider/style/css";
|
|
14
15
|
//#region src/components/bpmn-process-designer/components/penal/properties/ElementProperties.vue
|
|
15
|
-
var
|
|
16
|
+
var v = {
|
|
16
17
|
name: "ElementProperties",
|
|
17
18
|
inject: {
|
|
18
19
|
prefix: "prefix",
|
|
@@ -40,15 +41,15 @@ var _ = {
|
|
|
40
41
|
methods: {
|
|
41
42
|
resetAttributesList() {
|
|
42
43
|
var e;
|
|
43
|
-
this.otherExtensionList = [], this.bpmnElementProperties = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => (e.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(e), e.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((e, t) => e.concat(t.values), []), this.elementPropertyList =
|
|
44
|
+
this.otherExtensionList = [], this.bpmnElementProperties = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => (e.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(e), e.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((e, t) => e.concat(t.values), []), this.elementPropertyList = _(this.bpmnElementPropertyList ?? []);
|
|
44
45
|
},
|
|
45
46
|
openAttributesForm(e, t) {
|
|
46
|
-
this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} :
|
|
47
|
+
this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : _(e), this.propertyFormModelVisible = !0, this.$nextTick(() => {
|
|
47
48
|
this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
|
|
48
49
|
});
|
|
49
50
|
},
|
|
50
51
|
removeAttributes(e, t) {
|
|
51
|
-
|
|
52
|
+
s.confirm("确认移除该属性吗?", "提示", {
|
|
52
53
|
confirmButtonText: "确 认",
|
|
53
54
|
cancelButtonText: "取 消"
|
|
54
55
|
}).then(() => {
|
|
@@ -77,53 +78,53 @@ var _ = {
|
|
|
77
78
|
this.bpmnInstances.modeling.updateProperties(this.element, { extensionElements: t });
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
},
|
|
81
|
-
function
|
|
82
|
-
let C =
|
|
83
|
-
return
|
|
84
|
-
|
|
81
|
+
}, y = { class: "panel-tab__content" }, b = { class: "element-drawer__button" };
|
|
82
|
+
function x(e, s, _, v, x, S) {
|
|
83
|
+
let C = l, w = n, T = r, E = c, D = o, O = a, k = i, A = t;
|
|
84
|
+
return m(), u("div", y, [
|
|
85
|
+
p(E, {
|
|
85
86
|
data: x.elementPropertyList,
|
|
86
87
|
"max-height": "240",
|
|
87
88
|
border: "",
|
|
88
89
|
fit: ""
|
|
89
90
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
|
|
91
|
+
default: h(() => [
|
|
92
|
+
p(C, {
|
|
92
93
|
label: "序号",
|
|
93
94
|
width: "50px",
|
|
94
95
|
type: "index"
|
|
95
96
|
}),
|
|
96
|
-
|
|
97
|
+
p(C, {
|
|
97
98
|
label: "属性名",
|
|
98
99
|
prop: "name",
|
|
99
100
|
"min-width": "100px",
|
|
100
101
|
"show-overflow-tooltip": ""
|
|
101
102
|
}),
|
|
102
|
-
|
|
103
|
+
p(C, {
|
|
103
104
|
label: "属性值",
|
|
104
105
|
prop: "value",
|
|
105
106
|
"min-width": "100px",
|
|
106
107
|
"show-overflow-tooltip": ""
|
|
107
108
|
}),
|
|
108
|
-
|
|
109
|
+
p(C, {
|
|
109
110
|
label: "操作",
|
|
110
111
|
width: "90px"
|
|
111
112
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
|
|
113
|
+
default: h(({ row: e, $index: t }) => [
|
|
114
|
+
p(w, {
|
|
114
115
|
text: "",
|
|
115
116
|
onClick: (n) => S.openAttributesForm(e, t)
|
|
116
117
|
}, {
|
|
117
|
-
default:
|
|
118
|
+
default: h(() => [...s[6] || (s[6] = [f("编辑", -1)])]),
|
|
118
119
|
_: 1
|
|
119
120
|
}, 8, ["onClick"]),
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
p(T, { direction: "vertical" }),
|
|
122
|
+
p(w, {
|
|
122
123
|
text: "",
|
|
123
124
|
style: { color: "#ff4d4f" },
|
|
124
125
|
onClick: (n) => S.removeAttributes(e, t)
|
|
125
126
|
}, {
|
|
126
|
-
default:
|
|
127
|
+
default: h(() => [...s[7] || (s[7] = [f("移除", -1)])]),
|
|
127
128
|
_: 1
|
|
128
129
|
}, 8, ["onClick"])
|
|
129
130
|
]),
|
|
@@ -132,56 +133,56 @@ function b(e, g, _, b, x, S) {
|
|
|
132
133
|
]),
|
|
133
134
|
_: 1
|
|
134
135
|
}, 8, ["data"]),
|
|
135
|
-
|
|
136
|
+
d("div", b, [p(w, {
|
|
136
137
|
type: "primary",
|
|
137
138
|
icon: "el-icon-plus",
|
|
138
|
-
onClick:
|
|
139
|
+
onClick: s[0] || (s[0] = (e) => S.openAttributesForm(null, -1))
|
|
139
140
|
}, {
|
|
140
|
-
default:
|
|
141
|
+
default: h(() => [...s[8] || (s[8] = [f("添加属性", -1)])]),
|
|
141
142
|
_: 1
|
|
142
143
|
})]),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"onUpdate:
|
|
144
|
+
p(A, {
|
|
145
|
+
modelValue: x.propertyFormModelVisible,
|
|
146
|
+
"onUpdate:modelValue": s[5] || (s[5] = (e) => x.propertyFormModelVisible = e),
|
|
146
147
|
class: "flow-dialog",
|
|
147
148
|
title: "属性配置",
|
|
148
149
|
width: "600px",
|
|
149
150
|
"append-to-body": "",
|
|
150
151
|
"destroy-on-close": ""
|
|
151
152
|
}, {
|
|
152
|
-
footer:
|
|
153
|
-
default:
|
|
153
|
+
footer: h(() => [p(w, { onClick: s[4] || (s[4] = (e) => x.propertyFormModelVisible = !1) }, {
|
|
154
|
+
default: h(() => [...s[9] || (s[9] = [f("取 消", -1)])]),
|
|
154
155
|
_: 1
|
|
155
|
-
}),
|
|
156
|
+
}), p(w, {
|
|
156
157
|
type: "primary",
|
|
157
158
|
onClick: S.saveAttribute
|
|
158
159
|
}, {
|
|
159
|
-
default:
|
|
160
|
+
default: h(() => [...s[10] || (s[10] = [f("确 定", -1)])]),
|
|
160
161
|
_: 1
|
|
161
162
|
}, 8, ["onClick"])]),
|
|
162
|
-
default:
|
|
163
|
+
default: h(() => [p(k, {
|
|
163
164
|
ref: "attributeFormRef",
|
|
164
165
|
model: x.propertyForm,
|
|
165
166
|
"label-width": "80px",
|
|
166
|
-
onSubmit:
|
|
167
|
+
onSubmit: s[3] || (s[3] = g(() => {}, ["prevent"]))
|
|
167
168
|
}, {
|
|
168
|
-
default:
|
|
169
|
+
default: h(() => [p(O, {
|
|
169
170
|
label: "属性名:",
|
|
170
171
|
prop: "name"
|
|
171
172
|
}, {
|
|
172
|
-
default:
|
|
173
|
+
default: h(() => [p(D, {
|
|
173
174
|
modelValue: x.propertyForm.name,
|
|
174
|
-
"onUpdate:modelValue":
|
|
175
|
+
"onUpdate:modelValue": s[1] || (s[1] = (e) => x.propertyForm.name = e),
|
|
175
176
|
clearable: ""
|
|
176
177
|
}, null, 8, ["modelValue"])]),
|
|
177
178
|
_: 1
|
|
178
|
-
}),
|
|
179
|
+
}), p(O, {
|
|
179
180
|
label: "属性值:",
|
|
180
181
|
prop: "value"
|
|
181
182
|
}, {
|
|
182
|
-
default:
|
|
183
|
+
default: h(() => [p(D, {
|
|
183
184
|
modelValue: x.propertyForm.value,
|
|
184
|
-
"onUpdate:modelValue":
|
|
185
|
+
"onUpdate:modelValue": s[2] || (s[2] = (e) => x.propertyForm.value = e),
|
|
185
186
|
clearable: ""
|
|
186
187
|
}, null, 8, ["modelValue"])]),
|
|
187
188
|
_: 1
|
|
@@ -189,9 +190,9 @@ function b(e, g, _, b, x, S) {
|
|
|
189
190
|
_: 1
|
|
190
191
|
}, 8, ["model"])]),
|
|
191
192
|
_: 1
|
|
192
|
-
}, 8, ["
|
|
193
|
+
}, 8, ["modelValue"])
|
|
193
194
|
]);
|
|
194
195
|
}
|
|
195
|
-
var
|
|
196
|
+
var S = /* @__PURE__ */ e(v, [["render", x]]);
|
|
196
197
|
//#endregion
|
|
197
|
-
export {
|
|
198
|
+
export { S as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, o as t } from "./CkLpOk7H.mjs";
|
|
2
|
-
import { t as n } from "./
|
|
2
|
+
import { t as n } from "./T2V8nxIu.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/input-cron.mjs";
|
|
4
4
|
import { ElInput as a, ElPopover as o } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./ClVh1Lek.mjs";
|
|
|
2
2
|
import { commonAutoBindProps as t, commonManualBindProps as n } from "../props/common.mjs";
|
|
3
3
|
import { n as r, o as i } from "./CkLpOk7H.mjs";
|
|
4
4
|
import { n as a } from "./BWTQ3qdg.mjs";
|
|
5
|
-
import { n as o, t as s } from "./
|
|
5
|
+
import { n as o, t as s } from "./Dz_TTgwF2.mjs";
|
|
6
6
|
import { computed as c, createVNode as l, getCurrentInstance as u, mergeProps as d, useModel as f, useTemplateRef as p } from "vue";
|
|
7
7
|
import { isArray as m, isString as h, trace as g, warning as _ } from "@web-utils/core";
|
|
8
8
|
import { useEventBus as v } from "@web-utils/vue/hooks/useEventBus";
|
|
@@ -12,12 +12,14 @@ import { t as u } from "./BVUClQOx.mjs";
|
|
|
12
12
|
import { t as d } from "./DxeRdYI82.mjs";
|
|
13
13
|
import f from "../table-column-def/index.mjs";
|
|
14
14
|
import { t as p } from "./Bo8lYN4n2.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
15
|
+
import { ElMessage as m, formContextKey as h, formItemContextKey as g } from "element-plus/es";
|
|
16
|
+
import "element-plus/es/components/base/style/css";
|
|
17
|
+
import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, openBlock as E, renderList as D, renderSlot as O, resolveComponent as k, toDisplayString as A, withCtx as j, withModifiers as M } from "vue";
|
|
18
|
+
import { findTreeChildren as N, isFunction as P } from "@web-utils/core";
|
|
19
|
+
import "element-plus/es/components/message/style/css";
|
|
20
|
+
import { cloneDeep as F } from "@web-utils/integrations/lodash";
|
|
19
21
|
//#region src/components/table/sub-table.ts
|
|
20
|
-
var
|
|
22
|
+
var I = {
|
|
21
23
|
modelValue: Array,
|
|
22
24
|
columns: Array,
|
|
23
25
|
allowEmpty: Boolean,
|
|
@@ -51,7 +53,7 @@ var F = {
|
|
|
51
53
|
selectionWidth: String,
|
|
52
54
|
fetchApi: Function,
|
|
53
55
|
delApi: Function
|
|
54
|
-
},
|
|
56
|
+
}, L = {
|
|
55
57
|
name: "SubTable",
|
|
56
58
|
emits: {
|
|
57
59
|
...i,
|
|
@@ -59,15 +61,15 @@ var F = {
|
|
|
59
61
|
},
|
|
60
62
|
inject: {
|
|
61
63
|
elForm: {
|
|
62
|
-
from:
|
|
64
|
+
from: h,
|
|
63
65
|
default: ""
|
|
64
66
|
},
|
|
65
67
|
elFormItem: {
|
|
66
|
-
from:
|
|
68
|
+
from: g,
|
|
67
69
|
default: ""
|
|
68
70
|
}
|
|
69
71
|
},
|
|
70
|
-
props: { ...
|
|
72
|
+
props: { ...I },
|
|
71
73
|
data() {
|
|
72
74
|
return {
|
|
73
75
|
rows: [],
|
|
@@ -109,7 +111,7 @@ var F = {
|
|
|
109
111
|
},
|
|
110
112
|
methods: {
|
|
111
113
|
getCellType(e, t) {
|
|
112
|
-
return
|
|
114
|
+
return P(t.getType) ? t.getType(e, t) : t.type;
|
|
113
115
|
},
|
|
114
116
|
getInputAttr(e, t, n) {
|
|
115
117
|
var r;
|
|
@@ -134,7 +136,7 @@ var F = {
|
|
|
134
136
|
} catch {}
|
|
135
137
|
},
|
|
136
138
|
add(e, t) {
|
|
137
|
-
let n =
|
|
139
|
+
let n = F(this.rowProps);
|
|
138
140
|
this.rows.splice(t + 1, 0, n);
|
|
139
141
|
},
|
|
140
142
|
addRow() {
|
|
@@ -142,17 +144,17 @@ var F = {
|
|
|
142
144
|
},
|
|
143
145
|
async delRow() {
|
|
144
146
|
if (!this.selectedRows.length) {
|
|
145
|
-
|
|
147
|
+
m.warning("请选择要删除的记录!");
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
148
150
|
try {
|
|
149
151
|
if (this.delApi) try {
|
|
150
152
|
await this.delApi(this.selectedRows.map((e) => e.id).join(",")), this.refresh();
|
|
151
153
|
} catch {
|
|
152
|
-
|
|
154
|
+
m.error("删除失败!");
|
|
153
155
|
}
|
|
154
156
|
else this.$emit("update:modelValue", this.rows.filter((e) => !this.selectedRows.includes(e)));
|
|
155
|
-
|
|
157
|
+
m.success("删除成功!");
|
|
156
158
|
} catch {}
|
|
157
159
|
},
|
|
158
160
|
refresh() {
|
|
@@ -165,26 +167,26 @@ var F = {
|
|
|
165
167
|
if (r) return r.name;
|
|
166
168
|
}
|
|
167
169
|
if (n.type === "cascader" && (i = n.attrs) != null && i.options) {
|
|
168
|
-
let [r] =
|
|
170
|
+
let [r] = N(n.attrs.options, (r) => r[n.attrs.valueKey || "value"] === e[t.property]);
|
|
169
171
|
if (r) return r[n.attrs.valueKey || "label"];
|
|
170
172
|
}
|
|
171
173
|
return e[t.property];
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
},
|
|
176
|
+
}, R = {
|
|
175
177
|
key: 0,
|
|
176
178
|
class: "table-header"
|
|
177
|
-
},
|
|
179
|
+
}, z = {
|
|
178
180
|
key: 0,
|
|
179
181
|
style: { color: "#f56c6c" }
|
|
180
|
-
},
|
|
181
|
-
function
|
|
182
|
-
let P = n, F = o, I = u,
|
|
183
|
-
return
|
|
182
|
+
}, B = ["onClick"];
|
|
183
|
+
function V(e, i, m, h, g, N) {
|
|
184
|
+
let P = n, F = o, I = u, L = k("FormInputUser"), V = k("FormInputDepartment"), H = d, U = c, W = a, G = s, K = l, q = p, J = r, Y = f, X = t;
|
|
185
|
+
return E(), v(X, T({
|
|
184
186
|
ref: "table",
|
|
185
187
|
class: "sub-table",
|
|
186
188
|
"auto-height": "",
|
|
187
|
-
data:
|
|
189
|
+
data: g.rows,
|
|
188
190
|
api: e.fetchApi,
|
|
189
191
|
"show-summary": e.showSummary,
|
|
190
192
|
"selection-width": e.selectionWidth
|
|
@@ -193,9 +195,9 @@ function B(e, i, m, h, M, N) {
|
|
|
193
195
|
selection: N.enabled,
|
|
194
196
|
"row-db-click": e.rowDbClick,
|
|
195
197
|
onSelectionChange: N.onSelectionChange
|
|
196
|
-
}),
|
|
197
|
-
default:
|
|
198
|
-
|
|
198
|
+
}), S({
|
|
199
|
+
default: j(() => [
|
|
200
|
+
O(e.$slots, "columns", { columns: e.columns }, () => [(E(!0), b(_, null, D(N.filteredColumns, (t) => (E(), v(Y, {
|
|
199
201
|
key: t.prop,
|
|
200
202
|
label: t.label,
|
|
201
203
|
width: t.width,
|
|
@@ -206,34 +208,34 @@ function B(e, i, m, h, M, N) {
|
|
|
206
208
|
options: t.options,
|
|
207
209
|
"show-overflow-tooltip": !N.available && t.showOverflowTooltip
|
|
208
210
|
}, {
|
|
209
|
-
header:
|
|
210
|
-
default:
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
header: j(() => [!e.disabled && t.required ? (E(), b("span", z, "*")) : y("v-if", !0), C(" " + A(t.label), 1)]),
|
|
212
|
+
default: j(({ row: n, column: r, $index: i }) => [
|
|
213
|
+
y("tag 插槽"),
|
|
214
|
+
O(e.$slots, "tag", {
|
|
213
215
|
row: n,
|
|
214
216
|
column: r,
|
|
215
217
|
index: i
|
|
216
218
|
}),
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
y("列默认插槽,名字和 prop 保持一致"),
|
|
220
|
+
O(e.$slots, t.prop, {
|
|
219
221
|
row: n,
|
|
220
222
|
column: r,
|
|
221
223
|
index: i
|
|
222
224
|
}, () => {
|
|
223
225
|
var e;
|
|
224
|
-
return [N.available ? (
|
|
226
|
+
return [N.available ? (E(), b(_, { key: 0 }, [N.getCellType(n, t) === "input" ? (E(), v(F, T({
|
|
225
227
|
key: 0,
|
|
226
228
|
ref_for: !0
|
|
227
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (
|
|
229
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "inputPhoneNumber" ? (E(), v(I, T({
|
|
228
230
|
key: 1,
|
|
229
231
|
ref_for: !0
|
|
230
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (
|
|
232
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "user" ? (E(), b(_, { key: 2 }, [t.single ? (E(), v(L, T({
|
|
231
233
|
key: 0,
|
|
232
234
|
ref_for: !0
|
|
233
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
235
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), v(L, T({
|
|
234
236
|
key: 1,
|
|
235
237
|
ref_for: !0
|
|
236
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (
|
|
238
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "department" ? (E(), b(_, { key: 3 }, [t.single ? (E(), v(V, T({
|
|
237
239
|
key: 0,
|
|
238
240
|
ref_for: !0
|
|
239
241
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -244,16 +246,16 @@ function B(e, i, m, h, M, N) {
|
|
|
244
246
|
"name",
|
|
245
247
|
"onUpdate:name",
|
|
246
248
|
"onUpdate:modelValue"
|
|
247
|
-
])) : (
|
|
249
|
+
])) : (E(), v(V, T({
|
|
248
250
|
key: 1,
|
|
249
251
|
ref_for: !0
|
|
250
252
|
}, N.getInputAttr(n, t, i), {
|
|
251
253
|
disabled: N.isInputDisabled(n, t),
|
|
252
254
|
"onUpdate:modelValue": (e) => N.onInput(n, e, t)
|
|
253
|
-
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (
|
|
255
|
+
}), null, 16, ["disabled", "onUpdate:modelValue"]))], 64)) : N.getCellType(n, t) === "select" ? (E(), v(H, T({
|
|
254
256
|
key: 4,
|
|
255
257
|
ref_for: !0
|
|
256
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (
|
|
258
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "datePicker" ? (E(), v(U, T({
|
|
257
259
|
key: 5,
|
|
258
260
|
ref_for: !0
|
|
259
261
|
}, N.getInputAttr(n, t, i), {
|
|
@@ -268,19 +270,19 @@ function B(e, i, m, h, M, N) {
|
|
|
268
270
|
"end",
|
|
269
271
|
"onUpdate:end",
|
|
270
272
|
"onUpdate:modelValue"
|
|
271
|
-
])) : N.getCellType(n, t) === "cascader" ? (
|
|
273
|
+
])) : N.getCellType(n, t) === "cascader" ? (E(), v(W, T({
|
|
272
274
|
key: 6,
|
|
273
275
|
ref_for: !0
|
|
274
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (
|
|
276
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "checkbox" ? (E(), v(G, T({
|
|
275
277
|
key: 7,
|
|
276
278
|
ref_for: !0
|
|
277
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (
|
|
279
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "number" ? (E(), v(K, T({
|
|
278
280
|
key: 8,
|
|
279
281
|
ref_for: !0
|
|
280
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (
|
|
282
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : N.getCellType(n, t) === "textarea" ? (E(), v(q, T({
|
|
281
283
|
key: 9,
|
|
282
284
|
ref_for: !0
|
|
283
|
-
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (
|
|
285
|
+
}, N.getInputAttr(n, t, i), { "onUpdate:modelValue": (e) => N.onInput(n, e, t) }), null, 16, ["onUpdate:modelValue"])) : (E(), b(_, { key: 10 }, [C(A(N.getVal(n, r, t)), 1)], 64))], 64)) : t.dicType || (e = t.options) != null && e.length ? (E(), v(J, {
|
|
284
286
|
key: 1,
|
|
285
287
|
"dict-type": t.dicType,
|
|
286
288
|
"id-as-value": t.idAsValue,
|
|
@@ -295,7 +297,7 @@ function B(e, i, m, h, M, N) {
|
|
|
295
297
|
"column",
|
|
296
298
|
"row",
|
|
297
299
|
"options"
|
|
298
|
-
])) : (
|
|
300
|
+
])) : (E(), b(_, { key: 2 }, [C(A(N.getVal(n, r, t)), 1)], 64))];
|
|
299
301
|
})
|
|
300
302
|
]),
|
|
301
303
|
_: 2
|
|
@@ -309,13 +311,13 @@ function B(e, i, m, h, M, N) {
|
|
|
309
311
|
"options",
|
|
310
312
|
"show-overflow-tooltip"
|
|
311
313
|
]))), 128))]),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
+
y(" 自定义操作列 "),
|
|
315
|
+
O(e.$slots, "handle", {
|
|
314
316
|
add: N.add,
|
|
315
317
|
remove: N.remove
|
|
316
318
|
}),
|
|
317
|
-
|
|
318
|
-
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (
|
|
319
|
+
y(" 操作列 "),
|
|
320
|
+
(!e.modelValue || e.modelValue.length < e.limit) && !e.disabled && N.enabled && e.editable && e.handleColumn ? (E(), v(Y, {
|
|
319
321
|
key: 0,
|
|
320
322
|
label: "操作",
|
|
321
323
|
fixed: "right",
|
|
@@ -323,11 +325,11 @@ function B(e, i, m, h, M, N) {
|
|
|
323
325
|
align: "center",
|
|
324
326
|
prop: "menu"
|
|
325
327
|
}, {
|
|
326
|
-
header:
|
|
328
|
+
header: j(({ column: t, $index: n }) => [O(e.$slots, "handle-column-header", {
|
|
327
329
|
column: t,
|
|
328
330
|
index: n
|
|
329
|
-
}, () => [
|
|
330
|
-
default:
|
|
331
|
+
}, () => [C(A(t.label), 1)])]),
|
|
332
|
+
default: j(({ row: t, $index: n }) => [e.showHandleColumnAddButton && e.modelValue.length < e.maxLimit ? (E(), b("i", {
|
|
331
333
|
key: 0,
|
|
332
334
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
333
335
|
style: {
|
|
@@ -336,8 +338,8 @@ function B(e, i, m, h, M, N) {
|
|
|
336
338
|
cursor: "pointer"
|
|
337
339
|
},
|
|
338
340
|
title: "添加",
|
|
339
|
-
onClick:
|
|
340
|
-
}, null, 8,
|
|
341
|
+
onClick: M((e) => N.add(t, n), ["stop"])
|
|
342
|
+
}, null, 8, B)) : y("v-if", !0), e.modelValue && e.modelValue.length > 1 || e.allowEmpty ? (E(), v(P, {
|
|
341
343
|
key: 1,
|
|
342
344
|
class: "el-icon-error sub-table-handle-button table-button-remove",
|
|
343
345
|
style: {
|
|
@@ -348,27 +350,27 @@ function B(e, i, m, h, M, N) {
|
|
|
348
350
|
confirm: "",
|
|
349
351
|
text: "",
|
|
350
352
|
message: "您确定要删除该行吗?",
|
|
351
|
-
onClick:
|
|
352
|
-
}, null, 8, ["onClick"])) :
|
|
353
|
+
onClick: M((e) => N.remove(t, n), ["stop"])
|
|
354
|
+
}, null, 8, ["onClick"])) : y("v-if", !0)]),
|
|
353
355
|
_: 3
|
|
354
|
-
})) :
|
|
356
|
+
})) : y("v-if", !0)
|
|
355
357
|
]),
|
|
356
358
|
_: 2
|
|
357
359
|
}, [e.editable ? void 0 : {
|
|
358
360
|
name: "toolbar",
|
|
359
|
-
fn:
|
|
361
|
+
fn: j(() => [N.enabled || e.fetchApi ? (E(), b("div", R, [O(e.$slots, "toolbar", {
|
|
360
362
|
addRow: N.addRow,
|
|
361
363
|
delRow: N.delRow,
|
|
362
364
|
refresh: N.refresh
|
|
363
|
-
}, () => [N.enabled ? (
|
|
365
|
+
}, () => [N.enabled ? (E(), b(_, { key: 0 }, [w(P, {
|
|
364
366
|
class: "table-header-button add",
|
|
365
367
|
icon: "el-icon-circle-plus",
|
|
366
368
|
type: "text",
|
|
367
369
|
onClick: N.addRow
|
|
368
370
|
}, {
|
|
369
|
-
default:
|
|
371
|
+
default: j(() => [...i[1] || (i[1] = [C(" 添加 ", -1)])]),
|
|
370
372
|
_: 1
|
|
371
|
-
}, 8, ["onClick"]),
|
|
373
|
+
}, 8, ["onClick"]), w(P, {
|
|
372
374
|
class: "table-header-button remove",
|
|
373
375
|
confirm: "",
|
|
374
376
|
message: "您确定要删除选中的记录吗?",
|
|
@@ -376,9 +378,9 @@ function B(e, i, m, h, M, N) {
|
|
|
376
378
|
text: "",
|
|
377
379
|
onClick: N.delRow
|
|
378
380
|
}, {
|
|
379
|
-
default:
|
|
381
|
+
default: j(() => [...i[2] || (i[2] = [C(" 删除 ", -1)])]),
|
|
380
382
|
_: 1
|
|
381
|
-
}, 8, ["onClick"])], 64)) :
|
|
383
|
+
}, 8, ["onClick"])], 64)) : y("v-if", !0), e.fetchApi ? (E(), v(P, {
|
|
382
384
|
key: 1,
|
|
383
385
|
class: "table-header-button refresh",
|
|
384
386
|
icon: "el-icon-refresh-left",
|
|
@@ -386,20 +388,20 @@ function B(e, i, m, h, M, N) {
|
|
|
386
388
|
disabled: !1,
|
|
387
389
|
onClick: N.refresh
|
|
388
390
|
}, {
|
|
389
|
-
default:
|
|
391
|
+
default: j(() => [...i[3] || (i[3] = [C(" 刷新 ", -1)])]),
|
|
390
392
|
_: 1
|
|
391
|
-
}, 8, ["onClick"])) :
|
|
393
|
+
}, 8, ["onClick"])) : y("v-if", !0)])])) : y("v-if", !0)]),
|
|
392
394
|
key: "0"
|
|
393
395
|
}, e.allowEmpty && !e.disabled && e.showEmptyAddButton ? {
|
|
394
396
|
name: "empty",
|
|
395
|
-
fn:
|
|
397
|
+
fn: j(() => [x("i", {
|
|
396
398
|
class: "el-icon-circle-plus sub-table-handle-button table-button-add",
|
|
397
399
|
style: {
|
|
398
400
|
"font-size": "20px",
|
|
399
401
|
cursor: "pointer"
|
|
400
402
|
},
|
|
401
403
|
title: "添加",
|
|
402
|
-
onClick: i[0] || (i[0] =
|
|
404
|
+
onClick: i[0] || (i[0] = M((e) => N.add(null, 0), ["stop"]))
|
|
403
405
|
})]),
|
|
404
406
|
key: "1"
|
|
405
407
|
} : void 0]), 1040, [
|
|
@@ -412,6 +414,6 @@ function B(e, i, m, h, M, N) {
|
|
|
412
414
|
"onSelectionChange"
|
|
413
415
|
]);
|
|
414
416
|
}
|
|
415
|
-
var
|
|
417
|
+
var H = /* @__PURE__ */ e(L, [["render", V]]);
|
|
416
418
|
//#endregion
|
|
417
|
-
export {
|
|
419
|
+
export { I as n, H as t };
|