orion-design 0.1.47 → 0.1.48
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/dist/Throne/hooks/use-throne-context.js.map +1 -1
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +5 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +42 -24
- package/dist/components/Form/Form.vue.d.ts +22 -22
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +662 -650
- package/dist/components/Form/Switch/Switch.vue.d.ts +5 -1
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +662 -650
- package/dist/components/Form/index.d.ts +11 -11
- package/dist/components/Form/index.js +407 -397
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Tree/Tree.vue.d.ts +198 -198
- package/dist/components/Tree/index.d.ts +99 -99
- package/dist/components-G3_R2B-U.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
@@ -1,16 +1,16 @@
|
|
1
|
-
import { difference as
|
2
|
-
import { defineComponent as v, useTemplateRef as A, provide as
|
3
|
-
import { withInstall as
|
4
|
-
import { ElForm as ke, ElRow as Oe, ElCol as g, ElFormItem as
|
1
|
+
import { difference as he, isEmpty as ce, isDate as ye, isString as L, isNumber as ve, toNumber as ge, isArray as we, pick as Ve } from "lodash-es";
|
2
|
+
import { defineComponent as v, useTemplateRef as A, provide as x, reactive as _, toRef as G, openBlock as m, createBlock as c, unref as e, withCtx as r, createVNode as b, renderSlot as S, useSlots as ae, isRef as k, createSlots as oe, useAttrs as K, computed as O, createElementBlock as E, Fragment as U, renderList as N, createTextVNode as ne, toDisplayString as te, watch as re, ref as z, onMounted as de, normalizeStyle as Ce, resolveComponent as Se, createElementVNode as Be, createCommentVNode as qe } from "vue";
|
3
|
+
import { withInstall as Me } from "../_util/vue/install.js";
|
4
|
+
import { ElForm as ke, ElRow as Oe, ElCol as g, ElFormItem as C, ElInput as W, ElSelect as se, ElOption as ie, ElRadioGroup as Fe, ElRadio as ze, ElCheckboxGroup as We, ElCheckbox as ue, ElSwitch as Re, dayjs as le, ElTimePicker as $e, ElDatePicker as Ae, ElDropdown as pe, ElInputNumber as Ee, ElTag as De } from "element-plus";
|
5
5
|
import { formContextKey as Ie } from "./Form.js";
|
6
6
|
import D from "../../error/OrionError.js";
|
7
|
-
import { useFormItemSpan as w, useFormItemRules as
|
7
|
+
import { useFormItemSpan as w, useFormItemRules as B, useFormItemStringModel as $, useFormItemDisabled as me, useFormItemCode as H, useFormItemMultiModel as fe, useFormContext as P, useFormItemBooleanModel as be } from "./hooks/index.js";
|
8
8
|
import { getSingleCodeContent as Te, getMultiCodeContent as Ue } from "./utils/index.js";
|
9
9
|
import { S as Ne } from "../../index-BbsXWo7C.js";
|
10
10
|
import { g as Pe, h as Ye, j as je } from "../../index-Bm0F5NQQ.js";
|
11
11
|
import { lovContextKey as Ge } from "./LovInput/LovInput.js";
|
12
12
|
import { tableSelectContext as Le } from "./TableSelect/TableSelect.js";
|
13
|
-
import { default as
|
13
|
+
import { default as ql } from "./LovInput/hooks/useLov.js";
|
14
14
|
import { default as kl } from "./TableSelect/hooks/useTableSelect.js";
|
15
15
|
const Ke = /* @__PURE__ */ v({
|
16
16
|
name: "OForm",
|
@@ -24,41 +24,41 @@ const Ke = /* @__PURE__ */ v({
|
|
24
24
|
modelValue: {}
|
25
25
|
},
|
26
26
|
emits: ["update:modelValue"],
|
27
|
-
setup(
|
28
|
-
const
|
29
|
-
if (!Object.keys(
|
30
|
-
throw new D(`modelValue中不存在[${
|
31
|
-
|
32
|
-
},
|
33
|
-
const
|
34
|
-
if (!
|
35
|
-
throw new D(`modelValue中不存在[${
|
36
|
-
|
27
|
+
setup(o, { expose: i, emit: f }) {
|
28
|
+
const d = f, t = (a, p) => {
|
29
|
+
if (!Object.keys(o.modelValue).includes(a))
|
30
|
+
throw new D(`modelValue中不存在[${a}]`);
|
31
|
+
d("update:modelValue", { ...o.modelValue, [a]: p });
|
32
|
+
}, n = (a) => {
|
33
|
+
const p = Object.keys(o.modelValue), y = Object.keys(a), q = he(y, p);
|
34
|
+
if (!ce(q))
|
35
|
+
throw new D(`modelValue中不存在[${q.join(",")}]`);
|
36
|
+
d("update:modelValue", { ...o.modelValue, ...a });
|
37
37
|
}, l = A("form");
|
38
38
|
return i({
|
39
39
|
validate: async () => await l.value.validate()
|
40
|
-
}),
|
40
|
+
}), x(
|
41
41
|
Ie,
|
42
|
-
|
43
|
-
modelValue: G(() =>
|
44
|
-
updateModelValue:
|
45
|
-
updateModelValueMulti:
|
46
|
-
rules: G(() =>
|
47
|
-
itemSpan: G(() =>
|
48
|
-
disabled: G(() =>
|
42
|
+
_({
|
43
|
+
modelValue: G(() => o.modelValue),
|
44
|
+
updateModelValue: t,
|
45
|
+
updateModelValueMulti: n,
|
46
|
+
rules: G(() => o.rules),
|
47
|
+
itemSpan: G(() => o.itemSpan),
|
48
|
+
disabled: G(() => o.disabled)
|
49
49
|
})
|
50
|
-
), (
|
50
|
+
), (a, p) => (m(), c(e(ke), {
|
51
51
|
ref: "form",
|
52
|
-
model:
|
53
|
-
rules:
|
54
|
-
"label-width":
|
55
|
-
disabled:
|
52
|
+
model: a.modelValue,
|
53
|
+
rules: a.rules,
|
54
|
+
"label-width": a.itemLabelWidth,
|
55
|
+
disabled: a.disabled,
|
56
56
|
class: "orion-form"
|
57
57
|
}, {
|
58
|
-
default:
|
58
|
+
default: r(() => [
|
59
59
|
b(e(Oe), { gutter: 16 }, {
|
60
|
-
default:
|
61
|
-
|
60
|
+
default: r(() => [
|
61
|
+
S(a.$slots, "default")
|
62
62
|
]),
|
63
63
|
_: 3
|
64
64
|
})
|
@@ -82,51 +82,51 @@ const Ke = /* @__PURE__ */ v({
|
|
82
82
|
disabled: { type: Boolean },
|
83
83
|
readonly: { type: Boolean }
|
84
84
|
},
|
85
|
-
setup(
|
86
|
-
const i =
|
87
|
-
return (
|
88
|
-
default:
|
89
|
-
b(e(
|
90
|
-
prop:
|
91
|
-
label:
|
92
|
-
"label-width":
|
93
|
-
required:
|
94
|
-
rules: e(
|
85
|
+
setup(o) {
|
86
|
+
const i = ae(), f = w(), d = B(), t = $();
|
87
|
+
return (n, l) => (m(), c(e(g), { span: e(f) }, {
|
88
|
+
default: r(() => [
|
89
|
+
b(e(C), {
|
90
|
+
prop: n.name,
|
91
|
+
label: n.label,
|
92
|
+
"label-width": n.labelWidth,
|
93
|
+
required: n.required,
|
94
|
+
rules: e(d)
|
95
95
|
}, {
|
96
|
-
default:
|
96
|
+
default: r(() => [
|
97
97
|
b(e(W), {
|
98
|
-
modelValue: e(
|
99
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => k(
|
100
|
-
maxlength:
|
101
|
-
placeholder:
|
102
|
-
disabled:
|
103
|
-
readonly:
|
104
|
-
},
|
98
|
+
modelValue: e(t),
|
99
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => k(t) ? t.value = s : null),
|
100
|
+
maxlength: n.maxlength,
|
101
|
+
placeholder: n.placeholder,
|
102
|
+
disabled: n.disabled,
|
103
|
+
readonly: n.readonly
|
104
|
+
}, oe({ _: 2 }, [
|
105
105
|
e(i).prefix ? {
|
106
106
|
name: "prefix",
|
107
|
-
fn:
|
108
|
-
|
107
|
+
fn: r(() => [
|
108
|
+
S(n.$slots, "prefix")
|
109
109
|
]),
|
110
110
|
key: "0"
|
111
111
|
} : void 0,
|
112
112
|
e(i).suffix ? {
|
113
113
|
name: "suffix",
|
114
|
-
fn:
|
115
|
-
|
114
|
+
fn: r(() => [
|
115
|
+
S(n.$slots, "suffix")
|
116
116
|
]),
|
117
117
|
key: "1"
|
118
118
|
} : void 0,
|
119
119
|
e(i).prepend ? {
|
120
120
|
name: "prepend",
|
121
|
-
fn:
|
122
|
-
|
121
|
+
fn: r(() => [
|
122
|
+
S(n.$slots, "prepend")
|
123
123
|
]),
|
124
124
|
key: "2"
|
125
125
|
} : void 0,
|
126
126
|
e(i).append ? {
|
127
127
|
name: "append",
|
128
|
-
fn:
|
129
|
-
|
128
|
+
fn: r(() => [
|
129
|
+
S(n.$slots, "append")
|
130
130
|
]),
|
131
131
|
key: "3"
|
132
132
|
} : void 0
|
@@ -154,25 +154,25 @@ const Ke = /* @__PURE__ */ v({
|
|
154
154
|
disabled: { type: Boolean },
|
155
155
|
readonly: { type: Boolean }
|
156
156
|
},
|
157
|
-
setup(
|
158
|
-
const i = w(),
|
159
|
-
return (
|
160
|
-
default:
|
161
|
-
b(e(
|
162
|
-
prop:
|
163
|
-
label:
|
164
|
-
"label-width":
|
165
|
-
required:
|
166
|
-
rules: e(
|
157
|
+
setup(o) {
|
158
|
+
const i = w(), f = B(), d = $();
|
159
|
+
return (t, n) => (m(), c(e(g), { span: e(i) }, {
|
160
|
+
default: r(() => [
|
161
|
+
b(e(C), {
|
162
|
+
prop: t.name,
|
163
|
+
label: t.label,
|
164
|
+
"label-width": t.labelWidth,
|
165
|
+
required: t.required,
|
166
|
+
rules: e(f)
|
167
167
|
}, {
|
168
|
-
default:
|
168
|
+
default: r(() => [
|
169
169
|
b(e(W), {
|
170
|
-
modelValue: e(
|
171
|
-
"onUpdate:modelValue":
|
172
|
-
maxlength:
|
173
|
-
placeholder:
|
174
|
-
disabled:
|
175
|
-
readonly:
|
170
|
+
modelValue: e(d),
|
171
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => k(d) ? d.value = l : null),
|
172
|
+
maxlength: t.maxlength,
|
173
|
+
placeholder: t.placeholder,
|
174
|
+
disabled: t.disabled,
|
175
|
+
readonly: t.readonly,
|
176
176
|
type: "password"
|
177
177
|
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly"])
|
178
178
|
]),
|
@@ -199,27 +199,27 @@ const Ke = /* @__PURE__ */ v({
|
|
199
199
|
readonly: { type: Boolean },
|
200
200
|
rows: {}
|
201
201
|
},
|
202
|
-
setup(
|
203
|
-
const i = w(),
|
204
|
-
return (
|
205
|
-
default:
|
206
|
-
b(e(
|
207
|
-
prop:
|
208
|
-
label:
|
209
|
-
"label-width":
|
210
|
-
required:
|
211
|
-
rules: e(
|
202
|
+
setup(o) {
|
203
|
+
const i = w(), f = B(), d = $();
|
204
|
+
return (t, n) => (m(), c(e(g), { span: e(i) }, {
|
205
|
+
default: r(() => [
|
206
|
+
b(e(C), {
|
207
|
+
prop: t.name,
|
208
|
+
label: t.label,
|
209
|
+
"label-width": t.labelWidth,
|
210
|
+
required: t.required,
|
211
|
+
rules: e(f)
|
212
212
|
}, {
|
213
|
-
default:
|
213
|
+
default: r(() => [
|
214
214
|
b(e(W), {
|
215
|
-
modelValue: e(
|
216
|
-
"onUpdate:modelValue":
|
217
|
-
maxlength:
|
218
|
-
placeholder:
|
219
|
-
disabled:
|
220
|
-
readonly:
|
215
|
+
modelValue: e(d),
|
216
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => k(d) ? d.value = l : null),
|
217
|
+
maxlength: t.maxlength,
|
218
|
+
placeholder: t.placeholder,
|
219
|
+
disabled: t.disabled,
|
220
|
+
readonly: t.readonly,
|
221
221
|
type: "textarea",
|
222
|
-
rows:
|
222
|
+
rows: t.rows,
|
223
223
|
resize: "none"
|
224
224
|
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "rows"])
|
225
225
|
]),
|
@@ -246,35 +246,35 @@ const Ke = /* @__PURE__ */ v({
|
|
246
246
|
clearable: { type: Boolean },
|
247
247
|
filterable: { type: Boolean }
|
248
248
|
},
|
249
|
-
setup(
|
250
|
-
const i =
|
251
|
-
return (
|
252
|
-
default:
|
253
|
-
b(e(
|
254
|
-
prop:
|
255
|
-
label:
|
256
|
-
"label-width":
|
257
|
-
required:
|
258
|
-
rules: e(
|
249
|
+
setup(o) {
|
250
|
+
const i = K(), f = w(), d = B(), t = me(), n = H(), l = $(), s = O(() => Te(n.value, l.value));
|
251
|
+
return (a, p) => (m(), c(e(g), { span: e(f) }, {
|
252
|
+
default: r(() => [
|
253
|
+
b(e(C), {
|
254
|
+
prop: a.name,
|
255
|
+
label: a.label,
|
256
|
+
"label-width": a.labelWidth,
|
257
|
+
required: a.required,
|
258
|
+
rules: e(d)
|
259
259
|
}, {
|
260
|
-
default:
|
261
|
-
e(
|
260
|
+
default: r(() => [
|
261
|
+
e(t) ? (m(), c(e(W), {
|
262
262
|
key: 0,
|
263
263
|
"model-value": s.value,
|
264
|
-
placeholder:
|
264
|
+
placeholder: a.placeholder,
|
265
265
|
disabled: !0,
|
266
266
|
readonly: !0
|
267
|
-
}, null, 8, ["model-value", "placeholder"])) : (
|
267
|
+
}, null, 8, ["model-value", "placeholder"])) : (m(), c(e(se), {
|
268
268
|
key: 1,
|
269
269
|
modelValue: e(l),
|
270
|
-
"onUpdate:modelValue":
|
271
|
-
placeholder:
|
272
|
-
clearable:
|
273
|
-
filterable:
|
270
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => k(l) ? l.value = y : null),
|
271
|
+
placeholder: a.placeholder,
|
272
|
+
clearable: a.clearable,
|
273
|
+
filterable: a.filterable,
|
274
274
|
onChange: e(i).onChange
|
275
275
|
}, {
|
276
|
-
default:
|
277
|
-
(
|
276
|
+
default: r(() => [
|
277
|
+
(m(!0), E(U, null, N(e(n), (y) => (m(), c(e(ie), {
|
278
278
|
key: y.value,
|
279
279
|
label: y.content,
|
280
280
|
value: y.value
|
@@ -306,39 +306,39 @@ const Ke = /* @__PURE__ */ v({
|
|
306
306
|
collapseTags: { type: Boolean },
|
307
307
|
collapseTagsTooltip: { type: Boolean }
|
308
308
|
},
|
309
|
-
setup(
|
310
|
-
const i =
|
311
|
-
return (
|
312
|
-
default:
|
313
|
-
b(e(
|
314
|
-
prop:
|
315
|
-
label:
|
316
|
-
"label-width":
|
317
|
-
required:
|
318
|
-
rules: e(
|
309
|
+
setup(o) {
|
310
|
+
const i = K(), f = w(), d = B(), t = me(), n = H(), l = fe(), s = P(), a = O(() => Ue(n.value, s.modelValue[o.name]));
|
311
|
+
return (p, y) => (m(), c(e(g), { span: e(f) }, {
|
312
|
+
default: r(() => [
|
313
|
+
b(e(C), {
|
314
|
+
prop: p.name,
|
315
|
+
label: p.label,
|
316
|
+
"label-width": p.labelWidth,
|
317
|
+
required: p.required,
|
318
|
+
rules: e(d)
|
319
319
|
}, {
|
320
|
-
default:
|
321
|
-
e(
|
320
|
+
default: r(() => [
|
321
|
+
e(t) ? (m(), c(e(W), {
|
322
322
|
key: 0,
|
323
|
-
"model-value":
|
324
|
-
placeholder:
|
323
|
+
"model-value": a.value,
|
324
|
+
placeholder: p.placeholder,
|
325
325
|
disabled: !0,
|
326
326
|
readonly: !0
|
327
|
-
}, null, 8, ["model-value", "placeholder"])) : (
|
327
|
+
}, null, 8, ["model-value", "placeholder"])) : (m(), c(e(se), {
|
328
328
|
key: 1,
|
329
329
|
modelValue: e(l),
|
330
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
331
|
-
placeholder:
|
330
|
+
"onUpdate:modelValue": y[0] || (y[0] = (q) => k(l) ? l.value = q : null),
|
331
|
+
placeholder: p.placeholder,
|
332
332
|
multiple: "",
|
333
|
-
"collapse-tags":
|
334
|
-
"collapse-tags-tooltip":
|
333
|
+
"collapse-tags": p.collapseTags,
|
334
|
+
"collapse-tags-tooltip": p.collapseTagsTooltip,
|
335
335
|
onChange: e(i).onChange
|
336
336
|
}, {
|
337
|
-
default:
|
338
|
-
(
|
339
|
-
key:
|
340
|
-
label:
|
341
|
-
value:
|
337
|
+
default: r(() => [
|
338
|
+
(m(!0), E(U, null, N(e(n), (q) => (m(), c(e(ie), {
|
339
|
+
key: q.value,
|
340
|
+
label: q.content,
|
341
|
+
value: q.value
|
342
342
|
}, null, 8, ["label", "value"]))), 128))
|
343
343
|
]),
|
344
344
|
_: 1
|
@@ -364,36 +364,37 @@ const Ke = /* @__PURE__ */ v({
|
|
364
364
|
disabled: { type: Boolean },
|
365
365
|
code: {}
|
366
366
|
},
|
367
|
-
setup(
|
368
|
-
const i = w(),
|
369
|
-
return (
|
370
|
-
default:
|
371
|
-
b(e(
|
372
|
-
prop:
|
373
|
-
label:
|
374
|
-
"label-width":
|
375
|
-
required:
|
376
|
-
rules: e(
|
367
|
+
setup(o) {
|
368
|
+
const i = K(), f = w(), d = B(), t = H(), n = $();
|
369
|
+
return (l, s) => (m(), c(e(g), { span: e(f) }, {
|
370
|
+
default: r(() => [
|
371
|
+
b(e(C), {
|
372
|
+
prop: l.name,
|
373
|
+
label: l.label,
|
374
|
+
"label-width": l.labelWidth,
|
375
|
+
required: l.required,
|
376
|
+
rules: e(d)
|
377
377
|
}, {
|
378
|
-
default:
|
378
|
+
default: r(() => [
|
379
379
|
b(e(Fe), {
|
380
380
|
modelValue: e(n),
|
381
|
-
"onUpdate:modelValue":
|
382
|
-
disabled:
|
381
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => k(n) ? n.value = a : null),
|
382
|
+
disabled: l.disabled,
|
383
|
+
onChange: e(i).onChange
|
383
384
|
}, {
|
384
|
-
default:
|
385
|
-
(
|
386
|
-
key:
|
387
|
-
value:
|
385
|
+
default: r(() => [
|
386
|
+
(m(!0), E(U, null, N(e(t), (a) => (m(), c(e(ze), {
|
387
|
+
key: a.value,
|
388
|
+
value: a.value
|
388
389
|
}, {
|
389
|
-
default:
|
390
|
-
ne(te(
|
390
|
+
default: r(() => [
|
391
|
+
ne(te(a.content), 1)
|
391
392
|
]),
|
392
393
|
_: 2
|
393
394
|
}, 1032, ["value"]))), 128))
|
394
395
|
]),
|
395
396
|
_: 1
|
396
|
-
}, 8, ["modelValue", "disabled"])
|
397
|
+
}, 8, ["modelValue", "disabled", "onChange"])
|
397
398
|
]),
|
398
399
|
_: 1
|
399
400
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
@@ -415,32 +416,33 @@ const Ke = /* @__PURE__ */ v({
|
|
415
416
|
disabled: { type: Boolean },
|
416
417
|
code: {}
|
417
418
|
},
|
418
|
-
setup(
|
419
|
-
const i = w(),
|
420
|
-
return (
|
421
|
-
default:
|
422
|
-
b(e(
|
423
|
-
prop:
|
424
|
-
label:
|
425
|
-
"label-width":
|
426
|
-
required:
|
427
|
-
rules: e(
|
419
|
+
setup(o) {
|
420
|
+
const i = K(), f = w(), d = B(), t = H(), n = fe();
|
421
|
+
return (l, s) => (m(), c(e(g), { span: e(f) }, {
|
422
|
+
default: r(() => [
|
423
|
+
b(e(C), {
|
424
|
+
prop: l.name,
|
425
|
+
label: l.label,
|
426
|
+
"label-width": l.labelWidth,
|
427
|
+
required: l.required,
|
428
|
+
rules: e(d)
|
428
429
|
}, {
|
429
|
-
default:
|
430
|
+
default: r(() => [
|
430
431
|
b(e(We), {
|
431
432
|
modelValue: e(n),
|
432
|
-
"onUpdate:modelValue":
|
433
|
-
disabled:
|
433
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => k(n) ? n.value = a : null),
|
434
|
+
disabled: l.disabled,
|
435
|
+
onChange: e(i).onChange
|
434
436
|
}, {
|
435
|
-
default:
|
436
|
-
(
|
437
|
-
key:
|
438
|
-
label:
|
439
|
-
value:
|
437
|
+
default: r(() => [
|
438
|
+
(m(!0), E(U, null, N(e(t), (a) => (m(), c(e(ue), {
|
439
|
+
key: a.value,
|
440
|
+
label: a.content,
|
441
|
+
value: a.value
|
440
442
|
}, null, 8, ["label", "value"]))), 128))
|
441
443
|
]),
|
442
444
|
_: 1
|
443
|
-
}, 8, ["modelValue", "disabled"])
|
445
|
+
}, 8, ["modelValue", "disabled", "onChange"])
|
444
446
|
]),
|
445
447
|
_: 1
|
446
448
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
@@ -460,21 +462,25 @@ const Ke = /* @__PURE__ */ v({
|
|
460
462
|
rules: {},
|
461
463
|
disabled: { type: Boolean }
|
462
464
|
},
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
465
|
+
emits: ["change"],
|
466
|
+
setup(o, { emit: i }) {
|
467
|
+
const f = i, d = (l) => {
|
468
|
+
f("change", l ? "1" : "0");
|
469
|
+
}, t = w(), n = be();
|
470
|
+
return (l, s) => (m(), c(e(g), { span: e(t) }, {
|
471
|
+
default: r(() => [
|
472
|
+
b(e(C), {
|
473
|
+
prop: l.name,
|
474
|
+
label: l.label,
|
475
|
+
"label-width": l.labelWidth,
|
476
|
+
rules: l.rules
|
472
477
|
}, {
|
473
|
-
default:
|
478
|
+
default: r(() => [
|
474
479
|
b(e(ue), {
|
475
|
-
modelValue: e(
|
476
|
-
"onUpdate:modelValue":
|
477
|
-
disabled:
|
480
|
+
modelValue: e(n),
|
481
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => k(n) ? n.value = a : null),
|
482
|
+
disabled: l.disabled,
|
483
|
+
onChange: d
|
478
484
|
}, null, 8, ["modelValue", "disabled"])
|
479
485
|
]),
|
480
486
|
_: 1
|
@@ -495,21 +501,25 @@ const Ke = /* @__PURE__ */ v({
|
|
495
501
|
rules: {},
|
496
502
|
disabled: { type: Boolean }
|
497
503
|
},
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
504
|
+
emits: ["change"],
|
505
|
+
setup(o, { emit: i }) {
|
506
|
+
const f = i, d = (l) => {
|
507
|
+
f("change", l ? "1" : "0");
|
508
|
+
}, t = w(), n = be();
|
509
|
+
return (l, s) => (m(), c(e(g), { span: e(t) }, {
|
510
|
+
default: r(() => [
|
511
|
+
b(e(C), {
|
512
|
+
prop: l.name,
|
513
|
+
label: l.label,
|
514
|
+
"label-width": l.labelWidth,
|
515
|
+
rules: l.rules
|
507
516
|
}, {
|
508
|
-
default:
|
517
|
+
default: r(() => [
|
509
518
|
b(e(Re), {
|
510
|
-
modelValue: e(
|
511
|
-
"onUpdate:modelValue":
|
512
|
-
disabled:
|
519
|
+
modelValue: e(n),
|
520
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => k(n) ? n.value = a : null),
|
521
|
+
disabled: l.disabled,
|
522
|
+
onChange: d
|
513
523
|
}, null, 8, ["modelValue", "disabled"])
|
514
524
|
]),
|
515
525
|
_: 1
|
@@ -538,62 +548,62 @@ const Ke = /* @__PURE__ */ v({
|
|
538
548
|
format: { default: "YYYY-MM-DD" },
|
539
549
|
sourceFormat: {}
|
540
550
|
},
|
541
|
-
setup(
|
542
|
-
const i = w(),
|
543
|
-
let
|
544
|
-
return (
|
551
|
+
setup(o) {
|
552
|
+
const i = w(), f = B(), d = O(() => o.format.startsWith("H") || o.format.startsWith("h") || o.format.startsWith("m") || o.format.startsWith("s")), t = O(() => o.sourceFormat ? o.sourceFormat : d.value ? "HH:mm:ss" : "YYYY-MM-DD"), n = O(() => {
|
553
|
+
let a = "date";
|
554
|
+
return (o.format.indexOf("y") > -1 || o.format.indexOf("Y") > -1) && (a = "year"), o.format.indexOf("M") > -1 && (a = "month"), (o.format.indexOf("d") > -1 || o.format.indexOf("D") > -1) && (a = "date"), (o.format.indexOf("H") > -1 || o.format.indexOf("h") > -1 || o.format.indexOf("k") > -1 || o.format.indexOf("m") > -1 || o.format.indexOf("s") > -1 || o.format.indexOf("S") > -1) && (a = "datetime"), a;
|
545
555
|
}), l = P(), s = O({
|
546
556
|
get: () => {
|
547
|
-
const
|
548
|
-
if (
|
549
|
-
if (ye(
|
550
|
-
return
|
551
|
-
if (L(
|
552
|
-
const
|
553
|
-
if (!
|
554
|
-
throw new D(`日期输入框的值无效,不符合${
|
555
|
-
return
|
557
|
+
const a = l.modelValue[o.name];
|
558
|
+
if (a) {
|
559
|
+
if (ye(a))
|
560
|
+
return a;
|
561
|
+
if (L(a)) {
|
562
|
+
const p = le(a, t.value, !0);
|
563
|
+
if (!p.isValid())
|
564
|
+
throw new D(`日期输入框的值无效,不符合${t.value}格式`);
|
565
|
+
return p.toDate();
|
556
566
|
} else
|
557
567
|
throw new D("日期输入框的值只能为字符串或日期类型");
|
558
568
|
}
|
559
569
|
},
|
560
|
-
set: (
|
561
|
-
|
570
|
+
set: (a) => {
|
571
|
+
o.sourceFormat ? a ? l.updateModelValue(o.name, le(a).format(t.value)) : l.updateModelValue(o.name, "") : a ? l.updateModelValue(o.name, a) : l.updateModelValue(o.name, void 0);
|
562
572
|
}
|
563
573
|
});
|
564
|
-
return (
|
565
|
-
default:
|
566
|
-
b(e(
|
567
|
-
prop:
|
568
|
-
label:
|
569
|
-
"label-width":
|
570
|
-
required:
|
571
|
-
rules: e(
|
574
|
+
return (a, p) => (m(), c(e(g), { span: e(i) }, {
|
575
|
+
default: r(() => [
|
576
|
+
b(e(C), {
|
577
|
+
prop: a.name,
|
578
|
+
label: a.label,
|
579
|
+
"label-width": a.labelWidth,
|
580
|
+
required: a.required,
|
581
|
+
rules: e(f)
|
572
582
|
}, {
|
573
|
-
default:
|
574
|
-
|
583
|
+
default: r(() => [
|
584
|
+
d.value ? (m(), c(e($e), {
|
575
585
|
key: 0,
|
576
586
|
modelValue: s.value,
|
577
|
-
"onUpdate:modelValue":
|
578
|
-
placeholder:
|
579
|
-
disabled:
|
580
|
-
readonly:
|
581
|
-
editable:
|
582
|
-
clearable:
|
583
|
-
format:
|
587
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => s.value = y),
|
588
|
+
placeholder: a.placeholder,
|
589
|
+
disabled: a.disabled,
|
590
|
+
readonly: a.readonly,
|
591
|
+
editable: a.editable,
|
592
|
+
clearable: a.clearable,
|
593
|
+
format: t.value,
|
584
594
|
"arrow-control": "",
|
585
595
|
style: { width: "100%" }
|
586
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "editable", "clearable", "format"])) : (
|
596
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "editable", "clearable", "format"])) : (m(), c(e(Ae), {
|
587
597
|
key: 1,
|
588
598
|
modelValue: s.value,
|
589
|
-
"onUpdate:modelValue":
|
590
|
-
placeholder:
|
591
|
-
disabled:
|
592
|
-
readonly:
|
593
|
-
editable:
|
594
|
-
clearable:
|
595
|
-
type:
|
596
|
-
format:
|
599
|
+
"onUpdate:modelValue": p[1] || (p[1] = (y) => s.value = y),
|
600
|
+
placeholder: a.placeholder,
|
601
|
+
disabled: a.disabled,
|
602
|
+
readonly: a.readonly,
|
603
|
+
editable: a.editable,
|
604
|
+
clearable: a.clearable,
|
605
|
+
type: n.value,
|
606
|
+
format: t.value,
|
597
607
|
style: { width: "100%" }
|
598
608
|
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "editable", "clearable", "type", "format"]))
|
599
609
|
]),
|
@@ -616,31 +626,31 @@ const Ke = /* @__PURE__ */ v({
|
|
616
626
|
rules: {},
|
617
627
|
disabled: { type: Boolean }
|
618
628
|
},
|
619
|
-
setup(
|
620
|
-
const i = w(),
|
621
|
-
re(
|
622
|
-
|
629
|
+
setup(o) {
|
630
|
+
const i = w(), f = B(), d = $();
|
631
|
+
re(d, () => {
|
632
|
+
d.value || (t.value = "");
|
623
633
|
});
|
624
|
-
const
|
634
|
+
const t = z(""), n = A("inputRef");
|
625
635
|
return de(() => {
|
626
|
-
|
636
|
+
n.value.input.onchange = (l) => {
|
627
637
|
var s;
|
628
|
-
|
629
|
-
},
|
630
|
-
}), (l, s) => (
|
631
|
-
default:
|
632
|
-
b(e(
|
638
|
+
d.value = (s = l == null ? void 0 : l.target) == null ? void 0 : s.files[0];
|
639
|
+
}, t.value = "";
|
640
|
+
}), (l, s) => (m(), c(e(g), { span: e(i) }, {
|
641
|
+
default: r(() => [
|
642
|
+
b(e(C), {
|
633
643
|
prop: l.name,
|
634
644
|
label: l.label,
|
635
645
|
"label-width": l.labelWidth,
|
636
646
|
required: l.required,
|
637
|
-
rules: e(
|
647
|
+
rules: e(f)
|
638
648
|
}, {
|
639
|
-
default:
|
649
|
+
default: r(() => [
|
640
650
|
b(e(W), {
|
641
651
|
ref: "inputRef",
|
642
|
-
modelValue:
|
643
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
652
|
+
modelValue: t.value,
|
653
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
|
644
654
|
disabled: l.disabled,
|
645
655
|
type: "file",
|
646
656
|
"validate-event": !1
|
@@ -661,21 +671,21 @@ const Ke = /* @__PURE__ */ v({
|
|
661
671
|
gutter: { type: [Boolean, String] },
|
662
672
|
align: { default: "right" }
|
663
673
|
},
|
664
|
-
setup(
|
674
|
+
setup(o) {
|
665
675
|
const i = O(() => ({
|
666
|
-
textAlign:
|
667
|
-
})),
|
668
|
-
return (
|
669
|
-
span: e(
|
670
|
-
style:
|
676
|
+
textAlign: o.align
|
677
|
+
})), f = w();
|
678
|
+
return (d, t) => (m(), c(e(g), {
|
679
|
+
span: e(f),
|
680
|
+
style: Ce(i.value)
|
671
681
|
}, {
|
672
|
-
default:
|
682
|
+
default: r(() => [
|
673
683
|
b(e(Ne), {
|
674
|
-
gutter:
|
684
|
+
gutter: d.gutter,
|
675
685
|
style: { "margin-bottom": "var(--orion-form-validation-message-height)" }
|
676
686
|
}, {
|
677
|
-
default:
|
678
|
-
|
687
|
+
default: r(() => [
|
688
|
+
S(d.$slots, "default")
|
679
689
|
]),
|
680
690
|
_: 3
|
681
691
|
}, 8, ["gutter"])
|
@@ -695,19 +705,19 @@ const Ke = /* @__PURE__ */ v({
|
|
695
705
|
required: { type: Boolean },
|
696
706
|
rules: {}
|
697
707
|
},
|
698
|
-
setup(
|
699
|
-
const i = w(),
|
700
|
-
return (
|
701
|
-
default:
|
702
|
-
b(e(
|
703
|
-
prop:
|
704
|
-
label:
|
705
|
-
"label-width":
|
706
|
-
required:
|
707
|
-
rules: e(
|
708
|
+
setup(o) {
|
709
|
+
const i = w(), f = B();
|
710
|
+
return (d, t) => (m(), c(e(g), { span: e(i) }, {
|
711
|
+
default: r(() => [
|
712
|
+
b(e(C), {
|
713
|
+
prop: d.name,
|
714
|
+
label: d.label,
|
715
|
+
"label-width": d.labelWidth,
|
716
|
+
required: d.required,
|
717
|
+
rules: e(f)
|
708
718
|
}, {
|
709
|
-
default:
|
710
|
-
|
719
|
+
default: r(() => [
|
720
|
+
S(d.$slots, "default")
|
711
721
|
]),
|
712
722
|
_: 3
|
713
723
|
}, 8, ["prop", "label", "label-width", "required", "rules"])
|
@@ -732,78 +742,78 @@ const Ke = /* @__PURE__ */ v({
|
|
732
742
|
readonly: { type: Boolean },
|
733
743
|
fillMapping: { type: [String, Function] }
|
734
744
|
},
|
735
|
-
setup(
|
736
|
-
const i = w(),
|
737
|
-
|
738
|
-
}, s = z(!1),
|
739
|
-
s.value || (s.value = !0),
|
745
|
+
setup(o) {
|
746
|
+
const i = w(), f = B(), d = $(), t = P(), n = z(!1), l = (h) => {
|
747
|
+
n.value = h;
|
748
|
+
}, s = z(!1), a = () => {
|
749
|
+
s.value || (s.value = !0), n.value || I.value.handleOpen();
|
740
750
|
};
|
741
|
-
let
|
742
|
-
const y = (
|
743
|
-
|
744
|
-
},
|
745
|
-
["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Enter", "Space"].indexOf(
|
746
|
-
},
|
747
|
-
|
748
|
-
},
|
749
|
-
if (s.value && L(
|
750
|
-
const
|
751
|
-
for (let
|
752
|
-
const F = V[
|
753
|
-
|
751
|
+
let p;
|
752
|
+
const y = (h) => {
|
753
|
+
p = h;
|
754
|
+
}, q = (h) => {
|
755
|
+
["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Enter", "Space"].indexOf(h.code) > -1 && (n.value && p && p(h.code), h.stopPropagation()), ["ArrowUp", "ArrowDown"].indexOf(h.code) > -1 && !n.value && I.value.handleOpen();
|
756
|
+
}, J = A("input"), Y = async (h) => {
|
757
|
+
n.value && J.value.focus();
|
758
|
+
}, Q = () => {
|
759
|
+
if (s.value && L(o.fillMapping)) {
|
760
|
+
const h = {}, V = o.fillMapping.split(",");
|
761
|
+
for (let M = 0; M < V.length; M++) {
|
762
|
+
const F = V[M].split(":")[0].trim();
|
763
|
+
h[F] = void 0;
|
754
764
|
}
|
755
|
-
|
765
|
+
t.updateModelValueMulti(h);
|
756
766
|
}
|
757
767
|
}, I = A("dropdown");
|
758
|
-
return
|
768
|
+
return x(
|
759
769
|
Ge,
|
760
|
-
|
761
|
-
lovValue:
|
762
|
-
backfill: (
|
763
|
-
if (I.value.handleClose(), L(
|
764
|
-
const V = {},
|
765
|
-
for (let F = 0; F <
|
766
|
-
const R =
|
770
|
+
_({
|
771
|
+
lovValue: d,
|
772
|
+
backfill: (h) => {
|
773
|
+
if (I.value.handleClose(), L(o.fillMapping)) {
|
774
|
+
const V = {}, M = o.fillMapping.split(",");
|
775
|
+
for (let F = 0; F < M.length; F++) {
|
776
|
+
const R = M[F].split(":")[0].trim(), X = M[F].split(":")[1].trim(), u = h[X];
|
767
777
|
V[R] = u;
|
768
778
|
}
|
769
|
-
|
779
|
+
t.updateModelValueMulti(V);
|
770
780
|
} else
|
771
|
-
|
781
|
+
o.fillMapping && o.fillMapping(h);
|
772
782
|
s.value && (s.value = !1);
|
773
783
|
},
|
774
784
|
registerKeydownHandler: y
|
775
785
|
})
|
776
|
-
), (
|
777
|
-
default:
|
778
|
-
b(e(
|
779
|
-
prop:
|
780
|
-
label:
|
781
|
-
"label-width":
|
782
|
-
required:
|
783
|
-
rules: e(
|
786
|
+
), (h, V) => (m(), c(e(g), { span: e(i) }, {
|
787
|
+
default: r(() => [
|
788
|
+
b(e(C), {
|
789
|
+
prop: h.name,
|
790
|
+
label: h.label,
|
791
|
+
"label-width": h.labelWidth,
|
792
|
+
required: h.required,
|
793
|
+
rules: e(f)
|
784
794
|
}, {
|
785
|
-
default:
|
795
|
+
default: r(() => [
|
786
796
|
b(e(pe), {
|
787
797
|
ref: "dropdown",
|
788
798
|
trigger: "click",
|
789
799
|
onVisibleChange: l,
|
790
800
|
style: { width: "100%" }
|
791
801
|
}, {
|
792
|
-
dropdown:
|
793
|
-
|
802
|
+
dropdown: r(() => [
|
803
|
+
S(h.$slots, "default")
|
794
804
|
]),
|
795
|
-
default:
|
805
|
+
default: r(() => [
|
796
806
|
b(e(W), {
|
797
807
|
ref: "input",
|
798
|
-
modelValue: e(
|
799
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
800
|
-
maxlength:
|
801
|
-
placeholder:
|
802
|
-
disabled:
|
803
|
-
readonly:
|
804
|
-
onInput:
|
805
|
-
onKeydown:
|
806
|
-
onChange:
|
808
|
+
modelValue: e(d),
|
809
|
+
"onUpdate:modelValue": V[0] || (V[0] = (M) => k(d) ? d.value = M : null),
|
810
|
+
maxlength: h.maxlength,
|
811
|
+
placeholder: h.placeholder,
|
812
|
+
disabled: h.disabled,
|
813
|
+
readonly: h.readonly,
|
814
|
+
onInput: a,
|
815
|
+
onKeydown: q,
|
816
|
+
onChange: Q,
|
807
817
|
onBlur: Y,
|
808
818
|
"suffix-icon": e(Pe)
|
809
819
|
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "suffix-icon"])
|
@@ -839,10 +849,10 @@ const Ke = /* @__PURE__ */ v({
|
|
839
849
|
controls: { type: Boolean, default: !0 },
|
840
850
|
controlsPosition: {}
|
841
851
|
},
|
842
|
-
setup(
|
843
|
-
const i =
|
852
|
+
setup(o) {
|
853
|
+
const i = ae(), f = w(), d = B(), t = P(), n = O({
|
844
854
|
get: () => {
|
845
|
-
const l =
|
855
|
+
const l = t.modelValue[o.name];
|
846
856
|
if (l) {
|
847
857
|
if (ve(l))
|
848
858
|
return l;
|
@@ -852,22 +862,22 @@ const Ke = /* @__PURE__ */ v({
|
|
852
862
|
}
|
853
863
|
},
|
854
864
|
set: (l) => {
|
855
|
-
l ?
|
865
|
+
l ? t.updateModelValue(o.name, l) : t.updateModelValue(o.name, void 0);
|
856
866
|
}
|
857
867
|
});
|
858
|
-
return (l, s) => (
|
859
|
-
default:
|
860
|
-
b(e(
|
868
|
+
return (l, s) => (m(), c(e(g), { span: e(f) }, {
|
869
|
+
default: r(() => [
|
870
|
+
b(e(C), {
|
861
871
|
prop: l.name,
|
862
872
|
label: l.label,
|
863
873
|
"label-width": l.labelWidth,
|
864
874
|
required: l.required,
|
865
|
-
rules: e(
|
875
|
+
rules: e(d)
|
866
876
|
}, {
|
867
|
-
default:
|
877
|
+
default: r(() => [
|
868
878
|
b(e(Ee), {
|
869
|
-
modelValue:
|
870
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
879
|
+
modelValue: n.value,
|
880
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => n.value = a),
|
871
881
|
placeholder: l.placeholder,
|
872
882
|
disabled: l.disabled,
|
873
883
|
readonly: l.readonly,
|
@@ -879,32 +889,32 @@ const Ke = /* @__PURE__ */ v({
|
|
879
889
|
controls: l.controls,
|
880
890
|
"controls-position": l.controlsPosition,
|
881
891
|
style: { width: "100%" }
|
882
|
-
},
|
892
|
+
}, oe({ _: 2 }, [
|
883
893
|
e(i)["decrease-icon"] ? {
|
884
894
|
name: "decrease-icon",
|
885
|
-
fn:
|
886
|
-
|
895
|
+
fn: r(() => [
|
896
|
+
S(l.$slots, "decrease-icon")
|
887
897
|
]),
|
888
898
|
key: "0"
|
889
899
|
} : void 0,
|
890
900
|
e(i)["increase-icon"] ? {
|
891
901
|
name: "increase-icon",
|
892
|
-
fn:
|
893
|
-
|
902
|
+
fn: r(() => [
|
903
|
+
S(l.$slots, "increase-icon")
|
894
904
|
]),
|
895
905
|
key: "1"
|
896
906
|
} : void 0,
|
897
907
|
e(i).prefix ? {
|
898
908
|
name: "prefix",
|
899
|
-
fn:
|
900
|
-
|
909
|
+
fn: r(() => [
|
910
|
+
S(l.$slots, "prefix")
|
901
911
|
]),
|
902
912
|
key: "2"
|
903
913
|
} : void 0,
|
904
914
|
e(i).suffix ? {
|
905
915
|
name: "suffix",
|
906
|
-
fn:
|
907
|
-
|
916
|
+
fn: r(() => [
|
917
|
+
S(l.$slots, "suffix")
|
908
918
|
]),
|
909
919
|
key: "3"
|
910
920
|
} : void 0
|
@@ -938,10 +948,10 @@ const Ke = /* @__PURE__ */ v({
|
|
938
948
|
tag: { type: Function }
|
939
949
|
},
|
940
950
|
emits: ["change"],
|
941
|
-
setup(
|
942
|
-
const
|
951
|
+
setup(o, { emit: i }) {
|
952
|
+
const f = i, d = w(), t = B(), n = z(""), l = z(!1), s = P(), a = O({
|
943
953
|
get: () => {
|
944
|
-
const u = s.modelValue[
|
954
|
+
const u = s.modelValue[o.name];
|
945
955
|
if (u) {
|
946
956
|
if (!we(u))
|
947
957
|
throw new D("表格下拉框的值只能为数组类型");
|
@@ -949,88 +959,88 @@ const Ke = /* @__PURE__ */ v({
|
|
949
959
|
}
|
950
960
|
},
|
951
961
|
set: (u) => {
|
952
|
-
l.value = !1, u ? s.updateModelValue(
|
962
|
+
l.value = !1, u ? s.updateModelValue(o.name, u) : s.updateModelValue(o.name, void 0);
|
953
963
|
}
|
954
|
-
}),
|
964
|
+
}), p = z([]);
|
955
965
|
de(async () => {
|
956
|
-
R && (
|
957
|
-
}), re(
|
958
|
-
l.value ? R && (
|
966
|
+
R && (p.value = await R(a.value), p.value && (h.value = p.value.map((u) => o.tag(u))));
|
967
|
+
}), re(a, async () => {
|
968
|
+
l.value ? R && (p.value = await R(a.value), p.value && (h.value = p.value.map((u) => o.tag(u)))) : l.value = !0;
|
959
969
|
});
|
960
|
-
const y = z(!1),
|
970
|
+
const y = z(!1), q = (u) => {
|
961
971
|
y.value = u;
|
962
|
-
},
|
972
|
+
}, J = () => {
|
963
973
|
y.value || V.value.handleOpen();
|
964
|
-
}, Y = A("input"),
|
974
|
+
}, Y = A("input"), Q = () => {
|
965
975
|
Y.value.focus();
|
966
976
|
}, I = (u) => {
|
967
977
|
y.value ? ["Enter", "Escape"].indexOf(u.code) > -1 ? V.value.handleClose() : u.code == "ArrowDown" ? u.stopPropagation() : u.code == "Tab" && (y.value = !1, V.value.handleClose()) : ["ArrowUp", "ArrowDown"].indexOf(u.code) > -1 && (V.value.handleOpen(), u.stopPropagation());
|
968
|
-
},
|
969
|
-
y.value ? Y.value.focus() :
|
970
|
-
},
|
971
|
-
|
978
|
+
}, ee = async (u) => {
|
979
|
+
y.value ? Y.value.focus() : n.value = "";
|
980
|
+
}, h = z([]), V = A("dropdown"), M = (u, j) => {
|
981
|
+
a.value = u.map((T) => Ve(T, o.pick)), h.value = u.map((T) => o.tag(T)), j && (n.value = ""), f("change", u);
|
972
982
|
}, F = () => {
|
973
983
|
V.value.handleClose();
|
974
984
|
};
|
975
985
|
let R;
|
976
|
-
const
|
986
|
+
const X = (u) => {
|
977
987
|
R = u;
|
978
988
|
};
|
979
|
-
return
|
989
|
+
return x(
|
980
990
|
Le,
|
981
|
-
|
982
|
-
inputValue:
|
983
|
-
selection:
|
984
|
-
onSelect:
|
991
|
+
_({
|
992
|
+
inputValue: n,
|
993
|
+
selection: p,
|
994
|
+
onSelect: M,
|
985
995
|
selectDone: F,
|
986
|
-
tag:
|
987
|
-
registerRowCompletionProvider:
|
996
|
+
tag: o.tag,
|
997
|
+
registerRowCompletionProvider: X
|
988
998
|
})
|
989
999
|
), (u, j) => {
|
990
|
-
const T =
|
991
|
-
return
|
992
|
-
default:
|
993
|
-
b(e(
|
1000
|
+
const T = Se("o-space");
|
1001
|
+
return m(), c(e(g), { span: e(d) }, {
|
1002
|
+
default: r(() => [
|
1003
|
+
b(e(C), {
|
994
1004
|
prop: u.name,
|
995
1005
|
label: u.label,
|
996
1006
|
"label-width": u.labelWidth,
|
997
1007
|
required: u.required,
|
998
|
-
rules: e(
|
1008
|
+
rules: e(t)
|
999
1009
|
}, {
|
1000
|
-
default:
|
1010
|
+
default: r(() => [
|
1001
1011
|
b(e(pe), {
|
1002
1012
|
ref: "dropdown",
|
1003
1013
|
trigger: "click",
|
1004
|
-
onVisibleChange:
|
1014
|
+
onVisibleChange: q,
|
1005
1015
|
style: { width: "100%" }
|
1006
1016
|
}, {
|
1007
|
-
dropdown:
|
1008
|
-
|
1017
|
+
dropdown: r(() => [
|
1018
|
+
S(u.$slots, "default")
|
1009
1019
|
]),
|
1010
|
-
default:
|
1011
|
-
|
1012
|
-
onFocus:
|
1020
|
+
default: r(() => [
|
1021
|
+
Be("div", {
|
1022
|
+
onFocus: Q,
|
1013
1023
|
style: { position: "relative", width: "100%", height: "100%" }
|
1014
1024
|
}, [
|
1015
1025
|
b(e(W), {
|
1016
1026
|
ref: "input",
|
1017
|
-
modelValue:
|
1018
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
1027
|
+
modelValue: n.value,
|
1028
|
+
"onUpdate:modelValue": j[0] || (j[0] = (Z) => n.value = Z),
|
1019
1029
|
maxlength: u.maxlength,
|
1020
1030
|
placeholder: u.placeholder,
|
1021
1031
|
disabled: u.disabled,
|
1022
1032
|
readonly: u.readonly,
|
1023
|
-
onInput:
|
1033
|
+
onInput: J,
|
1024
1034
|
onKeydown: I,
|
1025
|
-
onBlur:
|
1035
|
+
onBlur: ee,
|
1026
1036
|
"suffix-icon": y.value ? e(Ye) : e(je)
|
1027
1037
|
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "suffix-icon"]),
|
1028
|
-
y.value ?
|
1038
|
+
y.value ? qe("", !0) : (m(), E("div", sl, [
|
1029
1039
|
b(T, null, {
|
1030
|
-
default:
|
1031
|
-
(
|
1032
|
-
default:
|
1033
|
-
ne(te(
|
1040
|
+
default: r(() => [
|
1041
|
+
(m(!0), E(U, null, N(h.value, (Z) => (m(), c(e(De), { type: "info" }, {
|
1042
|
+
default: r(() => [
|
1043
|
+
ne(te(Z), 1)
|
1034
1044
|
]),
|
1035
1045
|
_: 2
|
1036
1046
|
}, 1024))), 256))
|
@@ -1050,7 +1060,7 @@ const Ke = /* @__PURE__ */ v({
|
|
1050
1060
|
}, 8, ["span"]);
|
1051
1061
|
};
|
1052
1062
|
}
|
1053
|
-
}),
|
1063
|
+
}), Cl = Me(Ke, {
|
1054
1064
|
StringInput: He,
|
1055
1065
|
PasswordInput: Je,
|
1056
1066
|
Textarea: Qe,
|
@@ -1069,11 +1079,11 @@ const Ke = /* @__PURE__ */ v({
|
|
1069
1079
|
TableSelect: il
|
1070
1080
|
});
|
1071
1081
|
export {
|
1072
|
-
|
1082
|
+
Cl as default,
|
1073
1083
|
Ie as formContextKey,
|
1074
1084
|
Ge as lovContextKey,
|
1075
1085
|
Le as tableSelectContext,
|
1076
|
-
|
1086
|
+
ql as useLov,
|
1077
1087
|
kl as useTableselect
|
1078
1088
|
};
|
1079
1089
|
//# sourceMappingURL=index.js.map
|