@web-utils/form-ui 1.0.0-beta31 → 1.0.0-beta33
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/chunks/{Cc3EJjbV.mjs → 1cDNhlSV.mjs} +2 -2
- package/chunks/{C4bM8miy.mjs → A3sHIRQ_.mjs} +2 -3
- package/chunks/{Ci1XxmdE.mjs → BLRY0zkF.mjs} +3 -3
- package/chunks/{Cby3mvvZ.mjs → BLWwTutr.mjs} +2 -2
- package/chunks/{BgDYHgyH.mjs → BTS_zTkz.mjs} +1 -1
- package/chunks/BX-cVxlK.mjs +102 -0
- package/chunks/BYAy19s4.mjs +113 -0
- package/chunks/BmacSnUz.mjs +657 -0
- package/chunks/BvsmTC3G.mjs +229 -0
- package/chunks/{Dt6gY213.mjs → BwdWZEjT.mjs} +5 -5
- package/chunks/{bnRb5PUB.mjs → CGJkMYZ4.mjs} +5 -5
- package/chunks/CLn0r4lV.mjs +177 -0
- package/chunks/{Cgl-hCE5.mjs → CNskrN5I.mjs} +2 -2
- package/chunks/{D1G2MMMx.mjs → CWfUPCtS.mjs} +4 -4
- package/chunks/{4ZuVpQf6.mjs → CnAEuI_c.mjs} +1 -1
- package/chunks/{Cy-4nmyC.mjs → Cr1vBYne.mjs} +4 -4
- package/chunks/{BV_P9a8o.mjs → D5_ctQqL.mjs} +2 -2
- package/chunks/{CsfgUCe9.mjs → D7hD-ppq.mjs} +1 -1
- package/chunks/DFsI7Y6h.mjs +197 -0
- package/chunks/{B99alfW4.mjs → DJKE5P39.mjs} +2 -2
- package/chunks/DQKi5eEl.mjs +166 -0
- package/chunks/{BmZieBZW.mjs → DQxPzCsy.mjs} +2 -2
- package/chunks/DcbnHU8K.mjs +145 -0
- package/chunks/{DazglPJZ.mjs → Dgyjc3LT.mjs} +1 -1
- package/chunks/{JhyiXnbd.mjs → DistOy_O.mjs} +8 -4
- package/chunks/{C44-CFi-.mjs → ZXCLnZFa.mjs} +4 -4
- package/chunks/{D1EOkWJ7.mjs → _dm2lLNL.mjs} +2 -2
- package/chunks/{CugRu2Ka.mjs → axr9InkL.mjs} +3 -3
- package/chunks/{C3a15Ful.mjs → iWQD3xvX.mjs} +2 -2
- package/chunks/uYaz9cwr.mjs +336 -0
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +6 -6
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +5 -5
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +78 -7
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +4 -2
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +63 -11
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +3 -3
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +3 -3
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +3 -3
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +5 -3
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +3 -3
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-group/index.d.ts +0 -2
- package/form-item-group/index.mjs +1 -1
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +91 -4
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +82 -10
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +2 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +4 -4
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +7 -7
- package/iframe-window/index.mjs +1 -1
- package/index.d.ts +2 -1
- package/index.mjs +47 -46
- package/month-calendar/index.d.ts +1 -1
- package/package.json +1 -1
- package/pageable-table/index.d.ts +4 -4
- package/pageable-table/index.mjs +1 -1
- package/resize-observer/index.mjs +2 -2
- package/table-column/index.d.ts +4 -4
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +340 -1
- package/table-view/index.mjs +452 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +136 -24
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/year-calendar/index.mjs +1 -1
- package/chunks/BQ77eAb3.mjs +0 -71
- package/chunks/Br4i8stg.mjs +0 -222
- package/chunks/DO8dVGef.mjs +0 -98
- package/chunks/DtAYXPvz.mjs +0 -108
- package/chunks/S64sNmuR.mjs +0 -226
- package/chunks/dM-icPM8.mjs +0 -107
- package/chunks/pxFLMMUm.mjs +0 -110
- package/chunks/q1SlJP1y.mjs +0 -171
- /package/chunks/{CkFapoKt.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{C9J3j0PX.mjs → BW6iY7Q7.mjs} +0 -0
- /package/chunks/{BV_N8p9t.mjs → DiE4GJtU.mjs} +0 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { i as e, n as t } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n } from "./D7hD-ppq.mjs";
|
|
3
|
+
import { computed as r, createVNode as i, mergeProps as a } from "vue";
|
|
4
|
+
import { ElDatePicker as o } from "element-plus/es";
|
|
5
|
+
import { toDate as s } from "@web-utils/integrations/dayjs";
|
|
6
|
+
//#region src/components/form/props/date.ts
|
|
7
|
+
var c = {
|
|
8
|
+
...n,
|
|
9
|
+
modelValue: [
|
|
10
|
+
Number,
|
|
11
|
+
String,
|
|
12
|
+
Date,
|
|
13
|
+
Array
|
|
14
|
+
],
|
|
15
|
+
readonly: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
size: String,
|
|
20
|
+
editable: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
clearable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
startPlaceholder: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "开始日期"
|
|
35
|
+
},
|
|
36
|
+
endPlaceholder: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "结束日期"
|
|
39
|
+
},
|
|
40
|
+
type: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "date"
|
|
43
|
+
},
|
|
44
|
+
format: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "YYYY-MM-DD"
|
|
47
|
+
},
|
|
48
|
+
popperClass: String,
|
|
49
|
+
popperStyle: [String, Object],
|
|
50
|
+
popperOptions: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: () => ({})
|
|
53
|
+
},
|
|
54
|
+
rangeSeparator: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "至"
|
|
57
|
+
},
|
|
58
|
+
defaultValue: Object,
|
|
59
|
+
defaultTime: Object,
|
|
60
|
+
valueFormat: String,
|
|
61
|
+
id: [String, Array],
|
|
62
|
+
name: {
|
|
63
|
+
type: [String, Array],
|
|
64
|
+
default: ""
|
|
65
|
+
},
|
|
66
|
+
unlinkPanels: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
prefixIcon: [String, Object],
|
|
71
|
+
clearIcon: [String, Object],
|
|
72
|
+
validateEvent: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !0
|
|
75
|
+
},
|
|
76
|
+
disabledDate: Function,
|
|
77
|
+
shortcuts: {
|
|
78
|
+
type: Array,
|
|
79
|
+
default: () => []
|
|
80
|
+
},
|
|
81
|
+
cellClassName: Function,
|
|
82
|
+
teleported: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !0
|
|
85
|
+
},
|
|
86
|
+
emptyValues: Array,
|
|
87
|
+
valueOnClear: [
|
|
88
|
+
String,
|
|
89
|
+
Number,
|
|
90
|
+
Boolean,
|
|
91
|
+
Function
|
|
92
|
+
],
|
|
93
|
+
fallbackPlacements: {
|
|
94
|
+
type: Array,
|
|
95
|
+
default: () => [
|
|
96
|
+
"bottom",
|
|
97
|
+
"top",
|
|
98
|
+
"right",
|
|
99
|
+
"left"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
placement: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: "bottom"
|
|
105
|
+
},
|
|
106
|
+
showFooter: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
},
|
|
110
|
+
showConfirm: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !0
|
|
113
|
+
},
|
|
114
|
+
showWeekNumber: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
automaticDropdown: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: !0
|
|
121
|
+
},
|
|
122
|
+
split: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: !0
|
|
125
|
+
},
|
|
126
|
+
startDate: String,
|
|
127
|
+
endDate: String,
|
|
128
|
+
start: String,
|
|
129
|
+
end: String,
|
|
130
|
+
year: Boolean,
|
|
131
|
+
month: Boolean,
|
|
132
|
+
dates: Boolean,
|
|
133
|
+
week: Boolean,
|
|
134
|
+
dateTime: Boolean,
|
|
135
|
+
dateTimeRange: Boolean,
|
|
136
|
+
dateRange: Boolean,
|
|
137
|
+
monthRange: Boolean,
|
|
138
|
+
miniDate: String,
|
|
139
|
+
maxDate: String
|
|
140
|
+
}, l = {
|
|
141
|
+
modelValue: !0,
|
|
142
|
+
name: !0,
|
|
143
|
+
emptyValues: !0,
|
|
144
|
+
type: !0,
|
|
145
|
+
valueOnClear: !0
|
|
146
|
+
}, u = ["change"], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
|
|
147
|
+
name: "FormDatePicker",
|
|
148
|
+
inheritAttrs: !1,
|
|
149
|
+
props: { ...c },
|
|
150
|
+
emits: {
|
|
151
|
+
...t,
|
|
152
|
+
"update:startDate": null,
|
|
153
|
+
"update:endDate": null
|
|
154
|
+
},
|
|
155
|
+
setup(t, { emit: n, slots: c, attrs: l }) {
|
|
156
|
+
let { emitInput: f, render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
|
|
157
|
+
emit: n,
|
|
158
|
+
slots: c,
|
|
159
|
+
attrs: l,
|
|
160
|
+
events: u,
|
|
161
|
+
predicate: d,
|
|
162
|
+
messagePrefix: "请选择"
|
|
163
|
+
}), _ = r(() => t.dateTimeRange || t.dateRange || t.monthRange), v = r(() => t.year ? "YYYY" : t.month || t.monthRange ? "YYYY-MM" : t.week ? "YYYY 第 WW 周" : t.dateTime || t.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = r(() => t.year ? "year" : t.month ? "month" : t.dates ? "dates" : t.week ? "week" : t.dateTime ? "datetime" : t.dateTimeRange ? "datetimerange" : t.dateRange ? "daterange" : t.monthRange ? "monthrange" : "date"), b = r(() => {
|
|
164
|
+
if (t.miniDate) {
|
|
165
|
+
let e = s(t.miniDate);
|
|
166
|
+
return e.setDate(e.getDate() - 1), e;
|
|
167
|
+
} else return null;
|
|
168
|
+
}), x = r(() => t.maxDate ? s(t.maxDate) : null), S = (e) => {
|
|
169
|
+
if (!b.value && !x.value) return !1;
|
|
170
|
+
let t = e.getTime();
|
|
171
|
+
return b.value && !x.value ? t <= b.value.getTime() : !b.value && x.value ? t >= x.value.getTime() : b.value && x.value ? !(t > b.value.getTime() && t <= x.value.getTime()) : !1;
|
|
172
|
+
}, C = (e, t) => {
|
|
173
|
+
n("update:startDate", e), n("update:endDate", t);
|
|
174
|
+
}, w = (e) => {
|
|
175
|
+
_.value && t.split ? e ? C(e[0], e[1]) : C(null, null) : f(e);
|
|
176
|
+
}, T = r(() => _.value && t.split ? [t.startDate, t.endDate] : t.modelValue), E = r(() => t.week ? "YYYY-MM-DD" : t.valueFormat || v.value), D = r(() => t.format || v.value);
|
|
177
|
+
return () => p({ vNodes: i(o, a({ style: "width: 100%" }, g.value, {
|
|
178
|
+
type: y.value,
|
|
179
|
+
modelValue: T.value,
|
|
180
|
+
disabled: h.value,
|
|
181
|
+
placeholder: m.value,
|
|
182
|
+
format: D.value,
|
|
183
|
+
disabledDate: S,
|
|
184
|
+
"value-format": E.value,
|
|
185
|
+
"onUpdate:modelValue": w
|
|
186
|
+
}), {
|
|
187
|
+
default: c.default,
|
|
188
|
+
"range-separator": c["range-separator"],
|
|
189
|
+
"pre-month": c["pre-month"],
|
|
190
|
+
"next-month": c["next-month"],
|
|
191
|
+
"pre-year": c["pre-year"],
|
|
192
|
+
"next-year": c["next-year"]
|
|
193
|
+
}) });
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
//#endregion
|
|
197
|
+
export { f as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as e } from "./BX-cVxlK.mjs";
|
|
2
2
|
import { goBack as t, hasAuthority as n } from "../api/index.mjs";
|
|
3
3
|
import { toolbarContextKey as r } from "../constants/index.mjs";
|
|
4
|
-
import { t as i } from "./
|
|
4
|
+
import { t as i } from "./DQKi5eEl.mjs";
|
|
5
5
|
import { NOOP as a, capitalize as o } from "@web-utils/core";
|
|
6
6
|
import { Comment as s, createVNode as c } from "vue";
|
|
7
7
|
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
|
+
import { hasAuthority as t } from "../api/index.mjs";
|
|
3
|
+
import { toolbarContextKey as n } from "../constants/index.mjs";
|
|
4
|
+
import { isArray as r, isFunction as i } from "@web-utils/core";
|
|
5
|
+
import { computed as a, createVNode as o, defineComponent as s, getCurrentInstance as c, inject as l, mergeProps as u, ref as d } from "vue";
|
|
6
|
+
import { ElMessage as f, ElMessageBox as p } from "element-plus";
|
|
7
|
+
import { ElButton as m } from "element-plus/es";
|
|
8
|
+
//#region src/components/toolbar/button.ts
|
|
9
|
+
var h = {
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "default"
|
|
13
|
+
},
|
|
14
|
+
type: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "default"
|
|
17
|
+
},
|
|
18
|
+
plain: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
bg: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
link: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
round: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
circle: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
dashed: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
loading: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
loadingIcon: [String, Object],
|
|
51
|
+
disabled: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
icon: [String, Object],
|
|
56
|
+
autofocus: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !1
|
|
59
|
+
},
|
|
60
|
+
nativeType: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: "button"
|
|
63
|
+
},
|
|
64
|
+
autoInsertSpace: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !1
|
|
67
|
+
},
|
|
68
|
+
color: String,
|
|
69
|
+
dark: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !1
|
|
72
|
+
},
|
|
73
|
+
tag: [String, Object],
|
|
74
|
+
label: String,
|
|
75
|
+
loadable: Boolean,
|
|
76
|
+
footer: Boolean,
|
|
77
|
+
primary: Boolean,
|
|
78
|
+
warning: Boolean,
|
|
79
|
+
privilege: String,
|
|
80
|
+
condition: { type: [
|
|
81
|
+
Array,
|
|
82
|
+
Function,
|
|
83
|
+
Boolean
|
|
84
|
+
] },
|
|
85
|
+
conditionTips: String,
|
|
86
|
+
confirm: Boolean,
|
|
87
|
+
confirmTips: String,
|
|
88
|
+
beforeExecute: Function,
|
|
89
|
+
afterExecute: Function,
|
|
90
|
+
route: [String, Object],
|
|
91
|
+
title: String,
|
|
92
|
+
cancelButtonText: String,
|
|
93
|
+
confirmButtonText: String
|
|
94
|
+
}, g = {
|
|
95
|
+
icon: !0,
|
|
96
|
+
type: !0,
|
|
97
|
+
text: !0,
|
|
98
|
+
title: !0,
|
|
99
|
+
disabled: !0,
|
|
100
|
+
loading: !0
|
|
101
|
+
}, _ = (e) => g[e] !== !0, v = /* @__PURE__ */ s({
|
|
102
|
+
name: "ToolbarButton",
|
|
103
|
+
inheritAttrs: !1,
|
|
104
|
+
props: { ...h },
|
|
105
|
+
setup(s, { attrs: h, slots: g }) {
|
|
106
|
+
let v = c(), y = l(n, null), b = d(!1), x = a(() => s.privilege ? t(s.privilege) : !0), S = async (e) => {
|
|
107
|
+
try {
|
|
108
|
+
if (i(s.beforeExecute) && await s.beforeExecute() === !1) return;
|
|
109
|
+
if (s.conditionTips) {
|
|
110
|
+
let e;
|
|
111
|
+
if (e = r(s.condition) ? s.condition.length <= 0 : i(s.condition) ? !s.condition() : !s.condition, e) {
|
|
112
|
+
f.warning(s.conditionTips);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (s.confirm || s.confirmTips) try {
|
|
117
|
+
await p.confirm(s.confirmTips || "你确定要删除该记录吗?", "系统提示", {
|
|
118
|
+
type: "warning",
|
|
119
|
+
distinguishCancelAndClose: !0,
|
|
120
|
+
cancelButtonText: s.cancelButtonText,
|
|
121
|
+
confirmButtonText: s.confirmButtonText
|
|
122
|
+
});
|
|
123
|
+
} catch (e) {
|
|
124
|
+
if (e === "cancel") {
|
|
125
|
+
let { onCancel: t } = h;
|
|
126
|
+
i(t) && await t(e);
|
|
127
|
+
} else if (e === "close") {
|
|
128
|
+
let { onClose: t } = h;
|
|
129
|
+
i(t) && await t(e);
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
b.value = !0;
|
|
134
|
+
let n;
|
|
135
|
+
if (s.route) {
|
|
136
|
+
var t;
|
|
137
|
+
await ((t = v.proxy.$router) == null ? void 0 : t.push(s.route));
|
|
138
|
+
} else {
|
|
139
|
+
let { onClick: t } = h;
|
|
140
|
+
if (i(t)) try {
|
|
141
|
+
n = await t(e);
|
|
142
|
+
} catch {}
|
|
143
|
+
}
|
|
144
|
+
b.value = !1, i(s.afterExecute) && await s.afterExecute(n);
|
|
145
|
+
} catch {}
|
|
146
|
+
}, C = a(() => s.text ? !0 : s.type === "text"), w = a(() => {
|
|
147
|
+
if (!C.value) return s.primary ? "primary" : s.warning ? "warning" : s.type;
|
|
148
|
+
}), T = e(s, { predicate: _ });
|
|
149
|
+
return () => x.value ? o(m, u(T.value, {
|
|
150
|
+
title: s.footer || y != null && y.footer ? null : s.title,
|
|
151
|
+
disabled: s.disabled || b.value,
|
|
152
|
+
loading: s.loadable ? b.value : !1,
|
|
153
|
+
type: w.value,
|
|
154
|
+
text: C.value,
|
|
155
|
+
class: h.class,
|
|
156
|
+
style: h.style,
|
|
157
|
+
onClick: S
|
|
158
|
+
}), {
|
|
159
|
+
default: !s.circle && (s.label || g.default) ? () => g.default ? g.default() : s.label : null,
|
|
160
|
+
loading: g.loading,
|
|
161
|
+
icon: g.icon ? g.icon : s.icon ? () => o("i", { class: s.icon }, null) : null
|
|
162
|
+
}) : null;
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { v as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n } from "./D7hD-ppq.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElRate as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/rate.ts
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { i as e, n as t } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n } from "./D7hD-ppq.mjs";
|
|
3
|
+
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
|
+
import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
|
|
5
|
+
import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/props/radio-group.ts
|
|
7
|
+
var f = {
|
|
8
|
+
...n,
|
|
9
|
+
modelValue: [
|
|
10
|
+
String,
|
|
11
|
+
Number,
|
|
12
|
+
Boolean
|
|
13
|
+
],
|
|
14
|
+
size: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "default"
|
|
17
|
+
},
|
|
18
|
+
validateEvent: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !0
|
|
21
|
+
},
|
|
22
|
+
textColor: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "#ffffff"
|
|
25
|
+
},
|
|
26
|
+
fill: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "#409eff"
|
|
29
|
+
},
|
|
30
|
+
ariaLabel: String,
|
|
31
|
+
name: String,
|
|
32
|
+
id: String,
|
|
33
|
+
options: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => ({
|
|
40
|
+
value: "value",
|
|
41
|
+
label: "label",
|
|
42
|
+
disabled: "disabled"
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
type: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "radio"
|
|
48
|
+
},
|
|
49
|
+
border: Boolean,
|
|
50
|
+
gender: Boolean,
|
|
51
|
+
overFlow: Boolean,
|
|
52
|
+
confirm: Boolean,
|
|
53
|
+
trigger: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: "change"
|
|
56
|
+
},
|
|
57
|
+
labelProp: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "name"
|
|
60
|
+
},
|
|
61
|
+
valueProp: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: "code"
|
|
64
|
+
},
|
|
65
|
+
english: Boolean,
|
|
66
|
+
chinese: Boolean,
|
|
67
|
+
typing: Boolean,
|
|
68
|
+
classic: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !0
|
|
71
|
+
},
|
|
72
|
+
fillRow: Boolean,
|
|
73
|
+
ellipsis: Boolean,
|
|
74
|
+
inline: Boolean,
|
|
75
|
+
allowCancel: Boolean,
|
|
76
|
+
radioType: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "radio"
|
|
79
|
+
},
|
|
80
|
+
dictType: String
|
|
81
|
+
}, p = {
|
|
82
|
+
modelValue: !0,
|
|
83
|
+
disabled: !0,
|
|
84
|
+
type: !0,
|
|
85
|
+
options: !0
|
|
86
|
+
}, m = ["change"], h = (e) => n[e] === void 0 && p[e] !== !0;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
89
|
+
function g(e) {
|
|
90
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/components/form/FormRadioGroup.vue
|
|
94
|
+
var _ = {
|
|
95
|
+
name: "FormRadioGroup",
|
|
96
|
+
inheritAttrs: !1,
|
|
97
|
+
props: { ...f },
|
|
98
|
+
emits: {
|
|
99
|
+
...t,
|
|
100
|
+
change: null
|
|
101
|
+
},
|
|
102
|
+
setup(t, { emit: n, slots: o, attrs: f }) {
|
|
103
|
+
let p = c(t, "modelValue"), { render: _, disabled: v, autoBind: y } = e(t, {
|
|
104
|
+
emit: n,
|
|
105
|
+
slots: o,
|
|
106
|
+
attrs: f,
|
|
107
|
+
events: m,
|
|
108
|
+
predicate: h,
|
|
109
|
+
messagePrefix: "请选择"
|
|
110
|
+
}), b = i(() => t.classic ? "label" : t.labelProp), x = i(() => t.classic ? "value" : t.valueProp), { dictItems: S } = r(t), C = i(() => t.dictType ? S.value : t.gender ? [{
|
|
111
|
+
[b.value]: "男",
|
|
112
|
+
[x.value]: t.chinese ? "男" : t.typing ? 1 : "1"
|
|
113
|
+
}, {
|
|
114
|
+
[b.value]: "女",
|
|
115
|
+
[x.value]: t.chinese ? "女" : t.typing ? 2 : "2"
|
|
116
|
+
}] : t.confirm ? [{
|
|
117
|
+
[b.value]: "是",
|
|
118
|
+
[x.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
|
|
119
|
+
}, {
|
|
120
|
+
[b.value]: "否",
|
|
121
|
+
[x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
|
|
122
|
+
}] : t.options);
|
|
123
|
+
return () => _({ vNodes: a(d, s(y.value, {
|
|
124
|
+
modelValue: p.value,
|
|
125
|
+
"onUpdate:modelValue": (e) => p.value = e,
|
|
126
|
+
disabled: v.value
|
|
127
|
+
}), {
|
|
128
|
+
...o,
|
|
129
|
+
default: o.default || (() => {
|
|
130
|
+
var e;
|
|
131
|
+
return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? a(u, {
|
|
132
|
+
key: e,
|
|
133
|
+
value: e,
|
|
134
|
+
disabled: r
|
|
135
|
+
}, g(n) ? n : { default: () => [n] }) : a(l, {
|
|
136
|
+
key: e,
|
|
137
|
+
value: e,
|
|
138
|
+
disabled: r
|
|
139
|
+
}, g(n) ? n : { default: () => [n] }));
|
|
140
|
+
})
|
|
141
|
+
}) });
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
export { _ as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
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
3
|
import { ElDialog as b } from "element-plus/es";
|
|
4
4
|
//#region src/components/dialog/props.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n } from "./D7hD-ppq.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElCheckbox as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/checkbox.ts
|
|
@@ -16,7 +16,7 @@ var s = {
|
|
|
16
16
|
Boolean,
|
|
17
17
|
Object
|
|
18
18
|
],
|
|
19
|
-
|
|
19
|
+
labelValue: [
|
|
20
20
|
String,
|
|
21
21
|
Number,
|
|
22
22
|
Boolean,
|
|
@@ -49,7 +49,10 @@ var s = {
|
|
|
49
49
|
trueLabel: [String, Number],
|
|
50
50
|
falseLabel: [String, Number],
|
|
51
51
|
controls: String
|
|
52
|
-
}, c = {
|
|
52
|
+
}, c = {
|
|
53
|
+
modelValue: !0,
|
|
54
|
+
labelValue: !0
|
|
55
|
+
}, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
53
56
|
name: "FormCheckbox",
|
|
54
57
|
inheritAttrs: !1,
|
|
55
58
|
props: { ...s },
|
|
@@ -66,6 +69,7 @@ var s = {
|
|
|
66
69
|
predicate: u
|
|
67
70
|
});
|
|
68
71
|
return () => f({ vNodes: r(o, i(m.value, {
|
|
72
|
+
label: t.labelValue,
|
|
69
73
|
modelValue: d.value,
|
|
70
74
|
"onUpdate:modelValue": (e) => d.value = e,
|
|
71
75
|
disabled: p.value
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e, u as t } from "./BX-cVxlK.mjs";
|
|
2
2
|
import { getDictLabel as n } from "../helper/dictionary.mjs";
|
|
3
3
|
import { pageableTableContextKey as r } from "../constants/index.mjs";
|
|
4
4
|
import i from "../resize-observer/index.mjs";
|
|
5
|
-
import { t as a } from "./
|
|
5
|
+
import { t as a } from "./D5_ctQqL.mjs";
|
|
6
6
|
import { useVisibilityChange as o } from "../hook/useVisibilityChange.mjs";
|
|
7
7
|
import { hasOwn as s } from "@web-utils/core";
|
|
8
8
|
import { Fragment as c, computed as l, createBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeModels as h, mergeProps as g, nextTick as ee, onBeforeUpdate as _, onUpdated as te, openBlock as v, provide as y, reactive as b, ref as x, toDisplayString as S, useModel as C, watch as w, withCtx as T } from "vue";
|
|
@@ -381,7 +381,7 @@ var I = {
|
|
|
381
381
|
L.value = t, R.value = e;
|
|
382
382
|
}, le = () => {
|
|
383
383
|
me(L.value, R.value);
|
|
384
|
-
}, ue = (
|
|
384
|
+
}, ue = (t) => e(F(t)), de = ({ prop: e, order: t }) => {
|
|
385
385
|
a.payloadStyle === "body" ? (P.value.ascs = t === "ascending" ? [e] : a.ascs, P.value.descs = t === "descending" ? [e] : a.descs) : (P.value.ascs = t === "ascending" ? e : "", P.value.descs = t === "descending" ? e : "");
|
|
386
386
|
}, fe = (e) => {
|
|
387
387
|
$(e) && (E.value = e);
|
|
@@ -498,7 +498,7 @@ var I = {
|
|
|
498
498
|
toggleRowSelection: Z,
|
|
499
499
|
toggleSettings: Q
|
|
500
500
|
});
|
|
501
|
-
let ge =
|
|
501
|
+
let ge = t(a, {
|
|
502
502
|
emit: u,
|
|
503
503
|
events: se,
|
|
504
504
|
predicate: ce
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n as t, t as n } from "./A3sHIRQ_.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
|
+
import { o as t, r as n } from "./BvsmTC3G.mjs";
|
|
3
|
+
import { n as r } from "./D7hD-ppq.mjs";
|
|
4
4
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
5
5
|
import { ElText as o } from "element-plus/es";
|
|
6
6
|
//#region src/components/form/props/text.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./BvsmTC3G.mjs";
|
|
2
|
+
import { n } from "./D7hD-ppq.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElSlider as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/slide.ts
|