@web-utils/form-ui 1.0.0-beta5 → 1.0.0-beta50
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/B-zqRAXo.mjs +69 -0
- package/chunks/B1IPSTA6.mjs +198 -0
- package/chunks/B9gA65rt2.mjs +38 -0
- package/chunks/BA2KEptL.mjs +172 -0
- package/chunks/BBERmTup.mjs +83 -0
- package/chunks/BUGCiCnl.mjs +83 -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/ByHz4mmh.mjs +87 -0
- package/chunks/C2zgFLYO.mjs +185 -0
- package/chunks/CAd1zK9Q.mjs +25 -0
- package/chunks/CJdkjadi.mjs +17 -0
- package/chunks/CabldOLo.mjs +157 -0
- package/chunks/CkOD-_VV.mjs +8 -0
- package/chunks/Cln3RBAD.mjs +660 -0
- package/chunks/CqoVAnxC2.mjs +93 -0
- package/chunks/CuAoMR3n.mjs +105 -0
- package/chunks/CxTg0r4n.mjs +166 -0
- package/chunks/D0Zg2CV0.mjs +57 -0
- package/chunks/DA7oGHSX.mjs +141 -0
- package/chunks/DOP3aBxf.mjs +93 -0
- package/chunks/DOZRzqlo.mjs +37 -0
- package/chunks/D_qiRmiE.mjs +230 -0
- package/chunks/DcTVYqeJ.mjs +113 -0
- package/chunks/Dkd5BC98.mjs +198 -0
- package/chunks/GI8krYU82.mjs +478 -0
- package/chunks/V2p-PCpL.mjs +176 -0
- package/chunks/bFbPPcdq.mjs +25 -0
- package/chunks/cqIZWDHo.mjs +614 -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/hzaYr6Ud2.mjs +207 -0
- package/chunks/kflKDW4T2.mjs +146 -0
- package/chunks/pIzhYsBe.mjs +93 -0
- package/chunks/vXQf89tS.mjs +1361 -0
- package/chunks/wXeqV-_7.mjs +89 -0
- package/chunks/zwXzk9ff2.mjs +568 -0
- package/confirm-button/index.d.ts +115 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +86 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +53 -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 +116 -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 +398 -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 +472 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +97 -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 +340 -1
- package/table-view/index.mjs +454 -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,207 @@
|
|
|
1
|
+
import { s as e } from "./DcTVYqeJ.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 "./CxTg0r4n.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 };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { i as e } from "./DcTVYqeJ.mjs";
|
|
2
|
+
import { i as t, n } from "./D_qiRmiE.mjs";
|
|
3
|
+
import { n as r, t as i } from "./CJdkjadi.mjs";
|
|
4
|
+
import { r as a } from "./CabldOLo.mjs";
|
|
5
|
+
import { n as o } from "./gCeDFHo1.mjs";
|
|
6
|
+
import { n as s, t as c } from "./zwXzk9ff2.mjs";
|
|
7
|
+
import { isArray as l, isString as u, trace as d, warning as f } from "@web-utils/core";
|
|
8
|
+
import { computed as p, createVNode as m, getCurrentInstance as h, mergeProps as g, useModel as _, useTemplateRef as v } from "vue";
|
|
9
|
+
import { useEventBus as y } from "@web-utils/vue/hooks/useEventBus";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormTablePlus.vue
|
|
12
|
+
var b = {
|
|
13
|
+
name: "FormTablePlus",
|
|
14
|
+
props: {
|
|
15
|
+
...r,
|
|
16
|
+
...i,
|
|
17
|
+
...s,
|
|
18
|
+
rowDbClick: Function,
|
|
19
|
+
viewId: [String, Array],
|
|
20
|
+
block: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
formPath: [String, Function]
|
|
25
|
+
},
|
|
26
|
+
emits: { ...n },
|
|
27
|
+
setup(n, { emit: r, slots: i, attrs: s, expose: b }) {
|
|
28
|
+
let x = _(n, "modelValue"), S = v("table"), C = [];
|
|
29
|
+
n.viewId && C.push(n.viewId);
|
|
30
|
+
let w = h();
|
|
31
|
+
C.includes(w.parent.proxy.$options.name) || C.push(w.parent.proxy.$options.name);
|
|
32
|
+
let T = () => {
|
|
33
|
+
var e;
|
|
34
|
+
return (e = S.value.table) == null ? void 0 : e.reloadTable();
|
|
35
|
+
}, E = async () => {
|
|
36
|
+
var e;
|
|
37
|
+
return await ((e = S.value.table) == null ? void 0 : e.refreshTable());
|
|
38
|
+
};
|
|
39
|
+
y("reloadTableView", (e) => {
|
|
40
|
+
if (C) if (u(e) || l(e)) {
|
|
41
|
+
let t = e;
|
|
42
|
+
u(t) && (t = t.split(",")), C.some((e) => t.includes(e)) && (d.call(w.parent.proxy || {}, "reloadTableView"), T());
|
|
43
|
+
} else f.call(w.parent.proxy || {}, "`viewId`的类型必须是字符串或数组");
|
|
44
|
+
});
|
|
45
|
+
let D = (...t) => {
|
|
46
|
+
n.rowDbClick ? n.rowDbClick(...t) : w.proxy.$router.push(e(n.formPath, t[0]));
|
|
47
|
+
}, O = () => {
|
|
48
|
+
w.proxy.$router.push(e(n.formPath));
|
|
49
|
+
}, { render: k, placeholder: A, disabled: j, listeners: M, inputProps: N } = t(n, {
|
|
50
|
+
rules: p(() => [n.fetchApi ? {
|
|
51
|
+
required: !0,
|
|
52
|
+
validator: a
|
|
53
|
+
} : { required: !0 }]),
|
|
54
|
+
emit: r,
|
|
55
|
+
slots: i,
|
|
56
|
+
attrs: s,
|
|
57
|
+
predicate: o
|
|
58
|
+
});
|
|
59
|
+
return b({
|
|
60
|
+
reloadTable: T,
|
|
61
|
+
refreshTable: E
|
|
62
|
+
}), () => {
|
|
63
|
+
var e;
|
|
64
|
+
let t = {};
|
|
65
|
+
for (let r = 0; r < (((e = n.columns) == null ? void 0 : e.length) ?? 0); r++) {
|
|
66
|
+
let e = n.columns[r];
|
|
67
|
+
t[e.prop] = ({ row: t, column: n, index: r, prop: a, required: o }) => {
|
|
68
|
+
var s;
|
|
69
|
+
return (s = i[e.prop]) == null ? void 0 : s.call(i, {
|
|
70
|
+
row: t,
|
|
71
|
+
column: n,
|
|
72
|
+
index: r,
|
|
73
|
+
prop: a,
|
|
74
|
+
required: o
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
return k({ vNodes: m(c, g({ ref: "table" }, M.value, N.value, {
|
|
79
|
+
prop: n.prop,
|
|
80
|
+
disabled: j.value,
|
|
81
|
+
"on-row-db-click": D,
|
|
82
|
+
modelValue: x.value,
|
|
83
|
+
"onUpdate:modelValue": (e) => x.value = e,
|
|
84
|
+
placeholder: A.value,
|
|
85
|
+
onAddRow: O
|
|
86
|
+
}), {
|
|
87
|
+
...t,
|
|
88
|
+
columns: ({ columns: e }) => {
|
|
89
|
+
var t;
|
|
90
|
+
return (t = i.columns) == null ? void 0 : t.call(i, { columns: e });
|
|
91
|
+
},
|
|
92
|
+
handle: ({ add: e, remove: t }) => {
|
|
93
|
+
var n;
|
|
94
|
+
return (n = i.handle) == null ? void 0 : n.call(i, {
|
|
95
|
+
add: e,
|
|
96
|
+
remove: t
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
tag: ({ column: e, row: t, $index: n }) => {
|
|
100
|
+
var r;
|
|
101
|
+
return (r = i.tag) == null ? void 0 : r.call(i, {
|
|
102
|
+
column: e,
|
|
103
|
+
row: t,
|
|
104
|
+
index: n
|
|
105
|
+
});
|
|
106
|
+
},
|
|
107
|
+
"handle-column-header": ({ column: e, $index: t }) => {
|
|
108
|
+
var n;
|
|
109
|
+
return (n = i["handle-column-header"]) == null ? void 0 : n.call(i, {
|
|
110
|
+
column: e,
|
|
111
|
+
index: t
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
toolbar: () => {
|
|
115
|
+
var e;
|
|
116
|
+
return (e = i.toolbar) == null ? void 0 : e.call(i);
|
|
117
|
+
},
|
|
118
|
+
"toolbar-left": ({ addRow: e, delRow: t, refresh: n }) => {
|
|
119
|
+
var r;
|
|
120
|
+
return (r = i["toolbar-left"]) == null ? void 0 : r.call(i, {
|
|
121
|
+
addRow: e,
|
|
122
|
+
delRow: t,
|
|
123
|
+
refresh: n
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
"toolbar-left-append": ({ addRow: e, delRow: t, refresh: n }) => {
|
|
127
|
+
var r;
|
|
128
|
+
return (r = i["toolbar-left-append"]) == null ? void 0 : r.call(i, {
|
|
129
|
+
addRow: e,
|
|
130
|
+
delRow: t,
|
|
131
|
+
refresh: n
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
"toolbar-right": ({ selectedRows: e, removeSelectedRows: t }) => {
|
|
135
|
+
var n;
|
|
136
|
+
return (n = i["toolbar-right"]) == null ? void 0 : n.call(i, {
|
|
137
|
+
selectedRows: e,
|
|
138
|
+
removeSelectedRows: t
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}) });
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
export { b 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 };
|