@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.
Files changed (102) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/index.mjs +16 -13
  3. package/dist/es/src/components/base/Carousel.vue.mjs +92 -0
  4. package/dist/es/src/components/base/Carousel.vue2.mjs +4 -0
  5. package/dist/es/src/components/base/json-preview.vue.mjs +215 -151
  6. package/dist/es/src/components/form-material.vue.mjs +168 -96
  7. package/dist/es/src/components/form-panel.vue.mjs +71 -65
  8. package/dist/es/src/components/panel/index.mjs +23 -13
  9. package/dist/es/src/components/panel/panel-item.vue.mjs +29 -29
  10. package/dist/es/src/components/panel/panel-wrapper.mjs +1 -1
  11. package/dist/es/src/components/panel/widget/date-range.vue.mjs +4 -0
  12. package/dist/es/src/components/panel/widget/date-range.vue2.mjs +28 -0
  13. package/dist/es/src/components/panel/widget/date-single.vue.mjs +4 -0
  14. package/dist/es/src/components/panel/widget/date-single.vue2.mjs +28 -0
  15. package/dist/es/src/components/panel/widget/kit.vue.mjs +4 -0
  16. package/dist/es/src/components/panel/widget/kit.vue2.mjs +48 -0
  17. package/dist/es/src/components/panel/widget/object.vue2.mjs +25 -25
  18. package/dist/es/src/components/panel/widget/select.vue2.mjs +3 -3
  19. package/dist/es/src/components/props/form-config.vue.mjs +1 -1
  20. package/dist/es/src/components/props/widget/BaseProps.vue2.mjs +31 -46
  21. package/dist/es/src/components/props/widget/InputNumberProps.vue2.mjs +94 -109
  22. package/dist/es/src/components/props/widget/InputProps.vue2.mjs +49 -64
  23. package/dist/es/src/components/props/widget/OvertimeProps.vue.mjs +4 -0
  24. package/dist/es/src/components/props/widget/OvertimeProps.vue2.mjs +17 -0
  25. package/dist/es/src/components/props/widget/PropsDecorator.mjs +34 -0
  26. package/dist/es/src/components/props/widget/SelectProps.vue.mjs +4 -0
  27. package/dist/es/src/components/props/widget/SelectProps.vue2.mjs +88 -0
  28. package/dist/es/src/components/props/widget/TextareaProps.vue2.mjs +48 -63
  29. package/dist/es/src/components/props/widget/index.mjs +44 -36
  30. package/dist/es/src/config/index.mjs +165 -15
  31. package/dist/es/src/core/Design.mjs +24 -19
  32. package/dist/es/src/core/Field.mjs +1 -1
  33. package/dist/es/src/core/FormSchema.mjs +28 -26
  34. package/dist/es/src/index.mjs +15 -13
  35. package/dist/es/src/plugins/index.mjs +10 -7
  36. package/dist/es/src/plugins/modules/drag-put.mjs +14 -0
  37. package/dist/es/src/utils/debounce.mjs +16 -0
  38. package/dist/es/src/utils/index.mjs +15 -13
  39. package/dist/lib/index.js +1 -1
  40. package/dist/lib/src/components/base/Carousel.vue.js +1 -0
  41. package/dist/lib/src/components/base/Carousel.vue2.js +1 -0
  42. package/dist/lib/src/components/base/json-preview.vue.js +6 -6
  43. package/dist/lib/src/components/form-material.vue.js +10 -1
  44. package/dist/lib/src/components/form-panel.vue.js +2 -2
  45. package/dist/lib/src/components/panel/index.js +1 -1
  46. package/dist/lib/src/components/panel/panel-item.vue.js +1 -1
  47. package/dist/lib/src/components/panel/panel-wrapper.js +1 -1
  48. package/dist/lib/src/components/panel/widget/date-range.vue.js +1 -0
  49. package/dist/lib/src/components/panel/widget/date-range.vue2.js +1 -0
  50. package/dist/lib/src/components/panel/widget/date-single.vue.js +1 -0
  51. package/dist/lib/src/components/panel/widget/date-single.vue2.js +1 -0
  52. package/dist/lib/src/components/panel/widget/kit.vue.js +1 -0
  53. package/dist/lib/src/components/panel/widget/kit.vue2.js +1 -0
  54. package/dist/lib/src/components/panel/widget/object.vue2.js +1 -1
  55. package/dist/lib/src/components/panel/widget/select.vue2.js +1 -1
  56. package/dist/lib/src/components/props/form-config.vue.js +1 -1
  57. package/dist/lib/src/components/props/widget/BaseProps.vue2.js +1 -1
  58. package/dist/lib/src/components/props/widget/InputNumberProps.vue2.js +1 -1
  59. package/dist/lib/src/components/props/widget/InputProps.vue2.js +1 -1
  60. package/dist/lib/src/components/props/widget/OvertimeProps.vue.js +1 -0
  61. package/dist/lib/src/components/props/widget/OvertimeProps.vue2.js +1 -0
  62. package/dist/lib/src/components/props/widget/PropsDecorator.js +1 -0
  63. package/dist/lib/src/components/props/widget/SelectProps.vue.js +1 -0
  64. package/dist/lib/src/components/props/widget/SelectProps.vue2.js +1 -0
  65. package/dist/lib/src/components/props/widget/TextareaProps.vue2.js +1 -1
  66. package/dist/lib/src/components/props/widget/index.js +1 -1
  67. package/dist/lib/src/config/index.js +1 -1
  68. package/dist/lib/src/core/Design.js +1 -1
  69. package/dist/lib/src/core/Field.js +1 -1
  70. package/dist/lib/src/core/FormSchema.js +1 -1
  71. package/dist/lib/src/index.js +1 -1
  72. package/dist/lib/src/plugins/index.js +1 -1
  73. package/dist/lib/src/plugins/modules/drag-put.js +1 -0
  74. package/dist/lib/src/utils/debounce.js +1 -0
  75. package/dist/lib/src/utils/index.js +1 -1
  76. package/dist/theme-chalk/carousel.css +1 -0
  77. package/dist/theme-chalk/icon.css +1 -1
  78. package/dist/theme-chalk/index.css +1 -1
  79. package/dist/theme-chalk/json-preview.css +1 -1
  80. package/dist/theme-chalk/kit-panel.css +1 -0
  81. package/dist/theme-chalk/material.css +1 -1
  82. package/dist/theme-chalk/panel.css +1 -1
  83. package/dist/types/src/components/base/Carousel.vue.d.ts +65 -0
  84. package/dist/types/src/components/panel/widget/date-range.vue.d.ts +8 -0
  85. package/dist/types/src/components/panel/widget/date-single.vue.d.ts +8 -0
  86. package/dist/types/src/components/panel/widget/kit.vue.d.ts +8 -0
  87. package/dist/types/src/components/props/widget/OvertimeProps.vue.d.ts +3 -0
  88. package/dist/types/src/components/props/widget/PropsDecorator.d.ts +3 -0
  89. package/dist/types/src/components/props/widget/SelectProps.vue.d.ts +3 -0
  90. package/dist/types/src/components/props/widget/index.d.ts +1 -9
  91. package/dist/types/src/components/types.d.ts +4 -3
  92. package/dist/types/src/config/index.d.ts +2 -1
  93. package/dist/types/src/core/Design.d.ts +93 -41
  94. package/dist/types/src/core/FormSchema.d.ts +22 -10
  95. package/dist/types/src/hooks/usePolling.d.ts +5 -0
  96. package/dist/types/src/index.d.ts +1 -0
  97. package/dist/types/src/plugins/index.d.ts +3 -1
  98. package/dist/types/src/plugins/modules/drag-put.d.ts +5 -0
  99. package/dist/types/src/types.d.ts +29 -6
  100. package/dist/types/src/utils/debounce.d.ts +10 -0
  101. package/dist/types/src/utils/index.d.ts +1 -0
  102. 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 l, withCtx as n, createElementVNode as f, createVNode as a } from "vue";
2
- import { CollapsePanel as b, Form as x, FormItem as o, InputNumber as d, Switch as k, Input as r } from "ant-design-vue";
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 w } from "../../../context/design.mjs";
5
- const c = /* @__PURE__ */ i({
4
+ import { useInjectDesignContext as b } from "../../../context/design.mjs";
5
+ const B = /* @__PURE__ */ i({
6
6
  __name: "InputNumberProps",
7
- setup(U) {
8
- const { checkedField: p } = w(), t = v(() => p.value["k-component-props"] || {});
9
- return (y, e) => (m(), s(l(b), { key: "input-number-props" }, {
10
- header: n(() => e[7] || (e[7] = [
11
- f(
12
- "div",
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
- a(l(x), {
21
- "label-col": { style: { width: "100px" } },
22
- "label-align": "left"
23
- }, {
14
+ t(e(o), { label: "最大值" }, {
24
15
  default: n(() => [
25
- a(l(o), { label: "最大值" }, {
26
- default: n(() => [
27
- a(l(d), {
28
- value: t.value.max,
29
- "onUpdate:value": e[0] || (e[0] = (u) => t.value.max = u),
30
- style: { width: "100%" },
31
- min: 1,
32
- precision: 0,
33
- max: 999
34
- }, null, 8, ["value"])
35
- ]),
36
- _: 1
37
- /* STABLE */
38
- }),
39
- a(l(o), { label: "最小值" }, {
40
- default: n(() => [
41
- a(l(d), {
42
- value: t.value.min,
43
- "onUpdate:value": e[1] || (e[1] = (u) => t.value.min = u),
44
- style: { width: "100%" },
45
- min: 1,
46
- precision: 0,
47
- max: 999
48
- }, null, 8, ["value"])
49
- ]),
50
- _: 1
51
- /* STABLE */
52
- }),
53
- a(l(o), { label: "小数点位数" }, {
54
- default: n(() => [
55
- a(l(d), {
56
- value: t.value.precision,
57
- "onUpdate:value": e[2] || (e[2] = (u) => t.value.precision = u),
58
- style: { width: "100%" },
59
- min: 1,
60
- precision: 0,
61
- max: 999
62
- }, null, 8, ["value"])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- }),
67
- a(l(o), { label: "步长" }, {
68
- default: n(() => [
69
- a(l(d), {
70
- value: t.value.step,
71
- "onUpdate:value": e[3] || (e[3] = (u) => t.value.step = u),
72
- style: { width: "100%" },
73
- min: 1,
74
- precision: 0,
75
- max: 999
76
- }, null, 8, ["value"])
77
- ]),
78
- _: 1
79
- /* STABLE */
80
- }),
81
- a(l(o), { label: "显示增减按钮" }, {
82
- default: n(() => [
83
- a(l(k), {
84
- checked: t.value.controls,
85
- "onUpdate:checked": e[4] || (e[4] = (u) => t.value.controls = u)
86
- }, null, 8, ["checked"])
87
- ]),
88
- _: 1
89
- /* STABLE */
90
- }),
91
- a(l(o), { label: "前缀内容" }, {
92
- default: n(() => [
93
- a(l(r), {
94
- value: t.value.addonBefore,
95
- "onUpdate:value": e[5] || (e[5] = (u) => t.value.addonBefore = u),
96
- placeholder: "请输入前缀内容"
97
- }, null, 8, ["value"])
98
- ]),
99
- _: 1
100
- /* STABLE */
101
- }),
102
- a(l(o), { label: "后缀内容" }, {
103
- default: n(() => [
104
- a(l(r), {
105
- value: t.value.addonAfter,
106
- "onUpdate:value": e[6] || (e[6] = (u) => t.value.addonAfter = u),
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
- c as default
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 l, withCtx as u, createElementVNode as i, createVNode as a } from "vue";
2
- import { CollapsePanel as s, Form as c, FormItem as r, Input as n, Switch as k } from "ant-design-vue";
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 C } from "../../../context/design.mjs";
5
- const _ = /* @__PURE__ */ p({
4
+ import { useInjectDesignContext as s } from "../../../context/design.mjs";
5
+ const w = /* @__PURE__ */ p({
6
6
  __name: "InputProps",
7
- setup(b) {
8
- const { checkedField: d } = C(), o = v(() => d.value["k-component-props"] || {});
9
- return (w, e) => (f(), m(l(s), { key: "input-props" }, {
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
- a(l(c), { layout: "vertical" }, {
11
+ o(e(r), {
12
+ label: "输入提示",
13
+ tooltip: "输入提示"
14
+ }, {
21
15
  default: u(() => [
22
- a(l(r), {
23
- label: "输入提示",
24
- tooltip: "输入提示"
25
- }, {
26
- default: u(() => [
27
- a(l(n), {
28
- value: o.value.placeholder,
29
- "onUpdate:value": e[0] || (e[0] = (t) => o.value.placeholder = t),
30
- placeholder: "请输入占位提示"
31
- }, null, 8, ["value"])
32
- ]),
33
- _: 1
34
- /* STABLE */
35
- }),
36
- a(l(r), { label: "允许清除内容(显示清除图标)" }, {
37
- default: u(() => [
38
- a(l(k), {
39
- checked: o.value.allowClear,
40
- "onUpdate:checked": e[1] || (e[1] = (t) => o.value.allowClear = t)
41
- }, null, 8, ["checked"])
42
- ]),
43
- _: 1
44
- /* STABLE */
45
- }),
46
- a(l(r), { label: "前缀内容" }, {
47
- default: u(() => [
48
- a(l(n), {
49
- value: o.value.addonBefore,
50
- "onUpdate:value": e[2] || (e[2] = (t) => o.value.addonBefore = t),
51
- placeholder: "请输入前缀内容"
52
- }, null, 8, ["value"])
53
- ]),
54
- _: 1
55
- /* STABLE */
56
- }),
57
- a(l(r), { label: "后缀内容" }, {
58
- default: u(() => [
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
- _ as default
64
+ w as default
80
65
  };
@@ -0,0 +1,4 @@
1
+ import f from "./OvertimeProps.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -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,4 @@
1
+ import f from "./SelectProps.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -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 s, createBlock as v, unref as l, withCtx as u, createElementVNode as i, createVNode as t } from "vue";
2
- import { CollapsePanel as c, Form as f, FormItem as n, Input as k, Switch as r, InputNumber as h } from "ant-design-vue";
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 x } from "../../../context/design.mjs";
5
- const g = /* @__PURE__ */ p({
4
+ import { useInjectDesignContext as h } from "../../../context/design.mjs";
5
+ const I = /* @__PURE__ */ p({
6
6
  __name: "TextareaProps",
7
- setup(C) {
8
- const { checkedField: d } = x(), a = m(() => d.value["k-component-props"] || {});
9
- return (w, e) => (s(), v(l(c), { key: "textarea-props" }, {
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
- t(l(f), { layout: "vertical" }, {
11
+ a(e(n), { label: "占位提示" }, {
21
12
  default: u(() => [
22
- t(l(n), { label: "占位提示" }, {
23
- default: u(() => [
24
- t(l(k), {
25
- value: a.value.placeholder,
26
- "onUpdate:value": e[0] || (e[0] = (o) => a.value.placeholder = o),
27
- placeholder: "请输入占位提示"
28
- }, null, 8, ["value"])
29
- ]),
30
- _: 1
31
- /* STABLE */
32
- }),
33
- t(l(n), { label: "允许清除内容(显示清除图标)" }, {
34
- default: u(() => [
35
- t(l(r), {
36
- checked: a.value.allowClear,
37
- "onUpdate:checked": e[1] || (e[1] = (o) => a.value.allowClear = o)
38
- }, null, 8, ["checked"])
39
- ]),
40
- _: 1
41
- /* STABLE */
42
- }),
43
- t(l(n), { label: "是否展示字数" }, {
44
- default: u(() => [
45
- t(l(r), {
46
- checked: a.value.showCount,
47
- "onUpdate:checked": e[2] || (e[2] = (o) => a.value.showCount = o)
48
- }, null, 8, ["checked"])
49
- ]),
50
- _: 1
51
- /* STABLE */
52
- }),
53
- t(l(n), { label: "最大长度" }, {
54
- default: u(() => [
55
- t(l(h), {
56
- value: a.value.maxlength,
57
- "onUpdate:value": e[3] || (e[3] = (o) => a.value.maxlength = o),
58
- style: { width: "100%" },
59
- min: 1,
60
- precision: 0,
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
- g as default
63
+ I as default
79
64
  };