erp-plus 1.0.10 → 1.0.12
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/types/erp-plus.css +1 -1
- package/dist/types/erp-plus.es.js +245 -403
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +6 -6
- package/dist/types/packages/Input/Input.vue.d.ts +3 -3
- package/dist/types/packages/Select/Select.vue.d.ts +6 -6
- package/package.json +1 -1
- package/dist/types/packages/Form/Form.vue.d.ts +0 -173
- package/dist/types/packages/Form/index.d.ts +0 -4
- package/dist/types/packages/FormItem/FormItem.vue.d.ts +0 -144
- package/dist/types/packages/FormItem/index.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElOption as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as C, useSlots as H, resolveComponent as O, createBlock as v, openBlock as f, mergeProps as _, createSlots as D, renderList as x, unref as z, withCtx as m, renderSlot as P, normalizeProps as T, guardReactiveProps as A, computed as S, createElementBlock as M, normalizeClass as W, createElementVNode as q, h as d, createVNode as V, isRef as G, Fragment as K, resolveDynamicComponent as J, createTextVNode as Q, toDisplayString as X } from "vue";
|
|
2
|
+
import { ElOption as R, ElSelect as Z } from "element-plus";
|
|
3
|
+
const L = /* @__PURE__ */ C({
|
|
4
4
|
__name: "Button",
|
|
5
5
|
props: {
|
|
6
6
|
// 基础属性
|
|
@@ -80,29 +80,29 @@ const j = /* @__PURE__ */ V({
|
|
|
80
80
|
},
|
|
81
81
|
emits: ["click"],
|
|
82
82
|
setup(e, { emit: u }) {
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const o = H(), a = e, n = u, i = (s) => {
|
|
84
|
+
n("click", s);
|
|
85
85
|
};
|
|
86
|
-
return (
|
|
87
|
-
const
|
|
88
|
-
return
|
|
86
|
+
return (s, y) => {
|
|
87
|
+
const h = O("el-button");
|
|
88
|
+
return f(), v(h, _(a, {
|
|
89
89
|
class: ["yw-button-" + e.type, "yw-button"],
|
|
90
|
-
onClick:
|
|
91
|
-
}),
|
|
92
|
-
|
|
93
|
-
name:
|
|
94
|
-
fn:
|
|
95
|
-
|
|
90
|
+
onClick: i
|
|
91
|
+
}), D({ _: 2 }, [
|
|
92
|
+
x(z(o), (g, c) => ({
|
|
93
|
+
name: c,
|
|
94
|
+
fn: m((b) => [
|
|
95
|
+
P(s.$slots, c, T(A(b || {})))
|
|
96
96
|
])
|
|
97
97
|
}))
|
|
98
98
|
]), 1040, ["class"]);
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
|
|
103
|
-
e.component("YwButton",
|
|
102
|
+
L.install = (e) => {
|
|
103
|
+
e.component("YwButton", L);
|
|
104
104
|
};
|
|
105
|
-
const
|
|
105
|
+
const ee = ["xlink:href", "fill"], k = /* @__PURE__ */ C({
|
|
106
106
|
__name: "index",
|
|
107
107
|
props: {
|
|
108
108
|
iconClass: {
|
|
@@ -119,18 +119,18 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
setup(e) {
|
|
122
|
-
const u = e,
|
|
123
|
-
return (
|
|
124
|
-
class:
|
|
122
|
+
const u = e, o = S(() => u.className ? (console.log(u.className), `svg-icon ${u.className}`) : "svg-icon"), a = S(() => `#icon-${u.iconClass}`);
|
|
123
|
+
return (n, i) => (f(), M("svg", {
|
|
124
|
+
class: W(o.value),
|
|
125
125
|
"aria-hidden": "true"
|
|
126
126
|
}, [
|
|
127
|
-
|
|
128
|
-
"xlink:href":
|
|
127
|
+
q("use", {
|
|
128
|
+
"xlink:href": a.value,
|
|
129
129
|
fill: e.color
|
|
130
|
-
}, null, 8,
|
|
130
|
+
}, null, 8, ee)
|
|
131
131
|
], 2));
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
133
|
+
}), te = /* @__PURE__ */ C({
|
|
134
134
|
__name: "DatePicker",
|
|
135
135
|
props: {
|
|
136
136
|
modelValue: {
|
|
@@ -207,14 +207,41 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
207
207
|
default: !1
|
|
208
208
|
},
|
|
209
209
|
prefixIcon: {
|
|
210
|
-
type: String,
|
|
211
|
-
default: () =>
|
|
212
|
-
|
|
210
|
+
type: [String, Object],
|
|
211
|
+
default: () => d("svg", {
|
|
212
|
+
viewBox: "0 0 1024 1024",
|
|
213
|
+
width: "16",
|
|
214
|
+
height: "16",
|
|
215
|
+
fill: "currentColor",
|
|
216
|
+
class: "svg-icon",
|
|
217
|
+
"aria-hidden": "true",
|
|
218
|
+
style: { color: "#838599" }
|
|
219
|
+
}, [
|
|
220
|
+
d("path", {
|
|
221
|
+
d: "M640 53.312a32 32 0 0 1 32 32V256a32 32 0 0 1-64 0v-53.312H448a32 32 0 0 1 0-64h160v-53.312a32 32 0 0 1 32-32zM96 426.688a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32v384c0 64.768-52.48 117.312-117.312 117.312H213.312A117.312 117.312 0 0 1 96 810.688v-384z m64 32v352c0 29.44 23.872 53.312 53.312 53.312h597.376c29.44 0 53.312-23.872 53.312-53.312v-352h-704z"
|
|
222
|
+
}),
|
|
223
|
+
d("path", {
|
|
224
|
+
d: "M213.312 202.688A53.312 53.312 0 0 0 160 256v170.688a32 32 0 0 1-64 0V256c0-64.768 52.48-117.312 117.312-117.312h85.376a32 32 0 0 1 0 64H213.312z"
|
|
225
|
+
}),
|
|
226
|
+
d("path", {
|
|
227
|
+
d: "M298.688 53.312a32 32 0 0 1 32 32V256a32 32 0 1 1-64 0V85.312a32 32 0 0 1 32-32zM757.312 170.688a32 32 0 0 1 32-32h21.376c64.768 0 117.312 52.48 117.312 117.312v170.688a32 32 0 0 1-64 0V256a53.312 53.312 0 0 0-53.312-53.312h-21.376a32 32 0 0 1-32-32z"
|
|
228
|
+
})
|
|
229
|
+
])
|
|
213
230
|
},
|
|
214
231
|
clearIcon: {
|
|
215
|
-
type: String,
|
|
216
|
-
default: () =>
|
|
217
|
-
|
|
232
|
+
type: [String, Object],
|
|
233
|
+
default: () => d("svg", {
|
|
234
|
+
viewBox: "0 0 1024 1024",
|
|
235
|
+
width: "12",
|
|
236
|
+
height: "12",
|
|
237
|
+
fill: "currentColor",
|
|
238
|
+
class: "your-prefix-clear-icon",
|
|
239
|
+
style: { color: "#b2b4c6" }
|
|
240
|
+
}, [
|
|
241
|
+
d("path", {
|
|
242
|
+
d: "M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"
|
|
243
|
+
})
|
|
244
|
+
])
|
|
218
245
|
},
|
|
219
246
|
validateEvent: {
|
|
220
247
|
type: Boolean,
|
|
@@ -259,65 +286,65 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
259
286
|
},
|
|
260
287
|
emits: ["update:modelValue", "change", "clear", "blur", "focus", "calendar-change", "visible-change", "panel-change"],
|
|
261
288
|
setup(e, { emit: u }) {
|
|
262
|
-
const
|
|
289
|
+
const o = e, a = S(() => o.type === "daterange" || o.type === "datetimerange" ? `yw-daterange-picker ${o.popperClass}` : `yw-date-picker ${o.popperClass}`), n = u, i = S({
|
|
263
290
|
get() {
|
|
264
|
-
return
|
|
291
|
+
return o.modelValue;
|
|
265
292
|
},
|
|
266
|
-
set(
|
|
267
|
-
|
|
293
|
+
set(r) {
|
|
294
|
+
n("update:modelValue", r);
|
|
268
295
|
}
|
|
269
|
-
}),
|
|
270
|
-
|
|
271
|
-
}, y = (
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
},
|
|
282
|
-
|
|
296
|
+
}), s = (r) => {
|
|
297
|
+
n("change", r);
|
|
298
|
+
}, y = (r) => {
|
|
299
|
+
n("clear", r);
|
|
300
|
+
}, h = (r) => {
|
|
301
|
+
n("blur", r);
|
|
302
|
+
}, g = (r) => {
|
|
303
|
+
n("focus", r);
|
|
304
|
+
}, c = (r) => {
|
|
305
|
+
n("calendar-change", r);
|
|
306
|
+
}, b = (r) => {
|
|
307
|
+
n("visible-change", r);
|
|
308
|
+
}, w = (r) => {
|
|
309
|
+
n("panel-change", r);
|
|
283
310
|
};
|
|
284
|
-
return (
|
|
285
|
-
const
|
|
286
|
-
return
|
|
287
|
-
modelValue:
|
|
288
|
-
"onUpdate:modelValue":
|
|
289
|
-
popperClass:
|
|
290
|
-
onChange:
|
|
311
|
+
return (r, B) => {
|
|
312
|
+
const l = O("el-date-picker");
|
|
313
|
+
return f(), v(l, _(o, {
|
|
314
|
+
modelValue: i.value,
|
|
315
|
+
"onUpdate:modelValue": B[0] || (B[0] = (t) => i.value = t),
|
|
316
|
+
popperClass: a.value,
|
|
317
|
+
onChange: s,
|
|
291
318
|
onClear: y,
|
|
292
|
-
onBlur:
|
|
293
|
-
onFocus:
|
|
294
|
-
onCalendarChange:
|
|
295
|
-
onVisibleChange:
|
|
296
|
-
onPanelChange:
|
|
319
|
+
onBlur: h,
|
|
320
|
+
onFocus: g,
|
|
321
|
+
onCalendarChange: c,
|
|
322
|
+
onVisibleChange: b,
|
|
323
|
+
onPanelChange: w
|
|
297
324
|
}), {
|
|
298
|
-
"prev-month":
|
|
299
|
-
|
|
325
|
+
"prev-month": m(() => [
|
|
326
|
+
V(k, {
|
|
300
327
|
iconClass: "16_16_arrow_left",
|
|
301
328
|
color: "#1a1a1a",
|
|
302
329
|
style: { width: "16px", height: "16px" }
|
|
303
330
|
})
|
|
304
331
|
]),
|
|
305
|
-
"next-month":
|
|
306
|
-
|
|
332
|
+
"next-month": m(() => [
|
|
333
|
+
V(k, {
|
|
307
334
|
iconClass: "16_16_arrow_right",
|
|
308
335
|
color: "#1a1a1a",
|
|
309
336
|
style: { width: "16px", height: "16px" }
|
|
310
337
|
})
|
|
311
338
|
]),
|
|
312
|
-
"prev-year":
|
|
313
|
-
|
|
339
|
+
"prev-year": m(() => [
|
|
340
|
+
V(k, {
|
|
314
341
|
iconClass: "16_16_arrow_2left",
|
|
315
342
|
color: "#1a1a1a",
|
|
316
343
|
style: { width: "16px", height: "16px" }
|
|
317
344
|
})
|
|
318
345
|
]),
|
|
319
|
-
"next-year":
|
|
320
|
-
|
|
346
|
+
"next-year": m(() => [
|
|
347
|
+
V(k, {
|
|
321
348
|
iconClass: "16_16_arrow_2right",
|
|
322
349
|
color: "#1a1a1a",
|
|
323
350
|
style: { width: "16px", height: "16px" }
|
|
@@ -327,16 +354,16 @@ const le = ["xlink:href", "fill"], F = /* @__PURE__ */ V({
|
|
|
327
354
|
}, 16, ["modelValue", "popperClass"]);
|
|
328
355
|
};
|
|
329
356
|
}
|
|
330
|
-
}),
|
|
331
|
-
const
|
|
332
|
-
for (const [
|
|
333
|
-
|
|
334
|
-
return
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
e.component("YwDatePicker",
|
|
357
|
+
}), ae = (e, u) => {
|
|
358
|
+
const o = e.__vccOpts || e;
|
|
359
|
+
for (const [a, n] of u)
|
|
360
|
+
o[a] = n;
|
|
361
|
+
return o;
|
|
362
|
+
}, F = /* @__PURE__ */ ae(te, [["__scopeId", "data-v-84e7bdaa"]]);
|
|
363
|
+
F.install = (e) => {
|
|
364
|
+
e.component("YwDatePicker", F);
|
|
338
365
|
};
|
|
339
|
-
const
|
|
366
|
+
const j = /* @__PURE__ */ C({
|
|
340
367
|
__name: "Avatar",
|
|
341
368
|
props: {
|
|
342
369
|
size: {
|
|
@@ -370,221 +397,26 @@ const D = /* @__PURE__ */ V({
|
|
|
370
397
|
},
|
|
371
398
|
emits: ["error"],
|
|
372
399
|
setup(e, { emit: u }) {
|
|
373
|
-
const
|
|
374
|
-
|
|
375
|
-
};
|
|
376
|
-
return (c, d) => {
|
|
377
|
-
const y = k("el-avatar");
|
|
378
|
-
return g(), v(y, C(r, { onError: o }), x({ _: 2 }, [
|
|
379
|
-
w(c.$slots, (m, s) => ({
|
|
380
|
-
name: s,
|
|
381
|
-
fn: _((a) => [
|
|
382
|
-
O(c.$slots, s, N($(a || {})))
|
|
383
|
-
])
|
|
384
|
-
}))
|
|
385
|
-
]), 1040);
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
D.install = (e) => {
|
|
390
|
-
e.component("YwAvatar", D);
|
|
391
|
-
};
|
|
392
|
-
const E = /* @__PURE__ */ V({
|
|
393
|
-
__name: "Form",
|
|
394
|
-
props: {
|
|
395
|
-
modelValue: {
|
|
396
|
-
type: Object,
|
|
397
|
-
default: {}
|
|
398
|
-
},
|
|
399
|
-
rules: {
|
|
400
|
-
type: Object,
|
|
401
|
-
default: {}
|
|
402
|
-
},
|
|
403
|
-
inline: {
|
|
404
|
-
type: Boolean,
|
|
405
|
-
default: !1
|
|
406
|
-
},
|
|
407
|
-
labelPosition: {
|
|
408
|
-
type: String,
|
|
409
|
-
default: "right"
|
|
410
|
-
},
|
|
411
|
-
labelWidth: {
|
|
412
|
-
type: String,
|
|
413
|
-
default: ""
|
|
414
|
-
},
|
|
415
|
-
labelSuffix: {
|
|
416
|
-
type: String,
|
|
417
|
-
default: ""
|
|
418
|
-
},
|
|
419
|
-
hideRequiredAsterisk: {
|
|
420
|
-
type: Boolean,
|
|
421
|
-
default: !1
|
|
422
|
-
},
|
|
423
|
-
requireAsteriskPosition: {
|
|
424
|
-
type: String,
|
|
425
|
-
default: "left"
|
|
426
|
-
},
|
|
427
|
-
showMessage: {
|
|
428
|
-
type: Boolean,
|
|
429
|
-
default: !0
|
|
430
|
-
},
|
|
431
|
-
inlineMessage: {
|
|
432
|
-
type: Boolean,
|
|
433
|
-
default: !1
|
|
434
|
-
},
|
|
435
|
-
statusIcon: {
|
|
436
|
-
type: Boolean,
|
|
437
|
-
default: !1
|
|
438
|
-
},
|
|
439
|
-
validateOnRuleChange: {
|
|
440
|
-
type: Boolean,
|
|
441
|
-
default: !0
|
|
442
|
-
},
|
|
443
|
-
size: {
|
|
444
|
-
type: String,
|
|
445
|
-
default: ""
|
|
446
|
-
},
|
|
447
|
-
disabled: {
|
|
448
|
-
type: Boolean,
|
|
449
|
-
default: !1
|
|
450
|
-
},
|
|
451
|
-
scrollToError: {
|
|
452
|
-
type: Boolean,
|
|
453
|
-
default: !1
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
emits: ["validate", "validateField", "resetFields", "scrollToField", "clearValidate", "fields", "getField"],
|
|
457
|
-
setup(e, { emit: u }) {
|
|
458
|
-
const r = e, t = u, o = (a, p, b) => {
|
|
459
|
-
t("validate", a, p, b);
|
|
460
|
-
}, c = (a, p) => {
|
|
461
|
-
t("validateField", a, p);
|
|
462
|
-
}, d = (a) => {
|
|
463
|
-
t("resetFields", a);
|
|
464
|
-
}, y = (a) => {
|
|
465
|
-
t("scrollToField", a);
|
|
466
|
-
}, m = (a) => {
|
|
467
|
-
t("clearValidate", a);
|
|
468
|
-
}, s = (a) => {
|
|
469
|
-
t("getField", a);
|
|
470
|
-
};
|
|
471
|
-
return (a, p) => {
|
|
472
|
-
const b = k("el-form");
|
|
473
|
-
return g(), v(b, C(r, {
|
|
474
|
-
onValidate: o,
|
|
475
|
-
onValidateField: c,
|
|
476
|
-
onResetFields: d,
|
|
477
|
-
onScrollToField: y,
|
|
478
|
-
onClearValidate: m,
|
|
479
|
-
onGetField: s
|
|
480
|
-
}), x({ _: 2 }, [
|
|
481
|
-
w(a.$slots, (i, S) => ({
|
|
482
|
-
name: S,
|
|
483
|
-
fn: _((n) => [
|
|
484
|
-
O(a.$slots, S, N($(n || {})))
|
|
485
|
-
])
|
|
486
|
-
}))
|
|
487
|
-
]), 1040);
|
|
488
|
-
};
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
E.install = (e) => {
|
|
492
|
-
e.component("YwForm", E);
|
|
493
|
-
};
|
|
494
|
-
const R = /* @__PURE__ */ V({
|
|
495
|
-
__name: "FormItem",
|
|
496
|
-
props: {
|
|
497
|
-
prop: {
|
|
498
|
-
type: String,
|
|
499
|
-
default: ""
|
|
500
|
-
},
|
|
501
|
-
label: {
|
|
502
|
-
type: String,
|
|
503
|
-
default: ""
|
|
504
|
-
},
|
|
505
|
-
labelPosition: {
|
|
506
|
-
type: String,
|
|
507
|
-
default: ""
|
|
508
|
-
},
|
|
509
|
-
labelWidth: {
|
|
510
|
-
type: [String, Number],
|
|
511
|
-
default: ""
|
|
512
|
-
},
|
|
513
|
-
required: {
|
|
514
|
-
type: Boolean,
|
|
515
|
-
default: !1
|
|
516
|
-
},
|
|
517
|
-
rules: {
|
|
518
|
-
type: [Object, Array],
|
|
519
|
-
default: void 0
|
|
520
|
-
},
|
|
521
|
-
error: {
|
|
522
|
-
type: String,
|
|
523
|
-
default: ""
|
|
524
|
-
},
|
|
525
|
-
showMessage: {
|
|
526
|
-
type: Boolean,
|
|
527
|
-
default: !0
|
|
528
|
-
},
|
|
529
|
-
inlineMessage: {
|
|
530
|
-
type: Boolean,
|
|
531
|
-
default: !1
|
|
532
|
-
},
|
|
533
|
-
size: {
|
|
534
|
-
type: String,
|
|
535
|
-
default: ""
|
|
536
|
-
},
|
|
537
|
-
for: {
|
|
538
|
-
type: String,
|
|
539
|
-
default: ""
|
|
540
|
-
},
|
|
541
|
-
validateStatus: {
|
|
542
|
-
type: String,
|
|
543
|
-
default: ""
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
emits: ["validate", "resetFields", "clearValidate"],
|
|
547
|
-
setup(e, { expose: u, emit: r }) {
|
|
548
|
-
const t = e, o = r, c = h(() => {
|
|
549
|
-
const { ...s } = t;
|
|
550
|
-
return Object.fromEntries(
|
|
551
|
-
Object.entries(s).filter(([a, p]) => p !== void 0 && p !== "")
|
|
552
|
-
);
|
|
553
|
-
}), d = (s, a, p) => {
|
|
554
|
-
o("validate", s, a, p);
|
|
555
|
-
}, y = (s) => {
|
|
556
|
-
o("resetFields", s);
|
|
557
|
-
}, m = (s) => {
|
|
558
|
-
o("clearValidate", s);
|
|
400
|
+
const o = e, a = u, n = (i) => {
|
|
401
|
+
a("error", i);
|
|
559
402
|
};
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}), (s, a) => {
|
|
568
|
-
const p = k("el-form-item");
|
|
569
|
-
return g(), v(p, C(c.value, {
|
|
570
|
-
onValidate: d,
|
|
571
|
-
onResetFields: y,
|
|
572
|
-
onClearValidate: m
|
|
573
|
-
}), x({ _: 2 }, [
|
|
574
|
-
w(s.$slots, (b, i) => ({
|
|
575
|
-
name: i,
|
|
576
|
-
fn: _((S) => [
|
|
577
|
-
O(s.$slots, i, N($(S || {})))
|
|
403
|
+
return (i, s) => {
|
|
404
|
+
const y = O("el-avatar");
|
|
405
|
+
return f(), v(y, _(o, { onError: n }), D({ _: 2 }, [
|
|
406
|
+
x(i.$slots, (h, g) => ({
|
|
407
|
+
name: g,
|
|
408
|
+
fn: m((c) => [
|
|
409
|
+
P(i.$slots, g, T(A(c || {})))
|
|
578
410
|
])
|
|
579
411
|
}))
|
|
580
412
|
]), 1040);
|
|
581
413
|
};
|
|
582
414
|
}
|
|
583
415
|
});
|
|
584
|
-
|
|
585
|
-
e.component("
|
|
416
|
+
j.install = (e) => {
|
|
417
|
+
e.component("YwAvatar", j);
|
|
586
418
|
};
|
|
587
|
-
const
|
|
419
|
+
const I = /* @__PURE__ */ C({
|
|
588
420
|
__name: "Input",
|
|
589
421
|
props: {
|
|
590
422
|
modelValue: {
|
|
@@ -608,14 +440,17 @@ const A = /* @__PURE__ */ V({
|
|
|
608
440
|
default: !0
|
|
609
441
|
},
|
|
610
442
|
clearIcon: {
|
|
611
|
-
type: String,
|
|
612
|
-
default: () =>
|
|
613
|
-
|
|
614
|
-
|
|
443
|
+
type: [String, Object],
|
|
444
|
+
default: () => d("svg", {
|
|
445
|
+
viewBox: "0 0 1024 1024",
|
|
446
|
+
width: "12",
|
|
447
|
+
height: "12",
|
|
448
|
+
fill: "currentColor",
|
|
449
|
+
class: "your-prefix-clear-icon",
|
|
450
|
+
style: { color: "#b2b4c6" }
|
|
615
451
|
}, [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
fill: "#b2b4c6"
|
|
452
|
+
d("path", {
|
|
453
|
+
d: "M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"
|
|
619
454
|
})
|
|
620
455
|
])
|
|
621
456
|
},
|
|
@@ -726,68 +561,68 @@ const A = /* @__PURE__ */ V({
|
|
|
726
561
|
},
|
|
727
562
|
emits: ["update:modelValue", "change", "blur", "focus", "input", "clear", "keydown", "mouseleave", "mouseenter", "compositionstart", "compositionupdate", "compositionend"],
|
|
728
563
|
setup(e, { emit: u }) {
|
|
729
|
-
const
|
|
564
|
+
const o = e, a = u, n = S({
|
|
730
565
|
get() {
|
|
731
|
-
return
|
|
566
|
+
return o.modelValue;
|
|
732
567
|
},
|
|
733
|
-
set(
|
|
734
|
-
|
|
568
|
+
set(t) {
|
|
569
|
+
a("update:modelValue", t);
|
|
735
570
|
}
|
|
736
|
-
}),
|
|
737
|
-
|
|
738
|
-
},
|
|
739
|
-
|
|
740
|
-
}, y = (
|
|
741
|
-
|
|
742
|
-
},
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
},
|
|
747
|
-
|
|
748
|
-
},
|
|
749
|
-
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
},
|
|
753
|
-
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
},
|
|
757
|
-
|
|
571
|
+
}), i = (t) => {
|
|
572
|
+
a("input", t);
|
|
573
|
+
}, s = (t) => {
|
|
574
|
+
a("change", t);
|
|
575
|
+
}, y = (t) => {
|
|
576
|
+
a("blur", t);
|
|
577
|
+
}, h = (t) => {
|
|
578
|
+
a("focus", t);
|
|
579
|
+
}, g = () => {
|
|
580
|
+
a("clear");
|
|
581
|
+
}, c = (t) => {
|
|
582
|
+
a("keydown", t);
|
|
583
|
+
}, b = (t) => {
|
|
584
|
+
a("mouseleave", t);
|
|
585
|
+
}, w = (t) => {
|
|
586
|
+
a("mouseenter", t);
|
|
587
|
+
}, r = (t) => {
|
|
588
|
+
a("compositionstart", t);
|
|
589
|
+
}, B = (t) => {
|
|
590
|
+
a("compositionupdate", t);
|
|
591
|
+
}, l = (t) => {
|
|
592
|
+
a("compositionend", t);
|
|
758
593
|
};
|
|
759
|
-
return (
|
|
760
|
-
const
|
|
761
|
-
return
|
|
762
|
-
modelValue:
|
|
763
|
-
"onUpdate:modelValue":
|
|
594
|
+
return (t, p) => {
|
|
595
|
+
const N = O("el-input");
|
|
596
|
+
return f(), v(N, _(o, {
|
|
597
|
+
modelValue: z(n),
|
|
598
|
+
"onUpdate:modelValue": p[0] || (p[0] = (E) => G(n) ? n.value = E : null),
|
|
764
599
|
class: "yw-input",
|
|
765
|
-
onInput:
|
|
766
|
-
onChange:
|
|
600
|
+
onInput: i,
|
|
601
|
+
onChange: s,
|
|
767
602
|
onBlur: y,
|
|
768
|
-
onFocus:
|
|
769
|
-
onClear:
|
|
770
|
-
onKeydown:
|
|
771
|
-
onMouseleave:
|
|
772
|
-
onMouseenter:
|
|
773
|
-
onCompositionstart:
|
|
774
|
-
onCompositionupdate:
|
|
775
|
-
onCompositionend:
|
|
776
|
-
}),
|
|
777
|
-
|
|
603
|
+
onFocus: h,
|
|
604
|
+
onClear: g,
|
|
605
|
+
onKeydown: c,
|
|
606
|
+
onMouseleave: b,
|
|
607
|
+
onMouseenter: w,
|
|
608
|
+
onCompositionstart: r,
|
|
609
|
+
onCompositionupdate: B,
|
|
610
|
+
onCompositionend: l
|
|
611
|
+
}), D({ _: 2 }, [
|
|
612
|
+
x(t.$slots, (E, Y) => ({
|
|
778
613
|
name: Y,
|
|
779
|
-
fn:
|
|
780
|
-
|
|
614
|
+
fn: m((U) => [
|
|
615
|
+
P(t.$slots, Y, T(A(U || {})))
|
|
781
616
|
])
|
|
782
617
|
}))
|
|
783
618
|
]), 1040, ["modelValue"]);
|
|
784
619
|
};
|
|
785
620
|
}
|
|
786
621
|
});
|
|
787
|
-
|
|
788
|
-
e.component("YwInput",
|
|
622
|
+
I.install = (e) => {
|
|
623
|
+
e.component("YwInput", I);
|
|
789
624
|
};
|
|
790
|
-
const
|
|
625
|
+
const $ = /* @__PURE__ */ C({
|
|
791
626
|
__name: "Select",
|
|
792
627
|
props: {
|
|
793
628
|
modelValue: {
|
|
@@ -924,14 +759,17 @@ const L = /* @__PURE__ */ V({
|
|
|
924
759
|
default: !1
|
|
925
760
|
},
|
|
926
761
|
clearIcon: {
|
|
927
|
-
type: String,
|
|
928
|
-
default: () =>
|
|
929
|
-
|
|
930
|
-
|
|
762
|
+
type: [String, Object],
|
|
763
|
+
default: () => d("svg", {
|
|
764
|
+
viewBox: "0 0 1024 1024",
|
|
765
|
+
width: "12",
|
|
766
|
+
height: "12",
|
|
767
|
+
fill: "currentColor",
|
|
768
|
+
class: "your-prefix-clear-icon",
|
|
769
|
+
style: { color: "#b2b4c6" }
|
|
931
770
|
}, [
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
fill: "#b2b4c6"
|
|
771
|
+
d("path", {
|
|
772
|
+
d: "M0 512a512 512 0 1 0 1024 0A512 512 0 0 0 0 512z m631.210667-179.541333a42.666667 42.666667 0 0 1 60.330666 60.416L572.330667 512l119.210666 119.125333a42.666667 42.666667 0 0 1-60.330666 60.416L512 572.330667 392.874667 691.541333a42.666667 42.666667 0 0 1-60.330667-60.416L451.669333 512 332.544 392.874667a42.666667 42.666667 0 1 1 60.330667-60.416L512 451.669333l119.210667-119.210666z"
|
|
935
773
|
})
|
|
936
774
|
])
|
|
937
775
|
},
|
|
@@ -940,14 +778,18 @@ const L = /* @__PURE__ */ V({
|
|
|
940
778
|
default: !1
|
|
941
779
|
},
|
|
942
780
|
suffixIcon: {
|
|
943
|
-
type: String,
|
|
944
|
-
default: () =>
|
|
781
|
+
type: [String, Object],
|
|
782
|
+
default: () => d("svg", {
|
|
783
|
+
viewBox: "0 0 1024 1024",
|
|
784
|
+
width: "12",
|
|
785
|
+
height: "12",
|
|
786
|
+
fill: "currentColor",
|
|
945
787
|
class: "svg-icon",
|
|
946
|
-
"aria-hidden": "true"
|
|
788
|
+
"aria-hidden": "true",
|
|
789
|
+
style: { color: "#1a1a1a" }
|
|
947
790
|
}, [
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
fill: "#1a1a1a"
|
|
791
|
+
d("path", {
|
|
792
|
+
d: "M396.458667 396.458667a42.666667 42.666667 0 0 1 60.416 0L682.666667 622.336l225.792-225.877333a42.666667 42.666667 0 0 1 60.416 60.416l-256 256a42.666667 42.666667 0 0 1-60.416 0l-256-256a42.666667 42.666667 0 0 1 0-60.416z"
|
|
951
793
|
})
|
|
952
794
|
])
|
|
953
795
|
},
|
|
@@ -990,82 +832,82 @@ const L = /* @__PURE__ */ V({
|
|
|
990
832
|
},
|
|
991
833
|
emits: ["update:modelValue", "change", "visible-change", "remove-tag", "clear", "focus", "blur", "popup-scroll"],
|
|
992
834
|
setup(e, { emit: u }) {
|
|
993
|
-
const
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const
|
|
835
|
+
const o = e, a = S(() => o.props), n = H(), i = S(() => n.default?.().length === 0 ? [] : n.default?.().flatMap((l) => {
|
|
836
|
+
const t = String(l.type);
|
|
837
|
+
if (t.includes("yw-option") || t.includes("ywOption")) {
|
|
838
|
+
const p = l.children;
|
|
997
839
|
return {
|
|
998
|
-
type:
|
|
999
|
-
props:
|
|
1000
|
-
children:
|
|
1001
|
-
key:
|
|
840
|
+
type: R,
|
|
841
|
+
props: l.props || {},
|
|
842
|
+
children: p && p[0].children,
|
|
843
|
+
key: l.key
|
|
1002
844
|
};
|
|
1003
845
|
}
|
|
1004
|
-
return
|
|
1005
|
-
})),
|
|
846
|
+
return l;
|
|
847
|
+
})), s = u, y = S({
|
|
1006
848
|
get() {
|
|
1007
|
-
return
|
|
849
|
+
return o.modelValue;
|
|
1008
850
|
},
|
|
1009
|
-
set(
|
|
1010
|
-
|
|
851
|
+
set(l) {
|
|
852
|
+
s("update:modelValue", l);
|
|
1011
853
|
}
|
|
1012
|
-
}),
|
|
1013
|
-
|
|
1014
|
-
},
|
|
1015
|
-
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
-
},
|
|
1021
|
-
|
|
1022
|
-
},
|
|
1023
|
-
|
|
1024
|
-
},
|
|
1025
|
-
|
|
854
|
+
}), h = (l) => {
|
|
855
|
+
s("change", l);
|
|
856
|
+
}, g = (l) => {
|
|
857
|
+
s("visible-change", l);
|
|
858
|
+
}, c = (l) => {
|
|
859
|
+
s("remove-tag", l);
|
|
860
|
+
}, b = () => {
|
|
861
|
+
s("clear");
|
|
862
|
+
}, w = (l) => {
|
|
863
|
+
s("focus", l);
|
|
864
|
+
}, r = (l) => {
|
|
865
|
+
s("blur", l);
|
|
866
|
+
}, B = (l) => {
|
|
867
|
+
s("popup-scroll", l);
|
|
1026
868
|
};
|
|
1027
|
-
return (
|
|
869
|
+
return (l, t) => (f(), v(z(Z), _(o, {
|
|
1028
870
|
modelValue: y.value,
|
|
1029
|
-
"onUpdate:modelValue":
|
|
871
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => y.value = p),
|
|
1030
872
|
class: "yw-select",
|
|
1031
873
|
"popper-class": "yw-select-popper",
|
|
1032
|
-
onChange:
|
|
1033
|
-
onVisibleChange:
|
|
1034
|
-
onRemoveTag:
|
|
1035
|
-
onClear:
|
|
1036
|
-
onBlur:
|
|
1037
|
-
onFocus:
|
|
1038
|
-
onPopupScroll:
|
|
874
|
+
onChange: h,
|
|
875
|
+
onVisibleChange: g,
|
|
876
|
+
onRemoveTag: c,
|
|
877
|
+
onClear: b,
|
|
878
|
+
onBlur: r,
|
|
879
|
+
onFocus: w,
|
|
880
|
+
onPopupScroll: B
|
|
1039
881
|
}), {
|
|
1040
|
-
default:
|
|
1041
|
-
|
|
1042
|
-
key:
|
|
882
|
+
default: m(() => [
|
|
883
|
+
l.$slots.default ? (f(!0), M(K, { key: 0 }, x(i.value, (p, N) => (f(), v(J(p.type), _({ ref_for: !0 }, p.props, {
|
|
884
|
+
key: p.key || N
|
|
1043
885
|
}), {
|
|
1044
|
-
default:
|
|
1045
|
-
|
|
886
|
+
default: m(() => [
|
|
887
|
+
Q(X(p.children), 1)
|
|
1046
888
|
]),
|
|
1047
889
|
_: 2
|
|
1048
|
-
}, 1040))), 128)) : (
|
|
1049
|
-
key:
|
|
1050
|
-
label:
|
|
1051
|
-
value:
|
|
1052
|
-
disabled:
|
|
890
|
+
}, 1040))), 128)) : (f(!0), M(K, { key: 1 }, x(e.options, (p) => (f(), v(z(R), {
|
|
891
|
+
key: p[a.value.value],
|
|
892
|
+
label: p[a.value.label],
|
|
893
|
+
value: p[a.value.value],
|
|
894
|
+
disabled: p[a.value.disabled]
|
|
1053
895
|
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
1054
896
|
]),
|
|
1055
897
|
_: 1
|
|
1056
898
|
}, 16, ["modelValue"]));
|
|
1057
899
|
}
|
|
1058
900
|
});
|
|
1059
|
-
|
|
1060
|
-
e.component("YwSelect",
|
|
901
|
+
$.install = (e) => {
|
|
902
|
+
e.component("YwSelect", $);
|
|
1061
903
|
};
|
|
1062
|
-
const
|
|
904
|
+
const le = [L, F, j, I, $], re = {
|
|
1063
905
|
install(e) {
|
|
1064
|
-
|
|
906
|
+
le.forEach((u) => {
|
|
1065
907
|
e.use(u);
|
|
1066
908
|
});
|
|
1067
909
|
}
|
|
1068
910
|
};
|
|
1069
911
|
export {
|
|
1070
|
-
|
|
912
|
+
re as default
|
|
1071
913
|
};
|