orion-design 1.0.2 → 1.0.4
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/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js +401 -0
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js.map +1 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js +313 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js.map +1 -0
- package/dist/components/Edittable/Edittable.d.ts +9 -2
- package/dist/components/Edittable/hooks/useEdittable.d.ts +2 -1
- package/dist/components/Edittable/hooks/useEdittable.js +60 -63
- package/dist/components/Edittable/hooks/useEdittable.js.map +1 -1
- package/dist/components/Edittable/index.d.ts +5 -0
- package/dist/components/Edittable/index.js +360 -324
- package/dist/components/Edittable/index.js.map +1 -1
- package/dist/components/Edittable/utils/index.d.ts +2 -0
- package/dist/components/Edittable/utils/index.js +47 -37
- package/dist/components/Edittable/utils/index.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +7 -1
- package/dist/components/Form/index.js +371 -377
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/DateInput/DateInput.d.ts +0 -1
- package/dist/components/Input/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Input/FileInput/FileInput.vue.d.ts +6 -3
- package/dist/components/Input/LovInput/LovInput.d.ts +0 -1
- package/dist/components/Input/LovInput/LovInput.js.map +1 -1
- package/dist/components/Input/LovInput/LovInput.vue.d.ts +6 -6
- package/dist/components/Input/NumberInput/NumberInput.d.ts +0 -1
- package/dist/components/Input/NumberInput/NumberInput.vue.d.ts +3 -0
- package/dist/components/Input/PasswordInput/PasswordInput.d.ts +0 -1
- package/dist/components/Input/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Input/StringInput/StringInput.d.ts +0 -1
- package/dist/components/Input/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Input/TableSelect/TableSelect.d.ts +0 -1
- package/dist/components/Input/TableSelect/TableSelect.js.map +1 -1
- package/dist/components/Input/TableSelect/TableSelect.vue.d.ts +6 -6
- package/dist/components/Input/Textarea/Textarea.d.ts +0 -1
- package/dist/components/Input/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Input/index.d.ts +35 -9
- package/dist/components/Input/index.js +2 -2
- package/dist/request/leaf7/index.js +21 -21
- package/dist/request/leaf7/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js +0 -400
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map +0 -1
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js +0 -310
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { difference as
|
|
2
|
-
import { defineComponent as m, useTemplateRef as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { ElForm as
|
|
5
|
-
import { formContextKey as
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
8
|
-
import { useFormItemSpan as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { S as
|
|
11
|
-
const
|
|
1
|
+
import { difference as A, isEmpty as U, isString as W } from "lodash-es";
|
|
2
|
+
import { defineComponent as m, useTemplateRef as T, provide as N, reactive as E, toRef as _, openBlock as b, createBlock as h, unref as e, withCtx as n, createVNode as p, renderSlot as S, useSlots as D, useAttrs as z, isRef as V, createSlots as R, computed as G, normalizeStyle as j } from "vue";
|
|
3
|
+
import { withInstall as L } from "../_util/vue/install.js";
|
|
4
|
+
import { ElForm as P, ElRow as Y, ElCol as c, ElFormItem as y } from "element-plus";
|
|
5
|
+
import { formContextKey as K } from "./Form.js";
|
|
6
|
+
import k from "../../error/OrionError.js";
|
|
7
|
+
import { _ as H, a as J, b as Q, c as X, d as Z, e as x, f as ee } from "../../LovInput.vue_vue_type_script_setup_true_lang-QrvjS12n.js";
|
|
8
|
+
import { useFormItemSpan as g, useFormItemRules as q, useFormItemDisabled as C, useFormItemModel as w, useFormContext as le } from "./hooks/index.js";
|
|
9
|
+
import { _ as ae, a as oe, b as ne, c as re, d as te, e as se, f as de } from "../../TableSelect.vue_vue_type_script_setup_true_lang-DmAuOipe.js";
|
|
10
|
+
import { S as ie } from "../../index-CvcZkdiG.js";
|
|
11
|
+
const ue = /* @__PURE__ */ m({
|
|
12
12
|
name: "OForm",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "Form",
|
|
@@ -20,30 +20,30 @@ const de = /* @__PURE__ */ m({
|
|
|
20
20
|
modelValue: {}
|
|
21
21
|
},
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
if (!Object.keys(
|
|
26
|
-
throw new
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
if (!
|
|
31
|
-
throw new
|
|
32
|
-
|
|
33
|
-
}, l =
|
|
34
|
-
return
|
|
23
|
+
setup(u, { expose: t, emit: d }) {
|
|
24
|
+
const s = d, i = (r, B) => {
|
|
25
|
+
if (!Object.keys(u.modelValue).includes(r))
|
|
26
|
+
throw new k(`modelValue中不存在[${r}]`);
|
|
27
|
+
s("update:modelValue", { ...u.modelValue, [r]: B });
|
|
28
|
+
}, o = (r) => {
|
|
29
|
+
const B = Object.keys(u.modelValue), f = Object.keys(r), $ = A(f, B);
|
|
30
|
+
if (!U($))
|
|
31
|
+
throw new k(`modelValue中不存在[${$.join(",")}]`);
|
|
32
|
+
s("update:modelValue", { ...u.modelValue, ...r });
|
|
33
|
+
}, l = T("form");
|
|
34
|
+
return t({
|
|
35
35
|
validate: async () => await l.value.validate()
|
|
36
|
-
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
modelValue:
|
|
40
|
-
updateModelValue:
|
|
41
|
-
updateModelValueMulti:
|
|
42
|
-
rules:
|
|
43
|
-
itemSpan:
|
|
44
|
-
disabled:
|
|
36
|
+
}), N(
|
|
37
|
+
K,
|
|
38
|
+
E({
|
|
39
|
+
modelValue: _(() => u.modelValue),
|
|
40
|
+
updateModelValue: i,
|
|
41
|
+
updateModelValueMulti: o,
|
|
42
|
+
rules: _(() => u.rules),
|
|
43
|
+
itemSpan: _(() => u.itemSpan),
|
|
44
|
+
disabled: _(() => u.disabled)
|
|
45
45
|
})
|
|
46
|
-
), (r,
|
|
46
|
+
), (r, B) => (b(), h(e(P), {
|
|
47
47
|
ref: "form",
|
|
48
48
|
model: r.modelValue,
|
|
49
49
|
rules: r.rules,
|
|
@@ -51,9 +51,9 @@ const de = /* @__PURE__ */ m({
|
|
|
51
51
|
disabled: r.disabled,
|
|
52
52
|
class: "orion-form"
|
|
53
53
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
56
|
-
default:
|
|
54
|
+
default: n(() => [
|
|
55
|
+
p(e(Y), { gutter: 16 }, {
|
|
56
|
+
default: n(() => [
|
|
57
57
|
S(r.$slots, "default")
|
|
58
58
|
]),
|
|
59
59
|
_: 3
|
|
@@ -62,7 +62,7 @@ const de = /* @__PURE__ */ m({
|
|
|
62
62
|
_: 3
|
|
63
63
|
}, 8, ["model", "rules", "label-width", "disabled"]));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), pe = /* @__PURE__ */ m({
|
|
66
66
|
name: "OFormString",
|
|
67
67
|
inheritAttrs: !1,
|
|
68
68
|
__name: "StringInput",
|
|
@@ -75,58 +75,57 @@ const de = /* @__PURE__ */ m({
|
|
|
75
75
|
rules: {},
|
|
76
76
|
maxlength: {},
|
|
77
77
|
placeholder: {},
|
|
78
|
-
disabled: { type: Boolean }
|
|
79
|
-
readonly: { type: Boolean }
|
|
78
|
+
disabled: { type: Boolean }
|
|
80
79
|
},
|
|
81
|
-
setup(
|
|
82
|
-
const
|
|
83
|
-
return (
|
|
84
|
-
default:
|
|
85
|
-
|
|
86
|
-
prop:
|
|
87
|
-
label:
|
|
88
|
-
"label-width":
|
|
89
|
-
required:
|
|
90
|
-
rules: e(
|
|
80
|
+
setup(u) {
|
|
81
|
+
const t = D(), d = z(), s = g(), i = q(), o = C(), l = w();
|
|
82
|
+
return (a, r) => (b(), h(e(c), { span: e(s) }, {
|
|
83
|
+
default: n(() => [
|
|
84
|
+
p(e(y), {
|
|
85
|
+
prop: a.name,
|
|
86
|
+
label: a.label,
|
|
87
|
+
"label-width": a.labelWidth,
|
|
88
|
+
required: a.required,
|
|
89
|
+
rules: e(i)
|
|
91
90
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
modelValue: e(
|
|
95
|
-
"onUpdate:modelValue":
|
|
96
|
-
maxlength:
|
|
97
|
-
placeholder:
|
|
98
|
-
disabled: e(
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
e(
|
|
91
|
+
default: n(() => [
|
|
92
|
+
p(H, {
|
|
93
|
+
modelValue: e(l),
|
|
94
|
+
"onUpdate:modelValue": r[0] || (r[0] = (B) => V(l) ? l.value = B : null),
|
|
95
|
+
maxlength: a.maxlength,
|
|
96
|
+
placeholder: a.placeholder,
|
|
97
|
+
disabled: e(o),
|
|
98
|
+
onChange: e(d).onChange
|
|
99
|
+
}, R({ _: 2 }, [
|
|
100
|
+
e(t).prefix ? {
|
|
102
101
|
name: "prefix",
|
|
103
|
-
fn:
|
|
104
|
-
S(
|
|
102
|
+
fn: n(() => [
|
|
103
|
+
S(a.$slots, "prefix")
|
|
105
104
|
]),
|
|
106
105
|
key: "0"
|
|
107
106
|
} : void 0,
|
|
108
|
-
e(
|
|
107
|
+
e(t).suffix ? {
|
|
109
108
|
name: "suffix",
|
|
110
|
-
fn:
|
|
111
|
-
S(
|
|
109
|
+
fn: n(() => [
|
|
110
|
+
S(a.$slots, "suffix")
|
|
112
111
|
]),
|
|
113
112
|
key: "1"
|
|
114
113
|
} : void 0,
|
|
115
|
-
e(
|
|
114
|
+
e(t).prepend ? {
|
|
116
115
|
name: "prepend",
|
|
117
|
-
fn:
|
|
118
|
-
S(
|
|
116
|
+
fn: n(() => [
|
|
117
|
+
S(a.$slots, "prepend")
|
|
119
118
|
]),
|
|
120
119
|
key: "2"
|
|
121
120
|
} : void 0,
|
|
122
|
-
e(
|
|
121
|
+
e(t).append ? {
|
|
123
122
|
name: "append",
|
|
124
|
-
fn:
|
|
125
|
-
S(
|
|
123
|
+
fn: n(() => [
|
|
124
|
+
S(a.$slots, "append")
|
|
126
125
|
]),
|
|
127
126
|
key: "3"
|
|
128
127
|
} : void 0
|
|
129
|
-
]), 1032, ["modelValue", "maxlength", "placeholder", "disabled", "
|
|
128
|
+
]), 1032, ["modelValue", "maxlength", "placeholder", "disabled", "onChange"])
|
|
130
129
|
]),
|
|
131
130
|
_: 3
|
|
132
131
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -134,7 +133,7 @@ const de = /* @__PURE__ */ m({
|
|
|
134
133
|
_: 3
|
|
135
134
|
}, 8, ["span"]));
|
|
136
135
|
}
|
|
137
|
-
}),
|
|
136
|
+
}), me = /* @__PURE__ */ m({
|
|
138
137
|
name: "OFormPassword",
|
|
139
138
|
inheritAttrs: !1,
|
|
140
139
|
__name: "PasswordInput",
|
|
@@ -147,29 +146,28 @@ const de = /* @__PURE__ */ m({
|
|
|
147
146
|
rules: {},
|
|
148
147
|
maxlength: {},
|
|
149
148
|
placeholder: {},
|
|
150
|
-
disabled: { type: Boolean }
|
|
151
|
-
readonly: { type: Boolean }
|
|
149
|
+
disabled: { type: Boolean }
|
|
152
150
|
},
|
|
153
|
-
setup(
|
|
154
|
-
const
|
|
155
|
-
return (
|
|
156
|
-
default:
|
|
157
|
-
|
|
158
|
-
prop:
|
|
159
|
-
label:
|
|
160
|
-
"label-width":
|
|
161
|
-
required:
|
|
162
|
-
rules: e(
|
|
151
|
+
setup(u) {
|
|
152
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
153
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
154
|
+
default: n(() => [
|
|
155
|
+
p(e(y), {
|
|
156
|
+
prop: l.name,
|
|
157
|
+
label: l.label,
|
|
158
|
+
"label-width": l.labelWidth,
|
|
159
|
+
required: l.required,
|
|
160
|
+
rules: e(s)
|
|
163
161
|
}, {
|
|
164
|
-
default:
|
|
165
|
-
|
|
166
|
-
modelValue: e(
|
|
167
|
-
"onUpdate:modelValue":
|
|
168
|
-
maxlength:
|
|
169
|
-
placeholder:
|
|
170
|
-
disabled: e(
|
|
171
|
-
|
|
172
|
-
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "
|
|
162
|
+
default: n(() => [
|
|
163
|
+
p(ae, {
|
|
164
|
+
modelValue: e(o),
|
|
165
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
166
|
+
maxlength: l.maxlength,
|
|
167
|
+
placeholder: l.placeholder,
|
|
168
|
+
disabled: e(i),
|
|
169
|
+
onChange: e(t).onChange
|
|
170
|
+
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "onChange"])
|
|
173
171
|
]),
|
|
174
172
|
_: 1
|
|
175
173
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -177,7 +175,7 @@ const de = /* @__PURE__ */ m({
|
|
|
177
175
|
_: 1
|
|
178
176
|
}, 8, ["span"]));
|
|
179
177
|
}
|
|
180
|
-
}),
|
|
178
|
+
}), be = /* @__PURE__ */ m({
|
|
181
179
|
name: "OFormTextarea",
|
|
182
180
|
inheritAttrs: !1,
|
|
183
181
|
__name: "Textarea",
|
|
@@ -191,30 +189,29 @@ const de = /* @__PURE__ */ m({
|
|
|
191
189
|
maxlength: {},
|
|
192
190
|
placeholder: {},
|
|
193
191
|
disabled: { type: Boolean },
|
|
194
|
-
readonly: { type: Boolean },
|
|
195
192
|
rows: {}
|
|
196
193
|
},
|
|
197
|
-
setup(
|
|
198
|
-
const
|
|
199
|
-
return (
|
|
200
|
-
default:
|
|
201
|
-
|
|
202
|
-
prop:
|
|
203
|
-
label:
|
|
204
|
-
"label-width":
|
|
205
|
-
required:
|
|
206
|
-
rules: e(
|
|
194
|
+
setup(u) {
|
|
195
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
196
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
197
|
+
default: n(() => [
|
|
198
|
+
p(e(y), {
|
|
199
|
+
prop: l.name,
|
|
200
|
+
label: l.label,
|
|
201
|
+
"label-width": l.labelWidth,
|
|
202
|
+
required: l.required,
|
|
203
|
+
rules: e(s)
|
|
207
204
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
|
|
210
|
-
modelValue: e(
|
|
211
|
-
"onUpdate:modelValue":
|
|
212
|
-
maxlength:
|
|
213
|
-
placeholder:
|
|
214
|
-
disabled: e(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "
|
|
205
|
+
default: n(() => [
|
|
206
|
+
p(oe, {
|
|
207
|
+
modelValue: e(o),
|
|
208
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
209
|
+
maxlength: l.maxlength,
|
|
210
|
+
placeholder: l.placeholder,
|
|
211
|
+
disabled: e(i),
|
|
212
|
+
rows: l.rows,
|
|
213
|
+
onChange: e(t).onChange
|
|
214
|
+
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "rows", "onChange"])
|
|
218
215
|
]),
|
|
219
216
|
_: 1
|
|
220
217
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -222,7 +219,7 @@ const de = /* @__PURE__ */ m({
|
|
|
222
219
|
_: 1
|
|
223
220
|
}, 8, ["span"]));
|
|
224
221
|
}
|
|
225
|
-
}),
|
|
222
|
+
}), he = /* @__PURE__ */ m({
|
|
226
223
|
name: "OFormSingleselect",
|
|
227
224
|
inheritAttrs: !1,
|
|
228
225
|
__name: "SingleSelect",
|
|
@@ -239,27 +236,27 @@ const de = /* @__PURE__ */ m({
|
|
|
239
236
|
clearable: { type: Boolean },
|
|
240
237
|
filterable: { type: Boolean }
|
|
241
238
|
},
|
|
242
|
-
setup(
|
|
243
|
-
const
|
|
244
|
-
return (l,
|
|
245
|
-
default:
|
|
246
|
-
|
|
239
|
+
setup(u) {
|
|
240
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
241
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
242
|
+
default: n(() => [
|
|
243
|
+
p(e(y), {
|
|
247
244
|
prop: l.name,
|
|
248
245
|
label: l.label,
|
|
249
246
|
"label-width": l.labelWidth,
|
|
250
247
|
required: l.required,
|
|
251
|
-
rules: e(
|
|
248
|
+
rules: e(s)
|
|
252
249
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
255
|
-
modelValue: e(
|
|
256
|
-
"onUpdate:modelValue":
|
|
250
|
+
default: n(() => [
|
|
251
|
+
p(J, {
|
|
252
|
+
modelValue: e(o),
|
|
253
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
257
254
|
placeholder: l.placeholder,
|
|
258
|
-
disabled: e(
|
|
255
|
+
disabled: e(i),
|
|
259
256
|
code: l.code,
|
|
260
257
|
clearable: l.clearable,
|
|
261
258
|
filterable: l.filterable,
|
|
262
|
-
onChange: e(
|
|
259
|
+
onChange: e(t).onChange
|
|
263
260
|
}, null, 8, ["modelValue", "placeholder", "disabled", "code", "clearable", "filterable", "onChange"])
|
|
264
261
|
]),
|
|
265
262
|
_: 1
|
|
@@ -268,7 +265,7 @@ const de = /* @__PURE__ */ m({
|
|
|
268
265
|
_: 1
|
|
269
266
|
}, 8, ["span"]));
|
|
270
267
|
}
|
|
271
|
-
}),
|
|
268
|
+
}), fe = /* @__PURE__ */ m({
|
|
272
269
|
name: "OFormMultiselect",
|
|
273
270
|
inheritAttrs: !1,
|
|
274
271
|
__name: "MultiSelect",
|
|
@@ -285,28 +282,28 @@ const de = /* @__PURE__ */ m({
|
|
|
285
282
|
collapseTags: { type: Boolean },
|
|
286
283
|
collapseTagsTooltip: { type: Boolean }
|
|
287
284
|
},
|
|
288
|
-
setup(
|
|
289
|
-
const
|
|
290
|
-
return (l,
|
|
291
|
-
default:
|
|
292
|
-
|
|
285
|
+
setup(u) {
|
|
286
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
287
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
288
|
+
default: n(() => [
|
|
289
|
+
p(e(y), {
|
|
293
290
|
prop: l.name,
|
|
294
291
|
label: l.label,
|
|
295
292
|
"label-width": l.labelWidth,
|
|
296
293
|
required: l.required,
|
|
297
|
-
rules: e(
|
|
294
|
+
rules: e(s)
|
|
298
295
|
}, {
|
|
299
|
-
default:
|
|
300
|
-
|
|
301
|
-
modelValue: e(
|
|
302
|
-
"onUpdate:modelValue":
|
|
296
|
+
default: n(() => [
|
|
297
|
+
p(Q, {
|
|
298
|
+
modelValue: e(o),
|
|
299
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
303
300
|
placeholder: l.placeholder,
|
|
304
|
-
disabled: e(
|
|
301
|
+
disabled: e(i),
|
|
305
302
|
code: l.code,
|
|
306
303
|
multiple: "",
|
|
307
304
|
"collapse-tags": l.collapseTags,
|
|
308
305
|
"collapse-tags-tooltip": l.collapseTagsTooltip,
|
|
309
|
-
onChange: e(
|
|
306
|
+
onChange: e(t).onChange
|
|
310
307
|
}, null, 8, ["modelValue", "placeholder", "disabled", "code", "collapse-tags", "collapse-tags-tooltip", "onChange"])
|
|
311
308
|
]),
|
|
312
309
|
_: 1
|
|
@@ -315,7 +312,7 @@ const de = /* @__PURE__ */ m({
|
|
|
315
312
|
_: 1
|
|
316
313
|
}, 8, ["span"]));
|
|
317
314
|
}
|
|
318
|
-
}),
|
|
315
|
+
}), ce = /* @__PURE__ */ m({
|
|
319
316
|
name: "OFormRadiogroup",
|
|
320
317
|
inheritAttrs: !1,
|
|
321
318
|
__name: "RadioGroup",
|
|
@@ -329,24 +326,24 @@ const de = /* @__PURE__ */ m({
|
|
|
329
326
|
disabled: { type: Boolean },
|
|
330
327
|
code: {}
|
|
331
328
|
},
|
|
332
|
-
setup(
|
|
333
|
-
const
|
|
334
|
-
return (l,
|
|
335
|
-
default:
|
|
336
|
-
|
|
329
|
+
setup(u) {
|
|
330
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
331
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
332
|
+
default: n(() => [
|
|
333
|
+
p(e(y), {
|
|
337
334
|
prop: l.name,
|
|
338
335
|
label: l.label,
|
|
339
336
|
"label-width": l.labelWidth,
|
|
340
337
|
required: l.required,
|
|
341
|
-
rules: e(
|
|
338
|
+
rules: e(s)
|
|
342
339
|
}, {
|
|
343
|
-
default:
|
|
344
|
-
|
|
345
|
-
modelValue: e(
|
|
346
|
-
"onUpdate:modelValue":
|
|
347
|
-
disabled: e(
|
|
340
|
+
default: n(() => [
|
|
341
|
+
p(ne, {
|
|
342
|
+
modelValue: e(o),
|
|
343
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
344
|
+
disabled: e(i),
|
|
348
345
|
code: l.code,
|
|
349
|
-
onChange: e(
|
|
346
|
+
onChange: e(t).onChange
|
|
350
347
|
}, null, 8, ["modelValue", "disabled", "code", "onChange"])
|
|
351
348
|
]),
|
|
352
349
|
_: 1
|
|
@@ -355,7 +352,7 @@ const de = /* @__PURE__ */ m({
|
|
|
355
352
|
_: 1
|
|
356
353
|
}, 8, ["span"]));
|
|
357
354
|
}
|
|
358
|
-
}),
|
|
355
|
+
}), ge = /* @__PURE__ */ m({
|
|
359
356
|
name: "OFormCheckboxgroup",
|
|
360
357
|
inheritAttrs: !1,
|
|
361
358
|
__name: "CheckboxGroup",
|
|
@@ -369,24 +366,24 @@ const de = /* @__PURE__ */ m({
|
|
|
369
366
|
disabled: { type: Boolean },
|
|
370
367
|
code: {}
|
|
371
368
|
},
|
|
372
|
-
setup(
|
|
373
|
-
const
|
|
374
|
-
return (l,
|
|
375
|
-
default:
|
|
376
|
-
|
|
369
|
+
setup(u) {
|
|
370
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
371
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
372
|
+
default: n(() => [
|
|
373
|
+
p(e(y), {
|
|
377
374
|
prop: l.name,
|
|
378
375
|
label: l.label,
|
|
379
376
|
"label-width": l.labelWidth,
|
|
380
377
|
required: l.required,
|
|
381
|
-
rules: e(
|
|
378
|
+
rules: e(s)
|
|
382
379
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
385
|
-
modelValue: e(
|
|
386
|
-
"onUpdate:modelValue":
|
|
387
|
-
disabled: e(
|
|
380
|
+
default: n(() => [
|
|
381
|
+
p(re, {
|
|
382
|
+
modelValue: e(o),
|
|
383
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
384
|
+
disabled: e(i),
|
|
388
385
|
code: l.code,
|
|
389
|
-
onChange: e(
|
|
386
|
+
onChange: e(t).onChange
|
|
390
387
|
}, null, 8, ["modelValue", "disabled", "code", "onChange"])
|
|
391
388
|
]),
|
|
392
389
|
_: 1
|
|
@@ -395,7 +392,7 @@ const de = /* @__PURE__ */ m({
|
|
|
395
392
|
_: 1
|
|
396
393
|
}, 8, ["span"]));
|
|
397
394
|
}
|
|
398
|
-
}),
|
|
395
|
+
}), ye = /* @__PURE__ */ m({
|
|
399
396
|
name: "OFormCheckbox",
|
|
400
397
|
inheritAttrs: !1,
|
|
401
398
|
__name: "Checkbox",
|
|
@@ -408,22 +405,22 @@ const de = /* @__PURE__ */ m({
|
|
|
408
405
|
rules: {},
|
|
409
406
|
disabled: { type: Boolean }
|
|
410
407
|
},
|
|
411
|
-
setup(
|
|
412
|
-
const
|
|
413
|
-
return (
|
|
414
|
-
default:
|
|
415
|
-
|
|
416
|
-
prop:
|
|
417
|
-
label:
|
|
418
|
-
"label-width":
|
|
419
|
-
rules:
|
|
408
|
+
setup(u) {
|
|
409
|
+
const t = z(), d = g(), s = C(), i = w();
|
|
410
|
+
return (o, l) => (b(), h(e(c), { span: e(d) }, {
|
|
411
|
+
default: n(() => [
|
|
412
|
+
p(e(y), {
|
|
413
|
+
prop: o.name,
|
|
414
|
+
label: o.label,
|
|
415
|
+
"label-width": o.labelWidth,
|
|
416
|
+
rules: o.rules
|
|
420
417
|
}, {
|
|
421
|
-
default:
|
|
422
|
-
|
|
423
|
-
modelValue: e(
|
|
424
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
425
|
-
disabled: e(
|
|
426
|
-
onChange: e(
|
|
418
|
+
default: n(() => [
|
|
419
|
+
p(X, {
|
|
420
|
+
modelValue: e(i),
|
|
421
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => V(i) ? i.value = a : null),
|
|
422
|
+
disabled: e(s),
|
|
423
|
+
onChange: e(t).onChange
|
|
427
424
|
}, null, 8, ["modelValue", "disabled", "onChange"])
|
|
428
425
|
]),
|
|
429
426
|
_: 1
|
|
@@ -432,7 +429,7 @@ const de = /* @__PURE__ */ m({
|
|
|
432
429
|
_: 1
|
|
433
430
|
}, 8, ["span"]));
|
|
434
431
|
}
|
|
435
|
-
}),
|
|
432
|
+
}), Ve = /* @__PURE__ */ m({
|
|
436
433
|
name: "OFormSwitch",
|
|
437
434
|
inheritAttrs: !1,
|
|
438
435
|
__name: "Switch",
|
|
@@ -445,22 +442,22 @@ const de = /* @__PURE__ */ m({
|
|
|
445
442
|
rules: {},
|
|
446
443
|
disabled: { type: Boolean }
|
|
447
444
|
},
|
|
448
|
-
setup(
|
|
449
|
-
const
|
|
450
|
-
return (l,
|
|
451
|
-
default:
|
|
452
|
-
|
|
445
|
+
setup(u) {
|
|
446
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
447
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
448
|
+
default: n(() => [
|
|
449
|
+
p(e(y), {
|
|
453
450
|
prop: l.name,
|
|
454
451
|
label: l.label,
|
|
455
452
|
"label-width": l.labelWidth,
|
|
456
|
-
rules: e(
|
|
453
|
+
rules: e(s)
|
|
457
454
|
}, {
|
|
458
|
-
default:
|
|
459
|
-
|
|
460
|
-
modelValue: e(
|
|
461
|
-
"onUpdate:modelValue":
|
|
462
|
-
disabled: e(
|
|
463
|
-
onChange: e(
|
|
455
|
+
default: n(() => [
|
|
456
|
+
p(te, {
|
|
457
|
+
modelValue: e(o),
|
|
458
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
459
|
+
disabled: e(i),
|
|
460
|
+
onChange: e(t).onChange
|
|
464
461
|
}, null, 8, ["modelValue", "disabled", "onChange"])
|
|
465
462
|
]),
|
|
466
463
|
_: 1
|
|
@@ -469,7 +466,7 @@ const de = /* @__PURE__ */ m({
|
|
|
469
466
|
_: 1
|
|
470
467
|
}, 8, ["span"]));
|
|
471
468
|
}
|
|
472
|
-
}),
|
|
469
|
+
}), qe = /* @__PURE__ */ m({
|
|
473
470
|
name: "OFormDate",
|
|
474
471
|
inheritAttrs: !1,
|
|
475
472
|
__name: "DateInput",
|
|
@@ -483,35 +480,34 @@ const de = /* @__PURE__ */ m({
|
|
|
483
480
|
maxlength: {},
|
|
484
481
|
placeholder: {},
|
|
485
482
|
disabled: { type: Boolean },
|
|
486
|
-
readonly: { type: Boolean },
|
|
487
483
|
editable: { type: Boolean, default: !0 },
|
|
488
484
|
clearable: { type: Boolean, default: !0 },
|
|
489
485
|
format: { default: "YYYY-MM-DD" },
|
|
490
486
|
sourceFormat: {}
|
|
491
487
|
},
|
|
492
|
-
setup(
|
|
493
|
-
const
|
|
494
|
-
return (
|
|
495
|
-
default:
|
|
496
|
-
|
|
497
|
-
prop:
|
|
498
|
-
label:
|
|
499
|
-
"label-width":
|
|
500
|
-
required:
|
|
501
|
-
rules: e(
|
|
488
|
+
setup(u) {
|
|
489
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
490
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
491
|
+
default: n(() => [
|
|
492
|
+
p(e(y), {
|
|
493
|
+
prop: l.name,
|
|
494
|
+
label: l.label,
|
|
495
|
+
"label-width": l.labelWidth,
|
|
496
|
+
required: l.required,
|
|
497
|
+
rules: e(s)
|
|
502
498
|
}, {
|
|
503
|
-
default:
|
|
504
|
-
|
|
505
|
-
modelValue: e(
|
|
506
|
-
"onUpdate:modelValue":
|
|
507
|
-
placeholder:
|
|
508
|
-
disabled: e(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "
|
|
499
|
+
default: n(() => [
|
|
500
|
+
p(Z, {
|
|
501
|
+
modelValue: e(o),
|
|
502
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
503
|
+
placeholder: l.placeholder,
|
|
504
|
+
disabled: e(i),
|
|
505
|
+
editable: l.editable,
|
|
506
|
+
clearable: l.clearable,
|
|
507
|
+
format: l.format,
|
|
508
|
+
sourceFormat: l.sourceFormat,
|
|
509
|
+
onChange: e(t).onChange
|
|
510
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "editable", "clearable", "format", "sourceFormat", "onChange"])
|
|
515
511
|
]),
|
|
516
512
|
_: 1
|
|
517
513
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -519,7 +515,7 @@ const de = /* @__PURE__ */ m({
|
|
|
519
515
|
_: 1
|
|
520
516
|
}, 8, ["span"]));
|
|
521
517
|
}
|
|
522
|
-
}),
|
|
518
|
+
}), Ce = /* @__PURE__ */ m({
|
|
523
519
|
name: "OFormFile",
|
|
524
520
|
inheritAttrs: !1,
|
|
525
521
|
__name: "FileInput",
|
|
@@ -532,23 +528,24 @@ const de = /* @__PURE__ */ m({
|
|
|
532
528
|
rules: {},
|
|
533
529
|
disabled: { type: Boolean }
|
|
534
530
|
},
|
|
535
|
-
setup(
|
|
536
|
-
const
|
|
537
|
-
return (
|
|
538
|
-
default:
|
|
539
|
-
|
|
540
|
-
prop:
|
|
541
|
-
label:
|
|
542
|
-
"label-width":
|
|
543
|
-
required:
|
|
544
|
-
rules: e(
|
|
531
|
+
setup(u) {
|
|
532
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
533
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
534
|
+
default: n(() => [
|
|
535
|
+
p(e(y), {
|
|
536
|
+
prop: l.name,
|
|
537
|
+
label: l.label,
|
|
538
|
+
"label-width": l.labelWidth,
|
|
539
|
+
required: l.required,
|
|
540
|
+
rules: e(s)
|
|
545
541
|
}, {
|
|
546
|
-
default:
|
|
547
|
-
|
|
548
|
-
modelValue: e(
|
|
549
|
-
"onUpdate:modelValue":
|
|
550
|
-
disabled: e(
|
|
551
|
-
|
|
542
|
+
default: n(() => [
|
|
543
|
+
p(se, {
|
|
544
|
+
modelValue: e(o),
|
|
545
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
546
|
+
disabled: e(i),
|
|
547
|
+
onChange: e(t).onChange
|
|
548
|
+
}, null, 8, ["modelValue", "disabled", "onChange"])
|
|
552
549
|
]),
|
|
553
550
|
_: 1
|
|
554
551
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -556,7 +553,7 @@ const de = /* @__PURE__ */ m({
|
|
|
556
553
|
_: 1
|
|
557
554
|
}, 8, ["span"]));
|
|
558
555
|
}
|
|
559
|
-
}),
|
|
556
|
+
}), we = /* @__PURE__ */ m({
|
|
560
557
|
name: "OFormButtongroup",
|
|
561
558
|
inheritAttrs: !1,
|
|
562
559
|
__name: "ButtonGroup",
|
|
@@ -565,21 +562,21 @@ const de = /* @__PURE__ */ m({
|
|
|
565
562
|
gutter: { type: [Boolean, String] },
|
|
566
563
|
align: { default: "right" }
|
|
567
564
|
},
|
|
568
|
-
setup(
|
|
569
|
-
const
|
|
570
|
-
textAlign:
|
|
571
|
-
})),
|
|
572
|
-
return (
|
|
573
|
-
span: e(
|
|
574
|
-
style:
|
|
565
|
+
setup(u) {
|
|
566
|
+
const t = G(() => ({
|
|
567
|
+
textAlign: u.align
|
|
568
|
+
})), d = g();
|
|
569
|
+
return (s, i) => (b(), h(e(c), {
|
|
570
|
+
span: e(d),
|
|
571
|
+
style: j(t.value)
|
|
575
572
|
}, {
|
|
576
|
-
default:
|
|
577
|
-
|
|
578
|
-
gutter:
|
|
573
|
+
default: n(() => [
|
|
574
|
+
p(e(ie), {
|
|
575
|
+
gutter: s.gutter,
|
|
579
576
|
style: { "margin-bottom": "var(--orion-form-validation-message-height)" }
|
|
580
577
|
}, {
|
|
581
|
-
default:
|
|
582
|
-
S(
|
|
578
|
+
default: n(() => [
|
|
579
|
+
S(s.$slots, "default")
|
|
583
580
|
]),
|
|
584
581
|
_: 3
|
|
585
582
|
}, 8, ["gutter"])
|
|
@@ -587,7 +584,7 @@ const de = /* @__PURE__ */ m({
|
|
|
587
584
|
_: 3
|
|
588
585
|
}, 8, ["span", "style"]));
|
|
589
586
|
}
|
|
590
|
-
}),
|
|
587
|
+
}), Se = /* @__PURE__ */ m({
|
|
591
588
|
name: "OFormDiy",
|
|
592
589
|
inheritAttrs: !1,
|
|
593
590
|
__name: "DiyItem",
|
|
@@ -599,19 +596,19 @@ const de = /* @__PURE__ */ m({
|
|
|
599
596
|
required: { type: Boolean },
|
|
600
597
|
rules: {}
|
|
601
598
|
},
|
|
602
|
-
setup(
|
|
603
|
-
const
|
|
604
|
-
return (
|
|
605
|
-
default:
|
|
606
|
-
|
|
607
|
-
prop:
|
|
608
|
-
label:
|
|
609
|
-
"label-width":
|
|
610
|
-
required:
|
|
611
|
-
rules: e(
|
|
599
|
+
setup(u) {
|
|
600
|
+
const t = g(), d = q();
|
|
601
|
+
return (s, i) => (b(), h(e(c), { span: e(t) }, {
|
|
602
|
+
default: n(() => [
|
|
603
|
+
p(e(y), {
|
|
604
|
+
prop: s.name,
|
|
605
|
+
label: s.label,
|
|
606
|
+
"label-width": s.labelWidth,
|
|
607
|
+
required: s.required,
|
|
608
|
+
rules: e(d)
|
|
612
609
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
S(
|
|
610
|
+
default: n(() => [
|
|
611
|
+
S(s.$slots, "default")
|
|
615
612
|
]),
|
|
616
613
|
_: 3
|
|
617
614
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -619,7 +616,7 @@ const de = /* @__PURE__ */ m({
|
|
|
619
616
|
_: 3
|
|
620
617
|
}, 8, ["span"]));
|
|
621
618
|
}
|
|
622
|
-
}),
|
|
619
|
+
}), ze = /* @__PURE__ */ m({
|
|
623
620
|
name: "OFormLov",
|
|
624
621
|
inheritAttrs: !1,
|
|
625
622
|
__name: "LovInput",
|
|
@@ -633,55 +630,55 @@ const de = /* @__PURE__ */ m({
|
|
|
633
630
|
maxlength: {},
|
|
634
631
|
placeholder: {},
|
|
635
632
|
disabled: { type: Boolean },
|
|
636
|
-
readonly: { type: Boolean },
|
|
637
633
|
fillMapping: { type: [String, Function] }
|
|
638
634
|
},
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
635
|
+
emits: ["select", "clear"],
|
|
636
|
+
setup(u, { emit: t }) {
|
|
637
|
+
const d = t, s = g(), i = q(), o = C(), l = w(), a = le(), r = () => {
|
|
638
|
+
if (W(u.fillMapping)) {
|
|
639
|
+
const f = {}, $ = u.fillMapping.split(",");
|
|
640
|
+
for (let v = 0; v < $.length; v++) {
|
|
641
|
+
const F = $[v].split(":")[0].trim();
|
|
642
|
+
f[F] = void 0;
|
|
646
643
|
}
|
|
647
|
-
a.updateModelValueMulti(
|
|
644
|
+
a.updateModelValueMulti(f), d("clear");
|
|
648
645
|
}
|
|
649
|
-
},
|
|
650
|
-
if (
|
|
651
|
-
const
|
|
652
|
-
for (let
|
|
653
|
-
const
|
|
654
|
-
|
|
646
|
+
}, B = (f) => {
|
|
647
|
+
if (W(u.fillMapping)) {
|
|
648
|
+
const $ = {}, v = u.fillMapping.split(",");
|
|
649
|
+
for (let F = 0; F < v.length; F++) {
|
|
650
|
+
const O = v[F].split(":")[0].trim(), I = v[F].split(":")[1].trim(), M = f[I];
|
|
651
|
+
$[O] = M;
|
|
655
652
|
}
|
|
656
|
-
a.updateModelValueMulti(
|
|
653
|
+
a.updateModelValueMulti($);
|
|
657
654
|
} else
|
|
658
|
-
|
|
655
|
+
u.fillMapping && u.fillMapping(f);
|
|
656
|
+
d("select", f);
|
|
659
657
|
};
|
|
660
|
-
return (
|
|
661
|
-
default:
|
|
662
|
-
|
|
663
|
-
prop:
|
|
664
|
-
label:
|
|
665
|
-
"label-width":
|
|
666
|
-
required:
|
|
658
|
+
return (f, $) => (b(), h(e(c), { span: e(s) }, {
|
|
659
|
+
default: n(() => [
|
|
660
|
+
p(e(y), {
|
|
661
|
+
prop: f.name,
|
|
662
|
+
label: f.label,
|
|
663
|
+
"label-width": f.labelWidth,
|
|
664
|
+
required: f.required,
|
|
667
665
|
rules: e(i)
|
|
668
666
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
671
|
-
modelValue: e(
|
|
672
|
-
"onUpdate:modelValue":
|
|
673
|
-
maxlength:
|
|
674
|
-
placeholder:
|
|
675
|
-
disabled: e(
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
onSelect: d
|
|
667
|
+
default: n(() => [
|
|
668
|
+
p(x, {
|
|
669
|
+
modelValue: e(l),
|
|
670
|
+
"onUpdate:modelValue": $[0] || ($[0] = (v) => V(l) ? l.value = v : null),
|
|
671
|
+
maxlength: f.maxlength,
|
|
672
|
+
placeholder: f.placeholder,
|
|
673
|
+
disabled: e(o),
|
|
674
|
+
onClear: r,
|
|
675
|
+
onSelect: B
|
|
679
676
|
}, {
|
|
680
|
-
default:
|
|
681
|
-
S(
|
|
677
|
+
default: n(() => [
|
|
678
|
+
S(f.$slots, "default")
|
|
682
679
|
]),
|
|
683
680
|
_: 3
|
|
684
|
-
}, 8, ["modelValue", "maxlength", "placeholder", "disabled"
|
|
681
|
+
}, 8, ["modelValue", "maxlength", "placeholder", "disabled"])
|
|
685
682
|
]),
|
|
686
683
|
_: 3
|
|
687
684
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -689,7 +686,7 @@ const de = /* @__PURE__ */ m({
|
|
|
689
686
|
_: 3
|
|
690
687
|
}, 8, ["span"]));
|
|
691
688
|
}
|
|
692
|
-
}),
|
|
689
|
+
}), $e = /* @__PURE__ */ m({
|
|
693
690
|
name: "OFormNumber",
|
|
694
691
|
inheritAttrs: !1,
|
|
695
692
|
__name: "NumberInput",
|
|
@@ -702,7 +699,6 @@ const de = /* @__PURE__ */ m({
|
|
|
702
699
|
rules: {},
|
|
703
700
|
placeholder: {},
|
|
704
701
|
disabled: { type: Boolean },
|
|
705
|
-
readonly: { type: Boolean },
|
|
706
702
|
min: {},
|
|
707
703
|
max: {},
|
|
708
704
|
step: {},
|
|
@@ -711,61 +707,61 @@ const de = /* @__PURE__ */ m({
|
|
|
711
707
|
controls: { type: Boolean, default: !0 },
|
|
712
708
|
controlsPosition: {}
|
|
713
709
|
},
|
|
714
|
-
setup(
|
|
715
|
-
const
|
|
716
|
-
return (
|
|
717
|
-
default:
|
|
718
|
-
|
|
719
|
-
prop:
|
|
720
|
-
label:
|
|
721
|
-
"label-width":
|
|
722
|
-
required:
|
|
723
|
-
rules: e(
|
|
710
|
+
setup(u) {
|
|
711
|
+
const t = D(), d = z(), s = g(), i = q(), o = C(), l = w();
|
|
712
|
+
return (a, r) => (b(), h(e(c), { span: e(s) }, {
|
|
713
|
+
default: n(() => [
|
|
714
|
+
p(e(y), {
|
|
715
|
+
prop: a.name,
|
|
716
|
+
label: a.label,
|
|
717
|
+
"label-width": a.labelWidth,
|
|
718
|
+
required: a.required,
|
|
719
|
+
rules: e(i)
|
|
724
720
|
}, {
|
|
725
|
-
default:
|
|
726
|
-
|
|
727
|
-
modelValue: e(
|
|
728
|
-
"onUpdate:modelValue":
|
|
729
|
-
placeholder:
|
|
730
|
-
disabled: e(
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
step:
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
controls:
|
|
738
|
-
|
|
739
|
-
},
|
|
740
|
-
e(
|
|
721
|
+
default: n(() => [
|
|
722
|
+
p(ee, {
|
|
723
|
+
modelValue: e(l),
|
|
724
|
+
"onUpdate:modelValue": r[0] || (r[0] = (B) => V(l) ? l.value = B : null),
|
|
725
|
+
placeholder: a.placeholder,
|
|
726
|
+
disabled: e(o),
|
|
727
|
+
min: a.min,
|
|
728
|
+
max: a.max,
|
|
729
|
+
step: a.step,
|
|
730
|
+
"step-strictly": a.stepStrictly,
|
|
731
|
+
precision: a.precision,
|
|
732
|
+
controls: a.controls,
|
|
733
|
+
"controls-position": a.controlsPosition,
|
|
734
|
+
onChange: e(d).onChange
|
|
735
|
+
}, R({ _: 2 }, [
|
|
736
|
+
e(t)["decrease-icon"] ? {
|
|
741
737
|
name: "decrease-icon",
|
|
742
|
-
fn:
|
|
743
|
-
S(
|
|
738
|
+
fn: n(() => [
|
|
739
|
+
S(a.$slots, "decrease-icon")
|
|
744
740
|
]),
|
|
745
741
|
key: "0"
|
|
746
742
|
} : void 0,
|
|
747
|
-
e(
|
|
743
|
+
e(t)["increase-icon"] ? {
|
|
748
744
|
name: "increase-icon",
|
|
749
|
-
fn:
|
|
750
|
-
S(
|
|
745
|
+
fn: n(() => [
|
|
746
|
+
S(a.$slots, "increase-icon")
|
|
751
747
|
]),
|
|
752
748
|
key: "1"
|
|
753
749
|
} : void 0,
|
|
754
|
-
e(
|
|
750
|
+
e(t).prefix ? {
|
|
755
751
|
name: "prefix",
|
|
756
|
-
fn:
|
|
757
|
-
S(
|
|
752
|
+
fn: n(() => [
|
|
753
|
+
S(a.$slots, "prefix")
|
|
758
754
|
]),
|
|
759
755
|
key: "2"
|
|
760
756
|
} : void 0,
|
|
761
|
-
e(
|
|
757
|
+
e(t).suffix ? {
|
|
762
758
|
name: "suffix",
|
|
763
|
-
fn:
|
|
764
|
-
S(
|
|
759
|
+
fn: n(() => [
|
|
760
|
+
S(a.$slots, "suffix")
|
|
765
761
|
]),
|
|
766
762
|
key: "3"
|
|
767
763
|
} : void 0
|
|
768
|
-
]), 1032, ["modelValue", "placeholder", "disabled", "
|
|
764
|
+
]), 1032, ["modelValue", "placeholder", "disabled", "min", "max", "step", "step-strictly", "precision", "controls", "controls-position", "onChange"])
|
|
769
765
|
]),
|
|
770
766
|
_: 3
|
|
771
767
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -773,7 +769,7 @@ const de = /* @__PURE__ */ m({
|
|
|
773
769
|
_: 3
|
|
774
770
|
}, 8, ["span"]));
|
|
775
771
|
}
|
|
776
|
-
}),
|
|
772
|
+
}), Be = /* @__PURE__ */ m({
|
|
777
773
|
name: "OFormTableselect",
|
|
778
774
|
inheritAttrs: !1,
|
|
779
775
|
__name: "TableSelect",
|
|
@@ -787,38 +783,36 @@ const de = /* @__PURE__ */ m({
|
|
|
787
783
|
maxlength: {},
|
|
788
784
|
placeholder: {},
|
|
789
785
|
disabled: { type: Boolean },
|
|
790
|
-
readonly: { type: Boolean },
|
|
791
786
|
pick: {},
|
|
792
787
|
tag: { type: Function }
|
|
793
788
|
},
|
|
794
|
-
setup(
|
|
795
|
-
const
|
|
796
|
-
return (l,
|
|
797
|
-
default:
|
|
798
|
-
|
|
789
|
+
setup(u) {
|
|
790
|
+
const t = z(), d = g(), s = q(), i = C(), o = w();
|
|
791
|
+
return (l, a) => (b(), h(e(c), { span: e(d) }, {
|
|
792
|
+
default: n(() => [
|
|
793
|
+
p(e(y), {
|
|
799
794
|
prop: l.name,
|
|
800
795
|
label: l.label,
|
|
801
796
|
"label-width": l.labelWidth,
|
|
802
797
|
required: l.required,
|
|
803
|
-
rules: e(
|
|
798
|
+
rules: e(s)
|
|
804
799
|
}, {
|
|
805
|
-
default:
|
|
806
|
-
|
|
807
|
-
modelValue: e(
|
|
808
|
-
"onUpdate:modelValue":
|
|
800
|
+
default: n(() => [
|
|
801
|
+
p(de, {
|
|
802
|
+
modelValue: e(o),
|
|
803
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => V(o) ? o.value = r : null),
|
|
809
804
|
maxlength: l.maxlength,
|
|
810
805
|
placeholder: l.placeholder,
|
|
811
|
-
disabled: e(
|
|
812
|
-
readonly: l.readonly,
|
|
806
|
+
disabled: e(i),
|
|
813
807
|
pick: l.pick,
|
|
814
808
|
tag: l.tag,
|
|
815
|
-
onChange: e(
|
|
809
|
+
onChange: e(t).onChange
|
|
816
810
|
}, {
|
|
817
|
-
default:
|
|
811
|
+
default: n(() => [
|
|
818
812
|
S(l.$slots, "default")
|
|
819
813
|
]),
|
|
820
814
|
_: 3
|
|
821
|
-
}, 8, ["modelValue", "maxlength", "placeholder", "disabled", "
|
|
815
|
+
}, 8, ["modelValue", "maxlength", "placeholder", "disabled", "pick", "tag", "onChange"])
|
|
822
816
|
]),
|
|
823
817
|
_: 3
|
|
824
818
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
|
@@ -826,26 +820,26 @@ const de = /* @__PURE__ */ m({
|
|
|
826
820
|
_: 3
|
|
827
821
|
}, 8, ["span"]));
|
|
828
822
|
}
|
|
829
|
-
}),
|
|
830
|
-
StringInput:
|
|
831
|
-
PasswordInput:
|
|
832
|
-
Textarea:
|
|
833
|
-
SingleSelect:
|
|
834
|
-
MultiSelect:
|
|
835
|
-
RadioGroup:
|
|
836
|
-
CheckboxGroup:
|
|
837
|
-
Checkbox:
|
|
838
|
-
Switch:
|
|
839
|
-
DateInput:
|
|
840
|
-
FileInput:
|
|
841
|
-
ButtonGroup:
|
|
842
|
-
DiyItem:
|
|
843
|
-
LovInput:
|
|
844
|
-
NumberInput:
|
|
845
|
-
TableSelect:
|
|
823
|
+
}), Ae = L(ue, {
|
|
824
|
+
StringInput: pe,
|
|
825
|
+
PasswordInput: me,
|
|
826
|
+
Textarea: be,
|
|
827
|
+
SingleSelect: he,
|
|
828
|
+
MultiSelect: fe,
|
|
829
|
+
RadioGroup: ce,
|
|
830
|
+
CheckboxGroup: ge,
|
|
831
|
+
Checkbox: ye,
|
|
832
|
+
Switch: Ve,
|
|
833
|
+
DateInput: qe,
|
|
834
|
+
FileInput: Ce,
|
|
835
|
+
ButtonGroup: we,
|
|
836
|
+
DiyItem: Se,
|
|
837
|
+
LovInput: ze,
|
|
838
|
+
NumberInput: $e,
|
|
839
|
+
TableSelect: Be
|
|
846
840
|
});
|
|
847
841
|
export {
|
|
848
|
-
|
|
849
|
-
|
|
842
|
+
Ae as default,
|
|
843
|
+
K as formContextKey
|
|
850
844
|
};
|
|
851
845
|
//# sourceMappingURL=index.js.map
|