@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta38

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.
Files changed (103) hide show
  1. package/chunks/{BLWwTutr.mjs → B3ajWLh3.mjs} +15 -33
  2. package/chunks/{Cr1vBYne.mjs → BH_JJ8Xh.mjs} +15 -15
  3. package/chunks/{DistOy_O.mjs → BWBHzD5N.mjs} +28 -19
  4. package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
  5. package/chunks/{DcbnHU8K.mjs → BsCS7SB5.mjs} +19 -23
  6. package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
  7. package/chunks/C1AgOUe_.mjs +172 -0
  8. package/chunks/C3Uo82-I.mjs +35 -0
  9. package/chunks/C9dGL28n.mjs +56 -0
  10. package/chunks/{A3sHIRQ_.mjs → CFOGMFgo.mjs} +22 -45
  11. package/chunks/{ZXCLnZFa.mjs → CLPSCSsy.mjs} +111 -144
  12. package/chunks/{D7hD-ppq.mjs → CSyJ-vEx.mjs} +1 -1
  13. package/chunks/CTKmEf2M.mjs +93 -0
  14. package/chunks/{DFsI7Y6h.mjs → CXvGoZKJ.mjs} +12 -11
  15. package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
  16. package/chunks/Cj59E77g.mjs +230 -0
  17. package/chunks/Cj5h2Wda.mjs +32 -0
  18. package/chunks/{iWQD3xvX.mjs → CqTcEefA.mjs} +14 -16
  19. package/chunks/{axr9InkL.mjs → Ct5bDJ50.mjs} +9 -13
  20. package/chunks/{D5_ctQqL.mjs → CuG2Q-PM.mjs} +2 -2
  21. package/chunks/{CLn0r4lV.mjs → D8UVq1t1.mjs} +16 -17
  22. package/chunks/{BYAy19s4.mjs → DJe97Fgi.mjs} +2 -8
  23. package/chunks/{Buc52aVh.mjs → DXYgAmil.mjs} +12 -29
  24. package/chunks/{DQxPzCsy.mjs → DhtHh0jk.mjs} +14 -15
  25. package/chunks/{CGJkMYZ4.mjs → DiJyms_r.mjs} +12 -20
  26. package/chunks/{1cDNhlSV.mjs → TvNHGVAP.mjs} +2 -2
  27. package/chunks/{CNskrN5I.mjs → XCGWTz41.mjs} +2 -2
  28. package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
  29. package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
  30. package/chunks/{DJKE5P39.mjs → o6VhYAN52.mjs} +2 -2
  31. package/chunks/{BwdWZEjT.mjs → pdwFQpA8.mjs} +13 -18
  32. package/chunks/{_dm2lLNL.mjs → taicx2sd.mjs} +2 -2
  33. package/constants/index.d.ts +16 -5
  34. package/editable-tree/index.d.ts +1 -1
  35. package/editable-tree/index.mjs +1 -1
  36. package/element-dialog/index.d.ts +1 -1
  37. package/element-dialog/index.mjs +1 -1
  38. package/form-card/index.d.ts +14 -0
  39. package/form-card/index.mjs +18 -0
  40. package/form-cascader/index.d.ts +0 -14
  41. package/form-cascader/index.mjs +1 -1
  42. package/form-check-box-group/index.d.ts +0 -2
  43. package/form-check-box-group/index.mjs +1 -1
  44. package/form-checkbox/index.d.ts +36 -10
  45. package/form-checkbox/index.mjs +1 -1
  46. package/form-date-picker/index.mjs +1 -1
  47. package/form-holder/index.d.ts +2 -6
  48. package/form-holder/index.mjs +1 -1
  49. package/form-image/index.d.ts +2 -14
  50. package/form-image/index.mjs +1 -1
  51. package/form-input/index.d.ts +9 -26
  52. package/form-input/index.mjs +1 -1
  53. package/form-input-cron-expression/index.mjs +1 -1
  54. package/form-input-email/index.d.ts +9 -2
  55. package/form-input-email/index.mjs +1 -1
  56. package/form-input-id-card/index.d.ts +9 -2
  57. package/form-input-id-card/index.mjs +1 -1
  58. package/form-input-number/index.d.ts +0 -6
  59. package/form-input-number/index.mjs +1 -1
  60. package/form-input-phone-number/index.d.ts +9 -2
  61. package/form-input-phone-number/index.mjs +1 -1
  62. package/form-input-tag/index.d.ts +263 -1
  63. package/form-input-tag/index.mjs +1 -3
  64. package/form-input-time/index.d.ts +434 -1
  65. package/form-input-time/index.mjs +1 -3
  66. package/form-item-group/index.mjs +1 -1
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +0 -2
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.d.ts +0 -2
  71. package/form-rate/index.mjs +1 -1
  72. package/form-row/index.mjs +1 -1
  73. package/form-select/index.d.ts +0 -14
  74. package/form-select/index.mjs +1 -1
  75. package/form-slider/index.d.ts +1 -5
  76. package/form-slider/index.mjs +1 -1
  77. package/form-switch/index.d.ts +0 -2
  78. package/form-switch/index.mjs +1 -1
  79. package/form-text/index.mjs +1 -1
  80. package/form-textarea/index.d.ts +370 -0
  81. package/form-textarea/index.mjs +2 -0
  82. package/form-time-select/index.d.ts +319 -0
  83. package/form-time-select/index.mjs +2 -0
  84. package/helper/dictionary.mjs +1 -1
  85. package/iframe-window/index.mjs +1 -1
  86. package/index.d.ts +4 -1
  87. package/index.mjs +46 -43
  88. package/package.json +1 -1
  89. package/pageable-table/index.d.ts +0 -38
  90. package/pageable-table/index.mjs +1 -1
  91. package/table-column/index.mjs +1 -1
  92. package/table-column-def/index.mjs +1 -1
  93. package/table-view/index.mjs +6 -6
  94. package/toolbar/index.mjs +1 -1
  95. package/toolbar-button/index.mjs +1 -1
  96. package/web-types.json +1 -1
  97. package/x-input-tag/index.mjs +4 -3
  98. package/year-calendar/index.mjs +1 -1
  99. package/chunks/BLRY0zkF.mjs +0 -51
  100. package/chunks/BvsmTC3G.mjs +0 -229
  101. /package/chunks/{CnAEuI_c.mjs → ChmDDqoZ2.mjs} +0 -0
  102. /package/chunks/{BW6iY7Q7.mjs → DDmQcNm6.mjs} +0 -0
  103. /package/chunks/{DiE4GJtU.mjs → Ds_Tpa_M.mjs} +0 -0
@@ -1,8 +1,8 @@
1
- import { u as e } from "./BX-cVxlK.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, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withModifiers as y } from "vue";
3
- import { ElDialog as b } from "element-plus/es";
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 x = {
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
- }, S = {
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({ ...x }, {
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
- open: null,
122
- opened: null,
123
- close: null,
124
- closed: null,
125
- "open-auto-focus": null,
126
- "close-auto-focus": null,
127
- "toggle-fullscreen": null
128
- }, ["update:modelValue"]),
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 x({
140
- close: I,
141
- hide: I
123
+ return S({
124
+ close: L,
125
+ hide: L
142
126
  }), (e, t) => {
143
- let s = b;
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
- }, h(A), {
132
+ }, g(A), {
149
133
  "show-close": !1,
150
- fullscreen: h(M),
151
- style: { "--dialog-body-height": h(P) }
152
- }), o({
153
- header: v(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
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: y(N, ["stop"])
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: y(I, ["stop"])
147
+ onClick: b(L, ["stop"])
164
148
  })) : r("v-if", !0)])])]),
165
- default: v(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
149
+ default: y(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
166
150
  _: 2
167
151
  }, [e.$slots.footer ? {
168
152
  name: "footer",
169
- fn: v(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: I })]),
153
+ fn: y(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: L })]),
170
154
  key: "0"
171
155
  } : void 0]), 1040, [
172
156
  "modelValue",
@@ -0,0 +1,230 @@
1
+ import { a as e, d as t, f as n } from "./cmuHpsX6.mjs";
2
+ import { formHolderContextKey as r, formItemConfigProviderContextKey as i, formItemGroupContextKey as a } from "../constants/index.mjs";
3
+ import { isArray as o, isPlainObject as s, isString as c } from "@web-utils/core";
4
+ import { computed as l, createVNode as u, h as d, inject as f, mergeProps as p, nextTick as m, unref as h, useTemplateRef as g } from "vue";
5
+ import { ElCol as _, rowContextKey as v } from "element-plus";
6
+ import { ElCol as y, ElFormItem as b, ElTooltip as x } from "element-plus/es";
7
+ //#region src/components/form/props/form-item.ts
8
+ var S = {
9
+ prop: [String, Array],
10
+ label: String,
11
+ labelPosition: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ labelWidth: [String, Number],
16
+ required: {
17
+ type: Boolean,
18
+ default: !1
19
+ },
20
+ rules: Object,
21
+ error: String,
22
+ showMessage: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ inlineMessage: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ size: String,
31
+ for: String,
32
+ validateStatus: String,
33
+ messagePrefix: String,
34
+ message: String,
35
+ wrapCol: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ fixedSpan: Number,
40
+ block: Boolean,
41
+ unwrap: Boolean,
42
+ half: Boolean,
43
+ formItemClass: String,
44
+ hideLabel: Boolean,
45
+ tips: { type: String },
46
+ tipsAfterLabel: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ labelColspan: [Number, String],
51
+ inputColspan: [Number, String],
52
+ labelRowspan: [Number, String],
53
+ inputRowspan: [Number, String]
54
+ }, C = {
55
+ required: !0,
56
+ rules: !0,
57
+ messagePrefix: !0,
58
+ message: !0,
59
+ wrapCol: !0,
60
+ fixedSpan: !0,
61
+ block: !0,
62
+ unwrap: !0,
63
+ half: !0,
64
+ formItemClass: !0,
65
+ hideLabel: !0,
66
+ tips: !0,
67
+ tipsAfterLabel: !0,
68
+ labelColspan: !0,
69
+ inputColspan: !0,
70
+ labelRowspan: !0,
71
+ inputRowspan: !0
72
+ }, w = (e) => S[e] !== void 0 && C[e] !== !0, T = (t, { emit: n, events: r, predicate: i }) => l(() => e(t, i, r, n)), E = {
73
+ span: {
74
+ type: Number,
75
+ default: 12
76
+ },
77
+ offset: {
78
+ type: Number,
79
+ default: 0
80
+ },
81
+ push: {
82
+ type: Number,
83
+ default: 0
84
+ },
85
+ pull: {
86
+ type: Number,
87
+ default: 0
88
+ },
89
+ xs: { type: [Number, Object] },
90
+ sm: { type: [Number, Object] },
91
+ md: { type: [Number, Object] },
92
+ lg: { type: [Number, Object] },
93
+ xl: { type: [Number, Object] },
94
+ tag: {
95
+ type: String,
96
+ default: "div"
97
+ }
98
+ }, D = { span: !0 }, O = (e) => E[e] !== void 0 && D[e] !== !0, k = (t, { emit: n, events: r, predicate: i }) => l(() => e(t, i, r, n)), A = (e) => {
99
+ let t = f(r, null);
100
+ return l(() => e.required === !0 ? !0 : (t == null ? void 0 : t.requiredFieldsMap[e.prop]) === !0);
101
+ }, j = (e, t) => {
102
+ c(t) ? e.push(t) : o(t) ? e.push(...t) : s(t) && e.push(t);
103
+ }, M = (e, { rules: t, attrs: n, messagePrefix: r, message: i, ...a } = {}) => {
104
+ let o = A(e);
105
+ return l(() => {
106
+ let s = { message: i }, c = h(t);
107
+ Object.keys({
108
+ ...S,
109
+ ...E
110
+ }).forEach((t) => {
111
+ t === "rules" ? e[t] && c ? s[t] = [...e[t], ...c] : e[t] ? s[t] = e[t] : c && (s[t] = c) : t === "messagePrefix" ? s[t] = e.messagePrefix || r : s[t] = e[t];
112
+ });
113
+ let l = [];
114
+ return j(l, h(n == null ? void 0 : n.class)), j(l, h(a == null ? void 0 : a.class)), s.required = o.value, s.class = l, s.style = n == null ? void 0 : n.style, s;
115
+ });
116
+ }, N = {
117
+ name: "FormItemX",
118
+ inheritAttrs: !1,
119
+ props: {
120
+ ...S,
121
+ ...E
122
+ },
123
+ setup(e, { attrs: t, slots: n, expose: a }) {
124
+ let o = f(v, null), s = f(i, null), c = f(r, null), d = t.embed ? l(() => t.disabled) : F(e), h = T(e, { predicate: w }), _ = k(e, { predicate: O }), S = l(() => (s == null ? void 0 : s.reactive) === !0 && s.block === !1 && e.fixedSpan === void 0 && !e.half), C = A(e), E = g("formItem"), D = l(() => (s == null ? void 0 : s.wrapCol) === !1 ? !1 : !!o && e.wrapCol), j = l(() => c != null && c.tableForm ? "" : s != null && s.block ? "100%" : e.half && D.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = l(() => (s == null ? void 0 : s.block) === !0 || e.block || e.half ? 24 : e.span), N = l(() => {
125
+ if (d.value) return [];
126
+ if (C.value) {
127
+ let t = {
128
+ required: !0,
129
+ message: e.message || `${e.messagePrefix || "请输入"}${e.label}`
130
+ };
131
+ return e.rules ? [...e.rules, t] : [t];
132
+ }
133
+ return e.rules;
134
+ });
135
+ return a({
136
+ clearValidate: async () => {
137
+ var e;
138
+ await m(), (e = E.value) == null || e.clearValidate();
139
+ },
140
+ validate: async () => {
141
+ var e;
142
+ await m(), (e = E.value) == null || e.validate();
143
+ }
144
+ }), () => {
145
+ var r;
146
+ let i = n.tips || e.tips, a = i ? u(x, {
147
+ effect: "light",
148
+ content: e.tips,
149
+ offset: 4
150
+ }, {
151
+ default: () => u("i", { class: "el-icon-info form-item-input-info" }, null),
152
+ content: n.tips ? n.tips : null
153
+ }) : null, o = u(b, p(h.value, t, {
154
+ ref: "formItem",
155
+ style: { width: j.value },
156
+ class: [
157
+ "form-item",
158
+ e.formItemClass,
159
+ {
160
+ "form-item-hide-label": e.hideLabel,
161
+ "with-tips": !e.tipsAfterLabel && i,
162
+ required: d.value === !1 && C.value
163
+ }
164
+ ],
165
+ rules: N.value
166
+ }), {
167
+ ...n,
168
+ default: () => {
169
+ var t;
170
+ return [(t = n.default) == null ? void 0 : t.call(n, {
171
+ disabled: d.value,
172
+ required: C.value
173
+ }), i && !e.tipsAfterLabel ? a : null];
174
+ },
175
+ label: () => [n.label ? n.label() : e.label, e.tipsAfterLabel ? a : null]
176
+ }), s = [o, (r = n.below) == null ? void 0 : r.call(n)];
177
+ return e.unwrap ? s : D.value ? u(y, p(_.value, S.value ? {
178
+ xs: 24,
179
+ sm: 12,
180
+ md: 12,
181
+ lg: 8,
182
+ xl: 6
183
+ } : {}, { span: M.value }), { default: () => s }) : o;
184
+ };
185
+ }
186
+ }, P = "update:modelValue", F = (e) => {
187
+ let t = f(r, null), n = f(a, null);
188
+ return l(() => {
189
+ if (e.disabled !== void 0) return e.disabled;
190
+ if (t) {
191
+ if (t.requiredFieldsMap[e.prop] === !0 || t.enabledFieldsMap[e.prop] === !0) return !1;
192
+ if (t.disabledFieldsMap[e.prop] === !0) return !0;
193
+ }
194
+ return (n == null ? void 0 : n.enabled) === !0 ? !1 : (n == null ? void 0 : n.disabled) === !0 ? !0 : (t == null ? void 0 : t.disabled) === !0;
195
+ });
196
+ }, I = { [P]: null }, L = (e, t) => e(P, t), R = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? d(N, {
197
+ ...n.value,
198
+ embed: !0,
199
+ disabled: i == null ? void 0 : i.value
200
+ }, {
201
+ default: () => t,
202
+ label: r.label,
203
+ error: r.error,
204
+ tips: r.tips,
205
+ below: r.below
206
+ }) : t, z = (r, { emit: i, slots: a, attrs: o, rules: s, events: c, predicate: u, messagePrefix: f = "请输入", removeOn: p = !1, ...m }) => {
207
+ let h = F(r), g = l(() => h.value ? "" : `${f}${r.label}`), v = M(r, {
208
+ rules: s,
209
+ attrs: o,
210
+ message: g.value,
211
+ ...m
212
+ }), y = (e) => L(i, e), b = (e) => r.col ? d(_, { span: r.block ? 24 : r.span }, { default: () => e }) : e, x = ({ vNodes: e }) => R(r, {
213
+ vNodes: b(e),
214
+ formItemProps: v,
215
+ slots: a,
216
+ disabled: h
217
+ }), S = l(() => e(r, u, c, i)), C = n({ removeOn: p });
218
+ return {
219
+ emitInput: y,
220
+ render: x,
221
+ placeholder: g,
222
+ disabled: h,
223
+ formItemProps: v,
224
+ autoBind: S,
225
+ inputProps: t(r, u),
226
+ listeners: C
227
+ };
228
+ }, B = (e) => e.icon ? d("i", { class: e.icon }) : null;
229
+ //#endregion
230
+ export { N as a, S as c, z as i, I as n, M as o, R as r, E as s, B as t };
@@ -0,0 +1,32 @@
1
+ import { n as e } from "./Cj59E77g.mjs";
2
+ import { n as t, t as n } from "./CFOGMFgo.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormTextarea.vue
10
+ var c = {
11
+ name: "FormTextarea",
12
+ inheritAttrs: !1,
13
+ props: {
14
+ ...t,
15
+ maxlength: {
16
+ type: [String, Number],
17
+ default: 800
18
+ }
19
+ },
20
+ emits: { ...e },
21
+ setup(e, { slots: t, attrs: i }) {
22
+ let c = o(e, "modelValue");
23
+ return () => r(n, a(e, i, {
24
+ maxlength: e.maxlength,
25
+ modelValue: c.value,
26
+ "onUpdate:modelValue": (e) => c.value = e,
27
+ type: "email"
28
+ }), s(t) ? t : { default: () => [t] });
29
+ }
30
+ };
31
+ //#endregion
32
+ export { c as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElSlider as o } from "element-plus/es";
5
5
  //#region src/components/form/props/slide.ts
@@ -67,29 +67,27 @@ var s = {
67
67
  type: Boolean,
68
68
  default: !0
69
69
  }
70
- }, c = { modelValue: !0 }, l = ["change", "input"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
70
+ }, c = {
71
+ modelValue: !0,
72
+ disabled: !0
73
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
71
74
  name: "FormSlider",
72
75
  inheritAttrs: !1,
73
76
  props: { ...s },
74
- emits: {
75
- ...t,
76
- change: null,
77
- input: null
78
- },
77
+ emits: { ...t },
79
78
  setup(t, { emit: n, slots: s, attrs: c }) {
80
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
79
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
81
80
  emit: n,
82
81
  slots: s,
83
- events: l,
84
- predicate: u,
82
+ predicate: l,
85
83
  attrs: c
86
84
  });
87
- return () => f({ vNodes: r(o, i(m.value, {
88
- modelValue: d.value,
89
- "onUpdate:modelValue": (e) => d.value = e,
90
- disabled: p.value
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
91
89
  }), null) });
92
90
  }
93
91
  };
94
92
  //#endregion
95
- export { d as t };
93
+ export { u as t };
@@ -1,6 +1,6 @@
1
- import { u as e } from "./BX-cVxlK.mjs";
2
- import { o as t, r as n } from "./BvsmTC3G.mjs";
3
- import { n as r } from "./D7hD-ppq.mjs";
1
+ import { d as e } from "./cmuHpsX6.mjs";
2
+ import { o as t, r as n } from "./Cj59E77g.mjs";
3
+ import { n as r } from "./CSyJ-vEx.mjs";
4
4
  import { createVNode as i, mergeProps as a } from "vue";
5
5
  import { ElText as o } from "element-plus/es";
6
6
  //#region src/components/form/props/text.ts
@@ -21,22 +21,18 @@ var s = {
21
21
  default: "span"
22
22
  },
23
23
  text: String
24
- }, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
24
+ }, c = { modelValue: !0 }, l = (e) => r[e] === void 0 && c[e] !== !0, u = {
25
25
  name: "FormText",
26
26
  inheritAttrs: !1,
27
27
  props: { ...s },
28
- setup(r, { slots: s, emit: c, attrs: d }) {
29
- let f = t(r, { attrs: d }), p = e(r, {
30
- events: l,
31
- predicate: u,
32
- emit: c
33
- });
28
+ setup(r, { slots: s, attrs: c }) {
29
+ let u = t(r, { attrs: c }), d = e(r, l);
34
30
  return () => n(r, {
35
- vNodes: i(o, a(p.value, d), { default: s.default || (() => r.text) }),
36
- formItemProps: f,
31
+ vNodes: i(o, a(d.value, c), { default: s.default || (() => r.text) }),
32
+ formItemProps: u,
37
33
  slots: s
38
34
  });
39
35
  }
40
36
  };
41
37
  //#endregion
42
- export { d as t };
38
+ export { u as t };
@@ -1,7 +1,7 @@
1
- import { i as e } from "./BX-cVxlK.mjs";
1
+ import { i as e } from "./cmuHpsX6.mjs";
2
2
  import { getDictLabel as t } from "../helper/dictionary.mjs";
3
3
  import { tableViewContextKey as n } from "../constants/index.mjs";
4
- import { t as r } from "./DiE4GJtU.mjs";
4
+ import { t as r } from "./Ds_Tpa_M.mjs";
5
5
  import { computed as i, createVNode as a, inject as o, mergeProps as s, ref as c, watchEffect as l } from "vue";
6
6
  import { ElTableColumn as u } from "element-plus/es";
7
7
  //#endregion
@@ -1,7 +1,7 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
- import { t as i } from "./A3sHIRQ_.mjs";
4
+ import { t as i } from "./CFOGMFgo.mjs";
5
5
  import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
6
6
  import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
7
7
  //#region src/components/form/props/checkbox-group.ts
@@ -81,31 +81,30 @@ var m = {
81
81
  }, h = {
82
82
  modelValue: !0,
83
83
  type: !0,
84
+ disabled: !0,
84
85
  options: !0
85
- }, g = ["change"], _ = (e) => n[e] === void 0 && h[e] !== !0;
86
+ }, g = (e) => n[e] === void 0 && h[e] !== !0;
86
87
  //#endregion
87
88
  //#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
88
- function v(e) {
89
+ function _(e) {
89
90
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
90
91
  }
91
92
  //#endregion
92
93
  //#region src/components/form/FormCheckBoxGroup.vue
93
- var y = /* @__PURE__ */ s({
94
+ var v = /* @__PURE__ */ s({
94
95
  name: "FormCheckBoxGroup",
95
96
  inheritAttrs: !1,
96
97
  props: { ...m },
97
98
  emits: {
98
99
  ...t,
99
- "update:other": null,
100
- change: null
100
+ "update:other": null
101
101
  },
102
102
  setup(t, { emit: n, slots: s, attrs: c }) {
103
- let m = u(t, "other"), { emitInput: h, render: y, disabled: b, autoBind: x } = e(t, {
103
+ let m = u(t, "other"), { emitInput: h, render: v, disabled: y, listeners: b, inputProps: x } = e(t, {
104
104
  emit: n,
105
105
  slots: s,
106
106
  attrs: c,
107
- events: g,
108
- predicate: _,
107
+ predicate: g,
109
108
  messagePrefix: "请选择",
110
109
  class: a(() => ["form-checkbox-group", {
111
110
  "form-checkbox-group-row": t.fillRow,
@@ -134,9 +133,9 @@ var y = /* @__PURE__ */ s({
134
133
  [w.value]: "否",
135
134
  [T.value]: "否"
136
135
  }] : t.options);
137
- return () => y({ vNodes: [o(p, l(x.value, {
136
+ return () => v({ vNodes: [o(p, l(b.value, x.value, {
138
137
  modelValue: C.value,
139
- disabled: b.value,
138
+ disabled: y.value,
140
139
  "onUpdate:modelValue": S
141
140
  }), {
142
141
  ...s,
@@ -146,11 +145,11 @@ var y = /* @__PURE__ */ s({
146
145
  key: e,
147
146
  value: e,
148
147
  disabled: r
149
- }, v(n) ? n : { default: () => [n] }) : o(d, {
148
+ }, _(n) ? n : { default: () => [n] }) : o(d, {
150
149
  key: e,
151
150
  value: e,
152
151
  disabled: r
153
- }, v(n) ? n : { default: () => [n] }));
152
+ }, _(n) ? n : { default: () => [n] }));
154
153
  })
155
154
  }), C.value.includes(t.otherVal) ? o(i, {
156
155
  "wrap-col": !1,
@@ -158,7 +157,7 @@ var y = /* @__PURE__ */ s({
158
157
  "hide-label": !0,
159
158
  "label-width": "0",
160
159
  prop: t.otherProp,
161
- disabled: b.value,
160
+ disabled: y.value,
162
161
  required: !!t.otherProp,
163
162
  placeholder: t.otherPlaceholder,
164
163
  label: t.otherLabel,
@@ -174,4 +173,4 @@ var y = /* @__PURE__ */ s({
174
173
  }
175
174
  });
176
175
  //#endregion
177
- export { y as t };
176
+ export { v as t };
@@ -65,15 +65,9 @@ var T = {
65
65
  return y(() => {
66
66
  k.value = !l.collapse;
67
67
  }), f(e, F), d(() => {
68
- if (!l.notDispatch) {
69
- var e;
70
- D == null || (e = D.addGroup) == null || e.call(D, F);
71
- }
68
+ l.notDispatch || D == null || D.addGroup(F);
72
69
  }), u(() => {
73
- if (!l.notDispatch) {
74
- var e;
75
- D == null || (e = D.removeGroup) == null || e.call(D, F);
76
- }
70
+ l.notDispatch || D == null || D.removeGroup(F);
77
71
  }), T(F), () => {
78
72
  let e = () => {
79
73
  var e;
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
4
  import { isNumber as i, isPlainObject as a, isString as o } from "@web-utils/core";
5
5
  import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
@@ -200,6 +200,7 @@ var m = {
200
200
  }, h = {
201
201
  modelValue: !0,
202
202
  emptyValues: !0,
203
+ disabled: !0,
203
204
  dropDownOffset: !0,
204
205
  valueOnClear: !0,
205
206
  options: !0,
@@ -217,35 +218,17 @@ var m = {
217
218
  typing: !0,
218
219
  multipleStringMode: !0,
219
220
  multipleStringSeparator: !0
220
- }, g = [
221
- "change",
222
- "visible-change",
223
- "remove-tag",
224
- "clear",
225
- "blur",
226
- "focus",
227
- "popup-scroll"
228
- ], _ = (e) => n[e] === void 0 && h[e] !== !0, v = {
221
+ }, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
229
222
  name: "FormSelect",
230
223
  inheritAttrs: !1,
231
224
  props: { ...m },
232
- emits: {
233
- ...t,
234
- change: null,
235
- "visible-change": null,
236
- "remove-tag": null,
237
- clear: null,
238
- blur: null,
239
- focus: null,
240
- "popup-scroll": null
241
- },
225
+ emits: { ...t },
242
226
  setup(t, { emit: n, slots: m, attrs: h }) {
243
- let { emitInput: v, render: y, placeholder: b, disabled: x, autoBind: S } = e(t, {
227
+ let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = e(t, {
244
228
  emit: n,
245
229
  slots: m,
246
230
  attrs: h,
247
- events: g,
248
- predicate: _,
231
+ predicate: g,
249
232
  messagePrefix: "请选择"
250
233
  }), C = u(null), w = u(!1);
251
234
  d(() => {
@@ -255,7 +238,7 @@ var m = {
255
238
  } else C.value = t.modelValue;
256
239
  });
257
240
  let T = (e) => {
258
- if (t.multiple && t.multipleStringMode ? v(e.join(t.multipleStringSeparator)) : v(e), t.emitLabel) {
241
+ if (t.multiple && t.multipleStringMode ? _(e.join(t.multipleStringSeparator)) : _(e), t.emitLabel) {
259
242
  let r = O.value.find((n) => n[t.props.value] === e), i = r == null ? void 0 : r[t.props.label];
260
243
  i !== t.optionLabel && n("update:optionLabel", i);
261
244
  }
@@ -311,12 +294,12 @@ var m = {
311
294
  };
312
295
  return d(() => {
313
296
  t.remote && k();
314
- }), () => y({ vNodes: c(p, l(S.value, {
297
+ }), () => v({ vNodes: c(p, l(x.value, S.value, {
315
298
  offset: t.dropDownOffset,
316
299
  "model-value": C.value,
317
300
  "onUpdate:modelValue": T,
318
- disabled: x.value,
319
- placeholder: b.value
301
+ disabled: b.value,
302
+ placeholder: y.value
320
303
  }), {
321
304
  ...m,
322
305
  default: m.default || (() => {
@@ -331,4 +314,4 @@ var m = {
331
314
  }
332
315
  };
333
316
  //#endregion
334
- export { v as t };
317
+ export { _ as t };