@web-utils/form-ui 1.0.0-beta16 → 1.0.0-beta18

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 (102) hide show
  1. package/base.css +1 -1
  2. package/chunks/53gSZ624.mjs +41 -0
  3. package/chunks/7Desvoh-.mjs +222 -0
  4. package/chunks/7vQ29mMd.mjs +53 -0
  5. package/chunks/8ORg8rrN.mjs +108 -0
  6. package/chunks/B4LDPAZu.mjs +98 -0
  7. package/chunks/B5B9au3z.mjs +180 -0
  8. package/chunks/BVzpe2oN.mjs +76 -0
  9. package/chunks/Bb5BT11-.mjs +26 -0
  10. package/chunks/Bh_CMUlo.mjs +12 -0
  11. package/chunks/Bj5l6sFx.mjs +73 -0
  12. package/chunks/BsbfEk0E.mjs +26 -0
  13. package/chunks/C1DlzLpD.mjs +222 -0
  14. package/chunks/CFwUzdTu.mjs +95 -0
  15. package/chunks/CKw_uzPc.mjs +108 -0
  16. package/chunks/D2WviyxF.mjs +166 -0
  17. package/chunks/D9GcEl6r.mjs +8 -0
  18. package/chunks/DCKxvrCR.mjs +189 -0
  19. package/chunks/DH1_fmkX.mjs +26 -0
  20. package/chunks/DUDm42gn.mjs +100 -0
  21. package/chunks/DgbDpRQg.mjs +51 -0
  22. package/chunks/DkqF25wT.mjs +106 -0
  23. package/chunks/DynLjTwi.mjs +17 -0
  24. package/chunks/Q9EsFJ4H.mjs +88 -0
  25. package/chunks/wfL1FAwc.mjs +1360 -0
  26. package/constants.d.ts +26 -1
  27. package/constants.mjs +2 -2
  28. package/element-dialog/index.d.ts +58 -15
  29. package/element-dialog/index.mjs +2 -94
  30. package/form-cascader/index.d.ts +2 -0
  31. package/form-cascader/index.mjs +10 -0
  32. package/form-check-box-group/index.d.ts +196 -22
  33. package/form-check-box-group/index.mjs +1 -1
  34. package/form-checkbox/index.d.ts +188 -24
  35. package/form-checkbox/index.mjs +1 -1
  36. package/form-date-picker/index.d.ts +307 -20
  37. package/form-date-picker/index.mjs +1 -1
  38. package/form-holder/index.d.ts +92 -21
  39. package/form-holder/index.mjs +1 -1
  40. package/form-holder/style.css +1 -1
  41. package/form-image/index.d.ts +138 -20
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.d.ts +281 -40
  44. package/form-input/index.mjs +1 -1
  45. package/form-input-cron-expression/index.d.ts +215 -0
  46. package/form-input-cron-expression/index.mjs +2 -0
  47. package/form-input-cron-expression/style.css +1 -0
  48. package/form-input-email/index.d.ts +279 -21
  49. package/form-input-email/index.mjs +1 -1
  50. package/form-input-id-card/index.d.ts +279 -21
  51. package/form-input-id-card/index.mjs +1 -1
  52. package/form-input-number/index.d.ts +228 -24
  53. package/form-input-number/index.mjs +1 -1
  54. package/form-input-phone-number/index.d.ts +279 -21
  55. package/form-input-phone-number/index.mjs +1 -1
  56. package/form-item-config-provider/index.d.ts +3 -1
  57. package/form-item-config-provider/index.mjs +1 -1
  58. package/form-item-group/index.mjs +46 -30
  59. package/form-item-x/index.d.ts +124 -15
  60. package/form-item-x/index.mjs +1 -1
  61. package/form-radio-group/index.d.ts +196 -22
  62. package/form-radio-group/index.mjs +1 -1
  63. package/form-rate/index.d.ts +232 -18
  64. package/form-rate/index.mjs +1 -1
  65. package/form-row/index.mjs +1 -1
  66. package/form-select/index.d.ts +455 -22
  67. package/form-select/index.mjs +1 -1
  68. package/form-slider/index.d.ts +261 -18
  69. package/form-slider/index.mjs +1 -1
  70. package/form-switch/index.d.ts +238 -20
  71. package/form-switch/index.mjs +1 -1
  72. package/form-text/index.d.ts +144 -20
  73. package/form-text/index.mjs +1 -1
  74. package/index.d.ts +4 -1
  75. package/index.mjs +37 -60
  76. package/month-calendar/index.mjs +312 -2
  77. package/month-calendar/style.css +1 -1
  78. package/package.json +3 -1
  79. package/vue-cron/index.d.ts +191 -0
  80. package/vue-cron/index.mjs +2 -0
  81. package/vue-cron/style.css +1 -0
  82. package/web-types.json +1 -1
  83. package/year-calendar/index.mjs +2 -1
  84. package/chunks/B5BIQCcK.mjs +0 -149
  85. package/chunks/BDhGvPmU.mjs +0 -32
  86. package/chunks/BXOvvlL2.mjs +0 -35
  87. package/chunks/C6tYoDfK.mjs +0 -43
  88. package/chunks/CAYDWMXC.mjs +0 -47
  89. package/chunks/CXHvVx2H.mjs +0 -54
  90. package/chunks/CykRgGj0.mjs +0 -90
  91. package/chunks/D4SiGR5u.mjs +0 -28
  92. package/chunks/DAEpRn3D.mjs +0 -28
  93. package/chunks/DK2YoEOD.mjs +0 -167
  94. package/chunks/DL4ovOwO.mjs +0 -36
  95. package/chunks/DXrQ5tWJ.mjs +0 -35
  96. package/chunks/Xww4oyW1.mjs +0 -47
  97. package/chunks/ciEWoJ1U.mjs +0 -23
  98. package/chunks/dwnrVqcq.mjs +0 -315
  99. package/chunks/jpMiw_3M.mjs +0 -74
  100. package/chunks/vlkluoXb.mjs +0 -32
  101. package/chunks/wo0ekOcp.mjs +0 -28
  102. /package/chunks/{CI_28Uw4.mjs → 98bTmBOR.mjs} +0 -0
package/base.css CHANGED
@@ -1 +1 @@
1
- :root{--el-disabled-text-color:#606266}
1
+ :root{--el-disabled-text-color:#606266}.border-bottom{border-bottom:1px solid #d7dae0}.clear-fix:after{clear:both;visibility:hidden;content:" ";height:0;display:block}.flex-row{flex-direction:row;flex-shrink:0;display:flex}.flex-row.vertical-center{align-items:center}.flex-row.vertical-start{align-items:flex-start}.flex-row.horizon-center{justify-content:center}.text-center{text-align:center}.flex-column{flex-direction:column;display:flex}.flex-column.vertical-center{justify-content:center}.flex-column.horizon-center{align-items:center}.flex-item,.flex-item-relative{flex:auto}.flex-item-relative{position:relative}.flex-item-relative .flex-content{position:absolute;top:0;bottom:0;left:0;right:0}.flex-not-shrink{flex-shrink:0}
@@ -0,0 +1,41 @@
1
+ import { n as e } from "./Bh_CMUlo.mjs";
2
+ import { o as t, r as n } from "./C1DlzLpD.mjs";
3
+ import { n as r } from "./DynLjTwi.mjs";
4
+ import { ElText as i } from "element-plus/es";
5
+ import { createVNode as a, mergeProps as o } from "vue";
6
+ //#region src/components/form/props/text.js
7
+ var s = {
8
+ ...r,
9
+ type: String,
10
+ size: {
11
+ type: String,
12
+ default: "default"
13
+ },
14
+ truncated: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ lineClamp: [String, Number],
19
+ tag: {
20
+ type: String,
21
+ default: "span"
22
+ }
23
+ }, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
24
+ name: "FormText",
25
+ inheritAttrs: !1,
26
+ props: { ...s },
27
+ setup(r, { slots: s, emit: c, attrs: d }) {
28
+ let f = t(r, { attrs: d }), p = e(r, {
29
+ events: l,
30
+ predicate: u,
31
+ emit: c
32
+ });
33
+ return () => n(r, {
34
+ vNodes: a(i, o(p.value, d), { default: s.default || (() => r.text) }),
35
+ formItemProps: f,
36
+ slots: s
37
+ });
38
+ }
39
+ };
40
+ //#endregion
41
+ export { d as t };
@@ -0,0 +1,222 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElOption as r, ElSelect as i } from "element-plus/es";
4
+ import { createVNode as a, mergeProps as o, useModel as s } from "vue";
5
+ //#region src/components/form/props/select.js
6
+ var c = {
7
+ ...n,
8
+ modelValue: [
9
+ String,
10
+ Number,
11
+ Boolean,
12
+ Object,
13
+ Array
14
+ ],
15
+ multiple: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ options: Array,
20
+ props: Object,
21
+ valueKey: {
22
+ type: String,
23
+ default: "value"
24
+ },
25
+ size: String,
26
+ clearable: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ collapseTags: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ collapseTagsTooltip: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ tagTooltip: {
39
+ type: Object,
40
+ default: () => ({})
41
+ },
42
+ multipleLimit: {
43
+ type: Number,
44
+ default: 0
45
+ },
46
+ id: String,
47
+ name: String,
48
+ effect: {
49
+ type: String,
50
+ default: "light"
51
+ },
52
+ autocomplete: {
53
+ type: String,
54
+ default: "off"
55
+ },
56
+ placeholder: String,
57
+ filterable: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ allowCreate: {
62
+ type: Boolean,
63
+ default: !1
64
+ },
65
+ filterMethod: Function,
66
+ remote: {
67
+ type: Boolean,
68
+ default: !1
69
+ },
70
+ debounce: {
71
+ type: Number,
72
+ default: 300
73
+ },
74
+ remoteMethod: Function,
75
+ remoteShowSuffix: {
76
+ type: Boolean,
77
+ default: !1
78
+ },
79
+ loading: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ loadingText: String,
84
+ noMatchText: String,
85
+ noDataText: String,
86
+ popperClass: {
87
+ type: String,
88
+ default: ""
89
+ },
90
+ popperStyle: [String, Object],
91
+ reserveKeyword: {
92
+ type: Boolean,
93
+ default: !0
94
+ },
95
+ defaultFirstOption: {
96
+ type: Boolean,
97
+ default: !1
98
+ },
99
+ teleported: {
100
+ type: Boolean,
101
+ default: !0
102
+ },
103
+ appendTo: [String, Object],
104
+ persistent: {
105
+ type: Boolean,
106
+ default: !0
107
+ },
108
+ automaticDropdown: {
109
+ type: Boolean,
110
+ default: !1
111
+ },
112
+ clearIcon: [String, Object],
113
+ fitInputWidth: {
114
+ type: Boolean,
115
+ default: !1
116
+ },
117
+ suffixIcon: [String, Object],
118
+ tagType: {
119
+ type: String,
120
+ default: "info"
121
+ },
122
+ tagEffect: {
123
+ type: String,
124
+ default: "light"
125
+ },
126
+ validateEvent: {
127
+ type: Boolean,
128
+ default: !0
129
+ },
130
+ offset: {
131
+ type: Number,
132
+ default: 12
133
+ },
134
+ showArrow: {
135
+ type: Boolean,
136
+ default: !0
137
+ },
138
+ placement: {
139
+ type: String,
140
+ default: "bottom-start"
141
+ },
142
+ fallbackPlacements: {
143
+ type: Array,
144
+ default: () => [
145
+ "bottom-start",
146
+ "top-start",
147
+ "right",
148
+ "left"
149
+ ]
150
+ },
151
+ maxCollapseTags: {
152
+ type: Number,
153
+ default: 1
154
+ },
155
+ popperOptions: {
156
+ type: Object,
157
+ default: () => ({})
158
+ },
159
+ ariaLabel: String,
160
+ emptyValues: Array,
161
+ valueOnClear: [
162
+ String,
163
+ Number,
164
+ Boolean,
165
+ Function
166
+ ],
167
+ suffixTransition: {
168
+ type: Boolean,
169
+ default: !0
170
+ },
171
+ tabindex: [String, Number]
172
+ }, l = { modelValue: !0 }, u = [
173
+ "change",
174
+ "visible-change",
175
+ "remove-tag",
176
+ "clear",
177
+ "blur",
178
+ "focus",
179
+ "popup-scroll"
180
+ ], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
181
+ name: "FormSelect",
182
+ inheritAttrs: !1,
183
+ props: { ...c },
184
+ emits: {
185
+ ...t,
186
+ change: null,
187
+ "visible-change": null,
188
+ "remove-tag": null,
189
+ clear: null,
190
+ blur: null,
191
+ focus: null,
192
+ "popup-scroll": null
193
+ },
194
+ setup(t, { emit: n, slots: c, attrs: l }) {
195
+ let f = s(t, "modelValue"), { render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
196
+ emit: n,
197
+ slots: c,
198
+ attrs: l,
199
+ events: u,
200
+ predicate: d,
201
+ messagePrefix: "请选择"
202
+ });
203
+ return () => p({ vNodes: a(i, o(g.value, {
204
+ modelValue: f.value,
205
+ "onUpdate:modelValue": (e) => f.value = e,
206
+ disabled: h.value,
207
+ placeholder: m.value
208
+ }), {
209
+ ...c,
210
+ default: c.default || (() => {
211
+ var e;
212
+ return (e = t.options) == null ? void 0 : e.map(({ value: e, label: t }) => a(r, {
213
+ key: e,
214
+ label: t,
215
+ value: e
216
+ }, null));
217
+ })
218
+ }) });
219
+ }
220
+ };
221
+ //#endregion
222
+ export { f as t };
@@ -0,0 +1,53 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n, t as r } from "./DynLjTwi.mjs";
3
+ import { n as i, r as a } from "./DkqF25wT.mjs";
4
+ import { t as o } from "./wfL1FAwc.mjs";
5
+ import { ElInput as s, ElPopover as c } from "element-plus/es";
6
+ import { createVNode as l, mergeProps as u, ref as d } from "vue";
7
+ //#endregion
8
+ //#region src/components/form/FormInputCronExpression.vue
9
+ var f = {
10
+ name: "FormInputCronExpression",
11
+ props: {
12
+ ...n,
13
+ ...r,
14
+ modelValue: [String, Number]
15
+ },
16
+ emits: { ...t },
17
+ setup(t, { emit: n, slots: r, attrs: f }) {
18
+ let p = d(!1), { emitInput: m, render: h, placeholder: g, disabled: _, autoBind: v } = e(t, {
19
+ emit: n,
20
+ slots: r,
21
+ attrs: f,
22
+ events: i,
23
+ predicate: a
24
+ }), y = () => {
25
+ p.value = !0;
26
+ }, b = () => {
27
+ p.value = !1;
28
+ };
29
+ return () => h({ vNodes: l("div", { class: "cron" }, [l(c, {
30
+ placement: "bottom-start",
31
+ disabled: _.value,
32
+ modelValue: p.value,
33
+ "onUpdate:modelValue": (e) => p.value = e,
34
+ "popper-class": "cron-popover"
35
+ }, {
36
+ default: () => l(o, u(v.value, {
37
+ i18n: "cn",
38
+ expression: t.modelValue,
39
+ onChange: m,
40
+ onClose: b
41
+ }), null),
42
+ reference: () => l(s, {
43
+ modelValue: t.modelValue,
44
+ readonly: !0,
45
+ disabled: _.value,
46
+ placeholder: g.value,
47
+ onClick: y
48
+ }, null)
49
+ })]) });
50
+ }
51
+ };
52
+ //#endregion
53
+ export { f as t };
@@ -0,0 +1,108 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElCheckbox as r, ElCheckboxButton as i, ElCheckboxGroup as a } from "element-plus/es";
4
+ import { computed as o, createVNode as s, isVNode as c, mergeProps as l } from "vue";
5
+ //#region src/components/form/props/checkbox-group.js
6
+ var u = {
7
+ ...n,
8
+ modelValue: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ size: String,
13
+ min: Number,
14
+ max: Number,
15
+ ariaLabel: String,
16
+ textColor: {
17
+ type: String,
18
+ default: "#ffffff"
19
+ },
20
+ fill: {
21
+ type: String,
22
+ default: "#409eff"
23
+ },
24
+ tag: {
25
+ type: String,
26
+ default: "div"
27
+ },
28
+ validateEvent: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ label: String,
33
+ options: Array,
34
+ props: {
35
+ type: Object,
36
+ default: () => ({
37
+ value: "value",
38
+ label: "label",
39
+ disabled: "disabled"
40
+ })
41
+ },
42
+ type: {
43
+ type: String,
44
+ default: "checkbox"
45
+ },
46
+ stringMode: Boolean,
47
+ delimiter: {
48
+ type: String,
49
+ default: ","
50
+ }
51
+ }, d = {
52
+ modelValue: !0,
53
+ type: !0,
54
+ options: !0
55
+ }, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
56
+ //#endregion
57
+ //#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
58
+ function m(e) {
59
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
60
+ }
61
+ //#endregion
62
+ //#region src/components/form/FormCheckBoxGroup.vue
63
+ var h = {
64
+ name: "FormCheckBoxGroup",
65
+ inheritAttrs: !1,
66
+ props: { ...u },
67
+ emits: {
68
+ ...t,
69
+ change: null
70
+ },
71
+ setup(t, { emit: n, slots: c, attrs: u }) {
72
+ let { emitInput: d, render: h, disabled: g, autoBind: _ } = e(t, {
73
+ emit: n,
74
+ slots: c,
75
+ attrs: u,
76
+ events: f,
77
+ predicate: p,
78
+ messagePrefix: "请选择"
79
+ }), v = (e) => d(t.stringMode ? e.join(t.delimiter) : e), y = o(() => {
80
+ if (t.stringMode) {
81
+ var e;
82
+ return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
83
+ }
84
+ return t.modelValue || [];
85
+ });
86
+ return () => h({ vNodes: s(a, l(_.value, {
87
+ modelValue: y.value,
88
+ disabled: g.value,
89
+ "onUpdate:modelValue": v
90
+ }), {
91
+ ...c,
92
+ default: c.default || (() => {
93
+ var e;
94
+ return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: a }) => t.type === "button" ? s(i, {
95
+ key: e,
96
+ value: e,
97
+ disabled: a
98
+ }, m(n) ? n : { default: () => [n] }) : s(r, {
99
+ key: e,
100
+ value: e,
101
+ disabled: a
102
+ }, m(n) ? n : { default: () => [n] }));
103
+ })
104
+ }) });
105
+ }
106
+ };
107
+ //#endregion
108
+ export { h as t };
@@ -0,0 +1,98 @@
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
+ import { ElRadio as r, ElRadioButton as i, ElRadioGroup as a } from "element-plus/es";
4
+ import { createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
5
+ //#region src/components/form/props/radio-group.js
6
+ var u = {
7
+ ...n,
8
+ modelValue: [
9
+ String,
10
+ Number,
11
+ Boolean
12
+ ],
13
+ size: {
14
+ type: String,
15
+ default: "default"
16
+ },
17
+ validateEvent: {
18
+ type: Boolean,
19
+ default: !0
20
+ },
21
+ textColor: {
22
+ type: String,
23
+ default: "#ffffff"
24
+ },
25
+ fill: {
26
+ type: String,
27
+ default: "#409eff"
28
+ },
29
+ ariaLabel: String,
30
+ name: String,
31
+ id: String,
32
+ label: String,
33
+ options: Array,
34
+ props: {
35
+ type: Object,
36
+ default: () => ({
37
+ value: "value",
38
+ label: "label",
39
+ disabled: "disabled"
40
+ })
41
+ },
42
+ type: {
43
+ type: String,
44
+ default: "radio"
45
+ }
46
+ }, d = {
47
+ modelValue: !0,
48
+ disabled: !0,
49
+ type: !0,
50
+ options: !0
51
+ }, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
52
+ //#endregion
53
+ //#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
54
+ function m(e) {
55
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
56
+ }
57
+ //#endregion
58
+ //#region src/components/form/FormRadioGroup.vue
59
+ var h = {
60
+ name: "FormRadioGroup",
61
+ inheritAttrs: !1,
62
+ props: { ...u },
63
+ emits: {
64
+ ...t,
65
+ change: null
66
+ },
67
+ setup(t, { emit: n, slots: s, attrs: u }) {
68
+ let d = l(t, "modelValue"), { render: h, disabled: g, autoBind: _ } = e(t, {
69
+ emit: n,
70
+ slots: s,
71
+ attrs: u,
72
+ events: f,
73
+ predicate: p,
74
+ messagePrefix: "请选择"
75
+ });
76
+ return () => h({ vNodes: o(a, c(_.value, {
77
+ modelValue: d.value,
78
+ "onUpdate:modelValue": (e) => d.value = e,
79
+ disabled: g.value
80
+ }), {
81
+ ...s,
82
+ default: s.default || (() => {
83
+ var e;
84
+ return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: a }) => t.type === "button" ? o(i, {
85
+ key: e,
86
+ value: e,
87
+ disabled: a
88
+ }, m(n) ? n : { default: () => [n] }) : o(r, {
89
+ key: e,
90
+ value: e,
91
+ disabled: a
92
+ }, m(n) ? n : { default: () => [n] }));
93
+ })
94
+ }) });
95
+ }
96
+ };
97
+ //#endregion
98
+ export { h as t };
@@ -0,0 +1,180 @@
1
+ import { n as e } from "./Bh_CMUlo.mjs";
2
+ import { ElDialog as t } from "element-plus/es";
3
+ import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, getCurrentInstance as c, mergeModels as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
4
+ //#region src/components/dialog/props.js
5
+ var x = {
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
+ }, S = {
98
+ embed: !0,
99
+ height: !0,
100
+ showFullscreen: !0,
101
+ showFullScreen: !0,
102
+ fullscreen: !0,
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 = {
112
+ __name: "ElementDialog",
113
+ props: /* @__PURE__ */ l({ ...x }, {
114
+ modelValue: {
115
+ type: Boolean,
116
+ default: !1
117
+ },
118
+ modelModifiers: {}
119
+ }),
120
+ emits: /* @__PURE__ */ l({
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(l, { expose: x, emit: S }) {
130
+ let D = _(l, "modelValue"), O = l, k = S, A = e(O, {
131
+ emit: k,
132
+ events: C,
133
+ predicate: w
134
+ }), j = v("dialog"), M = p(O.fullscreen), N = () => {
135
+ M.value = !M.value, k("toggle-fullscreen", M.value);
136
+ }, P = n(() => M.value ? "100%" : O.height), F = c(), I = () => {
137
+ O.embed ? (F.parent.emit("update:visible", !1), F.parent.emit("update:modelValue", !1)) : j.value.handleClose();
138
+ };
139
+ return x({
140
+ close: I,
141
+ hide: I
142
+ }), (e, n) => {
143
+ let c = t;
144
+ return f(), r(c, u({
145
+ ref: "dialog",
146
+ modelValue: D.value,
147
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => D.value = e)
148
+ }, g(A), {
149
+ "show-close": !1,
150
+ fullscreen: g(M),
151
+ style: { "--dialog-body-height": g(P) }
152
+ }), s({
153
+ header: y(() => [i(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), m(e.$slots, "header", {}, () => [o("div", T, h(e.title), 1), o("div", E, [e.showFullscreen || e.showFullScreen ? (f(), a("i", {
154
+ key: 0,
155
+ class: d(["dialog-header-button", {
156
+ "el-icon-full-screen": !e.fullscreen,
157
+ "el-icon-copy-document": e.fullscreen
158
+ }]),
159
+ onClick: b(N, ["stop"])
160
+ }, null, 2)) : i("v-if", !0), e.showClose ? (f(), a("i", {
161
+ key: 1,
162
+ class: "dialog-header-button el-icon-close",
163
+ onClick: b(I, ["stop"])
164
+ })) : i("v-if", !0)])])]),
165
+ default: y(() => [i(" @slot 对话框的默认内容 "), m(e.$slots, "default")]),
166
+ _: 2
167
+ }, [e.$slots.footer ? {
168
+ name: "footer",
169
+ fn: y(() => [i(" @slot Dialog 按钮操作区的内容 "), m(e.$slots, "footer", { close: I })]),
170
+ key: "0"
171
+ } : void 0]), 1040, [
172
+ "modelValue",
173
+ "fullscreen",
174
+ "style"
175
+ ]);
176
+ };
177
+ }
178
+ };
179
+ //#endregion
180
+ export { D as t };