@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta37
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/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
- package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
- package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
- package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
- package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
- package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
- package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
- package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
- package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
- package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
- package/chunks/{Buc52aVh.mjs → Byr79NWq.mjs} +11 -29
- package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
- package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
- package/chunks/CE8bze--.mjs +231 -0
- package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
- package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
- package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
- package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
- package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
- package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
- package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
- package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
- package/chunks/DjX-fB-E.mjs +35 -0
- package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
- package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
- package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
- package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
- package/editable-tree/index.d.ts +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +1 -1
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +0 -14
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +0 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +36 -10
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +2 -6
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +2 -14
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +0 -24
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +0 -6
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +0 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +0 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +0 -14
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +0 -4
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +0 -2
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +25 -25
- package/package.json +1 -1
- package/pageable-table/index.d.ts +0 -38
- package/pageable-table/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/web-types.json +1 -1
- package/chunks/BLRY0zkF.mjs +0 -51
- package/chunks/BvsmTC3G.mjs +0 -229
|
@@ -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 "./CE8bze--.mjs";
|
|
2
|
+
import { n } from "./CRrdgtwT.mjs";
|
|
3
3
|
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
4
|
import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
|
|
5
5
|
import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
|
|
@@ -83,29 +83,25 @@ var f = {
|
|
|
83
83
|
disabled: !0,
|
|
84
84
|
type: !0,
|
|
85
85
|
options: !0
|
|
86
|
-
}, m =
|
|
86
|
+
}, m = (e) => n[e] === void 0 && p[e] !== !0;
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
89
|
-
function
|
|
89
|
+
function h(e) {
|
|
90
90
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/components/form/FormRadioGroup.vue
|
|
94
|
-
var
|
|
94
|
+
var g = {
|
|
95
95
|
name: "FormRadioGroup",
|
|
96
96
|
inheritAttrs: !1,
|
|
97
97
|
props: { ...f },
|
|
98
|
-
emits: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
slots: o,
|
|
106
|
-
attrs: f,
|
|
107
|
-
events: m,
|
|
108
|
-
predicate: h,
|
|
98
|
+
emits: { ...t },
|
|
99
|
+
setup(t, { slots: n, attrs: o, emit: f }) {
|
|
100
|
+
let p = c(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = e(t, {
|
|
101
|
+
emit: f,
|
|
102
|
+
slots: n,
|
|
103
|
+
attrs: o,
|
|
104
|
+
predicate: m,
|
|
109
105
|
messagePrefix: "请选择"
|
|
110
106
|
}), 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
107
|
[b.value]: "男",
|
|
@@ -120,26 +116,26 @@ var _ = {
|
|
|
120
116
|
[b.value]: "否",
|
|
121
117
|
[x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
|
|
122
118
|
}] : t.options);
|
|
123
|
-
return () =>
|
|
119
|
+
return () => g({ vNodes: a(d, s(v.value, y.value, {
|
|
124
120
|
modelValue: p.value,
|
|
125
121
|
"onUpdate:modelValue": (e) => p.value = e,
|
|
126
|
-
disabled:
|
|
122
|
+
disabled: _.value
|
|
127
123
|
}), {
|
|
128
|
-
...
|
|
129
|
-
default:
|
|
124
|
+
...n,
|
|
125
|
+
default: n.default || (() => {
|
|
130
126
|
var e;
|
|
131
127
|
return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? a(u, {
|
|
132
128
|
key: e,
|
|
133
129
|
value: e,
|
|
134
130
|
disabled: r
|
|
135
|
-
},
|
|
131
|
+
}, h(n) ? n : { default: () => [n] }) : a(l, {
|
|
136
132
|
key: e,
|
|
137
133
|
value: e,
|
|
138
134
|
disabled: r
|
|
139
|
-
},
|
|
135
|
+
}, h(n) ? n : { default: () => [n] }));
|
|
140
136
|
})
|
|
141
137
|
}) });
|
|
142
138
|
}
|
|
143
139
|
};
|
|
144
140
|
//#endregion
|
|
145
|
-
export {
|
|
141
|
+
export { g 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 "./CE8bze--.mjs";
|
|
2
|
+
import { n } from "./CRrdgtwT.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
|
|
@@ -22,8 +22,14 @@ var s = {
|
|
|
22
22
|
Boolean,
|
|
23
23
|
Object
|
|
24
24
|
],
|
|
25
|
-
trueValue:
|
|
26
|
-
|
|
25
|
+
trueValue: {
|
|
26
|
+
type: [String, Number],
|
|
27
|
+
default: "1"
|
|
28
|
+
},
|
|
29
|
+
falseValue: {
|
|
30
|
+
type: [String, Number],
|
|
31
|
+
default: "0"
|
|
32
|
+
},
|
|
27
33
|
border: {
|
|
28
34
|
type: Boolean,
|
|
29
35
|
default: !1
|
|
@@ -46,35 +52,37 @@ var s = {
|
|
|
46
52
|
id: String,
|
|
47
53
|
ariaControls: String,
|
|
48
54
|
ariaLabel: String,
|
|
49
|
-
trueLabel:
|
|
50
|
-
|
|
55
|
+
trueLabel: {
|
|
56
|
+
type: [String, Number],
|
|
57
|
+
default: "1"
|
|
58
|
+
},
|
|
59
|
+
falseLabel: {
|
|
60
|
+
type: [String, Number],
|
|
61
|
+
default: "0"
|
|
62
|
+
},
|
|
51
63
|
controls: String
|
|
52
64
|
}, c = {
|
|
53
65
|
modelValue: !0,
|
|
54
66
|
labelValue: !0
|
|
55
|
-
}, l =
|
|
67
|
+
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
56
68
|
name: "FormCheckbox",
|
|
57
69
|
inheritAttrs: !1,
|
|
58
70
|
props: { ...s },
|
|
59
|
-
emits: {
|
|
60
|
-
...t,
|
|
61
|
-
change: null
|
|
62
|
-
},
|
|
71
|
+
emits: { ...t },
|
|
63
72
|
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
64
|
-
let
|
|
73
|
+
let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
|
|
65
74
|
emit: n,
|
|
66
75
|
slots: s,
|
|
67
76
|
attrs: c,
|
|
68
|
-
|
|
69
|
-
predicate: u
|
|
77
|
+
predicate: l
|
|
70
78
|
});
|
|
71
|
-
return () =>
|
|
79
|
+
return () => d({ vNodes: r(o, i(m.value, p.value, {
|
|
72
80
|
label: t.labelValue,
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue": (e) =>
|
|
75
|
-
disabled:
|
|
81
|
+
modelValue: u.value,
|
|
82
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
83
|
+
disabled: f.value
|
|
76
84
|
}), { default: s.default }) });
|
|
77
85
|
}
|
|
78
86
|
};
|
|
79
87
|
//#endregion
|
|
80
|
-
export {
|
|
88
|
+
export { u as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as e } from "./
|
|
1
|
+
import { o as e } from "./cmuHpsX6.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 "./XqRTtFfp.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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as e } from "./
|
|
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,
|
|
3
|
-
import { ElDialog as
|
|
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
4
|
//#region src/components/dialog/props.ts
|
|
5
|
-
var
|
|
5
|
+
var S = {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: Boolean,
|
|
8
8
|
default: !1
|
|
@@ -94,79 +94,63 @@ var x = {
|
|
|
94
94
|
embed: Boolean,
|
|
95
95
|
showFullscreen: Boolean,
|
|
96
96
|
showFullScreen: Boolean
|
|
97
|
-
},
|
|
97
|
+
}, C = {
|
|
98
98
|
embed: !0,
|
|
99
99
|
height: !0,
|
|
100
100
|
showFullscreen: !0,
|
|
101
101
|
showFullScreen: !0,
|
|
102
102
|
fullscreen: !0,
|
|
103
103
|
showClose: !0
|
|
104
|
-
}, C =
|
|
105
|
-
"open",
|
|
106
|
-
"opened",
|
|
107
|
-
"close",
|
|
108
|
-
"closed",
|
|
109
|
-
"open-auto-focus",
|
|
110
|
-
"close-auto-focus"
|
|
111
|
-
], w = (e) => S[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
|
|
104
|
+
}, w = (e) => C[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
|
|
112
105
|
__name: "ElementDialog",
|
|
113
|
-
props: /* @__PURE__ */ c({ ...
|
|
106
|
+
props: /* @__PURE__ */ c({ ...S }, {
|
|
114
107
|
modelValue: {
|
|
115
108
|
type: Boolean,
|
|
116
109
|
default: !1
|
|
117
110
|
},
|
|
118
111
|
modelModifiers: {}
|
|
119
112
|
}),
|
|
120
|
-
emits: /* @__PURE__ */ c({
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
setup(c, { expose: x, emit: S }) {
|
|
130
|
-
let D = g(c, "modelValue"), O = c, k = S, A = e(O, {
|
|
131
|
-
emit: k,
|
|
132
|
-
events: C,
|
|
133
|
-
predicate: w
|
|
134
|
-
}), j = _("dialog"), M = f(O.fullscreen), N = () => {
|
|
135
|
-
M.value = !M.value, k("toggle-fullscreen", M.value);
|
|
136
|
-
}, P = t(() => M.value ? "100%" : O.height), F = s(), I = () => {
|
|
137
|
-
O.embed ? (F.parent.emit("update:visible", !1), F.parent.emit("update:modelValue", !1)) : j.value.handleClose();
|
|
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();
|
|
138
122
|
};
|
|
139
|
-
return
|
|
140
|
-
close:
|
|
141
|
-
hide:
|
|
123
|
+
return S({
|
|
124
|
+
close: L,
|
|
125
|
+
hide: L
|
|
142
126
|
}), (e, t) => {
|
|
143
|
-
let s =
|
|
127
|
+
let s = x;
|
|
144
128
|
return d(), n(s, l({
|
|
145
129
|
ref: "dialog",
|
|
146
130
|
modelValue: D.value,
|
|
147
131
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => D.value = e)
|
|
148
|
-
},
|
|
132
|
+
}, g(A), {
|
|
149
133
|
"show-close": !1,
|
|
150
|
-
fullscreen:
|
|
151
|
-
style: { "--dialog-body-height":
|
|
152
|
-
}), o({
|
|
153
|
-
header:
|
|
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", {
|
|
154
138
|
key: 0,
|
|
155
139
|
class: u(["dialog-header-button", {
|
|
156
140
|
"el-icon-full-screen": !e.fullscreen,
|
|
157
141
|
"el-icon-copy-document": e.fullscreen
|
|
158
142
|
}]),
|
|
159
|
-
onClick:
|
|
143
|
+
onClick: b(P, ["stop"])
|
|
160
144
|
}, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
|
|
161
145
|
key: 1,
|
|
162
146
|
class: "dialog-header-button el-icon-close",
|
|
163
|
-
onClick:
|
|
147
|
+
onClick: b(L, ["stop"])
|
|
164
148
|
})) : r("v-if", !0)])])]),
|
|
165
|
-
default:
|
|
149
|
+
default: y(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
|
|
166
150
|
_: 2
|
|
167
151
|
}, [e.$slots.footer ? {
|
|
168
152
|
name: "footer",
|
|
169
|
-
fn:
|
|
153
|
+
fn: y(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: L })]),
|
|
170
154
|
key: "0"
|
|
171
155
|
} : void 0]), 1040, [
|
|
172
156
|
"modelValue",
|