@byteluck-fe/model-driven-controls 7.0.0-props.40 → 7.0.0-props.42

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,205 @@
1
+ {
2
+ "name": "rok_switch",
3
+ "description": "开关组件,用于快速切换布尔状态。支持开关内外文字展示、默认状态、开启/关闭文案与颜色、国际化配置,适合状态控制与流程开关场景。",
4
+ "parameters": {
5
+ "type": "object",
6
+ "properties": {
7
+ "isHide": {
8
+ "type": "boolean",
9
+ "description": "是否隐藏",
10
+ "default": false
11
+ },
12
+ "caption": {
13
+ "type": "string",
14
+ "description": "标题",
15
+ "default": ""
16
+ },
17
+ "defaultState": {
18
+ "type": "string",
19
+ "enum": [
20
+ "default",
21
+ "readonly"
22
+ ],
23
+ "description": "默认状态",
24
+ "default": "default",
25
+ "enumDescription": [
26
+ "default",
27
+ "readonly"
28
+ ]
29
+ },
30
+ "captionSize": {
31
+ "type": "string",
32
+ "description": "标题大小",
33
+ "default": ""
34
+ },
35
+ "captionColor": {
36
+ "type": "string",
37
+ "description": "标题颜色",
38
+ "default": ""
39
+ },
40
+ "isCaptionItalic": {
41
+ "type": "boolean",
42
+ "description": "标题斜体",
43
+ "default": false
44
+ },
45
+ "isHideCaption": {
46
+ "type": "boolean",
47
+ "description": "隐藏标题",
48
+ "default": false
49
+ },
50
+ "isShowCaptionTip": {
51
+ "type": "boolean",
52
+ "description": "显示气泡提示",
53
+ "default": false
54
+ },
55
+ "captionTip": {
56
+ "type": "string",
57
+ "description": "气泡提示语",
58
+ "default": ""
59
+ },
60
+ "labelPosition": {
61
+ "type": "string",
62
+ "enum": [
63
+ "top",
64
+ "left"
65
+ ],
66
+ "description": "标题布局",
67
+ "default": "",
68
+ "enumDescription": [
69
+ "top",
70
+ "left"
71
+ ]
72
+ },
73
+ "dataBind": {
74
+ "anyOf": [
75
+ {
76
+ "type": "object",
77
+ "properties": {
78
+ "dataCode": {
79
+ "type": "string",
80
+ "description": "数据模型编码",
81
+ "default": ""
82
+ },
83
+ "fieldCode": {
84
+ "type": "string",
85
+ "description": "字段编码",
86
+ "default": ""
87
+ },
88
+ "fieldType": {
89
+ "type": "string",
90
+ "description": "字段类型",
91
+ "default": ""
92
+ },
93
+ "aliasCode": {
94
+ "type": "string",
95
+ "description": "表别名"
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "type": "object",
101
+ "additionalProperties": {
102
+ "type": "object",
103
+ "properties": {
104
+ "dataCode": {
105
+ "type": "string",
106
+ "description": "数据模型编码",
107
+ "default": ""
108
+ },
109
+ "fieldCode": {
110
+ "type": "string",
111
+ "description": "字段编码",
112
+ "default": ""
113
+ },
114
+ "fieldType": {
115
+ "type": "string",
116
+ "description": "字段类型",
117
+ "default": ""
118
+ },
119
+ "aliasCode": {
120
+ "type": "string",
121
+ "description": "表别名"
122
+ }
123
+ }
124
+ }
125
+ }
126
+ ],
127
+ "description": "绑定数据项"
128
+ },
129
+ "defaultValue": {
130
+ "type": "boolean",
131
+ "description": "默认值",
132
+ "default": false
133
+ },
134
+ "placeholder": {
135
+ "type": "string",
136
+ "description": "提示文字",
137
+ "default": ""
138
+ },
139
+ "required": {
140
+ "type": "boolean",
141
+ "description": "必填",
142
+ "default": false
143
+ },
144
+ "requiredMessage": {
145
+ "type": "string",
146
+ "description": "必填提示文案",
147
+ "default": ""
148
+ },
149
+ "textDisplayStyle": {
150
+ "type": "string",
151
+ "enum": [
152
+ "inside",
153
+ "outside"
154
+ ],
155
+ "description": "文字展示样式;",
156
+ "default": "inside",
157
+ "enumDescription": [
158
+ "开关内",
159
+ "开关外"
160
+ ]
161
+ },
162
+ "checkedText": {
163
+ "type": "string",
164
+ "description": "开启文字",
165
+ "default": ""
166
+ },
167
+ "checkedTextColor": {
168
+ "type": "string",
169
+ "description": "开启文字颜色",
170
+ "default": ""
171
+ },
172
+ "checkedBackgroundColor": {
173
+ "type": "string",
174
+ "description": "开启背景颜色",
175
+ "default": ""
176
+ },
177
+ "checkedInternational": {
178
+ "type": "boolean",
179
+ "description": "开启国际化",
180
+ "default": false
181
+ },
182
+ "uncheckedText": {
183
+ "type": "string",
184
+ "description": "关闭文字",
185
+ "default": ""
186
+ },
187
+ "uncheckedTextColor": {
188
+ "type": "string",
189
+ "description": "关闭文字颜色",
190
+ "default": ""
191
+ },
192
+ "uncheckedBackgroundColor": {
193
+ "type": "string",
194
+ "description": "关闭背景颜色",
195
+ "default": ""
196
+ },
197
+ "uncheckedInternational": {
198
+ "type": "boolean",
199
+ "description": "关闭国际化",
200
+ "default": false
201
+ }
202
+ },
203
+ "required": []
204
+ }
205
+ }
@@ -5,6 +5,7 @@ export { default as Counter } from './Counter';
5
5
  export { default as Radio } from './Radio';
6
6
  export { default as Number } from './Number';
7
7
  export { default as Slider } from './Slider';
8
+ export { default as Switch } from './Switch';
8
9
  export { default as Tag } from './Tag';
9
10
  export { default as DatePicker } from './DatePicker';
10
11
  export { default as DateRange } from './DateRange';