sun-form-v3 1.0.73 → 1.0.75

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.
@@ -0,0 +1,150 @@
1
+ import { resolveComponent as n, openBlock as g, createElementBlock as w, Fragment as b, createVNode as e, withCtx as p, unref as t } from "vue";
2
+ const x = /* @__PURE__ */ Object.assign({ name: "config-input" }, {
3
+ __name: "index",
4
+ props: {
5
+ designer: {
6
+ type: Object,
7
+ default: {}
8
+ },
9
+ widget: {
10
+ type: Object,
11
+ default: {}
12
+ }
13
+ },
14
+ setup(s) {
15
+ let l = s;
16
+ return (f, o) => {
17
+ const u = n("el-option"), i = n("el-select"), a = n("common-label-container"), m = n("el-input"), V = n("el-input-number"), r = n("el-switch");
18
+ return g(), w(b, null, [
19
+ e(a, { label: "组件尺寸" }, {
20
+ default: p(() => [
21
+ e(i, {
22
+ modelValue: t(l).widget.props.size,
23
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => t(l).widget.props.size = d)
24
+ }, {
25
+ default: p(() => [
26
+ e(u, {
27
+ label: "大尺寸",
28
+ value: "large"
29
+ }),
30
+ e(u, {
31
+ label: "默认",
32
+ value: "default"
33
+ }),
34
+ e(u, {
35
+ label: "小尺寸",
36
+ value: "small"
37
+ })
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue"])
41
+ ]),
42
+ _: 1
43
+ }),
44
+ e(a, { label: "组件类型" }, {
45
+ default: p(() => [
46
+ e(i, {
47
+ modelValue: t(l).widget.props.type,
48
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).widget.props.type = d)
49
+ }, {
50
+ default: p(() => [
51
+ e(u, {
52
+ label: "文字",
53
+ value: "text"
54
+ }),
55
+ e(u, {
56
+ label: "密码",
57
+ value: "password"
58
+ })
59
+ ]),
60
+ _: 1
61
+ }, 8, ["modelValue"])
62
+ ]),
63
+ _: 1
64
+ }),
65
+ e(a, { label: "占位文字" }, {
66
+ default: p(() => [
67
+ e(m, {
68
+ modelValue: t(l).widget.props.placeholder,
69
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).widget.props.placeholder = d),
70
+ placeholder: "填写占位文字"
71
+ }, null, 8, ["modelValue"])
72
+ ]),
73
+ _: 1
74
+ }),
75
+ e(a, { label: "前置内容文字" }, {
76
+ default: p(() => [
77
+ e(m, {
78
+ modelValue: t(l).widget.props.prependText,
79
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).widget.props.prependText = d),
80
+ placeholder: "填写末尾按钮文字"
81
+ }, null, 8, ["modelValue"])
82
+ ]),
83
+ _: 1
84
+ }),
85
+ e(a, { label: "末尾按钮文字" }, {
86
+ default: p(() => [
87
+ e(m, {
88
+ modelValue: t(l).widget.props.appendText,
89
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => t(l).widget.props.appendText = d),
90
+ placeholder: "填写末尾按钮文字"
91
+ }, null, 8, ["modelValue"])
92
+ ]),
93
+ _: 1
94
+ }),
95
+ e(a, { label: "最大输入长度" }, {
96
+ default: p(() => [
97
+ e(V, {
98
+ class: "w-full",
99
+ placeholder: "填写最大输入长度",
100
+ modelValue: t(l).widget.props.maxlength,
101
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => t(l).widget.props.maxlength = d),
102
+ min: 0,
103
+ "controls-position": "right"
104
+ }, null, 8, ["modelValue"])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ e(a, { label: "是否去空格" }, {
109
+ default: p(() => [
110
+ e(r, {
111
+ modelValue: t(l).widget.props.isTrim,
112
+ "onUpdate:modelValue": o[6] || (o[6] = (d) => t(l).widget.props.isTrim = d)
113
+ }, null, 8, ["modelValue"])
114
+ ]),
115
+ _: 1
116
+ }),
117
+ e(a, { label: "是否必填" }, {
118
+ default: p(() => [
119
+ e(r, {
120
+ modelValue: t(l).widget.props.required,
121
+ "onUpdate:modelValue": o[7] || (o[7] = (d) => t(l).widget.props.required = d)
122
+ }, null, 8, ["modelValue"])
123
+ ]),
124
+ _: 1
125
+ }),
126
+ e(a, { label: "是否只读" }, {
127
+ default: p(() => [
128
+ e(r, {
129
+ modelValue: t(l).widget.props.readonly,
130
+ "onUpdate:modelValue": o[8] || (o[8] = (d) => t(l).widget.props.readonly = d)
131
+ }, null, 8, ["modelValue"])
132
+ ]),
133
+ _: 1
134
+ }),
135
+ e(a, { label: "是否禁用" }, {
136
+ default: p(() => [
137
+ e(r, {
138
+ modelValue: t(l).widget.props.disabled,
139
+ "onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).widget.props.disabled = d)
140
+ }, null, 8, ["modelValue"])
141
+ ]),
142
+ _: 1
143
+ })
144
+ ], 64);
145
+ };
146
+ }
147
+ });
148
+ export {
149
+ x as default
150
+ };
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-BYlzZUqk.js";
1
+ import { conf as t, language as e } from "./typescript-B66xIknh.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
@@ -0,0 +1,11 @@
1
+ function r(e) {
2
+ return new Worker(
3
+ "/assets/json.worker-6f9bhSHY.js",
4
+ {
5
+ name: e == null ? void 0 : e.name
6
+ }
7
+ );
8
+ }
9
+ export {
10
+ r as default
11
+ };
@@ -1,4 +1,4 @@
1
- import { m as Ke } from "./index-BkAjoBLc.js";
1
+ import { m as Ke } from "./index-CcTbw1Tq.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-BkAjoBLc.js";
1
+ import { m as l } from "./index-CcTbw1Tq.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-BkAjoBLc.js";
1
+ import { m as s } from "./index-CcTbw1Tq.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-BkAjoBLc.js";
1
+ import { m as i } from "./index-CcTbw1Tq.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
@@ -1,4 +1,4 @@
1
- import { m } from "./index-BkAjoBLc.js";
1
+ import { m } from "./index-CcTbw1Tq.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)