@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta41
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 -0
- package/chunks/4GMuTlFS.mjs +25 -0
- package/chunks/B-YO6Py8.mjs +145 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B40JZqF5.mjs +60 -0
- package/chunks/BLNpMvUQ.mjs +95 -0
- package/chunks/BNQD6fKI.mjs +40 -0
- package/chunks/BROfNO6c.mjs +17 -0
- package/chunks/BiF8cEVB.mjs +102 -0
- package/chunks/Bm5eiSmT.mjs +79 -0
- package/chunks/C5BjmbyR.mjs +91 -0
- package/chunks/CBHZpxPE.mjs +108 -0
- package/chunks/CD2WYSl1.mjs +188 -0
- package/chunks/CE0MejA6.mjs +200 -0
- package/chunks/CSf0Lu3w.mjs +102 -0
- package/chunks/CXSIP67a.mjs +234 -0
- package/chunks/ChmDDqoZ2.mjs +478 -0
- package/chunks/ClpNoMQe.mjs +37 -0
- package/chunks/Csa9EgOO.mjs +152 -0
- package/chunks/CuBH-6_y.mjs +25 -0
- package/chunks/CybmpSN8.mjs +664 -0
- package/chunks/CzvmkGvn.mjs +89 -0
- package/chunks/DASUt7ot.mjs +166 -0
- package/chunks/DBNqhkDl.mjs +174 -0
- package/chunks/DMcUruCK2.mjs +207 -0
- package/chunks/DUjgfS7g.mjs +95 -0
- package/chunks/DWLv8UUC.mjs +612 -0
- package/chunks/Ds_Tpa_M.mjs +83 -0
- package/chunks/MeM8FGzA.mjs +200 -0
- package/chunks/_90XRi0U.mjs +105 -0
- package/chunks/_Uzl3uMy.mjs +109 -0
- package/chunks/b5HOxD60.mjs +1369 -0
- package/chunks/cmuHpsX6.mjs +109 -0
- package/chunks/ePSxkHli.mjs +95 -0
- package/chunks/jHrYQI1Q.mjs +320 -0
- package/chunks/kKoMKOYH.mjs +180 -0
- package/chunks/lPLJkGiz.mjs +25 -0
- package/chunks/mbLUSXcZ.mjs +56 -0
- package/chunks/y-DmM31a.mjs +168 -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 +53 -0
- package/constants/index.mjs +4 -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 +337 -16
- package/element-dialog/index.mjs +2 -91
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +114 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +472 -0
- package/form-cascader/index.mjs +2 -0
- package/form-check-box-group/index.d.ts +289 -18
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +390 -19
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +87 -20
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +145 -13
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +301 -20
- 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 +307 -16
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +307 -16
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +246 -18
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +307 -16
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +263 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +434 -1
- package/form-input-time/index.mjs +1 -3
- 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 +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +141 -11
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +303 -16
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +254 -14
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +537 -18
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +283 -16
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +272 -14
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +165 -13
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +319 -0
- package/form-time-select/index.mjs +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 +52 -36
- package/index.mjs +54 -61
- package/package.json +10 -5
- package/pageable-table/index.d.ts +398 -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.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-view/index.d.ts +340 -1
- package/table-view/index.mjs +459 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- 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 +232 -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.d.ts +0 -1
- package/constants.mjs +0 -4
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- package/utils/style.css +0 -1
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CXSIP67a.mjs";
|
|
2
|
+
import { n } from "./BROfNO6c.mjs";
|
|
3
|
+
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
+
import { ElRate as o } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/rate/style/css";
|
|
7
|
+
//#region src/components/form/props/rate.ts
|
|
8
|
+
var s = {
|
|
9
|
+
...n,
|
|
10
|
+
modelValue: Number,
|
|
11
|
+
max: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 5
|
|
14
|
+
},
|
|
15
|
+
size: String,
|
|
16
|
+
allowHalf: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
lowThreshold: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 2
|
|
23
|
+
},
|
|
24
|
+
highThreshold: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 4
|
|
27
|
+
},
|
|
28
|
+
colors: [Array, Object],
|
|
29
|
+
voidColor: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "#c6d1de"
|
|
32
|
+
},
|
|
33
|
+
disabledVoidColor: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "#eff2f7"
|
|
36
|
+
},
|
|
37
|
+
icons: [Array, Object],
|
|
38
|
+
voidIcon: [String, Object],
|
|
39
|
+
disabledVoidIcon: [String, Object],
|
|
40
|
+
showText: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
showScore: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
textColor: String,
|
|
49
|
+
texts: {
|
|
50
|
+
type: Array,
|
|
51
|
+
default: () => [
|
|
52
|
+
"Extremely bad",
|
|
53
|
+
"Disappointed",
|
|
54
|
+
"Fair",
|
|
55
|
+
"Satisfied",
|
|
56
|
+
"Surprise"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
scoreTemplate: String,
|
|
60
|
+
clearable: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !1
|
|
63
|
+
},
|
|
64
|
+
id: String,
|
|
65
|
+
ariaLabel: String
|
|
66
|
+
}, c = {
|
|
67
|
+
disabled: !0,
|
|
68
|
+
modelValue: !0
|
|
69
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
70
|
+
name: "FormRate",
|
|
71
|
+
inheritAttrs: !1,
|
|
72
|
+
props: { ...s },
|
|
73
|
+
emits: { ...t },
|
|
74
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
75
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
76
|
+
emit: n,
|
|
77
|
+
slots: s,
|
|
78
|
+
attrs: c,
|
|
79
|
+
predicate: l
|
|
80
|
+
});
|
|
81
|
+
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
82
|
+
modelValue: u.value,
|
|
83
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
84
|
+
disabled: f.value
|
|
85
|
+
}), null) });
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { u as t };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { u as e } from "./cmuHpsX6.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, toHandlers as h, unref as g, useModel as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
|
|
3
|
+
import { ElDialog as x } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import "element-plus/es/components/dialog/style/css";
|
|
6
|
+
//#region src/components/dialog/props.ts
|
|
7
|
+
var S = {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
width: [String, Number],
|
|
17
|
+
fullscreen: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
top: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
modal: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
modalPenetrable: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
modalClass: String,
|
|
34
|
+
headerClass: String,
|
|
35
|
+
bodyClass: String,
|
|
36
|
+
footerClass: String,
|
|
37
|
+
appendToBody: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
appendTo: [String, Object],
|
|
42
|
+
lockScroll: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
openDelay: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 0
|
|
49
|
+
},
|
|
50
|
+
closeDelay: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0
|
|
53
|
+
},
|
|
54
|
+
closeOnClickModal: { type: Boolean },
|
|
55
|
+
closeOnPressEscape: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !0
|
|
58
|
+
},
|
|
59
|
+
showClose: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
62
|
+
},
|
|
63
|
+
beforeClose: Function,
|
|
64
|
+
draggable: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !0
|
|
67
|
+
},
|
|
68
|
+
overflow: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
center: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
alignCenter: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
},
|
|
80
|
+
destroyOnClose: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
closeIcon: [String, Object],
|
|
85
|
+
zIndex: Number,
|
|
86
|
+
headerAriaLevel: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "2"
|
|
89
|
+
},
|
|
90
|
+
transition: [String, Object],
|
|
91
|
+
customClass: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: ""
|
|
94
|
+
},
|
|
95
|
+
height: String,
|
|
96
|
+
embed: Boolean,
|
|
97
|
+
showFullscreen: Boolean,
|
|
98
|
+
showFullScreen: Boolean
|
|
99
|
+
}, C = {
|
|
100
|
+
embed: !0,
|
|
101
|
+
height: !0,
|
|
102
|
+
showFullscreen: !0,
|
|
103
|
+
showFullScreen: !0,
|
|
104
|
+
fullscreen: !0,
|
|
105
|
+
showClose: !0
|
|
106
|
+
}, w = (e) => C[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
|
|
107
|
+
__name: "ElementDialog",
|
|
108
|
+
props: /* @__PURE__ */ c({ ...S }, {
|
|
109
|
+
modelValue: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: !1
|
|
112
|
+
},
|
|
113
|
+
modelModifiers: {}
|
|
114
|
+
}),
|
|
115
|
+
emits: /* @__PURE__ */ c({ "toggle-fullscreen": null }, ["update:modelValue"]),
|
|
116
|
+
setup(c, { expose: S, emit: C }) {
|
|
117
|
+
let D = _(c, "modelValue"), O = c, k = C, { autoBindProps: A, listeners: j } = e(O, {
|
|
118
|
+
predicate: w,
|
|
119
|
+
removeOn: !0
|
|
120
|
+
}), M = v("dialog"), N = f(O.fullscreen), P = () => {
|
|
121
|
+
N.value = !N.value, k("toggle-fullscreen", N.value);
|
|
122
|
+
}, F = t(() => N.value ? "100%" : O.height), I = s(), L = () => {
|
|
123
|
+
O.embed ? (I.parent.emit("update:visible", !1), I.parent.emit("update:modelValue", !1)) : M.value.handleClose();
|
|
124
|
+
};
|
|
125
|
+
return S({
|
|
126
|
+
close: L,
|
|
127
|
+
hide: L
|
|
128
|
+
}), (e, t) => {
|
|
129
|
+
let s = x;
|
|
130
|
+
return d(), n(s, l({
|
|
131
|
+
ref: "dialog",
|
|
132
|
+
modelValue: D.value,
|
|
133
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => D.value = e)
|
|
134
|
+
}, g(A), {
|
|
135
|
+
"show-close": !1,
|
|
136
|
+
fullscreen: g(N),
|
|
137
|
+
style: { "--dialog-body-height": g(F) }
|
|
138
|
+
}, h(g(j))), o({
|
|
139
|
+
header: y(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: u(["dialog-header-button", {
|
|
142
|
+
"el-icon-full-screen": !e.fullscreen,
|
|
143
|
+
"el-icon-copy-document": e.fullscreen
|
|
144
|
+
}]),
|
|
145
|
+
onClick: b(P, ["stop"])
|
|
146
|
+
}, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "dialog-header-button el-icon-close",
|
|
149
|
+
onClick: b(L, ["stop"])
|
|
150
|
+
})) : r("v-if", !0)])])]),
|
|
151
|
+
default: y(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
|
|
152
|
+
_: 2
|
|
153
|
+
}, [e.$slots.footer ? {
|
|
154
|
+
name: "footer",
|
|
155
|
+
fn: y(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: L })]),
|
|
156
|
+
key: "0"
|
|
157
|
+
} : void 0]), 1040, [
|
|
158
|
+
"modelValue",
|
|
159
|
+
"fullscreen",
|
|
160
|
+
"style"
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
//#endregion
|
|
166
|
+
export { D as t };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CXSIP67a.mjs";
|
|
2
|
+
import { n, t as r } from "./BROfNO6c.mjs";
|
|
3
|
+
import { createVNode as i, mergeProps as a } from "vue";
|
|
4
|
+
import { ElTimePicker as o } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/time-picker/style/css";
|
|
7
|
+
//#region src/components/form/props/time.ts
|
|
8
|
+
var s = {
|
|
9
|
+
...n,
|
|
10
|
+
...r,
|
|
11
|
+
modelValue: [
|
|
12
|
+
Number,
|
|
13
|
+
String,
|
|
14
|
+
Object
|
|
15
|
+
],
|
|
16
|
+
readonly: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
editable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
clearable: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
size: String,
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
startPlaceholder: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "开始时间"
|
|
40
|
+
},
|
|
41
|
+
endPlaceholder: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "结束时间"
|
|
44
|
+
},
|
|
45
|
+
isRange: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
arrowControl: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
popperClass: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
popperStyle: [String, Object],
|
|
58
|
+
popperOptions: Object,
|
|
59
|
+
fallbackPlacements: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => [
|
|
62
|
+
"bottom",
|
|
63
|
+
"top",
|
|
64
|
+
"right",
|
|
65
|
+
"left"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
placement: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "bottom-start"
|
|
71
|
+
},
|
|
72
|
+
rangeSeparator: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "-"
|
|
75
|
+
},
|
|
76
|
+
format: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "HH:mm:ss"
|
|
79
|
+
},
|
|
80
|
+
defaultValue: [Date, Array],
|
|
81
|
+
valueFormat: String,
|
|
82
|
+
id: [String, Array],
|
|
83
|
+
name: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ""
|
|
86
|
+
},
|
|
87
|
+
ariaLabel: String,
|
|
88
|
+
prefixIcon: [String, Object],
|
|
89
|
+
clearIcon: [String, Object],
|
|
90
|
+
disabledHours: Function,
|
|
91
|
+
disabledMinutes: Function,
|
|
92
|
+
disabledSeconds: Function,
|
|
93
|
+
teleported: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !0
|
|
96
|
+
},
|
|
97
|
+
tabindex: [String, Number],
|
|
98
|
+
emptyValues: Array,
|
|
99
|
+
valueOnClear: [
|
|
100
|
+
String,
|
|
101
|
+
Number,
|
|
102
|
+
Boolean,
|
|
103
|
+
Function
|
|
104
|
+
],
|
|
105
|
+
saveOnBlur: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !0
|
|
108
|
+
},
|
|
109
|
+
range: Boolean,
|
|
110
|
+
start: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "09:00"
|
|
113
|
+
},
|
|
114
|
+
end: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "18:00"
|
|
117
|
+
},
|
|
118
|
+
step: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: "00:30"
|
|
121
|
+
},
|
|
122
|
+
minTime: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: "00:00"
|
|
125
|
+
},
|
|
126
|
+
maxTime: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: ""
|
|
129
|
+
},
|
|
130
|
+
selectableRange: String
|
|
131
|
+
}, c = {
|
|
132
|
+
disabled: !0,
|
|
133
|
+
modelValue: !0,
|
|
134
|
+
isRange: !0,
|
|
135
|
+
range: !0,
|
|
136
|
+
placement: !0,
|
|
137
|
+
popperOptions: !0,
|
|
138
|
+
start: !0,
|
|
139
|
+
end: !0,
|
|
140
|
+
step: !0,
|
|
141
|
+
minTime: !0,
|
|
142
|
+
maxTime: !0,
|
|
143
|
+
selectableRange: !0
|
|
144
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
145
|
+
name: "FormInputTime",
|
|
146
|
+
inheritAttrs: !1,
|
|
147
|
+
props: { ...s },
|
|
148
|
+
emits: { ...t },
|
|
149
|
+
setup(t, { emit: n, slots: r, attrs: s }) {
|
|
150
|
+
let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
151
|
+
emit: n,
|
|
152
|
+
slots: r,
|
|
153
|
+
attrs: s,
|
|
154
|
+
predicate: l
|
|
155
|
+
}), h = { modifiers: [{
|
|
156
|
+
name: "arrow",
|
|
157
|
+
options: { padding: ({ popper: e, reference: t, placement: n }) => e.width / 2 }
|
|
158
|
+
}] };
|
|
159
|
+
return () => u({ vNodes: i(o, a(p.value, m.value, {
|
|
160
|
+
"popper-options": t.popperOptions || h,
|
|
161
|
+
style: "width: 100%",
|
|
162
|
+
placement: t.placement || "left",
|
|
163
|
+
"is-range": t.isRange || t.range,
|
|
164
|
+
format: t.format,
|
|
165
|
+
"value-format": t.valueFormat || t.format,
|
|
166
|
+
modelValue: t.modelValue,
|
|
167
|
+
disabled: f.value,
|
|
168
|
+
"onUpdate:modelValue": c,
|
|
169
|
+
placeholder: d.value
|
|
170
|
+
}), null) });
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
export { u as t };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { o as e } from "./cmuHpsX6.mjs";
|
|
2
|
+
import { goBack as t, hasAuthority as n } from "../api/index.mjs";
|
|
3
|
+
import { toolbarContextKey as r } from "../constants/index.mjs";
|
|
4
|
+
import { t as i } from "./y-DmM31a.mjs";
|
|
5
|
+
import { NOOP as a, capitalize as o } from "@web-utils/core";
|
|
6
|
+
import { Comment as s, createVNode as c } from "vue";
|
|
7
|
+
//#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
|
|
8
|
+
var l = {
|
|
9
|
+
back: {
|
|
10
|
+
label: "返回",
|
|
11
|
+
type: "primary",
|
|
12
|
+
icon: "el-icon-arrow-left"
|
|
13
|
+
},
|
|
14
|
+
cancel: {
|
|
15
|
+
label: "取消",
|
|
16
|
+
icon: "el-icon-close"
|
|
17
|
+
},
|
|
18
|
+
create: {
|
|
19
|
+
label: "新增",
|
|
20
|
+
type: "primary",
|
|
21
|
+
icon: "el-icon-plus"
|
|
22
|
+
},
|
|
23
|
+
save: {
|
|
24
|
+
label: "保存",
|
|
25
|
+
type: "primary",
|
|
26
|
+
icon: "el-icon-takeaway-box",
|
|
27
|
+
loadable: !0
|
|
28
|
+
},
|
|
29
|
+
withdraw: {
|
|
30
|
+
label: "提取",
|
|
31
|
+
type: "primary",
|
|
32
|
+
icon: "el-icon-refresh-left"
|
|
33
|
+
},
|
|
34
|
+
edit: {
|
|
35
|
+
label: "编辑",
|
|
36
|
+
type: "primary",
|
|
37
|
+
icon: "el-icon-edit-outline"
|
|
38
|
+
},
|
|
39
|
+
submit: {
|
|
40
|
+
label: "审批办理",
|
|
41
|
+
type: "primary",
|
|
42
|
+
icon: "el-icon-s-promotion"
|
|
43
|
+
},
|
|
44
|
+
publish: {
|
|
45
|
+
label: "发布",
|
|
46
|
+
type: "primary",
|
|
47
|
+
icon: "el-icon-s-promotion"
|
|
48
|
+
},
|
|
49
|
+
agree: {
|
|
50
|
+
label: "同意",
|
|
51
|
+
type: "primary",
|
|
52
|
+
icon: "el-icon-check"
|
|
53
|
+
},
|
|
54
|
+
disagree: {
|
|
55
|
+
label: "不同意",
|
|
56
|
+
type: "primary",
|
|
57
|
+
icon: "el-icon-close"
|
|
58
|
+
},
|
|
59
|
+
reject: {
|
|
60
|
+
label: "退回",
|
|
61
|
+
type: "primary",
|
|
62
|
+
icon: "el-icon-s-release"
|
|
63
|
+
},
|
|
64
|
+
finish: {
|
|
65
|
+
label: "完成",
|
|
66
|
+
type: "primary",
|
|
67
|
+
icon: "el-icon-circle-check"
|
|
68
|
+
},
|
|
69
|
+
enable: {
|
|
70
|
+
label: "启用",
|
|
71
|
+
type: "primary",
|
|
72
|
+
icon: "el-icon-circle-check"
|
|
73
|
+
},
|
|
74
|
+
exp: {
|
|
75
|
+
label: "导出",
|
|
76
|
+
type: "primary",
|
|
77
|
+
icon: "el-icon-download"
|
|
78
|
+
},
|
|
79
|
+
imp: {
|
|
80
|
+
label: "导入",
|
|
81
|
+
type: "primary",
|
|
82
|
+
icon: "el-icon-upload"
|
|
83
|
+
},
|
|
84
|
+
del: {
|
|
85
|
+
label: "删除",
|
|
86
|
+
type: "primary",
|
|
87
|
+
icon: "el-icon-delete"
|
|
88
|
+
},
|
|
89
|
+
print: {
|
|
90
|
+
label: "打印",
|
|
91
|
+
type: "primary",
|
|
92
|
+
icon: "el-icon-printer"
|
|
93
|
+
},
|
|
94
|
+
disabled: {
|
|
95
|
+
label: "禁用",
|
|
96
|
+
type: "primary",
|
|
97
|
+
icon: "el-icon-remove-outline"
|
|
98
|
+
},
|
|
99
|
+
reload: {
|
|
100
|
+
label: "刷新",
|
|
101
|
+
icon: "el-icon-refresh",
|
|
102
|
+
separateLine: !1,
|
|
103
|
+
circle: !0
|
|
104
|
+
},
|
|
105
|
+
settings: {
|
|
106
|
+
label: "设置",
|
|
107
|
+
icon: "el-icon-s-operation",
|
|
108
|
+
separateLine: !1,
|
|
109
|
+
circle: !0
|
|
110
|
+
},
|
|
111
|
+
search: {
|
|
112
|
+
label: "搜索",
|
|
113
|
+
icon: "el-icon-search",
|
|
114
|
+
separateLine: !1,
|
|
115
|
+
circle: !0
|
|
116
|
+
}
|
|
117
|
+
}, u = {
|
|
118
|
+
name: "Toolbar",
|
|
119
|
+
provide() {
|
|
120
|
+
return { [r]: this };
|
|
121
|
+
},
|
|
122
|
+
props: {
|
|
123
|
+
searchable: Boolean,
|
|
124
|
+
refreshable: Boolean,
|
|
125
|
+
buttons: {
|
|
126
|
+
type: Array,
|
|
127
|
+
default: () => ["back"]
|
|
128
|
+
},
|
|
129
|
+
back: Function,
|
|
130
|
+
cancel: Function,
|
|
131
|
+
emitter: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: "self"
|
|
134
|
+
},
|
|
135
|
+
footer: Boolean,
|
|
136
|
+
label: Object
|
|
137
|
+
},
|
|
138
|
+
computed: {},
|
|
139
|
+
methods: {
|
|
140
|
+
goBack() {
|
|
141
|
+
t(this.$route.path);
|
|
142
|
+
},
|
|
143
|
+
createButton(t, { label: n, icon: r, type: s, separateLine: l = !0, loadable: u, circle: d, onClick: f, title: p }) {
|
|
144
|
+
var m;
|
|
145
|
+
let h, g = ((m = this.label) == null ? void 0 : m[t]) || n;
|
|
146
|
+
return h = f || (["back", "cancel"].includes(t) ? this.goBack : (n) => {
|
|
147
|
+
(e(this.$attrs, { withOn: !0 })[`on${o(t)}`] || a)(n);
|
|
148
|
+
}), c(i, {
|
|
149
|
+
"separate-line": l,
|
|
150
|
+
icon: r,
|
|
151
|
+
title: p,
|
|
152
|
+
label: g,
|
|
153
|
+
loadable: u,
|
|
154
|
+
circle: d,
|
|
155
|
+
footer: this.footer,
|
|
156
|
+
type: s,
|
|
157
|
+
onClick: h
|
|
158
|
+
}, null);
|
|
159
|
+
},
|
|
160
|
+
getLeftButtons() {
|
|
161
|
+
var e, t, r;
|
|
162
|
+
let { createButton: i } = this;
|
|
163
|
+
return (r = (((e = (t = this.$slots)["toolbar-left"]) == null ? void 0 : e.call(t)) || this.buttons.flatMap((e) => {
|
|
164
|
+
let t = l[e];
|
|
165
|
+
if (t) {
|
|
166
|
+
var n, r;
|
|
167
|
+
return ((n = (r = this.$slots)[e]) == null ? void 0 : n.call(r)) || i(e, t);
|
|
168
|
+
} else if (e === "slot") {
|
|
169
|
+
var a, o;
|
|
170
|
+
let e = ((a = (o = this.$slots).default) == null ? void 0 : a.call(o, {
|
|
171
|
+
buttons: this.buttons,
|
|
172
|
+
footer: this.footer
|
|
173
|
+
})) ?? null;
|
|
174
|
+
if (e && e.length === 1) {
|
|
175
|
+
var c;
|
|
176
|
+
return e == null || (c = e[0]) == null || (c = c.children) == null ? void 0 : c.filter((e) => e.type !== s);
|
|
177
|
+
}
|
|
178
|
+
return e || [];
|
|
179
|
+
} else return null;
|
|
180
|
+
})).filter((e) => e)) == null ? void 0 : r.filter((e) => e.props.privilege ? n(e.props.privilege) : !0);
|
|
181
|
+
},
|
|
182
|
+
getRightButtons() {
|
|
183
|
+
var e, t, n, r;
|
|
184
|
+
let i = (e = (t = this.$slots)["toolbar-right"]) == null ? void 0 : e.call(t), a = [
|
|
185
|
+
...((n = (r = this.$slots)["toolbar-right-button"]) == null ? void 0 : n.call(r)) || [],
|
|
186
|
+
this.getRefreshButton(),
|
|
187
|
+
this.getSettingsButton(),
|
|
188
|
+
this.getSearchButton()
|
|
189
|
+
];
|
|
190
|
+
return i || a;
|
|
191
|
+
},
|
|
192
|
+
getSearchButton() {
|
|
193
|
+
return this.searchable ? this.createButton("search", l.search) : null;
|
|
194
|
+
},
|
|
195
|
+
getRefreshButton() {
|
|
196
|
+
return this.refreshable ? this.createButton("reload", l.reload) : null;
|
|
197
|
+
},
|
|
198
|
+
getSettingsButton() {
|
|
199
|
+
return this.refreshable ? this.createButton("settings", l.settings) : null;
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
render() {
|
|
203
|
+
return this.footer ? c("div", { class: "footer-bar" }, [this.getLeftButtons()]) : c("div", { class: "toolbar" }, [c("div", { class: "toolbar-left" }, [this.getLeftButtons()]), c("div", { class: "toolbar-right" }, [this.getRightButtons()])]);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
//#endregion
|
|
207
|
+
export { u as t };
|