@king-one/form-design 0.0.16 → 0.0.18
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/CHANGELOG.md +12 -0
- package/dist/es/index.mjs +16 -13
- package/dist/es/src/components/base/Carousel.vue.mjs +92 -0
- package/dist/es/src/components/base/Carousel.vue2.mjs +4 -0
- package/dist/es/src/components/base/json-preview.vue.mjs +215 -151
- package/dist/es/src/components/form-material.vue.mjs +168 -96
- package/dist/es/src/components/form-panel.vue.mjs +71 -65
- package/dist/es/src/components/panel/index.mjs +23 -13
- package/dist/es/src/components/panel/panel-item.vue.mjs +29 -29
- package/dist/es/src/components/panel/panel-wrapper.mjs +1 -1
- package/dist/es/src/components/panel/widget/date-range.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/date-range.vue2.mjs +28 -0
- package/dist/es/src/components/panel/widget/date-single.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/date-single.vue2.mjs +28 -0
- package/dist/es/src/components/panel/widget/kit.vue.mjs +4 -0
- package/dist/es/src/components/panel/widget/kit.vue2.mjs +48 -0
- package/dist/es/src/components/panel/widget/object.vue2.mjs +25 -25
- package/dist/es/src/components/panel/widget/select.vue2.mjs +3 -3
- package/dist/es/src/components/props/form-config.vue.mjs +1 -1
- package/dist/es/src/components/props/widget/BaseProps.vue2.mjs +31 -46
- package/dist/es/src/components/props/widget/InputNumberProps.vue2.mjs +94 -109
- package/dist/es/src/components/props/widget/InputProps.vue2.mjs +49 -64
- package/dist/es/src/components/props/widget/OvertimeProps.vue.mjs +4 -0
- package/dist/es/src/components/props/widget/OvertimeProps.vue2.mjs +17 -0
- package/dist/es/src/components/props/widget/PropsDecorator.mjs +34 -0
- package/dist/es/src/components/props/widget/SelectProps.vue.mjs +4 -0
- package/dist/es/src/components/props/widget/SelectProps.vue2.mjs +88 -0
- package/dist/es/src/components/props/widget/TextareaProps.vue2.mjs +48 -63
- package/dist/es/src/components/props/widget/index.mjs +44 -36
- package/dist/es/src/config/index.mjs +165 -15
- package/dist/es/src/core/Design.mjs +24 -19
- package/dist/es/src/core/Field.mjs +1 -1
- package/dist/es/src/core/FormSchema.mjs +28 -26
- package/dist/es/src/index.mjs +15 -13
- package/dist/es/src/plugins/index.mjs +10 -7
- package/dist/es/src/plugins/modules/drag-put.mjs +14 -0
- package/dist/es/src/utils/debounce.mjs +16 -0
- package/dist/es/src/utils/index.mjs +15 -13
- package/dist/lib/index.js +1 -1
- package/dist/lib/src/components/base/Carousel.vue.js +1 -0
- package/dist/lib/src/components/base/Carousel.vue2.js +1 -0
- package/dist/lib/src/components/base/json-preview.vue.js +6 -6
- package/dist/lib/src/components/form-material.vue.js +10 -1
- package/dist/lib/src/components/form-panel.vue.js +2 -2
- package/dist/lib/src/components/panel/index.js +1 -1
- package/dist/lib/src/components/panel/panel-item.vue.js +1 -1
- package/dist/lib/src/components/panel/panel-wrapper.js +1 -1
- package/dist/lib/src/components/panel/widget/date-range.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/date-range.vue2.js +1 -0
- package/dist/lib/src/components/panel/widget/date-single.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/date-single.vue2.js +1 -0
- package/dist/lib/src/components/panel/widget/kit.vue.js +1 -0
- package/dist/lib/src/components/panel/widget/kit.vue2.js +1 -0
- package/dist/lib/src/components/panel/widget/object.vue2.js +1 -1
- package/dist/lib/src/components/panel/widget/select.vue2.js +1 -1
- package/dist/lib/src/components/props/form-config.vue.js +1 -1
- package/dist/lib/src/components/props/widget/BaseProps.vue2.js +1 -1
- package/dist/lib/src/components/props/widget/InputNumberProps.vue2.js +1 -1
- package/dist/lib/src/components/props/widget/InputProps.vue2.js +1 -1
- package/dist/lib/src/components/props/widget/OvertimeProps.vue.js +1 -0
- package/dist/lib/src/components/props/widget/OvertimeProps.vue2.js +1 -0
- package/dist/lib/src/components/props/widget/PropsDecorator.js +1 -0
- package/dist/lib/src/components/props/widget/SelectProps.vue.js +1 -0
- package/dist/lib/src/components/props/widget/SelectProps.vue2.js +1 -0
- package/dist/lib/src/components/props/widget/TextareaProps.vue2.js +1 -1
- package/dist/lib/src/components/props/widget/index.js +1 -1
- package/dist/lib/src/config/index.js +1 -1
- package/dist/lib/src/core/Design.js +1 -1
- package/dist/lib/src/core/Field.js +1 -1
- package/dist/lib/src/core/FormSchema.js +1 -1
- package/dist/lib/src/index.js +1 -1
- package/dist/lib/src/plugins/index.js +1 -1
- package/dist/lib/src/plugins/modules/drag-put.js +1 -0
- package/dist/lib/src/utils/debounce.js +1 -0
- package/dist/lib/src/utils/index.js +1 -1
- package/dist/theme-chalk/carousel.css +1 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/json-preview.css +1 -1
- package/dist/theme-chalk/kit-panel.css +1 -0
- package/dist/theme-chalk/material.css +1 -1
- package/dist/theme-chalk/panel.css +1 -1
- package/dist/types/src/components/base/Carousel.vue.d.ts +65 -0
- package/dist/types/src/components/panel/widget/date-range.vue.d.ts +8 -0
- package/dist/types/src/components/panel/widget/date-single.vue.d.ts +8 -0
- package/dist/types/src/components/panel/widget/kit.vue.d.ts +8 -0
- package/dist/types/src/components/props/widget/OvertimeProps.vue.d.ts +3 -0
- package/dist/types/src/components/props/widget/PropsDecorator.d.ts +3 -0
- package/dist/types/src/components/props/widget/SelectProps.vue.d.ts +3 -0
- package/dist/types/src/components/props/widget/index.d.ts +1 -9
- package/dist/types/src/components/types.d.ts +4 -3
- package/dist/types/src/config/index.d.ts +2 -1
- package/dist/types/src/core/Design.d.ts +93 -41
- package/dist/types/src/core/FormSchema.d.ts +22 -10
- package/dist/types/src/hooks/usePolling.d.ts +5 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/plugins/index.d.ts +3 -1
- package/dist/types/src/plugins/modules/drag-put.d.ts +5 -0
- package/dist/types/src/types.d.ts +29 -6
- package/dist/types/src/utils/debounce.d.ts +10 -0
- package/dist/types/src/utils/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,115 +1,100 @@
|
|
|
1
|
-
import { defineComponent as i, computed as v, openBlock as m, createBlock as s, unref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as i, computed as v, openBlock as m, createBlock as s, unref as e, withCtx as n, createVNode as t } from "vue";
|
|
2
|
+
import { Form as f, FormItem as o, InputNumber as d, Switch as x, Input as r } from "ant-design-vue";
|
|
3
3
|
import "../../../internal.mjs";
|
|
4
|
-
import { useInjectDesignContext as
|
|
5
|
-
const
|
|
4
|
+
import { useInjectDesignContext as b } from "../../../context/design.mjs";
|
|
5
|
+
const B = /* @__PURE__ */ i({
|
|
6
6
|
__name: "InputNumberProps",
|
|
7
|
-
setup(
|
|
8
|
-
const { checkedField: p } =
|
|
9
|
-
return (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
null,
|
|
14
|
-
"属性设置",
|
|
15
|
-
-1
|
|
16
|
-
/* CACHED */
|
|
17
|
-
)
|
|
18
|
-
])),
|
|
7
|
+
setup(w) {
|
|
8
|
+
const { checkedField: p } = b(), l = v(() => p.value["x-component-props"] || {});
|
|
9
|
+
return (U, a) => (m(), s(e(f), {
|
|
10
|
+
"label-col": { style: { width: "100px" } },
|
|
11
|
+
"label-align": "left"
|
|
12
|
+
}, {
|
|
19
13
|
default: n(() => [
|
|
20
|
-
|
|
21
|
-
"label-col": { style: { width: "100px" } },
|
|
22
|
-
"label-align": "left"
|
|
23
|
-
}, {
|
|
14
|
+
t(e(o), { label: "最大值" }, {
|
|
24
15
|
default: n(() => [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
placeholder: "请输入前缀内容"
|
|
108
|
-
}, null, 8, ["value"])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
/* STABLE */
|
|
112
|
-
})
|
|
16
|
+
t(e(d), {
|
|
17
|
+
value: l.value.max,
|
|
18
|
+
"onUpdate:value": a[0] || (a[0] = (u) => l.value.max = u),
|
|
19
|
+
style: { width: "100%" },
|
|
20
|
+
min: 1,
|
|
21
|
+
precision: 0,
|
|
22
|
+
max: 999
|
|
23
|
+
}, null, 8, ["value"])
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
/* STABLE */
|
|
27
|
+
}),
|
|
28
|
+
t(e(o), { label: "最小值" }, {
|
|
29
|
+
default: n(() => [
|
|
30
|
+
t(e(d), {
|
|
31
|
+
value: l.value.min,
|
|
32
|
+
"onUpdate:value": a[1] || (a[1] = (u) => l.value.min = u),
|
|
33
|
+
style: { width: "100%" },
|
|
34
|
+
min: 1,
|
|
35
|
+
precision: 0,
|
|
36
|
+
max: 999
|
|
37
|
+
}, null, 8, ["value"])
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
/* STABLE */
|
|
41
|
+
}),
|
|
42
|
+
t(e(o), { label: "小数点位数" }, {
|
|
43
|
+
default: n(() => [
|
|
44
|
+
t(e(d), {
|
|
45
|
+
value: l.value.precision,
|
|
46
|
+
"onUpdate:value": a[2] || (a[2] = (u) => l.value.precision = u),
|
|
47
|
+
style: { width: "100%" },
|
|
48
|
+
min: 1,
|
|
49
|
+
precision: 0,
|
|
50
|
+
max: 999
|
|
51
|
+
}, null, 8, ["value"])
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
/* STABLE */
|
|
55
|
+
}),
|
|
56
|
+
t(e(o), { label: "步长" }, {
|
|
57
|
+
default: n(() => [
|
|
58
|
+
t(e(d), {
|
|
59
|
+
value: l.value.step,
|
|
60
|
+
"onUpdate:value": a[3] || (a[3] = (u) => l.value.step = u),
|
|
61
|
+
style: { width: "100%" },
|
|
62
|
+
min: 1,
|
|
63
|
+
precision: 0,
|
|
64
|
+
max: 999
|
|
65
|
+
}, null, 8, ["value"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
/* STABLE */
|
|
69
|
+
}),
|
|
70
|
+
t(e(o), { label: "显示增减按钮" }, {
|
|
71
|
+
default: n(() => [
|
|
72
|
+
t(e(x), {
|
|
73
|
+
checked: l.value.controls,
|
|
74
|
+
"onUpdate:checked": a[4] || (a[4] = (u) => l.value.controls = u)
|
|
75
|
+
}, null, 8, ["checked"])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
/* STABLE */
|
|
79
|
+
}),
|
|
80
|
+
t(e(o), { label: "前缀内容" }, {
|
|
81
|
+
default: n(() => [
|
|
82
|
+
t(e(r), {
|
|
83
|
+
value: l.value.addonBefore,
|
|
84
|
+
"onUpdate:value": a[5] || (a[5] = (u) => l.value.addonBefore = u),
|
|
85
|
+
placeholder: "请输入前缀内容"
|
|
86
|
+
}, null, 8, ["value"])
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
/* STABLE */
|
|
90
|
+
}),
|
|
91
|
+
t(e(o), { label: "后缀内容" }, {
|
|
92
|
+
default: n(() => [
|
|
93
|
+
t(e(r), {
|
|
94
|
+
value: l.value.addonAfter,
|
|
95
|
+
"onUpdate:value": a[6] || (a[6] = (u) => l.value.addonAfter = u),
|
|
96
|
+
placeholder: "请输入前缀内容"
|
|
97
|
+
}, null, 8, ["value"])
|
|
113
98
|
]),
|
|
114
99
|
_: 1
|
|
115
100
|
/* STABLE */
|
|
@@ -121,5 +106,5 @@ const c = /* @__PURE__ */ i({
|
|
|
121
106
|
}
|
|
122
107
|
});
|
|
123
108
|
export {
|
|
124
|
-
|
|
109
|
+
B as default
|
|
125
110
|
};
|
|
@@ -1,70 +1,55 @@
|
|
|
1
|
-
import { defineComponent as p, computed as v, openBlock as f, createBlock as m, unref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as p, computed as v, openBlock as f, createBlock as m, unref as e, withCtx as u, createVNode as o } from "vue";
|
|
2
|
+
import { Form as c, FormItem as r, Input as n, Switch as i } from "ant-design-vue";
|
|
3
3
|
import "../../../internal.mjs";
|
|
4
|
-
import { useInjectDesignContext as
|
|
5
|
-
const
|
|
4
|
+
import { useInjectDesignContext as s } from "../../../context/design.mjs";
|
|
5
|
+
const w = /* @__PURE__ */ p({
|
|
6
6
|
__name: "InputProps",
|
|
7
|
-
setup(
|
|
8
|
-
const { checkedField: d } =
|
|
9
|
-
return (
|
|
10
|
-
header: u(() => e[4] || (e[4] = [
|
|
11
|
-
i(
|
|
12
|
-
"div",
|
|
13
|
-
null,
|
|
14
|
-
"属性设置",
|
|
15
|
-
-1
|
|
16
|
-
/* CACHED */
|
|
17
|
-
)
|
|
18
|
-
])),
|
|
7
|
+
setup(k) {
|
|
8
|
+
const { checkedField: d } = s(), l = v(() => d.value["x-component-props"] || {});
|
|
9
|
+
return (x, a) => (f(), m(e(c), { layout: "vertical" }, {
|
|
19
10
|
default: u(() => [
|
|
20
|
-
|
|
11
|
+
o(e(r), {
|
|
12
|
+
label: "输入提示",
|
|
13
|
+
tooltip: "输入提示"
|
|
14
|
+
}, {
|
|
21
15
|
default: u(() => [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
a(l(n), {
|
|
60
|
-
value: o.value.addonAfter,
|
|
61
|
-
"onUpdate:value": e[3] || (e[3] = (t) => o.value.addonAfter = t),
|
|
62
|
-
placeholder: "请输入后缀内容"
|
|
63
|
-
}, null, 8, ["value"])
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
/* STABLE */
|
|
67
|
-
})
|
|
16
|
+
o(e(n), {
|
|
17
|
+
value: l.value.placeholder,
|
|
18
|
+
"onUpdate:value": a[0] || (a[0] = (t) => l.value.placeholder = t),
|
|
19
|
+
placeholder: "请输入占位提示"
|
|
20
|
+
}, null, 8, ["value"])
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
/* STABLE */
|
|
24
|
+
}),
|
|
25
|
+
o(e(r), { label: "允许清除内容(显示清除图标)" }, {
|
|
26
|
+
default: u(() => [
|
|
27
|
+
o(e(i), {
|
|
28
|
+
checked: l.value.allowClear,
|
|
29
|
+
"onUpdate:checked": a[1] || (a[1] = (t) => l.value.allowClear = t)
|
|
30
|
+
}, null, 8, ["checked"])
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
/* STABLE */
|
|
34
|
+
}),
|
|
35
|
+
o(e(r), { label: "前缀内容" }, {
|
|
36
|
+
default: u(() => [
|
|
37
|
+
o(e(n), {
|
|
38
|
+
value: l.value.addonBefore,
|
|
39
|
+
"onUpdate:value": a[2] || (a[2] = (t) => l.value.addonBefore = t),
|
|
40
|
+
placeholder: "请输入前缀内容"
|
|
41
|
+
}, null, 8, ["value"])
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
/* STABLE */
|
|
45
|
+
}),
|
|
46
|
+
o(e(r), { label: "后缀内容" }, {
|
|
47
|
+
default: u(() => [
|
|
48
|
+
o(e(n), {
|
|
49
|
+
value: l.value.addonAfter,
|
|
50
|
+
"onUpdate:value": a[3] || (a[3] = (t) => l.value.addonAfter = t),
|
|
51
|
+
placeholder: "请输入后缀内容"
|
|
52
|
+
}, null, 8, ["value"])
|
|
68
53
|
]),
|
|
69
54
|
_: 1
|
|
70
55
|
/* STABLE */
|
|
@@ -76,5 +61,5 @@ const _ = /* @__PURE__ */ p({
|
|
|
76
61
|
}
|
|
77
62
|
});
|
|
78
63
|
export {
|
|
79
|
-
|
|
64
|
+
w as default
|
|
80
65
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineComponent as t, ref as o, openBlock as r, createElementBlock as c, toDisplayString as n } from "vue";
|
|
2
|
+
const s = { style: { color: "#f56c6c" } }, l = /* @__PURE__ */ t({
|
|
3
|
+
__name: "OvertimeProps",
|
|
4
|
+
setup(p) {
|
|
5
|
+
const e = o(" 加班套件的配置,不知道有什么配置,先占位");
|
|
6
|
+
return (_, i) => (r(), c(
|
|
7
|
+
"div",
|
|
8
|
+
s,
|
|
9
|
+
n(e.value),
|
|
10
|
+
1
|
|
11
|
+
/* TEXT */
|
|
12
|
+
));
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
l as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isVNode as p, defineComponent as u, ref as c, createVNode as n, h as d } from "vue";
|
|
2
|
+
import { Collapse as f, CollapsePanel as s } from "ant-design-vue";
|
|
3
|
+
function h(e) {
|
|
4
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
|
|
5
|
+
}
|
|
6
|
+
function g(e, a) {
|
|
7
|
+
return /* @__PURE__ */ u({
|
|
8
|
+
name: `${e}-props`,
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
setup() {
|
|
11
|
+
const r = c([0]), i = (t) => {
|
|
12
|
+
r.value = t;
|
|
13
|
+
};
|
|
14
|
+
return () => {
|
|
15
|
+
let t;
|
|
16
|
+
return n(f, {
|
|
17
|
+
activeKey: r.value,
|
|
18
|
+
onChange: (o) => i(o)
|
|
19
|
+
}, h(t = a.map((o, l) => n(s, {
|
|
20
|
+
key: l,
|
|
21
|
+
header: o.header
|
|
22
|
+
}, {
|
|
23
|
+
default: () => [o.widget ? d(o.widget) : null]
|
|
24
|
+
}, 8, ["header"]))) ? t : {
|
|
25
|
+
default: () => [t],
|
|
26
|
+
_: 1
|
|
27
|
+
}, 8, ["activeKey", "onChange"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
g as propsWidgetDecorator
|
|
34
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as m, computed as v, openBlock as f, createBlock as i, unref as l, withCtx as o, createVNode as t, createTextVNode as r } from "vue";
|
|
2
|
+
import { Form as s, FormItem as d, Input as _, Switch as b, RadioGroup as k, RadioButton as n } from "ant-design-vue";
|
|
3
|
+
import "../../../internal.mjs";
|
|
4
|
+
import { useInjectDesignContext as x } from "../../../context/design.mjs";
|
|
5
|
+
const I = /* @__PURE__ */ m({
|
|
6
|
+
__name: "SelectProps",
|
|
7
|
+
setup(c) {
|
|
8
|
+
const { checkedField: p } = x(), a = v(() => p.value["x-component-props"] || {});
|
|
9
|
+
return (C, e) => (f(), i(l(s), { layout: "vertical" }, {
|
|
10
|
+
default: o(() => [
|
|
11
|
+
t(l(d), {
|
|
12
|
+
label: "输入提示",
|
|
13
|
+
tooltip: "输入提示"
|
|
14
|
+
}, {
|
|
15
|
+
default: o(() => [
|
|
16
|
+
t(l(_), {
|
|
17
|
+
value: a.value.placeholder,
|
|
18
|
+
"onUpdate:value": e[0] || (e[0] = (u) => a.value.placeholder = u),
|
|
19
|
+
placeholder: "请输入占位提示"
|
|
20
|
+
}, null, 8, ["value"])
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
/* STABLE */
|
|
24
|
+
}),
|
|
25
|
+
t(l(d), { label: "允许清除内容(显示清除图标)" }, {
|
|
26
|
+
default: o(() => [
|
|
27
|
+
t(l(b), {
|
|
28
|
+
checked: a.value.allowClear,
|
|
29
|
+
"onUpdate:checked": e[1] || (e[1] = (u) => a.value.allowClear = u)
|
|
30
|
+
}, null, 8, ["checked"])
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
/* STABLE */
|
|
34
|
+
}),
|
|
35
|
+
t(l(d), { label: "选项模式" }, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
t(l(k), {
|
|
38
|
+
value: a.value.mode,
|
|
39
|
+
"onUpdate:value": e[2] || (e[2] = (u) => a.value.mode = u)
|
|
40
|
+
}, {
|
|
41
|
+
default: o(() => [
|
|
42
|
+
t(l(n), {
|
|
43
|
+
label: "单选",
|
|
44
|
+
value: "single"
|
|
45
|
+
}, {
|
|
46
|
+
default: o(() => e[3] || (e[3] = [
|
|
47
|
+
r(" 单选 ")
|
|
48
|
+
])),
|
|
49
|
+
_: 1,
|
|
50
|
+
__: [3]
|
|
51
|
+
}),
|
|
52
|
+
t(l(n), {
|
|
53
|
+
label: "多选",
|
|
54
|
+
value: "multiple"
|
|
55
|
+
}, {
|
|
56
|
+
default: o(() => e[4] || (e[4] = [
|
|
57
|
+
r(" 多选 ")
|
|
58
|
+
])),
|
|
59
|
+
_: 1,
|
|
60
|
+
__: [4]
|
|
61
|
+
}),
|
|
62
|
+
t(l(n), {
|
|
63
|
+
label: "标签",
|
|
64
|
+
value: "tags"
|
|
65
|
+
}, {
|
|
66
|
+
default: o(() => e[5] || (e[5] = [
|
|
67
|
+
r(" 多选 ")
|
|
68
|
+
])),
|
|
69
|
+
_: 1,
|
|
70
|
+
__: [5]
|
|
71
|
+
})
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
/* STABLE */
|
|
75
|
+
}, 8, ["value"])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
/* STABLE */
|
|
79
|
+
})
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
/* STABLE */
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
I as default
|
|
88
|
+
};
|
|
@@ -1,69 +1,54 @@
|
|
|
1
|
-
import { defineComponent as p, computed as m, openBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as p, computed as m, openBlock as c, createBlock as v, unref as e, withCtx as u, createVNode as a } from "vue";
|
|
2
|
+
import { Form as i, FormItem as n, Input as s, Switch as r, InputNumber as f } from "ant-design-vue";
|
|
3
3
|
import "../../../internal.mjs";
|
|
4
|
-
import { useInjectDesignContext as
|
|
5
|
-
const
|
|
4
|
+
import { useInjectDesignContext as h } from "../../../context/design.mjs";
|
|
5
|
+
const I = /* @__PURE__ */ p({
|
|
6
6
|
__name: "TextareaProps",
|
|
7
|
-
setup(
|
|
8
|
-
const { checkedField: d } =
|
|
9
|
-
return (
|
|
10
|
-
header: u(() => e[4] || (e[4] = [
|
|
11
|
-
i(
|
|
12
|
-
"div",
|
|
13
|
-
null,
|
|
14
|
-
"属性设置",
|
|
15
|
-
-1
|
|
16
|
-
/* CACHED */
|
|
17
|
-
)
|
|
18
|
-
])),
|
|
7
|
+
setup(k) {
|
|
8
|
+
const { checkedField: d } = h(), l = m(() => d.value["x-component-props"] || {});
|
|
9
|
+
return (x, t) => (c(), v(e(i), { layout: "vertical" }, {
|
|
19
10
|
default: u(() => [
|
|
20
|
-
|
|
11
|
+
a(e(n), { label: "占位提示" }, {
|
|
21
12
|
default: u(() => [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
max: 999
|
|
62
|
-
}, null, 8, ["value"])
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
/* STABLE */
|
|
66
|
-
})
|
|
13
|
+
a(e(s), {
|
|
14
|
+
value: l.value.placeholder,
|
|
15
|
+
"onUpdate:value": t[0] || (t[0] = (o) => l.value.placeholder = o),
|
|
16
|
+
placeholder: "请输入占位提示"
|
|
17
|
+
}, null, 8, ["value"])
|
|
18
|
+
]),
|
|
19
|
+
_: 1
|
|
20
|
+
/* STABLE */
|
|
21
|
+
}),
|
|
22
|
+
a(e(n), { label: "允许清除内容(显示清除图标)" }, {
|
|
23
|
+
default: u(() => [
|
|
24
|
+
a(e(r), {
|
|
25
|
+
checked: l.value.allowClear,
|
|
26
|
+
"onUpdate:checked": t[1] || (t[1] = (o) => l.value.allowClear = o)
|
|
27
|
+
}, null, 8, ["checked"])
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
/* STABLE */
|
|
31
|
+
}),
|
|
32
|
+
a(e(n), { label: "是否展示字数" }, {
|
|
33
|
+
default: u(() => [
|
|
34
|
+
a(e(r), {
|
|
35
|
+
checked: l.value.showCount,
|
|
36
|
+
"onUpdate:checked": t[2] || (t[2] = (o) => l.value.showCount = o)
|
|
37
|
+
}, null, 8, ["checked"])
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
/* STABLE */
|
|
41
|
+
}),
|
|
42
|
+
a(e(n), { label: "最大长度" }, {
|
|
43
|
+
default: u(() => [
|
|
44
|
+
a(e(f), {
|
|
45
|
+
value: l.value.maxlength,
|
|
46
|
+
"onUpdate:value": t[3] || (t[3] = (o) => l.value.maxlength = o),
|
|
47
|
+
style: { width: "100%" },
|
|
48
|
+
min: 1,
|
|
49
|
+
precision: 0,
|
|
50
|
+
max: 999
|
|
51
|
+
}, null, 8, ["value"])
|
|
67
52
|
]),
|
|
68
53
|
_: 1
|
|
69
54
|
/* STABLE */
|
|
@@ -75,5 +60,5 @@ const g = /* @__PURE__ */ p({
|
|
|
75
60
|
}
|
|
76
61
|
});
|
|
77
62
|
export {
|
|
78
|
-
|
|
63
|
+
I as default
|
|
79
64
|
};
|