@dinert/element-plus 1.1.21 → 1.1.23
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/element-plus.umd.js +2 -2
- package/dist/element-plus.umd.js.map +1 -1
- package/es/packages/components/dialog/src/index.mjs +17 -17
- package/es/packages/components/dialog/src/index.mjs.map +1 -1
- package/es/packages/components/form/src/cascader.mjs +19 -9
- package/es/packages/components/form/src/cascader.mjs.map +1 -1
- package/es/packages/components/form/src/checkbox.mjs.map +1 -1
- package/es/packages/components/form/src/date.mjs +21 -15
- package/es/packages/components/form/src/date.mjs.map +1 -1
- package/es/packages/components/form/src/index.mjs +157 -142
- package/es/packages/components/form/src/index.mjs.map +1 -1
- package/es/packages/components/form/src/input-autocomplete.mjs +12 -6
- package/es/packages/components/form/src/input-autocomplete.mjs.map +1 -1
- package/es/packages/components/form/src/input-number.mjs +12 -6
- package/es/packages/components/form/src/input-number.mjs.map +1 -1
- package/es/packages/components/form/src/input.mjs +12 -6
- package/es/packages/components/form/src/input.mjs.map +1 -1
- package/es/packages/components/form/src/rate.mjs +12 -6
- package/es/packages/components/form/src/rate.mjs.map +1 -1
- package/es/packages/components/form/src/select-v2.mjs +11 -6
- package/es/packages/components/form/src/select-v2.mjs.map +1 -1
- package/es/packages/components/form/src/select.mjs +13 -9
- package/es/packages/components/form/src/select.mjs.map +1 -1
- package/es/packages/components/form/src/switch.mjs +12 -6
- package/es/packages/components/form/src/switch.mjs.map +1 -1
- package/es/packages/components/form/src/tree-select.mjs +12 -7
- package/es/packages/components/form/src/tree-select.mjs.map +1 -1
- package/es/packages/components/form/utils/index.mjs +45 -19
- package/es/packages/components/form/utils/index.mjs.map +1 -1
- package/es/packages/components/table/src/index.mjs +100 -89
- package/es/packages/components/table/src/index.mjs.map +1 -1
- package/es/packages/components/table/src/recuve-table-column.mjs +104 -106
- package/es/packages/components/table/src/recuve-table-column.mjs.map +1 -1
- package/es/packages/index.mjs.map +1 -1
- package/es/packages/utils/tools.mjs +13 -12
- package/es/packages/utils/tools.mjs.map +1 -1
- package/es/src/components/form/index.d.ts +3 -1
- package/es/src/components/form/src/cascader.d.ts +1 -0
- package/es/src/components/form/src/checkbox.d.ts +1 -1
- package/es/src/components/form/src/date.d.ts +1 -0
- package/es/src/components/form/src/index.d.ts +3 -1
- package/es/src/components/form/src/input-autocomplete.d.ts +1 -0
- package/es/src/components/form/src/input-number.d.ts +1 -0
- package/es/src/components/form/src/input.d.ts +1 -0
- package/es/src/components/form/src/rate.d.ts +1 -0
- package/es/src/components/form/src/select-v2.d.ts +1 -0
- package/es/src/components/form/src/select.d.ts +1 -0
- package/es/src/components/form/src/switch.d.ts +1 -0
- package/es/src/components/form/src/tree-select.d.ts +1 -0
- package/es/src/components/form/types/components.d.ts +1 -1
- package/es/src/components/form/types/index.d.ts +8 -1
- package/es/src/components/form/utils/index.d.ts +1 -0
- package/es/src/components/table/types/index.d.ts +2 -0
- package/es/src/components/table-page/index.d.ts +6 -2
- package/es/src/components/table-page/src/index.d.ts +6 -2
- package/es/src/index.d.ts +6 -6
- package/es/src/utils/tools.d.ts +1 -0
- package/es/style.css +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/src/components/form/index.d.ts +3 -1
- package/lib/src/components/form/src/cascader.d.ts +1 -0
- package/lib/src/components/form/src/checkbox.d.ts +1 -1
- package/lib/src/components/form/src/date.d.ts +1 -0
- package/lib/src/components/form/src/index.d.ts +3 -1
- package/lib/src/components/form/src/input-autocomplete.d.ts +1 -0
- package/lib/src/components/form/src/input-number.d.ts +1 -0
- package/lib/src/components/form/src/input.d.ts +1 -0
- package/lib/src/components/form/src/rate.d.ts +1 -0
- package/lib/src/components/form/src/select-v2.d.ts +1 -0
- package/lib/src/components/form/src/select.d.ts +1 -0
- package/lib/src/components/form/src/switch.d.ts +1 -0
- package/lib/src/components/form/src/tree-select.d.ts +1 -0
- package/lib/src/components/form/types/components.d.ts +1 -1
- package/lib/src/components/form/types/index.d.ts +8 -1
- package/lib/src/components/form/utils/index.d.ts +1 -0
- package/lib/src/components/table/types/index.d.ts +2 -0
- package/lib/src/components/table-page/index.d.ts +6 -2
- package/lib/src/components/table-page/src/index.d.ts +6 -2
- package/lib/src/index.d.ts +6 -6
- package/lib/src/utils/tools.d.ts +1 -0
- package/package.json +7 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { customPlaceholder as
|
|
16
|
-
import { getUuid as
|
|
17
|
-
import { ArrowUp as
|
|
1
|
+
import { defineComponent as R, toRefs as C, ref as b, onBeforeUpdate as F, computed as I, createVNode as r, resolveComponent as n, mergeProps as c, Fragment as T, isVNode as L, nextTick as x } from "vue";
|
|
2
|
+
import S from "./input.mjs";
|
|
3
|
+
import U from "./input-number.mjs";
|
|
4
|
+
import _ from "./input-autocomplete.mjs";
|
|
5
|
+
import A from "./select.mjs";
|
|
6
|
+
import B from "./select-v2.mjs";
|
|
7
|
+
import q from "./switch.mjs";
|
|
8
|
+
import $ from "./date.mjs";
|
|
9
|
+
import M from "./radio.mjs";
|
|
10
|
+
import j from "./tree-select.mjs";
|
|
11
|
+
import D from "./rate.mjs";
|
|
12
|
+
import E from "./checkbox.mjs";
|
|
13
|
+
import V from "./cascader.mjs";
|
|
14
|
+
import O from "../../../hooks/useWindowResize.mjs";
|
|
15
|
+
import { customPlaceholder as v, labelMouseEnter as N, getTooltipValue as z, valueMouseEnter as H, formItemSlot as g, renderSlot as p } from "../utils/index.mjs";
|
|
16
|
+
import { getUuid as P, dataTransformRod as W } from "../../../utils/tools.mjs";
|
|
17
|
+
import { ArrowUp as G, ArrowDown as J } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
18
18
|
import "../../../assets/scss/dinert-form.scss.mjs";
|
|
19
|
-
function
|
|
20
|
-
return typeof
|
|
19
|
+
function K(a) {
|
|
20
|
+
return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !L(a);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const me = /* @__PURE__ */ R({
|
|
23
23
|
name: "dinert-form",
|
|
24
24
|
props: {
|
|
25
25
|
form: {
|
|
@@ -32,45 +32,51 @@ const we = /* @__PURE__ */ $({
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["UnFold", "SearchFn", "ResetFn"],
|
|
35
|
-
setup(
|
|
35
|
+
setup(a, {
|
|
36
36
|
emit: e
|
|
37
37
|
}) {
|
|
38
38
|
const {
|
|
39
39
|
form: u
|
|
40
|
-
} =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
} = C(a), l = b(u.value.packUp === void 0), i = b(!1), h = b(), m = b({}), o = (f, d) => {
|
|
41
|
+
m.value[f] = d;
|
|
42
|
+
}, t = b("form_" + P());
|
|
43
|
+
F(() => {
|
|
44
|
+
m.value = {};
|
|
45
|
+
});
|
|
46
|
+
const k = I(() => {
|
|
47
|
+
const f = [];
|
|
48
|
+
return Object.keys(u.value.formItem).forEach((d) => {
|
|
49
|
+
const y = u.value.formItem[d];
|
|
50
|
+
f.push({
|
|
51
|
+
...y,
|
|
52
|
+
key: d
|
|
53
|
+
});
|
|
54
|
+
}), f.sort((d, y) => (d.sort || 1 / 0) - (y.sort || 1 / 0)), f;
|
|
55
|
+
}), w = () => {
|
|
56
|
+
let f = document.querySelectorAll(`.${t.value} .el-form-left > div`);
|
|
57
|
+
f[0] && (i.value = !1, x(() => {
|
|
58
|
+
const d = f[0].getBoundingClientRect().top, y = f[f.length - 1].getBoundingClientRect().top;
|
|
59
|
+
d !== y ? i.value = !0 : (l.value || (l.value = !0), i.value = !1), f = null;
|
|
56
60
|
}));
|
|
57
61
|
};
|
|
58
|
-
return
|
|
59
|
-
|
|
62
|
+
return O(() => {
|
|
63
|
+
w();
|
|
60
64
|
}, 100, !0), {
|
|
61
|
-
formItemMap:
|
|
65
|
+
formItemMap: k,
|
|
66
|
+
formClass: t,
|
|
67
|
+
formTypeRef: m,
|
|
68
|
+
formRef: h,
|
|
69
|
+
packUp: l,
|
|
70
|
+
isArrow: i,
|
|
71
|
+
setFormTypeRefs: o,
|
|
62
72
|
unfold: () => {
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
formClass: b,
|
|
66
|
-
formRef: i,
|
|
67
|
-
packUp: t,
|
|
68
|
-
isArrow: a
|
|
73
|
+
l.value ? l.value = !1 : l.value = !0, e("UnFold", l.value);
|
|
74
|
+
}
|
|
69
75
|
};
|
|
70
76
|
},
|
|
71
77
|
render() {
|
|
72
|
-
let
|
|
73
|
-
return
|
|
78
|
+
let a;
|
|
79
|
+
return r(n("el-form"), c({
|
|
74
80
|
inline: !0
|
|
75
81
|
}, this.form, {
|
|
76
82
|
ref: (e) => {
|
|
@@ -78,26 +84,26 @@ const we = /* @__PURE__ */ $({
|
|
|
78
84
|
},
|
|
79
85
|
class: [this.formClass, this.packUp ? "" : "packUp", "dinert-form"]
|
|
80
86
|
}), {
|
|
81
|
-
default: () => [
|
|
87
|
+
default: () => [r(n("el-row"), c(this.form.row, {
|
|
82
88
|
class: "el-form-left"
|
|
83
|
-
}),
|
|
89
|
+
}), K(a = this.formItemMap.map((e) => {
|
|
84
90
|
const u = {};
|
|
85
|
-
let
|
|
86
|
-
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
placeholder:
|
|
91
|
+
let l = typeof e.vif == "function" ? e.vif(this.form.model) : e.vif;
|
|
92
|
+
l = l === void 0 && typeof this.form.vif == "function" ? this.form.vif(this.form.model) : l, l = l === void 0 ? !0 : l;
|
|
93
|
+
let i = typeof e.show == "function" ? e.show(this.form.model) : e.show;
|
|
94
|
+
if (i = i === void 0 ? !0 : i, e.options = {
|
|
95
|
+
placeholder: v(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type),
|
|
90
96
|
...e.options
|
|
91
|
-
},
|
|
97
|
+
}, i || (u.display = "none"), l) {
|
|
92
98
|
e.required = e.required === void 0 ? e.required || this.form.required : e.required, e.showLabel = e.showLabel === void 0 ? e.showLabel || this.form.showLabel : e.showLabel;
|
|
93
|
-
let
|
|
94
|
-
|
|
99
|
+
let h = e.rules || [];
|
|
100
|
+
h = e.required ? [{
|
|
95
101
|
required: !0,
|
|
96
|
-
trigger: "blur",
|
|
97
|
-
message:
|
|
98
|
-
}].concat(
|
|
99
|
-
const
|
|
100
|
-
return
|
|
102
|
+
trigger: ["blur", "change"],
|
|
103
|
+
message: v(typeof e.label == "function" ? e.label(this.form.model) : e.label, e.type)
|
|
104
|
+
}].concat(h) : h, h = e.showLabel ? [] : h;
|
|
105
|
+
const m = e.showLabel ? !0 : e.tempValueDisabled;
|
|
106
|
+
return r(n("el-col"), c({
|
|
101
107
|
style: u,
|
|
102
108
|
class: [e.type, e.key],
|
|
103
109
|
key: e.key
|
|
@@ -110,100 +116,103 @@ const we = /* @__PURE__ */ $({
|
|
|
110
116
|
...this.form.colLayout,
|
|
111
117
|
...e.colLayout
|
|
112
118
|
}), {
|
|
113
|
-
default: () => [
|
|
119
|
+
default: () => [r(n("el-form-item"), c({
|
|
114
120
|
key: e.key,
|
|
115
121
|
prop: e.key,
|
|
116
122
|
class: [e.labelWrap ? "label-wrap" : "", e.showLabel || this.form.showLabel ? "show-label" : ""]
|
|
117
123
|
}, {
|
|
118
124
|
...e,
|
|
119
125
|
label: typeof e.label == "function" ? e.label(this.form.model) : e.label,
|
|
120
|
-
rules:
|
|
126
|
+
rules: h
|
|
121
127
|
}), {
|
|
122
|
-
label: () =>
|
|
128
|
+
label: () => r(n("dinert-tooltip"), {
|
|
123
129
|
key: e.key,
|
|
124
130
|
content: typeof e.label == "function" ? e.label(this.form.model) : e.label,
|
|
125
131
|
disabled: e.labelDisabled,
|
|
126
|
-
onLabelMouseEnter: (
|
|
132
|
+
onLabelMouseEnter: (o) => N(o, e, this)
|
|
127
133
|
}, null),
|
|
128
|
-
default: () =>
|
|
134
|
+
default: () => r(n("dinert-tooltip"), {
|
|
129
135
|
key: e.key,
|
|
130
|
-
content: String(
|
|
131
|
-
disabled:
|
|
136
|
+
content: String(z(this.form.model[e.key], e)),
|
|
137
|
+
disabled: m,
|
|
132
138
|
item: e,
|
|
133
|
-
onLabelMouseEnter: (
|
|
139
|
+
onLabelMouseEnter: (o) => H(o, e, this.form.model[e.key], this)
|
|
134
140
|
}, {
|
|
141
|
+
// eslint-disable-next-line max-statements
|
|
135
142
|
default: () => {
|
|
136
|
-
var
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
if (this.$slots[
|
|
140
|
-
|
|
143
|
+
var k, w;
|
|
144
|
+
const o = {};
|
|
145
|
+
let t = r("span", null, [W(this.form.model[e.key])]);
|
|
146
|
+
if (this.$slots[g(e.key)])
|
|
147
|
+
t = (w = (k = this.$slots)[g(e.key)]) == null ? void 0 : w.call(k, {
|
|
141
148
|
...e,
|
|
142
149
|
model: this.form.model
|
|
143
150
|
});
|
|
144
151
|
else {
|
|
145
152
|
if (e.showLabel || this.form.showLabel && [!0, void 0].includes(e.showLabel))
|
|
146
|
-
return
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
153
|
+
return t;
|
|
154
|
+
["input", "textarea"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append"], this, o, e), t = r(S, {
|
|
155
|
+
form: this.form,
|
|
156
|
+
formItem: e,
|
|
157
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
158
|
+
}, o)) : ["input-number"].includes(e.type) ? (p(["decrease-icon", "increase-icon"], this, o, e), t = r(U, {
|
|
159
|
+
form: this.form,
|
|
160
|
+
formItem: e,
|
|
161
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
162
|
+
}, o)) : ["input-autocomplete"].includes(e.type) ? (p(["prefix", "suffix", "prepend", "append", "loading"], this, o, e), t = r(_, {
|
|
163
|
+
form: this.form,
|
|
164
|
+
formItem: e,
|
|
165
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
166
|
+
}, o)) : ["select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(A, {
|
|
167
|
+
form: this.form,
|
|
168
|
+
formItem: e,
|
|
169
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
170
|
+
}, o)) : ["select-v2"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(B, {
|
|
171
|
+
form: this.form,
|
|
172
|
+
formItem: e,
|
|
173
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
174
|
+
}, o)) : ["switch"].includes(e.type) ? (p(["active-action", "inactive-action"], this, o, e), t = r(q, {
|
|
175
|
+
form: this.form,
|
|
176
|
+
formItem: e,
|
|
177
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
178
|
+
}, o)) : ["datetime", "date", "dates", "week", "month", "year", "years", "datetimerange", "daterange", "monthrange", "yearrange"].includes(e.type) ? (p(["range-separator", "prev-month", "next-month", "prev-year", "next-year"], this, o, e), t = r($, {
|
|
179
|
+
form: this.form,
|
|
180
|
+
formItem: e,
|
|
181
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
182
|
+
}, o)) : ["radio", "radio-button"].includes(e.type) ? t = r(M, {
|
|
183
|
+
form: this.form,
|
|
184
|
+
formItem: e,
|
|
185
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
186
|
+
}, o) : ["tree-select"].includes(e.type) ? (p(["header", "footer", "prefix", "empty", "tag", "loading", "label"], this, o, e), t = r(j, {
|
|
187
|
+
form: this.form,
|
|
188
|
+
formItem: e,
|
|
189
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
190
|
+
}, o)) : ["rate"].includes(e.type) ? t = r(D, {
|
|
191
|
+
form: this.form,
|
|
192
|
+
formItem: e,
|
|
193
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
194
|
+
}, o) : ["checkbox", "checkbox-button"].includes(e.type) ? t = r(E, {
|
|
195
|
+
form: this.form,
|
|
196
|
+
formItem: e,
|
|
197
|
+
ref: (s) => this.setFormTypeRefs(e.key, s)
|
|
198
|
+
}, o) : ["cascader"].includes(e.type) && (p(["empty"], this, o, e), t = r(V, {
|
|
199
|
+
ref: (s) => this.setFormTypeRefs(e.key, s),
|
|
200
|
+
form: this.form,
|
|
201
|
+
formItem: e
|
|
202
|
+
}, o));
|
|
194
203
|
}
|
|
195
|
-
return
|
|
204
|
+
return t;
|
|
196
205
|
},
|
|
197
206
|
defaultAfter: () => {
|
|
198
|
-
var
|
|
199
|
-
return (
|
|
207
|
+
var o, t;
|
|
208
|
+
return (t = (o = this.$slots)[g("after_" + e.key)]) == null ? void 0 : t.call(o, {
|
|
200
209
|
...e,
|
|
201
210
|
model: this.form.model
|
|
202
211
|
});
|
|
203
212
|
},
|
|
204
213
|
defaultBefore: () => {
|
|
205
|
-
var
|
|
206
|
-
return (
|
|
214
|
+
var o, t;
|
|
215
|
+
return (t = (o = this.$slots)[g("before_" + e.key)]) == null ? void 0 : t.call(o, {
|
|
207
216
|
...e,
|
|
208
217
|
model: this.form.model
|
|
209
218
|
});
|
|
@@ -212,33 +221,39 @@ const we = /* @__PURE__ */ $({
|
|
|
212
221
|
})]
|
|
213
222
|
});
|
|
214
223
|
}
|
|
215
|
-
})) ?
|
|
216
|
-
default: () => [
|
|
217
|
-
}), this.search &&
|
|
224
|
+
})) ? a : {
|
|
225
|
+
default: () => [a]
|
|
226
|
+
}), this.search && r(n("el-row"), {
|
|
218
227
|
class: ["el-form-right", this.isArrow ? "isArrow" : ""]
|
|
219
228
|
}, {
|
|
220
229
|
default: () => {
|
|
221
230
|
var e, u;
|
|
222
|
-
return [this.isArrow &&
|
|
231
|
+
return [this.isArrow && r(n("el-button"), {
|
|
223
232
|
class: "el-form-right-operation",
|
|
224
233
|
text: !0,
|
|
225
234
|
type: "primary",
|
|
226
235
|
onClick: this.unfold
|
|
227
236
|
}, {
|
|
228
|
-
default: () => [
|
|
229
|
-
default: () => [this.packUp ?
|
|
237
|
+
default: () => [r(n("el-icon"), null, {
|
|
238
|
+
default: () => [this.packUp ? r(G, null, null) : r(J, null, null)]
|
|
230
239
|
}), this.packUp ? "收起" : "展开"]
|
|
231
|
-
}), ((u = (e = this.$slots).form_search) == null ? void 0 : u.call(e)) ||
|
|
240
|
+
}), ((u = (e = this.$slots).form_search) == null ? void 0 : u.call(e)) || r(T, null, [r(n("el-button"), c({
|
|
232
241
|
type: "primary",
|
|
233
242
|
onClick: () => this.$emit("SearchFn")
|
|
234
|
-
}, {
|
|
235
|
-
default: () =>
|
|
236
|
-
|
|
243
|
+
}, this.form.searchButton), {
|
|
244
|
+
default: () => {
|
|
245
|
+
var l;
|
|
246
|
+
return [((l = this.form.searchButton) == null ? void 0 : l.message) || "搜索"];
|
|
247
|
+
}
|
|
248
|
+
}), r(n("el-button"), c({
|
|
237
249
|
type: "primary",
|
|
238
250
|
plain: !0,
|
|
239
251
|
onClick: () => this.$emit("ResetFn")
|
|
240
|
-
}, {
|
|
241
|
-
default: () =>
|
|
252
|
+
}, this.form.resetButton), {
|
|
253
|
+
default: () => {
|
|
254
|
+
var l;
|
|
255
|
+
return [((l = this.form.searchButton) == null ? void 0 : l.message) || "重置"];
|
|
256
|
+
}
|
|
242
257
|
})])];
|
|
243
258
|
}
|
|
244
259
|
})]
|
|
@@ -246,6 +261,6 @@ const we = /* @__PURE__ */ $({
|
|
|
246
261
|
}
|
|
247
262
|
});
|
|
248
263
|
export {
|
|
249
|
-
|
|
264
|
+
me as default
|
|
250
265
|
};
|
|
251
266
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, formItemSlot, customPlaceholder} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formClass = ref('form_' + getUuid())\n const formItemMap = computed(() => {\n let index = 0\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n sort: typeof value.sort === 'undefined' ? index : value.sort,\n })\n index += 10\n })\n\n result.sort((a: any, b: any) => {\n return a.sort - b.sort\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .el-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n unfold,\n formClass,\n\n formRef,\n packUp,\n isArrow\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']}>\n <el-row {...this.form.row} class=\"el-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n item.showLabel = item.showLabel === undefined ? item.showLabel || this.form.showLabel : item.showLabel\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: 'blur', message: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = item.showLabel ? [] : rules\n const valDisabled = item.showLabel ? true : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', item.showLabel || this.form.showLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => labelMouseEnter(e, item, this)}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this)}\n v-slots={\n {\n default: () => {\n\n\n const slots: any = {}\n\n let componentResult = <span>{dataTransformRod(this.form.model[item.key])}</span>\n\n\n if (this.$slots[formItemSlot(item.key)]) {\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (item.showLabel || (this.form.showLabel && [true, undefined].includes(item.showLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n const appendSlot = this.$slots[formItemSlot(item.key + '_append')]?.()\n const appendSlotValue = appendSlot && appendSlot[0] && appendSlot[0].children\n\n const prependSlot = this.$slots[formItemSlot(item.key + '_prepend')]?.()\n const prependSlotValue = prependSlot && prependSlot[0] && prependSlot[0].children\n if (appendSlotValue) {\n slots.append = () => this.$slots[formItemSlot(item.key + '_append')]?.()\n }\n if (prependSlotValue) {\n slots.prepend = () => this.$slots[formItemSlot(item.key + '_prepend')]?.()\n }\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n componentResult = (<CustomInputNumber form={this.form} formItem={item}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n componentResult = (<CustomSelect form={this.form} formItem={item}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n componentResult = (<CustomSelectV2 form={this.form} formItem={item}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n componentResult = (<CustomSwitch form={this.form} formItem={item}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n componentResult = (<CustomDate form={this.form} formItem={item}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n componentResult = (<CustomSelectTree form={this.form} formItem={item}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n componentResult = (<CustomCascader form={this.form} formItem={item}></CustomCascader>)\n }\n\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['el-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"el-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')}>搜索</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n >重置</el-button>\n </>\n )\n }\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formClass","getUuid","formItemMap","computed","index","result","keys","formItem","forEach","key","push","sort","a","b","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","el","row","map","item","style","vif","model","show","options","placeholder","customPlaceholder","label","display","required","showLabel","rules","trigger","message","concat","valDisabled","tempValueDisabled","colLayout","labelWrap","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","componentResult","dataTransformRod","$slots","formItemSlot","_b","_a","includes","appendSlot","_d","_c","appendSlotValue","children","prependSlot","_f","_e","prependSlotValue","append","prepend","CustomInput","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","$emit","_createTextVNode"],"mappings":";;;;;;;;;;;;;;;;;;AAuB+C,SAAAA,GAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAM/C,MAAeM,uBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMT;AAAAA,MACNU,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,QAAQ;AAAA,MACJF,MAAMG;AAAAA,MACNF,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACDG,OAAO,CAAC,UAAU,YAAY,SAAS;AAAA,EACvCC,MAAMP,GAAO;AAAA,IAACQ,MAAAA;AAAAA,EAAI,GAAG;AAEjB,UAAM;AAAA,MAACP,MAAAA;AAAAA,IAAI,IAAIQ,EAAOT,CAAK,GACrBU,IAASC,EAAIV,EAAKW,MAAMF,WAAWG,MAAS,GAC5CC,IAAUH,EAAI,EAAK,GACnBI,IAAUJ,KACVK,IAAYL,EAAI,UAAUM,EAAS,CAAA,GACnCC,IAAcC,EAAS,MAAM;AAC/B,UAAIC,IAAQ;AACZ,YAAMC,IAAc,CAAA;AACpB5B,oBAAO6B,KAAKrB,EAAKW,MAAMW,QAAQ,EAAEC,QAAQC,CAAAA,MAAO;AAC5C,cAAMb,IAAQX,EAAKW,MAAMW,SAASE,CAAG;AACrCJ,QAAAA,EAAOK,KAAK;AAAA,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,YAAA,SAElDoE,MAAM,KAAKC,MAAM,SAAS;AAAA,UAAC,GAAA;AAAA,YAAA/G,SAAAA,MAAA,CAAAgH,EAAA,IAAA,CAAA;AAAA,UAG/C,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,CAAA;AAAA,IAAA,CAAA;AAAA,EAIrB;AACJ,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/form/src/index.tsx"],"sourcesContent":["import {defineComponent, ref, computed, nextTick, toRefs, onBeforeUpdate} from 'vue'\nimport CustomInput from './input'\nimport CustomInputNumber from './input-number'\nimport CustomInputAutocomplete from './input-autocomplete'\nimport CustomSelect from './select'\nimport CustomSelectV2 from './select-v2'\nimport CustomSwitch from './switch'\nimport CustomDate from './date'\nimport CustomRadio from './radio'\nimport CustomSelectTree from './tree-select'\nimport CustomRate from './rate'\nimport CustomCheckbox from './checkbox'\nimport CustomCascader from './cascader'\n\nimport useWindowResize from '@packages/hooks/useWindowResize'\nimport {labelMouseEnter, valueMouseEnter, getTooltipValue, formItemSlot, customPlaceholder, renderSlot} from '@packages/components/form/utils'\n\nimport {dataTransformRod, getUuid} from '@packages/utils/tools'\nimport {ElForm} from 'element-plus'\n\nimport {ArrowUp, ArrowDown} from '@element-plus/icons-vue'\n\n\nimport '@packages/assets/scss/dinert-form.scss'\n\nimport type {PropType} from 'vue'\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\n\n\n// 展开还是收起状态\nexport default defineComponent({\n name: 'dinert-form',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n search: {\n type: Boolean,\n default: true\n }\n },\n emits: ['UnFold', 'SearchFn', 'ResetFn'],\n setup(props, {emit}) {\n const {form} = toRefs(props)\n const packUp = ref(form.value.packUp === undefined)\n const isArrow = ref(false)\n const formRef = ref<InstanceType<typeof ElForm>>()\n const formTypeRef = ref<any>({})\n const setFormTypeRefs = (type: string, el: any) => {\n formTypeRef.value[type] = el\n }\n const formClass = ref('form_' + getUuid())\n\n onBeforeUpdate(() => {\n formTypeRef.value = {}\n })\n\n const formItemMap = computed(() => {\n const result: any = []\n Object.keys(form.value.formItem).forEach(key => {\n const value = form.value.formItem[key] as Partial<CustomFormItemProps>\n result.push({\n ...value,\n key: key,\n })\n })\n\n result.sort((a: any, b: any) => {\n return (a.sort || Infinity) - (b.sort || Infinity)\n })\n\n return result\n })\n\n const resizeForm = () => {\n let elFormLeft = document.querySelectorAll(`.${formClass.value} .el-form-left > div`) as any\n if (elFormLeft[0]) {\n isArrow.value = false\n nextTick(() => {\n const firstTop = elFormLeft[0].getBoundingClientRect().top\n const lastTop = elFormLeft[elFormLeft.length - 1].getBoundingClientRect().top\n const isHeight = firstTop !== lastTop\n if (isHeight) {\n isArrow.value = true\n } else {\n if (!packUp.value) {\n packUp.value = true\n }\n isArrow.value = false\n }\n elFormLeft = null\n })\n\n }\n }\n\n useWindowResize(() => {\n resizeForm()\n }, 100, true)\n\n\n const unfold = () => {\n if (packUp.value) {\n packUp.value = false\n } else {\n packUp.value = true\n }\n\n emit('UnFold', packUp.value)\n }\n\n\n return {\n formItemMap,\n formClass,\n formTypeRef,\n formRef,\n packUp,\n isArrow,\n\n setFormTypeRefs,\n unfold,\n }\n },\n render() {\n return (\n <el-form inline={true}\n {...this.form}\n ref={el => {this.formRef = el}}\n class={[this.formClass, this.packUp ? '' : 'packUp', 'dinert-form']}>\n <el-row {...this.form.row} class=\"el-form-left\">\n {/* eslint-disable-next-line array-callback-return, consistent-return */}\n { this.formItemMap.map((item: CustomFormItemProps) => {\n const style: any = {}\n let vif = typeof item.vif === 'function' ? item.vif(this.form.model) : item.vif\n vif = vif === undefined ? typeof this.form.vif === 'function' ? this.form.vif(this.form.model) : vif : vif\n vif = vif === undefined ? true : vif\n\n let show = typeof item.show === 'function' ? item.show(this.form.model) : item.show\n show = show === undefined ? true : show\n item.options = {placeholder: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type), ...item.options}\n\n\n if (!show) {\n style.display = 'none'\n }\n if (vif) {\n item.required = item.required === undefined ? item.required || this.form.required : item.required\n item.showLabel = item.showLabel === undefined ? item.showLabel || this.form.showLabel : item.showLabel\n\n let rules = item.rules || []\n rules = item.required ? [{required: true, trigger: ['blur', 'change'], message: customPlaceholder(typeof item.label === 'function' ? item.label(this.form.model) : item.label, item.type)}].concat(rules as any) : rules\n rules = item.showLabel ? [] : rules\n const valDisabled = item.showLabel ? true : item.tempValueDisabled\n\n return (\n <el-col\n style= {style}\n class={[item.type, item.key]}\n key={item.key}\n {\n ...{\n // xl: 3, // ≥1920px\n // lg: 4, // ≥1200px\n // md: 8, // ≥992px\n // sm: 12, // ≥768px\n // xs: 24, // <768px\n ...this.form.colLayout,\n ...item.colLayout\n }\n }\n >\n <el-form-item\n key={item.key}\n prop={item.key}\n class={[item.labelWrap ? 'label-wrap' : '', item.showLabel || this.form.showLabel ? 'show-label' : '']}\n {...{\n ...item,\n label: typeof item.label === 'function' ? item.label(this.form.model) : item.label,\n rules: rules\n }}\n v-slots={{\n label: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={typeof item.label === 'function' ? item.label(this.form.model) : item.label}\n disabled={item.labelDisabled}\n onLabelMouseEnter={(e: MouseEvent) => labelMouseEnter(e, item, this)}\n >\n </dinert-tooltip>\n )\n },\n default: () => {\n return (\n <dinert-tooltip\n key={item.key}\n content={String(getTooltipValue(this.form.model[item.key], item))}\n disabled={valDisabled}\n item={item}\n onLabelMouseEnter={(e: MouseEvent) => valueMouseEnter(e, item, this.form.model[item.key], this)}\n v-slots={\n {\n // eslint-disable-next-line max-statements\n default: () => {\n\n const slots: any = {}\n\n let componentResult = <span>{dataTransformRod(this.form.model[item.key])}</span>\n\n if (this.$slots[formItemSlot(item.key)]) {\n\n componentResult = (this.$slots[formItemSlot(item.key)]?.({...item, model: this.form.model}))\n } else if (item.showLabel || (this.form.showLabel && [true, undefined].includes(item.showLabel))) {\n return componentResult\n } else if (['input', 'textarea'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append'], this, slots, item)\n componentResult = (<CustomInput form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInput>)\n } else if (['input-number'].includes(item.type)) {\n renderSlot(['decrease-icon', 'increase-icon'], this, slots, item)\n componentResult = (<CustomInputNumber form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputNumber>)\n } else if (['input-autocomplete'].includes(item.type)) {\n renderSlot(['prefix', 'suffix', 'prepend', 'append', 'loading'], this, slots, item)\n componentResult = (<CustomInputAutocomplete form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomInputAutocomplete>)\n } else if (['select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelect form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelect>)\n } else if (['select-v2'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectV2 form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectV2>)\n } else if (['switch'].includes(item.type)) {\n renderSlot(['active-action', 'inactive-action'], this, slots, item)\n componentResult = (<CustomSwitch form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSwitch>)\n } else if ([\n 'datetime',\n 'date',\n 'dates',\n 'week',\n 'month',\n 'year',\n 'years',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n 'yearrange',\n ].includes(item.type)) {\n renderSlot(['range-separator', 'prev-month', 'next-month', 'prev-year', 'next-year'], this, slots, item)\n componentResult = (<CustomDate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomDate>)\n } else if (['radio', 'radio-button'].includes(item.type)) {\n componentResult = (<CustomRadio form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRadio>)\n } else if (['tree-select'].includes(item.type)) {\n renderSlot(['header', 'footer', 'prefix', 'empty', 'tag', 'loading', 'label'], this, slots, item)\n componentResult = (<CustomSelectTree form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomSelectTree>)\n } else if (['rate'].includes(item.type)) {\n componentResult = (<CustomRate form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomRate>)\n } else if (['checkbox', 'checkbox-button'].includes(item.type)) {\n componentResult = (<CustomCheckbox form={this.form} formItem={item} v-slots={slots}\n ref={el => this.setFormTypeRefs(item.key, el)}></CustomCheckbox>)\n } else if (['cascader'].includes(item.type)) {\n renderSlot(['empty'], this, slots, item)\n componentResult = (<CustomCascader ref={el => this.setFormTypeRefs(item.key, el)}\n form={this.form} formItem={item} v-slots={slots}></CustomCascader>)\n }\n\n return componentResult\n },\n defaultAfter: () => this.$slots[formItemSlot('after_' + item.key)]?.({...item, model: this.form.model}),\n defaultBefore: () => this.$slots[formItemSlot('before_' + item.key)]?.({...item, model: this.form.model}),\n }\n }\n >\n </dinert-tooltip>\n )\n }\n }}\n >\n </el-form-item>\n </el-col>\n )\n }\n\n })\n }\n </el-row>\n {\n this.search\n && <el-row class={['el-form-right', this.isArrow ? 'isArrow' : '']}>\n {this.isArrow\n && <el-button class=\"el-form-right-operation\" text type=\"primary\"\n onClick={this.unfold}\n >\n <el-icon>\n {this.packUp ? <ArrowUp/> : <ArrowDown/>}\n </el-icon>\n {this.packUp ? '收起' : '展开'}\n </el-button>\n }\n {this.$slots.form_search?.()\n || (\n <>\n <el-button type=\"primary\" onClick={() => this.$emit('SearchFn')} {...this.form.searchButton}>{this.form.searchButton?.message || '搜索'}</el-button>\n <el-button type=\"primary\" plain\n onClick={() => this.$emit('ResetFn')}\n {...this.form.resetButton}\n >{this.form.searchButton?.message || '重置'}</el-button>\n </>\n )\n }\n </el-row>\n }\n </el-form>\n )\n }\n})\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","defineComponent","name","props","form","type","default","search","Boolean","emits","setup","emit","toRefs","packUp","ref","value","undefined","isArrow","formRef","formTypeRef","setFormTypeRefs","el","formClass","getUuid","onBeforeUpdate","formItemMap","computed","result","keys","formItem","forEach","key","push","sort","a","b","Infinity","resizeForm","elFormLeft","document","querySelectorAll","nextTick","firstTop","getBoundingClientRect","top","lastTop","length","useWindowResize","unfold","render","_slot","_createVNode","_resolveComponent","_mergeProps","row","map","item","style","vif","model","show","options","placeholder","customPlaceholder","label","display","required","showLabel","rules","trigger","message","concat","valDisabled","tempValueDisabled","colLayout","labelWrap","labelDisabled","e","labelMouseEnter","String","getTooltipValue","valueMouseEnter","slots","componentResult","dataTransformRod","$slots","formItemSlot","_b","_a","includes","renderSlot","CustomInput","CustomInputNumber","CustomInputAutocomplete","CustomSelect","CustomSelectV2","CustomSwitch","CustomDate","CustomRadio","CustomSelectTree","CustomRate","CustomCheckbox","CustomCascader","defaultAfter","defaultBefore","ArrowUp","ArrowDown","form_search","_Fragment","onClick","$emit","searchButton","resetButton"],"mappings":";;;;;;;;;;;;;;;;;;AAuB+C,SAAAA,EAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAO/C,MAAeM,uBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMT;AAAAA,MACNU,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,QAAQ;AAAA,MACJF,MAAMG;AAAAA,MACNF,SAAS;AAAA,IACb;AAAA,EACH;AAAA,EACDG,OAAO,CAAC,UAAU,YAAY,SAAS;AAAA,EACvCC,MAAMP,GAAO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,IAAA,IAAAtD,EAAAuD,GAA4B,MAAA,IAAA,CAAA;AAAA,YAAA,CAAA,GAE3C,KAAK7F,SAAS,OAAO,IAAI;AAAA,UAAA,CAAA,KAG7B0E,KAAAC,IAAA,KAAKH,QAAOsB,gBAAZ,gBAAApB,EAAA,KAAAC,OAA2BrC,EAAAyD,GAAA,MAAA,CAAAzD,EAAAC,gBAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,SAGmBwD,MAAM,KAAKC,MAAM,UAAU;AAAA,UAAC,GAAM,KAAK1G,KAAK2G,YAAY,GAAA;AAAA,YAAAzG,SAAAA,MAAA;;AAAA,wBAAGkF,IAAA,KAAKpF,KAAK2G,iBAAV,gBAAAvB,EAAwBlB,YAAW,IAAI;AAAA;AAAA,UAAA,CAAA,GAAAnB,EAAAC,EAAA,WAAA,GAAAC,EAAA;AAAA,YAAA,MAAA;AAAA,YAAA,OAAA;AAAA,YAAA,SAExHwD,MAAM,KAAKC,MAAM,SAAS;AAAA,UAAC,GAChC,KAAK1G,KAAK4G,WAAW,GAAA;AAAA,YAAA1G,SAAAA,MAAA;;AAAA,wBAC3BkF,IAAA,KAAKpF,KAAK2G,iBAAV,gBAAAvB,EAAwBlB,YAAW,IAAI;AAAA;AAAA,UAEhD,CAAA,CAAA,CAAA,CAAA;AAAA;AAAA,OAEA,CAAA;AAAA,IAAA,CAAA;AAAA,EAIrB;AACJ,CAAC;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, ref as n, computed as m, createVNode as t, resolveComponent as p, mergeProps as r } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ s({
|
|
3
3
|
name: "dinert-input-autocomplete",
|
|
4
4
|
props: {
|
|
5
5
|
form: {
|
|
@@ -12,20 +12,26 @@ const u = /* @__PURE__ */ o({
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
+
const o = n(null);
|
|
15
16
|
return {
|
|
16
|
-
options:
|
|
17
|
+
options: m(() => e.formItem.options || {}),
|
|
18
|
+
inputAutocompleteRef: o
|
|
17
19
|
};
|
|
18
20
|
},
|
|
19
21
|
render() {
|
|
20
|
-
return t("div", null, [t(
|
|
22
|
+
return t("div", null, [t(p("el-autocomplete"), r({
|
|
21
23
|
modelValue: this.form.model[this.formItem.key],
|
|
22
24
|
"onUpdate:modelValue": (e) => this.form.model[this.formItem.key] = e,
|
|
23
25
|
clearable: !0,
|
|
24
26
|
"fetch-suggestions": this.options.fetchSuggestions || (() => ({}))
|
|
25
|
-
}, this.options
|
|
27
|
+
}, this.options, {
|
|
28
|
+
ref: (e) => {
|
|
29
|
+
this.inputAutocompleteRef = e;
|
|
30
|
+
}
|
|
31
|
+
}), this.$slots)]);
|
|
26
32
|
}
|
|
27
33
|
});
|
|
28
34
|
export {
|
|
29
|
-
|
|
35
|
+
f as default
|
|
30
36
|
};
|
|
31
37
|
//# sourceMappingURL=input-autocomplete.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-autocomplete.mjs","sources":["../../../../../packages/components/form/src/input-autocomplete.tsx"],"sourcesContent":["import {computed, defineComponent} from 'vue'\n\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\nimport type {PropType} from 'vue'\n\n\nexport default defineComponent({\n name: 'dinert-input-autocomplete',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n formItem: {\n type: Object as PropType<CustomFormItemProps>,\n default: () => ({})\n },\n },\n setup(props) {\n const options = computed<CustomFormItemProps[keyof CustomFormItemProps]['input-autocomplete']>(() => {\n const options = props.formItem.options || {}\n return options\n })\n\n return {\n options\n }\n },\n render() {\n\n return (\n <div>\n <el-autocomplete\n v-model={this.form.model[this.formItem.key]}\n clearable\n fetch-suggestions={this.options.fetchSuggestions || (() => ({}))}\n {...this.options}\n v-slots={this.$slots}\n >\n </el-autocomplete>\n </div>\n )\n }\n})\n\n"],"names":["defineComponent","name","props","form","type","Object","default","formItem","setup","options","computed","render","_createVNode","_resolveComponent","_mergeProps","model","key","$event","fetchSuggestions","$slots"],"mappings":";AAMA,MAAeA,sBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,UAAU;AAAA,MACNH,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACpB;AAAA,EACH;AAAA,EACDE,MAAMN,GAAO;
|
|
1
|
+
{"version":3,"file":"input-autocomplete.mjs","sources":["../../../../../packages/components/form/src/input-autocomplete.tsx"],"sourcesContent":["import {computed, defineComponent, ref} from 'vue'\n\nimport type {RewriteFormProps, CustomFormItemProps} from '@packages/components/form/types'\nimport type {PropType} from 'vue'\n\n\nexport default defineComponent({\n name: 'dinert-input-autocomplete',\n props: {\n form: {\n type: Object as PropType<RewriteFormProps>,\n default: () => ({})\n },\n formItem: {\n type: Object as PropType<CustomFormItemProps>,\n default: () => ({})\n },\n },\n setup(props) {\n const inputAutocompleteRef = ref(null)\n const options = computed<CustomFormItemProps[keyof CustomFormItemProps]['input-autocomplete']>(() => {\n const options = props.formItem.options || {}\n return options\n })\n\n return {\n options,\n inputAutocompleteRef\n }\n },\n render() {\n\n return (\n <div>\n <el-autocomplete\n v-model={this.form.model[this.formItem.key]}\n clearable\n fetch-suggestions={this.options.fetchSuggestions || (() => ({}))}\n {...this.options}\n v-slots={this.$slots}\n ref={el => {this.inputAutocompleteRef = el}}\n >\n </el-autocomplete>\n </div>\n )\n }\n})\n\n"],"names":["defineComponent","name","props","form","type","Object","default","formItem","setup","inputAutocompleteRef","ref","options","computed","render","_createVNode","_resolveComponent","_mergeProps","model","key","$event","fetchSuggestions","el","$slots"],"mappings":";AAMA,MAAeA,sBAAgB;AAAA,EAC3BC,MAAM;AAAA,EACNC,OAAO;AAAA,IACHC,MAAM;AAAA,MACFC,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACnB;AAAA,IACDC,UAAU;AAAA,MACNH,MAAMC;AAAAA,MACNC,SAASA,OAAO,CAAA;AAAA,IACpB;AAAA,EACH;AAAA,EACDE,MAAMN,GAAO;AACT,UAAMO,IAAuBC,EAAI,IAAI;AAMrC,WAAO;AAAA,MACHC,SANYC,EAA+E,MAC3EV,EAAMK,SAASI,WAAW,CAAA,CAE7C;AAAA,MAIGF,sBAAAA;AAAAA;EAEP;AAAA,EACDI,SAAS;AAEL,WAAAC,EAAAA,OAAAA,MAAAA,CAAAA,EAAAC,sBAAAC,EAAA;AAAA,MAAA,YAGqB,KAAKb,KAAKc,MAAM,KAAKV,SAASW,GAAG;AAAA,MAAC,uBAAAC,CAAAA,MAAlC,KAAKhB,KAAKc,MAAM,KAAKV,SAASW,GAAG,IAACC;AAAAA,MAAA,WAAA;AAAA,MAAA,qBAExB,KAAKR,QAAQS,qBAAqB,OAAO,CAAE;AAAA,OAC1D,KAAKT,SAAO;AAAA,MAAA,KAEXU,CAAAA,MAAM;AAAC,aAAKZ,uBAAuBY;AAAAA,MAAE;AAAA,IADjC,CAAA,GAAA,KAAKC,MAAM,CAAA,CAAA;AAAA,EAMpC;AACJ,CAAC;"}
|