@web-utils/form-ui 1.0.0-beta5 → 1.0.0-beta51
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/6yfBZFOB.mjs +56 -0
- package/chunks/B1IPSTA6.mjs +198 -0
- package/chunks/B9gA65rt2.mjs +38 -0
- package/chunks/BBERmTup.mjs +83 -0
- package/chunks/BG8z3V9d2.mjs +643 -0
- package/chunks/BQk3-Ppb2.mjs +146 -0
- package/chunks/BQyL45PF2.mjs +207 -0
- package/chunks/BWh6u1O0.mjs +660 -0
- package/chunks/BbSPWDDZ.mjs +100 -0
- package/chunks/BfxDxIg0.mjs +106 -0
- package/chunks/BqWvBF14.mjs +35 -0
- package/chunks/BsZgAJX_2.mjs +81 -0
- package/chunks/BtcjAHE6.mjs +317 -0
- package/chunks/Bwbtu2cp.mjs +194 -0
- package/chunks/ByHz4mmh.mjs +87 -0
- package/chunks/C2zgFLYO.mjs +185 -0
- package/chunks/C7G-cAoI.mjs +1361 -0
- package/chunks/CAd1zK9Q.mjs +25 -0
- package/chunks/CJdkjadi.mjs +17 -0
- package/chunks/CXsoKP22.mjs +86 -0
- package/chunks/CabldOLo.mjs +157 -0
- package/chunks/CkOD-_VV.mjs +8 -0
- package/chunks/CqVd8D222.mjs +89 -0
- package/chunks/CuAoMR3n.mjs +105 -0
- package/chunks/DA7oGHSX.mjs +141 -0
- package/chunks/DKwp6AMl.mjs +168 -0
- package/chunks/DOP3aBxf.mjs +93 -0
- package/chunks/DOZRzqlo.mjs +37 -0
- package/chunks/D_Fs3bkZ.mjs +57 -0
- package/chunks/D_qiRmiE.mjs +230 -0
- package/chunks/DcTVYqeJ.mjs +113 -0
- package/chunks/Dt3lfDnL.mjs +166 -0
- package/chunks/GI8krYU82.mjs +478 -0
- package/chunks/V2p-PCpL.mjs +176 -0
- package/chunks/YFiU0ngn.mjs +622 -0
- package/chunks/bFbPPcdq.mjs +25 -0
- package/chunks/eae6huQB.mjs +25 -0
- package/chunks/gCeDFHo1.mjs +32 -0
- package/chunks/gLPy4Sus.mjs +164 -0
- package/chunks/hlha6Bhc.mjs +107 -0
- package/chunks/pIzhYsBe.mjs +93 -0
- package/chunks/wDS9KBFw.mjs +67 -0
- package/chunks/wXeqV-_7.mjs +89 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +93 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +54 -0
- package/constants/index.mjs +4 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -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/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.mjs +40 -0
- package/element-resize-observer/style.css +1 -0
- 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 +123 -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-checkbox/index.d.ts +236 -16
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +364 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- 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-table/index.d.ts +269 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +2 -0
- 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.css +2 -0
- package/index.d.ts +57 -36
- package/index.mjs +59 -61
- package/package.json +10 -5
- package/pageable-table/index.d.ts +400 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/resolver/index.mjs +29 -0
- package/sub-table/index.d.ts +100 -0
- package/sub-table/index.mjs +537 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +100 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -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 +95 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +341 -1
- package/table-view/index.mjs +457 -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 +228 -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/form-check-box-group/index.d.ts +0 -93
- package/form-check-box-group/index.mjs +0 -2
- package/input/style.css +0 -1
- package/resolver.mjs +0 -79
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { d as e } from "./DcTVYqeJ.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
|
+
//#region src/components/dialog/props.ts
|
|
5
|
+
var S = {
|
|
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
|
+
}, C = {
|
|
98
|
+
embed: !0,
|
|
99
|
+
height: !0,
|
|
100
|
+
showFullscreen: !0,
|
|
101
|
+
showFullScreen: !0,
|
|
102
|
+
fullscreen: !0,
|
|
103
|
+
showClose: !0
|
|
104
|
+
}, w = (e) => C[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = /* @__PURE__ */ Object.assign({ name: "ElementDialog" }, {
|
|
105
|
+
__name: "ElementDialog",
|
|
106
|
+
props: /* @__PURE__ */ c({ ...S }, {
|
|
107
|
+
modelValue: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
modelModifiers: {}
|
|
112
|
+
}),
|
|
113
|
+
emits: /* @__PURE__ */ c({ "toggle-fullscreen": null }, ["update:modelValue"]),
|
|
114
|
+
setup(c, { expose: S, emit: C }) {
|
|
115
|
+
let D = _(c, "modelValue"), O = c, k = C, { autoBindProps: A, listeners: j } = e(O, {
|
|
116
|
+
predicate: w,
|
|
117
|
+
removeOn: !0
|
|
118
|
+
}), M = v("dialog"), N = f(O.fullscreen), P = () => {
|
|
119
|
+
N.value = !N.value, k("toggle-fullscreen", N.value);
|
|
120
|
+
}, F = t(() => N.value ? "100%" : O.height), I = s(), L = () => {
|
|
121
|
+
O.embed ? (I.parent.emit("update:visible", !1), I.parent.emit("update:modelValue", !1)) : M.value.handleClose();
|
|
122
|
+
};
|
|
123
|
+
return S({
|
|
124
|
+
close: L,
|
|
125
|
+
hide: L
|
|
126
|
+
}), (e, t) => {
|
|
127
|
+
let s = x;
|
|
128
|
+
return d(), n(s, l({
|
|
129
|
+
ref: "dialog",
|
|
130
|
+
modelValue: D.value,
|
|
131
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => D.value = e)
|
|
132
|
+
}, g(A), {
|
|
133
|
+
"show-close": !1,
|
|
134
|
+
fullscreen: g(N),
|
|
135
|
+
style: { "--dialog-body-height": g(F) }
|
|
136
|
+
}, h(g(j))), o({
|
|
137
|
+
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", {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: u(["dialog-header-button", {
|
|
140
|
+
"el-icon-full-screen": !e.fullscreen,
|
|
141
|
+
"el-icon-copy-document": e.fullscreen
|
|
142
|
+
}]),
|
|
143
|
+
onClick: b(P, ["stop"])
|
|
144
|
+
}, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
|
|
145
|
+
key: 1,
|
|
146
|
+
class: "dialog-header-button el-icon-close",
|
|
147
|
+
onClick: b(L, ["stop"])
|
|
148
|
+
})) : r("v-if", !0)])])]),
|
|
149
|
+
default: y(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
|
|
150
|
+
_: 2
|
|
151
|
+
}, [e.$slots.footer ? {
|
|
152
|
+
name: "footer",
|
|
153
|
+
fn: y(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: L })]),
|
|
154
|
+
key: "0"
|
|
155
|
+
} : void 0]), 1040, [
|
|
156
|
+
"modelValue",
|
|
157
|
+
"fullscreen",
|
|
158
|
+
"style"
|
|
159
|
+
]);
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
//#endregion
|
|
164
|
+
export { D as t };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
|
|
2
|
+
import n from "../empty-view/index.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, toRefs as g, useTemplateRef as _, vShow as v, watchEffect as y, withDirectives as b } from "vue";
|
|
4
|
+
import { ElCol as x, ElCollapseTransition as S } from "element-plus";
|
|
5
|
+
import { ElRow as C } from "element-plus/es";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function w(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var T = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
tips: String,
|
|
17
|
+
active: Boolean,
|
|
18
|
+
enabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
tag: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "ElCol"
|
|
29
|
+
},
|
|
30
|
+
span: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 24
|
|
33
|
+
},
|
|
34
|
+
block: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
wrapRow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
gutter: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 20
|
|
45
|
+
},
|
|
46
|
+
collapse: Boolean,
|
|
47
|
+
showTitle: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
notDispatch: Boolean
|
|
52
|
+
},
|
|
53
|
+
setup(l, { expose: T, slots: E }) {
|
|
54
|
+
let D = c(t, null), O = _("root"), k = m(!0), A = h(() => l.enabled), j = h(() => l.disabled), M = i(() => l.enabled === !0 ? !1 : l.disabled === !0), N = i(() => l.tag === "ElCol"), P = () => k.value = !k.value, F = p({
|
|
55
|
+
el: h(() => N.value ? O.value.$el : O.value),
|
|
56
|
+
disabled: j,
|
|
57
|
+
enabled: A,
|
|
58
|
+
isDisabled: M,
|
|
59
|
+
open: () => {
|
|
60
|
+
k.value = !0;
|
|
61
|
+
},
|
|
62
|
+
expand: k,
|
|
63
|
+
...g(l)
|
|
64
|
+
});
|
|
65
|
+
return y(() => {
|
|
66
|
+
k.value = !l.collapse;
|
|
67
|
+
}), f(e, F), d(() => {
|
|
68
|
+
l.notDispatch || D == null || D.addGroup(F);
|
|
69
|
+
}), u(() => {
|
|
70
|
+
l.notDispatch || D == null || D.removeGroup(F);
|
|
71
|
+
}), T(F), () => {
|
|
72
|
+
let e = () => {
|
|
73
|
+
var e;
|
|
74
|
+
return o(r, null, [b(o("div", {
|
|
75
|
+
class: "form-item-group-title",
|
|
76
|
+
onClick: P
|
|
77
|
+
}, [o("span", {
|
|
78
|
+
class: "flex-item",
|
|
79
|
+
style: "flex: 1"
|
|
80
|
+
}, [
|
|
81
|
+
E.title ? E.title() : l.blockTitle,
|
|
82
|
+
E.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
83
|
+
a("("),
|
|
84
|
+
E.tips ? E.tips() : l.tips,
|
|
85
|
+
a(")")
|
|
86
|
+
]) : null,
|
|
87
|
+
(e = E["title-right"]) == null ? void 0 : e.call(E)
|
|
88
|
+
]), o("i", { class: k.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[v, l.showTitle]]), o(S, null, { default: () => {
|
|
89
|
+
let e;
|
|
90
|
+
return E.default ? l.wrapRow ? b(o(C, { gutter: l.gutter }, w(e = E.default()) ? e : { default: () => [e] }), [[v, k.value]]) : b(o("div", null, [E.default()]), [[v, k.value]]) : b(o(n, {
|
|
91
|
+
"font-size": "14px",
|
|
92
|
+
"empty-tips": "暂无信息"
|
|
93
|
+
}, null), [[v, k.value]]);
|
|
94
|
+
} })]);
|
|
95
|
+
}, t = {
|
|
96
|
+
ref: "root",
|
|
97
|
+
class: ["form-item-group", {
|
|
98
|
+
"default-active": l.active,
|
|
99
|
+
"is-disabled": M.value
|
|
100
|
+
}]
|
|
101
|
+
};
|
|
102
|
+
return N.value && (t.span = l.block ? 24 : l.span), s(N.value ? x : "div", t, N.value ? e : e());
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { T as t };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { i as e, n as t } from "./D_qiRmiE.mjs";
|
|
2
|
+
import { n } from "./CJdkjadi.mjs";
|
|
3
|
+
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
+
import { ElSlider as o } from "element-plus/es";
|
|
5
|
+
//#region src/components/form/props/slide.ts
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [Number, Array],
|
|
9
|
+
min: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 0
|
|
12
|
+
},
|
|
13
|
+
max: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 100
|
|
16
|
+
},
|
|
17
|
+
step: [Number, String],
|
|
18
|
+
showInput: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
showInputControls: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !0
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "default"
|
|
29
|
+
},
|
|
30
|
+
inputSize: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "default"
|
|
33
|
+
},
|
|
34
|
+
showStops: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
showTooltip: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
formatTooltip: Function,
|
|
43
|
+
range: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
vertical: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
height: String,
|
|
52
|
+
ariaLabel: String,
|
|
53
|
+
rangeStartLabel: String,
|
|
54
|
+
rangeEndLabel: String,
|
|
55
|
+
formatValueText: Function,
|
|
56
|
+
tooltipClass: String,
|
|
57
|
+
placement: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "top"
|
|
60
|
+
},
|
|
61
|
+
marks: Object,
|
|
62
|
+
validateEvent: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
persistent: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !0
|
|
69
|
+
}
|
|
70
|
+
}, c = {
|
|
71
|
+
modelValue: !0,
|
|
72
|
+
disabled: !0
|
|
73
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
74
|
+
name: "FormSlider",
|
|
75
|
+
inheritAttrs: !1,
|
|
76
|
+
props: { ...s },
|
|
77
|
+
emits: { ...t },
|
|
78
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
79
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
80
|
+
emit: n,
|
|
81
|
+
slots: s,
|
|
82
|
+
predicate: l,
|
|
83
|
+
attrs: c
|
|
84
|
+
});
|
|
85
|
+
return () => d({ vNodes: r(o, i(p.value, m.value, {
|
|
86
|
+
modelValue: u.value,
|
|
87
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
88
|
+
disabled: f.value
|
|
89
|
+
}), null) });
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { u as t };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { a as e } from "./DcTVYqeJ.mjs";
|
|
2
|
+
import { t } from "./DOZRzqlo.mjs";
|
|
3
|
+
import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
|
|
4
|
+
import { t as r } from "./BBERmTup.mjs";
|
|
5
|
+
import { createVNode as i, inject as a, mergeProps as o } from "vue";
|
|
6
|
+
import { ElTableColumn as s } from "element-plus/es";
|
|
7
|
+
//#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
|
|
8
|
+
var c = {
|
|
9
|
+
selection: !0,
|
|
10
|
+
"single-selection": !0,
|
|
11
|
+
index: !0,
|
|
12
|
+
expand: !0
|
|
13
|
+
}, l = (e, t, n, r, i) => {
|
|
14
|
+
e == null || e(t, n, r, i);
|
|
15
|
+
}, u = (e) => {
|
|
16
|
+
let t = e.target;
|
|
17
|
+
for (; t && t.tagName.toUpperCase() !== "HTML";) {
|
|
18
|
+
if (t.tagName.toUpperCase() === "TD") return t;
|
|
19
|
+
t = t.parentNode;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}, d = () => {}, f = (t) => !e(t).length, p = {
|
|
23
|
+
name: "TableColumn",
|
|
24
|
+
props: { ...r },
|
|
25
|
+
setup(e, { slots: r, attrs: p }) {
|
|
26
|
+
let m = a(n, null);
|
|
27
|
+
return () => {
|
|
28
|
+
let { clickable: n, cellClick: a, ...h } = e, g, _ = c[e.type];
|
|
29
|
+
if (!_) {
|
|
30
|
+
let o = n || p.onClick || a;
|
|
31
|
+
(o || e.dictType || e.options) && (g = (n) => {
|
|
32
|
+
var s;
|
|
33
|
+
let { row: c, column: h } = n, g = o ? (e) => {
|
|
34
|
+
let t = u(e);
|
|
35
|
+
if (p.onClick || a) {
|
|
36
|
+
var n;
|
|
37
|
+
(n = p.onClick) == null || n.call(p, c, h, c, h, t, e), a == null || a(c, h, c, h, t, e);
|
|
38
|
+
} else l(m, c, h, t, e);
|
|
39
|
+
} : d, _ = r == null || (s = r.default) == null ? void 0 : s.call(r, n);
|
|
40
|
+
return f(_) && (_ = null), (e.dictType || e.options) && !_ ? i(t, {
|
|
41
|
+
class: { "is-clickable": o },
|
|
42
|
+
onClick: g,
|
|
43
|
+
row: c,
|
|
44
|
+
column: h,
|
|
45
|
+
dictType: e.dictType,
|
|
46
|
+
treeDict: e.treeDict,
|
|
47
|
+
idAsValue: e.idAsValue,
|
|
48
|
+
labelAsValue: e.labelAsValue,
|
|
49
|
+
options: e.options
|
|
50
|
+
}, null) : o ? i("span", {
|
|
51
|
+
class: "is-clickable",
|
|
52
|
+
onClick: g
|
|
53
|
+
}, [_ || (c == null ? void 0 : c[h == null ? void 0 : h.property])]) : _;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return i(s, o(h, {
|
|
57
|
+
key: p.filterable,
|
|
58
|
+
showOverflowTooltip: _ ? !1 : h.showOverflowTooltip
|
|
59
|
+
}), {
|
|
60
|
+
...r,
|
|
61
|
+
default: g || r.default
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { p as t };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { i as e, n as t } from "./D_qiRmiE.mjs";
|
|
2
|
+
import { n } from "./CJdkjadi.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
|
+
labelValue: [
|
|
20
|
+
String,
|
|
21
|
+
Number,
|
|
22
|
+
Boolean,
|
|
23
|
+
Object
|
|
24
|
+
],
|
|
25
|
+
trueValue: {
|
|
26
|
+
type: [String, Number],
|
|
27
|
+
default: "1"
|
|
28
|
+
},
|
|
29
|
+
falseValue: {
|
|
30
|
+
type: [String, Number],
|
|
31
|
+
default: "0"
|
|
32
|
+
},
|
|
33
|
+
border: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
size: String,
|
|
38
|
+
name: String,
|
|
39
|
+
checked: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
indeterminate: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
validateEvent: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
tabindex: [String, Number],
|
|
52
|
+
id: String,
|
|
53
|
+
ariaControls: String,
|
|
54
|
+
ariaLabel: String,
|
|
55
|
+
trueLabel: {
|
|
56
|
+
type: [String, Number],
|
|
57
|
+
default: "1"
|
|
58
|
+
},
|
|
59
|
+
falseLabel: {
|
|
60
|
+
type: [String, Number],
|
|
61
|
+
default: "0"
|
|
62
|
+
},
|
|
63
|
+
controls: String
|
|
64
|
+
}, c = {
|
|
65
|
+
modelValue: !0,
|
|
66
|
+
disabled: !0,
|
|
67
|
+
labelValue: !0
|
|
68
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
69
|
+
name: "FormCheckbox",
|
|
70
|
+
inheritAttrs: !1,
|
|
71
|
+
props: { ...s },
|
|
72
|
+
emits: { ...t },
|
|
73
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
74
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
75
|
+
emit: n,
|
|
76
|
+
slots: s,
|
|
77
|
+
attrs: c,
|
|
78
|
+
predicate: l
|
|
79
|
+
});
|
|
80
|
+
return () => d({ vNodes: r(o, i(m.value, p.value, {
|
|
81
|
+
label: t.labelValue,
|
|
82
|
+
modelValue: u.value,
|
|
83
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
84
|
+
disabled: f.value
|
|
85
|
+
}), { default: s.default }) });
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
//#endregion
|
|
89
|
+
export { u as t };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
stop: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
prevent: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
text: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
message: StringConstructor;
|
|
15
|
+
confirmable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
confirmText: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
confirmType: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
confirmTitle: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
loadable: BooleanConstructor;
|
|
32
|
+
loadingText: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
tag: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
icon: StringConstructor;
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
42
|
+
stop: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
prevent: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
text: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
message: StringConstructor;
|
|
55
|
+
confirmable: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
confirmText: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
confirmType: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
confirmTitle: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
loadable: BooleanConstructor;
|
|
72
|
+
loadingText: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
tag: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
icon: StringConstructor;
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
text: string;
|
|
83
|
+
stop: boolean;
|
|
84
|
+
prevent: boolean;
|
|
85
|
+
loadable: boolean;
|
|
86
|
+
loadingText: string;
|
|
87
|
+
confirmable: boolean;
|
|
88
|
+
confirmType: string;
|
|
89
|
+
confirmText: string;
|
|
90
|
+
confirmTitle: string;
|
|
91
|
+
tag: string;
|
|
92
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | {
|
|
93
|
+
props: {
|
|
94
|
+
type: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
size: StringConstructor;
|
|
99
|
+
icon: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
nativeType: {
|
|
104
|
+
type: StringConstructor;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
loading: BooleanConstructor;
|
|
108
|
+
disabled: BooleanConstructor;
|
|
109
|
+
plain: BooleanConstructor;
|
|
110
|
+
autofocus: BooleanConstructor;
|
|
111
|
+
round: BooleanConstructor;
|
|
112
|
+
text: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
tag: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "../chunks/CXsoKP22.mjs";
|
|
2
|
+
//#region src/components/button/ConfirmButton.vue
|
|
3
|
+
var t = {
|
|
4
|
+
name: "ConfirmButton",
|
|
5
|
+
mixins: [e, { props: {
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "danger"
|
|
9
|
+
},
|
|
10
|
+
size: String,
|
|
11
|
+
icon: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
nativeType: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "button"
|
|
18
|
+
},
|
|
19
|
+
loading: Boolean,
|
|
20
|
+
disabled: Boolean,
|
|
21
|
+
plain: Boolean,
|
|
22
|
+
autofocus: Boolean,
|
|
23
|
+
round: Boolean,
|
|
24
|
+
text: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "删除"
|
|
27
|
+
},
|
|
28
|
+
tag: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "ElButton"
|
|
31
|
+
}
|
|
32
|
+
} }]
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { t as default };
|