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

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 (100) hide show
  1. package/base.css +1 -1
  2. package/chunks/1BaFmq0z.mjs +168 -0
  3. package/chunks/3ItTydl6.mjs +100 -0
  4. package/chunks/B5B9au3z.mjs +180 -0
  5. package/chunks/Bh_CMUlo.mjs +12 -0
  6. package/chunks/CEWLi7G1.mjs +222 -0
  7. package/chunks/CH_v7XkN.mjs +53 -0
  8. package/chunks/CQTt0Oq1.mjs +17 -0
  9. package/chunks/CbGBSOlX.mjs +26 -0
  10. package/chunks/CqgD2b0r.mjs +106 -0
  11. package/chunks/CrWDXTno.mjs +108 -0
  12. package/chunks/D0EeP-eB.mjs +41 -0
  13. package/chunks/D9GcEl6r.mjs +8 -0
  14. package/chunks/DCKxvrCR.mjs +189 -0
  15. package/chunks/DFuF0u2g.mjs +51 -0
  16. package/chunks/DQDBsEel.mjs +26 -0
  17. package/chunks/DUBc-1s4.mjs +108 -0
  18. package/chunks/DX4Wq2Fb.mjs +73 -0
  19. package/chunks/Do5h5GzH.mjs +98 -0
  20. package/chunks/DsBWDK1-.mjs +222 -0
  21. package/chunks/Du6wl65y.mjs +88 -0
  22. package/chunks/Lnj54GAG.mjs +95 -0
  23. package/chunks/f-CM5UVD.mjs +26 -0
  24. package/chunks/uWRsKwOO.mjs +76 -0
  25. package/chunks/wfL1FAwc.mjs +1360 -0
  26. package/constants.d.ts +21 -2
  27. package/element-dialog/index.d.ts +58 -15
  28. package/element-dialog/index.mjs +2 -94
  29. package/form-cascader/index.d.ts +2 -0
  30. package/form-cascader/index.mjs +10 -0
  31. package/form-check-box-group/index.d.ts +196 -22
  32. package/form-check-box-group/index.mjs +1 -1
  33. package/form-checkbox/index.d.ts +188 -24
  34. package/form-checkbox/index.mjs +1 -1
  35. package/form-date-picker/index.d.ts +313 -26
  36. package/form-date-picker/index.mjs +1 -1
  37. package/form-holder/index.d.ts +92 -21
  38. package/form-holder/index.mjs +1 -1
  39. package/form-holder/style.css +1 -1
  40. package/form-image/index.d.ts +138 -20
  41. package/form-image/index.mjs +1 -1
  42. package/form-input/index.d.ts +281 -40
  43. package/form-input/index.mjs +1 -1
  44. package/form-input-cron-expression/index.d.ts +215 -0
  45. package/form-input-cron-expression/index.mjs +2 -0
  46. package/form-input-cron-expression/style.css +1 -0
  47. package/form-input-email/index.d.ts +279 -21
  48. package/form-input-email/index.mjs +1 -1
  49. package/form-input-id-card/index.d.ts +279 -21
  50. package/form-input-id-card/index.mjs +1 -1
  51. package/form-input-number/index.d.ts +228 -24
  52. package/form-input-number/index.mjs +1 -1
  53. package/form-input-phone-number/index.d.ts +279 -21
  54. package/form-input-phone-number/index.mjs +1 -1
  55. package/form-item-config-provider/index.d.ts +3 -1
  56. package/form-item-config-provider/index.mjs +1 -1
  57. package/form-item-x/index.d.ts +124 -15
  58. package/form-item-x/index.mjs +1 -1
  59. package/form-radio-group/index.d.ts +196 -22
  60. package/form-radio-group/index.mjs +1 -1
  61. package/form-rate/index.d.ts +232 -18
  62. package/form-rate/index.mjs +1 -1
  63. package/form-row/index.mjs +1 -1
  64. package/form-select/index.d.ts +455 -22
  65. package/form-select/index.mjs +1 -1
  66. package/form-slider/index.d.ts +261 -18
  67. package/form-slider/index.mjs +1 -1
  68. package/form-switch/index.d.ts +238 -20
  69. package/form-switch/index.mjs +1 -1
  70. package/form-text/index.d.ts +144 -20
  71. package/form-text/index.mjs +1 -1
  72. package/index.d.ts +4 -1
  73. package/index.mjs +37 -60
  74. package/month-calendar/index.mjs +312 -2
  75. package/month-calendar/style.css +1 -1
  76. package/package.json +3 -1
  77. package/vue-cron/index.d.ts +191 -0
  78. package/vue-cron/index.mjs +2 -0
  79. package/vue-cron/style.css +1 -0
  80. package/web-types.json +1 -1
  81. package/year-calendar/index.mjs +2 -1
  82. package/chunks/B5BIQCcK.mjs +0 -149
  83. package/chunks/BDhGvPmU.mjs +0 -32
  84. package/chunks/BXOvvlL2.mjs +0 -35
  85. package/chunks/C6tYoDfK.mjs +0 -43
  86. package/chunks/CAYDWMXC.mjs +0 -47
  87. package/chunks/CXHvVx2H.mjs +0 -54
  88. package/chunks/CykRgGj0.mjs +0 -90
  89. package/chunks/D4SiGR5u.mjs +0 -28
  90. package/chunks/DAEpRn3D.mjs +0 -28
  91. package/chunks/DK2YoEOD.mjs +0 -167
  92. package/chunks/DL4ovOwO.mjs +0 -36
  93. package/chunks/DXrQ5tWJ.mjs +0 -35
  94. package/chunks/Xww4oyW1.mjs +0 -47
  95. package/chunks/ciEWoJ1U.mjs +0 -23
  96. package/chunks/dwnrVqcq.mjs +0 -315
  97. package/chunks/jpMiw_3M.mjs +0 -74
  98. package/chunks/vlkluoXb.mjs +0 -32
  99. package/chunks/wo0ekOcp.mjs +0 -28
  100. /package/chunks/{CI_28Uw4.mjs → 98bTmBOR.mjs} +0 -0
@@ -0,0 +1,53 @@
1
+ import { i as e, n as t } from "./CEWLi7G1.mjs";
2
+ import { n, t as r } from "./CQTt0Oq1.mjs";
3
+ import { n as i, r as a } from "./CqgD2b0r.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,17 @@
1
+ import { c as e, s as t } from "./CEWLi7G1.mjs";
2
+ //#region src/components/form/props/common.js
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ wrapFormItem: {
7
+ type: Boolean,
8
+ default: !0
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ col: Boolean
15
+ }, r = { size: { type: String } };
16
+ //#endregion
17
+ export { n, r as t };
@@ -0,0 +1,26 @@
1
+ import { n as e } from "./CEWLi7G1.mjs";
2
+ import { t } from "./DX4Wq2Fb.mjs";
3
+ import { t as n } from "./CqgD2b0r.mjs";
4
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
6
+ function s(e) {
7
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
8
+ }
9
+ //#endregion
10
+ //#region src/components/form/FormInputIdCard.vue
11
+ var c = {
12
+ name: "FormInputIdCard",
13
+ inheritAttrs: !1,
14
+ props: { ...n },
15
+ emits: { ...e },
16
+ setup(e, { slots: n, attrs: i }) {
17
+ let c = o(e, "modelValue");
18
+ return () => r(t, a(e, i, {
19
+ modelValue: c.value,
20
+ "onUpdate:modelValue": (e) => c.value = e,
21
+ type: "idcard"
22
+ }), s(n) ? n : { default: () => [n] });
23
+ }
24
+ };
25
+ //#endregion
26
+ export { c as t };
@@ -0,0 +1,106 @@
1
+ import { n as e, t } from "./CQTt0Oq1.mjs";
2
+ //#region src/components/form/props/input.js
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ type: {
7
+ type: String,
8
+ default: "text"
9
+ },
10
+ modelValue: [String, Number],
11
+ modelModifiers: Object,
12
+ maxlength: [String, Number],
13
+ minlength: [String, Number],
14
+ showWordLimit: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ wordLimitPosition: {
19
+ type: String,
20
+ default: "inside"
21
+ },
22
+ placeholder: String,
23
+ clearable: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ clearIcon: [String, Object],
28
+ formatter: Function,
29
+ parser: Function,
30
+ showPassword: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ size: String,
35
+ prefixIcon: [String, Object],
36
+ suffixIcon: [String, Object],
37
+ rows: {
38
+ type: Number,
39
+ default: 2
40
+ },
41
+ autosize: [Boolean, Object],
42
+ autocomplete: {
43
+ type: String,
44
+ default: "off"
45
+ },
46
+ name: String,
47
+ readonly: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ max: [String, Number],
52
+ min: [String, Number],
53
+ step: [String, Number],
54
+ resize: String,
55
+ autofocus: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ form: String,
60
+ ariaLabel: String,
61
+ tabindex: [String, Number],
62
+ validateEvent: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ inputStyle: [String, Object],
67
+ label: String,
68
+ inputmode: String,
69
+ countGraphemes: Function,
70
+ prepend: String,
71
+ append: String,
72
+ prefix: String,
73
+ suffix: String,
74
+ picker: Boolean,
75
+ readonlyGrey: {
76
+ type: Boolean,
77
+ default: !0
78
+ }
79
+ }, r = {
80
+ readonly: !0,
81
+ prefixIcon: !0,
82
+ suffixIcon: !0,
83
+ placeholder: !0,
84
+ modelValue: !0,
85
+ readonlyGrey: !0,
86
+ picker: !0,
87
+ append: !0,
88
+ prefix: !0,
89
+ suffix: !0,
90
+ prepend: !0
91
+ }, i = [
92
+ "click",
93
+ "blur",
94
+ "focus",
95
+ "change",
96
+ "input",
97
+ "clear",
98
+ "keydown",
99
+ "mouseleave",
100
+ "mouseenter",
101
+ "compositionstart",
102
+ "compositionupdate",
103
+ "compositionend"
104
+ ], a = (t) => e[t] === void 0 && r[t] !== !0;
105
+ //#endregion
106
+ export { i as n, a as r, n as t };
@@ -0,0 +1,108 @@
1
+ import { i as e, n as t } from "./CEWLi7G1.mjs";
2
+ import { n } from "./CQTt0Oq1.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,41 @@
1
+ import { n as e } from "./Bh_CMUlo.mjs";
2
+ import { o as t, r as n } from "./CEWLi7G1.mjs";
3
+ import { n as r } from "./CQTt0Oq1.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,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,189 @@
1
+ import { formHolderContextKey as e } from "../constants.mjs";
2
+ import { n as t } from "./Bh_CMUlo.mjs";
3
+ import n from "../form-advice/index.mjs";
4
+ import r from "../form-red-table/index.mjs";
5
+ import { ElForm as i, ElRow as a } from "element-plus/es";
6
+ import { computed as o, createVNode as s, inject as c, mergeProps as l, nextTick as u, provide as d, reactive as f, useTemplateRef as p } from "vue";
7
+ import { animate as m } from "@web-utils/core";
8
+ //#region src/components/form/props/form.js
9
+ var h = {
10
+ model: Object,
11
+ rules: Object,
12
+ inline: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ labelPosition: {
17
+ type: String,
18
+ default: "right"
19
+ },
20
+ labelWidth: {
21
+ type: [String, Number],
22
+ default: "auto"
23
+ },
24
+ labelSuffix: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ hideRequiredAsterisk: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ requireAsteriskPosition: {
33
+ type: String,
34
+ default: "left"
35
+ },
36
+ showMessage: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ inlineMessage: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ statusIcon: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ validateOnRuleChange: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ size: String,
53
+ disabled: {
54
+ type: Boolean,
55
+ default: void 0
56
+ },
57
+ scrollToError: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ scrollIntoViewOptions: [Object, Boolean],
62
+ requiredFields: Array,
63
+ disabledFields: Array,
64
+ enabledFields: Array,
65
+ showAdvice: {
66
+ type: Boolean,
67
+ default: !0
68
+ },
69
+ columns: [Array, Object],
70
+ colCount: Number,
71
+ notTableForm: {
72
+ type: Boolean,
73
+ default: void 0
74
+ },
75
+ commentValueColspan: Number,
76
+ commentLabelColspan: Number,
77
+ wrapRow: {
78
+ type: Boolean,
79
+ default: !0
80
+ }
81
+ }, g = {
82
+ showMessage: !0,
83
+ required: !0,
84
+ requiredFields: !0,
85
+ disabledFields: !0,
86
+ enabledFields: !0,
87
+ showAdvice: !0,
88
+ columns: !0,
89
+ colCount: !0,
90
+ notTableForm: !0,
91
+ commentValueColspan: !0,
92
+ commentLabelColspan: !0,
93
+ wrapRow: !0
94
+ }, _ = ["validate"], v = (e) => g[e] !== !0, y = {
95
+ name: "FormHolder",
96
+ inheritAttrs: !1,
97
+ props: { ...h },
98
+ emits: { validate: null },
99
+ setup(h, { slots: g, expose: y, emit: b }) {
100
+ let x = t(h, {
101
+ emit: b,
102
+ events: _,
103
+ predicate: v
104
+ }), S = c("formView", null), C = p("form"), w = o(() => h.notTableForm === void 0 ? (S == null ? void 0 : S.tableForm) === void 0 ? !1 : S == null ? void 0 : S.tableForm : !h.notTableForm), T = o(() => w.value ? !1 : h.showMessage), E = o(() => {
105
+ let e = {};
106
+ return h.disabledFields && h.disabledFields.forEach((t) => {
107
+ e[t] = !0;
108
+ }), e;
109
+ }), D = o(() => {
110
+ let e = {};
111
+ return h.enabledFields && h.enabledFields.length && h.enabledFields.forEach((t) => {
112
+ e[t] = !0;
113
+ }), e;
114
+ }), O = o(() => {
115
+ let e = {};
116
+ return h.requiredFields && h.requiredFields.length && h.requiredFields.forEach((t) => {
117
+ e[t] = !0;
118
+ }), e;
119
+ }), k = o(() => h.disabled === !0 ? !0 : h.disabled), A = o(() => h.enabledFields), j = o(() => h.requiredFields), M = o(() => h.disabledFields), N = async () => {
120
+ await u();
121
+ let e = C.value.$el.querySelector(".el-form-item.is-error");
122
+ e && e.scrollIntoView({
123
+ block: "center",
124
+ inline: "center",
125
+ behavior: "smooth"
126
+ });
127
+ }, P = f({
128
+ tableForm: w,
129
+ disabled: k,
130
+ enabledFields: A,
131
+ requiredFields: j,
132
+ enabledFieldsMap: D,
133
+ disabledFieldsMap: E,
134
+ requiredFieldsMap: O,
135
+ disabledFields: M,
136
+ scrollIntoRequiredField: N,
137
+ formRef: C,
138
+ validate: async () => {
139
+ try {
140
+ return await C.value.validate();
141
+ } catch {
142
+ throw await N(), C.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
143
+ m(e, "breathe-animation");
144
+ }), Error("表单验证不通过!");
145
+ }
146
+ },
147
+ validateField: (e) => C.value.validateField(e),
148
+ resetFields: (e) => C.value.resetFields(e),
149
+ scrollToField: (e) => C.value.scrollToField(e),
150
+ clearValidate: (e) => C.value.clearValidate(e),
151
+ getField: () => C.value.getField(),
152
+ setInitialValues: (e) => C.value.setInitialValues(e),
153
+ getFields: () => C.value.fields
154
+ });
155
+ return d(e, P), y(P), () => s(i, l({
156
+ ref: "form",
157
+ class: "form-holder",
158
+ "show-message": T.value
159
+ }, x.value), { default: () => {
160
+ if (w.value) {
161
+ var e, t, i;
162
+ return [
163
+ (e = g.top) == null ? void 0 : e.call(g),
164
+ s(r, {
165
+ class: { "hide-error-message": w.value },
166
+ columns: h.columns,
167
+ "col-count": h.colCount
168
+ }, { default: () => {
169
+ var e;
170
+ return [(e = g.default) == null ? void 0 : e.call(g), h.showAdvice ? s(n, {
171
+ "label-colspan": h.commentLabelColspan,
172
+ "value-colspan": h.commentValueColspan
173
+ }, null) : null];
174
+ } }),
175
+ (t = g.bottom) == null ? void 0 : t.call(g),
176
+ s("div", { class: "red-form-footer" }, [(i = g.footer) == null ? void 0 : i.call(g)])
177
+ ];
178
+ } else {
179
+ var o;
180
+ return h.wrapRow ? s(a, null, { default: () => {
181
+ var e;
182
+ return [(e = g.default) == null ? void 0 : e.call(g)];
183
+ } }) : (o = g.default) == null ? void 0 : o.call(g);
184
+ }
185
+ } });
186
+ }
187
+ };
188
+ //#endregion
189
+ export { y as t };
@@ -0,0 +1,51 @@
1
+ import { n as e } from "./Bh_CMUlo.mjs";
2
+ import { o as t, r as n } from "./CEWLi7G1.mjs";
3
+ import { n as r } from "./CQTt0Oq1.mjs";
4
+ import { ElImage as i } from "element-plus/es";
5
+ import { createVNode as a, isVNode as o, mergeProps as s } from "vue";
6
+ //#region src/components/form/props/image.js
7
+ var c = {
8
+ ...r,
9
+ src: String,
10
+ fit: String,
11
+ hideOnClickModal: Boolean
12
+ }, l = { modelValue: !0 }, u = [
13
+ "load",
14
+ "error",
15
+ "switch",
16
+ "close",
17
+ "show"
18
+ ], d = (e) => r[e] === void 0 && l[e] !== !0;
19
+ //#endregion
20
+ //#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
21
+ function f(e) {
22
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
23
+ }
24
+ //#endregion
25
+ //#region src/components/form/FormImage.vue
26
+ var p = {
27
+ name: "FormImage",
28
+ inheritAttrs: !1,
29
+ props: { ...c },
30
+ emits: {
31
+ load: null,
32
+ error: null,
33
+ switch: null,
34
+ close: null,
35
+ show: null
36
+ },
37
+ setup(r, { slots: o, attrs: c, emit: l }) {
38
+ let p = t(r, { attrs: c }), m = e(r, {
39
+ events: u,
40
+ predicate: d,
41
+ emit: l
42
+ });
43
+ return () => n(r, {
44
+ vNodes: a(i, s(m.value, c, { "preview-src-list": [r.src] }), f(o) ? o : { default: () => [o] }),
45
+ formItemProps: p,
46
+ slots: o
47
+ });
48
+ }
49
+ };
50
+ //#endregion
51
+ export { p as t };
@@ -0,0 +1,26 @@
1
+ import { n as e } from "./CEWLi7G1.mjs";
2
+ import { t } from "./DX4Wq2Fb.mjs";
3
+ import { t as n } from "./CqgD2b0r.mjs";
4
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
+ //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
6
+ function s(e) {
7
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
8
+ }
9
+ //#endregion
10
+ //#region src/components/form/FormInputPhoneNumber.vue
11
+ var c = {
12
+ name: "FormInputPhoneNumber",
13
+ inheritAttrs: !1,
14
+ props: { ...n },
15
+ emits: { ...e },
16
+ setup(e, { slots: n, attrs: i }) {
17
+ let c = o(e, "modelValue");
18
+ return () => r(t, a(e, i, {
19
+ modelValue: c.value,
20
+ "onUpdate:modelValue": (e) => c.value = e,
21
+ type: "phone"
22
+ }), s(n) ? n : { default: () => [n] });
23
+ }
24
+ };
25
+ //#endregion
26
+ export { c as t };