@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta31
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/api/index.d.ts +60 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/chunks/4ZuVpQf6.mjs +478 -0
- package/chunks/B99alfW4.mjs +207 -0
- package/chunks/BQ77eAb3.mjs +71 -0
- package/chunks/BV_N8p9t.mjs +83 -0
- package/chunks/BV_P9a8o.mjs +100 -0
- package/chunks/BgDYHgyH.mjs +189 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/BmZieBZW.mjs +88 -0
- package/chunks/Br4i8stg.mjs +222 -0
- package/chunks/C3a15Ful.mjs +95 -0
- package/chunks/C44-CFi-.mjs +636 -0
- package/chunks/C4bM8miy.mjs +174 -0
- package/chunks/C9J3j0PX.mjs +93 -0
- package/chunks/Cby3mvvZ.mjs +216 -0
- package/chunks/Cc3EJjbV.mjs +25 -0
- package/chunks/Cgl-hCE5.mjs +25 -0
- package/chunks/Ci1XxmdE.mjs +51 -0
- package/chunks/CkFapoKt.mjs +8 -0
- package/chunks/CsfgUCe9.mjs +17 -0
- package/chunks/CugRu2Ka.mjs +42 -0
- package/chunks/Cy-4nmyC.mjs +106 -0
- package/chunks/D1EOkWJ7.mjs +25 -0
- package/chunks/D1G2MMMx.mjs +1360 -0
- package/chunks/DO8dVGef.mjs +98 -0
- package/chunks/DazglPJZ.mjs +180 -0
- package/chunks/Dt6gY213.mjs +62 -0
- package/chunks/DtAYXPvz.mjs +108 -0
- package/chunks/JhyiXnbd.mjs +76 -0
- package/chunks/S64sNmuR.mjs +226 -0
- package/chunks/bnRb5PUB.mjs +108 -0
- package/chunks/dM-icPM8.mjs +107 -0
- package/chunks/pxFLMMUm.mjs +110 -0
- package/chunks/q1SlJP1y.mjs +171 -0
- package/confirm-button/index.d.ts +113 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +84 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +42 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/element-dialog/index.d.ts +374 -0
- package/element-dialog/index.mjs +2 -91
- package/empty-view/index.d.ts +29 -0
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +22 -0
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +114 -0
- package/form-button/index.mjs +36 -0
- package/form-cascader/index.d.ts +486 -0
- package/form-cascader/index.mjs +2 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +295 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +273 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +423 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +226 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +389 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +217 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +327 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +94 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +283 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +321 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +542 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +350 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +339 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +229 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/form-view/index.mjs +1 -1
- package/helper/dictionary.d.ts +15 -0
- package/helper/dictionary.mjs +97 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/index.d.ts +51 -0
- package/index.mjs +51 -37
- package/month-calendar/index.d.ts +80 -0
- package/package.json +12 -7
- package/pageable-table/index.d.ts +436 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resize-observer/index.d.ts +8 -0
- package/resize-observer/index.mjs +40 -0
- package/resize-observer/style.css +1 -0
- package/resolver/index.d.ts +9 -0
- package/resolver/index.mjs +29 -0
- package/table-column/index.d.ts +160 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +85 -0
- package/table-column-def/index.mjs +11 -0
- package/table-column-filter/index.d.ts +11 -0
- package/table-column-filterable/index.d.ts +10 -0
- package/table-view/index.d.ts +2 -0
- package/table-view/index.mjs +1 -1
- package/toolbar/index.d.ts +129 -0
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +77 -0
- package/toolbar-button/index.mjs +1 -8
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +226 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/constants.mjs +0 -4
- package/input/style.css +0 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
|
+
import { ElRadio as s, ElRadioButton as c, ElRadioGroup as l } from "element-plus/es";
|
|
5
|
+
//#region src/components/form/props/radio-group.ts
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [
|
|
9
|
+
String,
|
|
10
|
+
Number,
|
|
11
|
+
Boolean
|
|
12
|
+
],
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "default"
|
|
16
|
+
},
|
|
17
|
+
validateEvent: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
textColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "#ffffff"
|
|
24
|
+
},
|
|
25
|
+
fill: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "#409eff"
|
|
28
|
+
},
|
|
29
|
+
ariaLabel: String,
|
|
30
|
+
name: String,
|
|
31
|
+
id: String,
|
|
32
|
+
label: String,
|
|
33
|
+
options: Array,
|
|
34
|
+
props: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({
|
|
37
|
+
value: "value",
|
|
38
|
+
label: "label",
|
|
39
|
+
disabled: "disabled"
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "radio"
|
|
45
|
+
}
|
|
46
|
+
}, d = {
|
|
47
|
+
modelValue: !0,
|
|
48
|
+
disabled: !0,
|
|
49
|
+
type: !0,
|
|
50
|
+
options: !0
|
|
51
|
+
}, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
54
|
+
function m(e) {
|
|
55
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/form/FormRadioGroup.vue
|
|
59
|
+
var h = {
|
|
60
|
+
name: "FormRadioGroup",
|
|
61
|
+
inheritAttrs: !1,
|
|
62
|
+
props: { ...u },
|
|
63
|
+
emits: {
|
|
64
|
+
...t,
|
|
65
|
+
change: null
|
|
66
|
+
},
|
|
67
|
+
setup(t, { emit: n, slots: i, attrs: u }) {
|
|
68
|
+
let d = o(t, "modelValue"), { render: h, disabled: g, autoBind: _ } = e(t, {
|
|
69
|
+
emit: n,
|
|
70
|
+
slots: i,
|
|
71
|
+
attrs: u,
|
|
72
|
+
events: f,
|
|
73
|
+
predicate: p,
|
|
74
|
+
messagePrefix: "请选择"
|
|
75
|
+
});
|
|
76
|
+
return () => h({ vNodes: r(l, a(_.value, {
|
|
77
|
+
modelValue: d.value,
|
|
78
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
79
|
+
disabled: g.value
|
|
80
|
+
}), {
|
|
81
|
+
...i,
|
|
82
|
+
default: i.default || (() => {
|
|
83
|
+
var e;
|
|
84
|
+
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: i }) => t.type === "button" ? r(c, {
|
|
85
|
+
key: e,
|
|
86
|
+
value: e,
|
|
87
|
+
disabled: i
|
|
88
|
+
}, m(n) ? n : { default: () => [n] }) : r(s, {
|
|
89
|
+
key: e,
|
|
90
|
+
value: e,
|
|
91
|
+
disabled: i
|
|
92
|
+
}, m(n) ? n : { default: () => [n] }));
|
|
93
|
+
})
|
|
94
|
+
}) });
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { h as t };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { s as e } from "./BQ77eAb3.mjs";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withModifiers as y } from "vue";
|
|
3
|
+
import { ElDialog as b } from "element-plus/es";
|
|
4
|
+
//#region src/components/dialog/props.ts
|
|
5
|
+
var x = {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
title: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
width: [String, Number],
|
|
15
|
+
fullscreen: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
top: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
modal: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
modalPenetrable: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
modalClass: String,
|
|
32
|
+
headerClass: String,
|
|
33
|
+
bodyClass: String,
|
|
34
|
+
footerClass: String,
|
|
35
|
+
appendToBody: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
appendTo: [String, Object],
|
|
40
|
+
lockScroll: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
openDelay: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 0
|
|
47
|
+
},
|
|
48
|
+
closeDelay: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 0
|
|
51
|
+
},
|
|
52
|
+
closeOnClickModal: { type: Boolean },
|
|
53
|
+
closeOnPressEscape: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !0
|
|
56
|
+
},
|
|
57
|
+
showClose: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
beforeClose: Function,
|
|
62
|
+
draggable: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
overflow: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
center: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !1
|
|
73
|
+
},
|
|
74
|
+
alignCenter: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
},
|
|
78
|
+
destroyOnClose: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
closeIcon: [String, Object],
|
|
83
|
+
zIndex: Number,
|
|
84
|
+
headerAriaLevel: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "2"
|
|
87
|
+
},
|
|
88
|
+
transition: [String, Object],
|
|
89
|
+
customClass: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: ""
|
|
92
|
+
},
|
|
93
|
+
height: String,
|
|
94
|
+
embed: Boolean,
|
|
95
|
+
showFullscreen: Boolean,
|
|
96
|
+
showFullScreen: Boolean
|
|
97
|
+
}, S = {
|
|
98
|
+
embed: !0,
|
|
99
|
+
height: !0,
|
|
100
|
+
showFullscreen: !0,
|
|
101
|
+
showFullScreen: !0,
|
|
102
|
+
fullscreen: !0,
|
|
103
|
+
showClose: !0
|
|
104
|
+
}, C = [
|
|
105
|
+
"open",
|
|
106
|
+
"opened",
|
|
107
|
+
"close",
|
|
108
|
+
"closed",
|
|
109
|
+
"open-auto-focus",
|
|
110
|
+
"close-auto-focus"
|
|
111
|
+
], w = (e) => S[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
|
|
112
|
+
__name: "ElementDialog",
|
|
113
|
+
props: /* @__PURE__ */ c({ ...x }, {
|
|
114
|
+
modelValue: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
modelModifiers: {}
|
|
119
|
+
}),
|
|
120
|
+
emits: /* @__PURE__ */ c({
|
|
121
|
+
open: null,
|
|
122
|
+
opened: null,
|
|
123
|
+
close: null,
|
|
124
|
+
closed: null,
|
|
125
|
+
"open-auto-focus": null,
|
|
126
|
+
"close-auto-focus": null,
|
|
127
|
+
"toggle-fullscreen": null
|
|
128
|
+
}, ["update:modelValue"]),
|
|
129
|
+
setup(c, { expose: x, emit: S }) {
|
|
130
|
+
let D = g(c, "modelValue"), O = c, k = S, A = e(O, {
|
|
131
|
+
emit: k,
|
|
132
|
+
events: C,
|
|
133
|
+
predicate: w
|
|
134
|
+
}), j = _("dialog"), M = f(O.fullscreen), N = () => {
|
|
135
|
+
M.value = !M.value, k("toggle-fullscreen", M.value);
|
|
136
|
+
}, P = t(() => M.value ? "100%" : O.height), F = s(), I = () => {
|
|
137
|
+
O.embed ? (F.parent.emit("update:visible", !1), F.parent.emit("update:modelValue", !1)) : j.value.handleClose();
|
|
138
|
+
};
|
|
139
|
+
return x({
|
|
140
|
+
close: I,
|
|
141
|
+
hide: I
|
|
142
|
+
}), (e, t) => {
|
|
143
|
+
let s = b;
|
|
144
|
+
return d(), n(s, l({
|
|
145
|
+
ref: "dialog",
|
|
146
|
+
modelValue: D.value,
|
|
147
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => D.value = e)
|
|
148
|
+
}, h(A), {
|
|
149
|
+
"show-close": !1,
|
|
150
|
+
fullscreen: h(M),
|
|
151
|
+
style: { "--dialog-body-height": h(P) }
|
|
152
|
+
}), o({
|
|
153
|
+
header: v(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: u(["dialog-header-button", {
|
|
156
|
+
"el-icon-full-screen": !e.fullscreen,
|
|
157
|
+
"el-icon-copy-document": e.fullscreen
|
|
158
|
+
}]),
|
|
159
|
+
onClick: y(N, ["stop"])
|
|
160
|
+
}, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: "dialog-header-button el-icon-close",
|
|
163
|
+
onClick: y(I, ["stop"])
|
|
164
|
+
})) : r("v-if", !0)])])]),
|
|
165
|
+
default: v(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
|
|
166
|
+
_: 2
|
|
167
|
+
}, [e.$slots.footer ? {
|
|
168
|
+
name: "footer",
|
|
169
|
+
fn: v(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: I })]),
|
|
170
|
+
key: "0"
|
|
171
|
+
} : void 0]), 1040, [
|
|
172
|
+
"modelValue",
|
|
173
|
+
"fullscreen",
|
|
174
|
+
"style"
|
|
175
|
+
]);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
//#endregion
|
|
180
|
+
export { D as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n, t as r } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { t as i } from "./D1G2MMMx.mjs";
|
|
4
|
+
import { createVNode as a, mergeProps as o, ref as s } from "vue";
|
|
5
|
+
import { ElInput as c, ElPopover as l } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/props/input-cron.ts
|
|
7
|
+
var u = {
|
|
8
|
+
...n,
|
|
9
|
+
...r,
|
|
10
|
+
modelValue: [String, Number]
|
|
11
|
+
}, d = {
|
|
12
|
+
readonly: !0,
|
|
13
|
+
placeholder: !0,
|
|
14
|
+
modelValue: !0,
|
|
15
|
+
prefix: !0,
|
|
16
|
+
suffix: !0
|
|
17
|
+
}, f = [
|
|
18
|
+
"click",
|
|
19
|
+
"blur",
|
|
20
|
+
"focus",
|
|
21
|
+
"change"
|
|
22
|
+
], p = (e) => n[e] === void 0 && d[e] !== !0, m = {
|
|
23
|
+
name: "FormInputCronExpression",
|
|
24
|
+
props: { ...u },
|
|
25
|
+
emits: { ...t },
|
|
26
|
+
setup(t, { emit: n, slots: r, attrs: u }) {
|
|
27
|
+
let d = s(!1), { emitInput: m, render: h, placeholder: g, disabled: _, autoBind: v } = e(t, {
|
|
28
|
+
emit: n,
|
|
29
|
+
slots: r,
|
|
30
|
+
attrs: u,
|
|
31
|
+
events: f,
|
|
32
|
+
predicate: p
|
|
33
|
+
}), y = () => {
|
|
34
|
+
d.value = !0;
|
|
35
|
+
}, b = () => {
|
|
36
|
+
d.value = !1;
|
|
37
|
+
};
|
|
38
|
+
return () => h({ vNodes: a("div", { class: "cron" }, [a(l, {
|
|
39
|
+
placement: "bottom-start",
|
|
40
|
+
disabled: _.value,
|
|
41
|
+
modelValue: d.value,
|
|
42
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
43
|
+
"popper-class": "cron-popover"
|
|
44
|
+
}, {
|
|
45
|
+
default: () => a(i, o(v.value, {
|
|
46
|
+
i18n: "cn",
|
|
47
|
+
expression: t.modelValue,
|
|
48
|
+
onChange: m,
|
|
49
|
+
onClose: b
|
|
50
|
+
}), null),
|
|
51
|
+
reference: () => a(c, {
|
|
52
|
+
modelValue: t.modelValue,
|
|
53
|
+
readonly: !0,
|
|
54
|
+
disabled: _.value,
|
|
55
|
+
placeholder: g.value,
|
|
56
|
+
onClick: y
|
|
57
|
+
}, null)
|
|
58
|
+
})]) });
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { m as t };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { computed as r, createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
4
|
+
import { ElCheckbox as s, ElCheckboxButton as c, ElCheckboxGroup as l } from "element-plus/es";
|
|
5
|
+
//#region src/components/form/props/checkbox-group.ts
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
},
|
|
12
|
+
size: String,
|
|
13
|
+
min: Number,
|
|
14
|
+
max: Number,
|
|
15
|
+
ariaLabel: String,
|
|
16
|
+
textColor: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "#ffffff"
|
|
19
|
+
},
|
|
20
|
+
fill: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "#409eff"
|
|
23
|
+
},
|
|
24
|
+
tag: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "div"
|
|
27
|
+
},
|
|
28
|
+
validateEvent: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
label: String,
|
|
33
|
+
options: Array,
|
|
34
|
+
props: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({
|
|
37
|
+
value: "value",
|
|
38
|
+
label: "label",
|
|
39
|
+
disabled: "disabled"
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "checkbox"
|
|
45
|
+
},
|
|
46
|
+
stringMode: Boolean,
|
|
47
|
+
delimiter: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ","
|
|
50
|
+
}
|
|
51
|
+
}, d = {
|
|
52
|
+
modelValue: !0,
|
|
53
|
+
type: !0,
|
|
54
|
+
options: !0
|
|
55
|
+
}, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
|
|
58
|
+
function m(e) {
|
|
59
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/form/FormCheckBoxGroup.vue
|
|
63
|
+
var h = {
|
|
64
|
+
name: "FormCheckBoxGroup",
|
|
65
|
+
inheritAttrs: !1,
|
|
66
|
+
props: { ...u },
|
|
67
|
+
emits: {
|
|
68
|
+
...t,
|
|
69
|
+
change: null
|
|
70
|
+
},
|
|
71
|
+
setup(t, { emit: n, slots: a, attrs: u }) {
|
|
72
|
+
let { emitInput: d, render: h, disabled: g, autoBind: _ } = e(t, {
|
|
73
|
+
emit: n,
|
|
74
|
+
slots: a,
|
|
75
|
+
attrs: u,
|
|
76
|
+
events: f,
|
|
77
|
+
predicate: p,
|
|
78
|
+
messagePrefix: "请选择"
|
|
79
|
+
}), v = (e) => d(t.stringMode ? e.join(t.delimiter) : e), y = r(() => {
|
|
80
|
+
if (t.stringMode) {
|
|
81
|
+
var e;
|
|
82
|
+
return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
|
|
83
|
+
}
|
|
84
|
+
return t.modelValue || [];
|
|
85
|
+
});
|
|
86
|
+
return () => h({ vNodes: i(l, o(_.value, {
|
|
87
|
+
modelValue: y.value,
|
|
88
|
+
disabled: g.value,
|
|
89
|
+
"onUpdate:modelValue": v
|
|
90
|
+
}), {
|
|
91
|
+
...a,
|
|
92
|
+
default: a.default || (() => {
|
|
93
|
+
var e;
|
|
94
|
+
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" ? i(c, {
|
|
95
|
+
key: e,
|
|
96
|
+
value: e,
|
|
97
|
+
disabled: r
|
|
98
|
+
}, m(n) ? n : { default: () => [n] }) : i(s, {
|
|
99
|
+
key: e,
|
|
100
|
+
value: e,
|
|
101
|
+
disabled: r
|
|
102
|
+
}, m(n) ? n : { default: () => [n] }));
|
|
103
|
+
})
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { h as t };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
+
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
+
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
+
import { ElCheckbox as o } from "element-plus/es";
|
|
5
|
+
//#region src/components/form/props/checkbox.ts
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [
|
|
9
|
+
String,
|
|
10
|
+
Number,
|
|
11
|
+
Boolean
|
|
12
|
+
],
|
|
13
|
+
value: [
|
|
14
|
+
String,
|
|
15
|
+
Number,
|
|
16
|
+
Boolean,
|
|
17
|
+
Object
|
|
18
|
+
],
|
|
19
|
+
label: [
|
|
20
|
+
String,
|
|
21
|
+
Number,
|
|
22
|
+
Boolean,
|
|
23
|
+
Object
|
|
24
|
+
],
|
|
25
|
+
trueValue: [String, Number],
|
|
26
|
+
falseValue: [String, Number],
|
|
27
|
+
border: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
size: String,
|
|
32
|
+
name: String,
|
|
33
|
+
checked: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
indeterminate: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
41
|
+
validateEvent: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
tabindex: [String, Number],
|
|
46
|
+
id: String,
|
|
47
|
+
ariaControls: String,
|
|
48
|
+
ariaLabel: String,
|
|
49
|
+
trueLabel: [String, Number],
|
|
50
|
+
falseLabel: [String, Number],
|
|
51
|
+
controls: String
|
|
52
|
+
}, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
53
|
+
name: "FormCheckbox",
|
|
54
|
+
inheritAttrs: !1,
|
|
55
|
+
props: { ...s },
|
|
56
|
+
emits: {
|
|
57
|
+
...t,
|
|
58
|
+
change: null
|
|
59
|
+
},
|
|
60
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
61
|
+
let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
|
|
62
|
+
emit: n,
|
|
63
|
+
slots: s,
|
|
64
|
+
attrs: c,
|
|
65
|
+
events: l,
|
|
66
|
+
predicate: u
|
|
67
|
+
});
|
|
68
|
+
return () => f({ vNodes: r(o, i(m.value, {
|
|
69
|
+
modelValue: d.value,
|
|
70
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
71
|
+
disabled: p.value
|
|
72
|
+
}), { default: s.default }) });
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { d as t };
|