@dckj-npm/dc-material 0.1.26 → 0.1.28

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 (52) hide show
  1. package/build/docs/colorful-button.html +48 -0
  2. package/build/docs/colorful-input.html +48 -0
  3. package/build/docs/index.html +48 -0
  4. package/build/docs/umi.1db9e2cc.css +8 -0
  5. package/build/docs/umi.c18d41ab.js +1 -0
  6. package/build/docs/~demos/colorful-button-demo.html +47 -0
  7. package/build/docs/~demos/colorful-input-demo.html +47 -0
  8. package/build/lowcode/assets-daily.json +13 -13
  9. package/build/lowcode/assets-dev.json +2 -2
  10. package/build/lowcode/assets-prod.json +13 -13
  11. package/build/lowcode/index.js +1 -1
  12. package/build/lowcode/meta.design.js +1 -1
  13. package/build/lowcode/meta.js +1 -1
  14. package/build/lowcode/preview.js +5 -5
  15. package/build/lowcode/render/default/view.css +1 -1
  16. package/build/lowcode/render/default/view.js +6 -6
  17. package/build/lowcode/view.css +1 -1
  18. package/build/lowcode/view.js +6 -6
  19. package/dist/BizComps.css +1 -1
  20. package/dist/BizComps.js +2 -2
  21. package/dist/BizComps.js.map +1 -1
  22. package/es/components/radio-group/index.d.ts +8 -0
  23. package/es/components/radio-group/index.js +7 -0
  24. package/es/components/radio-group/index.scss +40 -0
  25. package/es/components/radio-group/radio-group-item.d.ts +48 -0
  26. package/es/components/radio-group/radio-group-item.js +74 -0
  27. package/es/components/radio-group/radio-group.d.ts +52 -0
  28. package/es/components/radio-group/radio-group.js +65 -0
  29. package/es/index.d.ts +2 -0
  30. package/es/index.js +4 -0
  31. package/lib/components/radio-group/index.d.ts +8 -0
  32. package/lib/components/radio-group/index.js +8 -0
  33. package/lib/components/radio-group/index.scss +40 -0
  34. package/lib/components/radio-group/radio-group-item.d.ts +48 -0
  35. package/lib/components/radio-group/radio-group-item.js +79 -0
  36. package/lib/components/radio-group/radio-group.d.ts +52 -0
  37. package/lib/components/radio-group/radio-group.js +72 -0
  38. package/lib/index.d.ts +2 -0
  39. package/lib/index.js +6 -1
  40. package/lowcode/custom-radio-group/meta.ts +293 -0
  41. package/lowcode/custom-radio-group-item/meta.ts +229 -0
  42. package/lowcode_es/custom-radio-group/meta.d.ts +22 -0
  43. package/lowcode_es/custom-radio-group/meta.js +274 -0
  44. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -0
  45. package/lowcode_es/custom-radio-group-item/meta.js +205 -0
  46. package/lowcode_es/meta.js +4 -2
  47. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -0
  48. package/lowcode_lib/custom-radio-group/meta.js +279 -0
  49. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -0
  50. package/lowcode_lib/custom-radio-group-item/meta.js +210 -0
  51. package/lowcode_lib/meta.js +21 -19
  52. package/package.json +3 -3
@@ -0,0 +1,293 @@
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const CustomRadioGroupMeta: IPublicTypeComponentMetadata = {
5
+ "group": "低代码组件",
6
+ "componentName": "CustomRadioGroup",
7
+ "title": "单选组",
8
+ "docUrl": "",
9
+ "screenshot": "",
10
+ "devMode": "proCode",
11
+ "npm": {
12
+ "package": "@dckj-npm/dc-material",
13
+ "version": "0.1.27",
14
+ "exportName": "CustomRadioGroup",
15
+ "main": "src/index.tsx",
16
+ "destructuring": true,
17
+ "subName": ""
18
+ },
19
+ "configure": {
20
+ "props": [
21
+ {
22
+ "title": {
23
+ "label": {
24
+ "type": "i18n",
25
+ "en-US": "options",
26
+ "zh-CN": "选项"
27
+ },
28
+ "tip": "options | 选项"
29
+ },
30
+ "name": "options",
31
+ "description": "选项",
32
+ "setter": {
33
+ "componentName": "ArraySetter",
34
+ "props": {
35
+ "itemSetter": {
36
+ "componentName": "ObjectSetter",
37
+ "props": {
38
+ "config": {
39
+ "items": [
40
+ {
41
+ "title": {
42
+ "label": {
43
+ "type": "i18n",
44
+ "en-US": "label",
45
+ "zh-CN": "label"
46
+ }
47
+ },
48
+ "name": "label",
49
+ "setter": {
50
+ "componentName": "StringSetter",
51
+ "isRequired": true,
52
+ "initialValue": ""
53
+ }
54
+ },
55
+ {
56
+ "title": {
57
+ "label": {
58
+ "type": "i18n",
59
+ "en-US": "value",
60
+ "zh-CN": "value"
61
+ }
62
+ },
63
+ "name": "value",
64
+ "setter": {
65
+ "componentName": "StringSetter",
66
+ "isRequired": true,
67
+ "initialValue": ""
68
+ }
69
+ }
70
+ ],
71
+ "extraSetter": {
72
+ "componentName": "MixedSetter",
73
+ "isRequired": false,
74
+ "props": {}
75
+ }
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "isRequired": true,
81
+ "initialValue": [
82
+ { label: '标签', value: '1' },
83
+ { label: '标签', value: '2' },
84
+ { label: '标签', value: '3' },
85
+ { label: '标签', value: '4' },
86
+ { label: '标签', value: '5' }
87
+ ]
88
+ }
89
+ },
90
+ {
91
+ "title": {
92
+ "label": {
93
+ "type": "i18n",
94
+ "en-US": "defaultValue",
95
+ "zh-CN": "默认值"
96
+ },
97
+ "tip": "defaultValue | 默认值"
98
+ },
99
+ "name": "defaultValue",
100
+ "description": "默认值",
101
+ "setter": {
102
+ "componentName": "StringSetter",
103
+ "isRequired": false,
104
+ "initialValue": ""
105
+ }
106
+ },
107
+ {
108
+ "title": {
109
+ "label": {
110
+ "type": "i18n",
111
+ "en-US": "isWrap",
112
+ "zh-CN": "是否换行"
113
+ },
114
+ "tip": "isWrap | 是否换行"
115
+ },
116
+ "name": "isWrap",
117
+ "description": "是否换行",
118
+ "setter": {
119
+ "componentName": "BoolSetter",
120
+ "isRequired": false,
121
+ "initialValue": true
122
+ }
123
+ },
124
+ {
125
+ "title": {
126
+ "label": {
127
+ "type": "i18n",
128
+ "en-US": "selectColor",
129
+ "zh-CN": "选中颜色"
130
+ },
131
+ "tip": "selectColor | 选中颜色"
132
+ },
133
+ "name": "selectColor",
134
+ "description": "选中颜色",
135
+ "setter": {
136
+ "componentName": "ColorSetter",
137
+ "isRequired": false,
138
+ "initialValue": "#F5743F"
139
+ }
140
+ },
141
+ {
142
+ "title": {
143
+ "label": {
144
+ "type": "i18n",
145
+ "en-US": "selectTextColor",
146
+ "zh-CN": "选中的文字颜色"
147
+ },
148
+ "tip": "selectTextColor | 选中的文字颜色"
149
+ },
150
+ "name": "selectTextColor",
151
+ "description": "选中的文字颜色",
152
+ "setter": {
153
+ "componentName": "ColorSetter",
154
+ "isRequired": false,
155
+ "initialValue": "#FFFFFF"
156
+ }
157
+ },
158
+ {
159
+ "title": {
160
+ "label": {
161
+ "type": "i18n",
162
+ "en-US": "unSelectColor",
163
+ "zh-CN": "未选中颜色"
164
+ },
165
+ "tip": "unSelectColor | 未选中颜色"
166
+ },
167
+ "name": "unSelectColor",
168
+ "description": "未选中颜色",
169
+ "setter": {
170
+ "componentName": "ColorSetter",
171
+ "isRequired": false,
172
+ "initialValue": "#F0F0F0"
173
+ }
174
+ },
175
+ {
176
+ "title": {
177
+ "label": {
178
+ "type": "i18n",
179
+ "en-US": "unSelectTextColor",
180
+ "zh-CN": "未选中的文字颜色"
181
+ },
182
+ "tip": "unSelectTextColor | 未选中的文字颜色"
183
+ },
184
+ "name": "unSelectTextColor",
185
+ "description": "未选中的文字颜色",
186
+ "setter": {
187
+ "componentName": "ColorSetter",
188
+ "isRequired": false,
189
+ "initialValue": "#666666"
190
+ }
191
+ },
192
+ {
193
+ "title": {
194
+ "label": {
195
+ "type": "i18n",
196
+ "en-US": "onChange",
197
+ "zh-CN": "改变事件"
198
+ },
199
+ "tip": "onChange | 改变事件"
200
+ },
201
+ "name": "onChange",
202
+ "description": "改变事件",
203
+ "setter": {
204
+ "componentName": "FunctionSetter"
205
+ }
206
+ },
207
+ {
208
+ "title": {
209
+ "label": {
210
+ "type": "i18n",
211
+ "en-US": "type",
212
+ "zh-CN": "类型"
213
+ },
214
+ "tip": "type | 类型"
215
+ },
216
+ "name": "type",
217
+ "description": "类型",
218
+ "setter": {
219
+ "componentName": "RadioGroupSetter",
220
+ "props": {
221
+ "dataSource": [
222
+ {
223
+ "label": "text",
224
+ "value": "text"
225
+ },
226
+ {
227
+ "label": "button",
228
+ "value": "button"
229
+ }
230
+ ],
231
+ "options": [
232
+ {
233
+ "label": "text",
234
+ "value": "text"
235
+ },
236
+ {
237
+ "label": "button",
238
+ "value": "button"
239
+ }
240
+ ]
241
+ },
242
+ "initialValue": "button"
243
+ }
244
+ },
245
+ {
246
+ "title": {
247
+ "label": {
248
+ "type": "i18n",
249
+ "en-US": "name",
250
+ "zh-CN": "名称"
251
+ },
252
+ "tip": "name | 名称"
253
+ },
254
+ "name": "name",
255
+ "description": "名称",
256
+ "setter": {
257
+ "componentName": "StringSetter",
258
+ "isRequired": false,
259
+ "initialValue": ""
260
+ }
261
+ }
262
+ ],
263
+ "supports": {
264
+ "style": true
265
+ },
266
+ "component": {}
267
+ }
268
+ };
269
+ const snippets: IPublicTypeSnippet[] = [
270
+ {
271
+ "title": "单选组",
272
+ "screenshot": "",
273
+ "schema": {
274
+ "componentName": "CustomRadioGroup",
275
+ "props": {},
276
+ children: [
277
+ {
278
+ componentName: 'CustomRadioGroupItem',
279
+ props: {
280
+ name: '报名火热',
281
+ color: 'orange',
282
+ key: 'custom-radio-group-item'
283
+ },
284
+ }
285
+ ]
286
+ }
287
+ }
288
+ ];
289
+
290
+ export default {
291
+ ...CustomRadioGroupMeta,
292
+ snippets
293
+ };
@@ -0,0 +1,229 @@
1
+
2
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
+
4
+ const CustomRadioGroupItemMeta: IPublicTypeComponentMetadata = {
5
+ "group": "低代码组件",
6
+ "componentName": "CustomRadioGroupItem",
7
+ "title": "单选组项",
8
+ "docUrl": "",
9
+ "screenshot": "",
10
+ "devMode": "proCode",
11
+ "npm": {
12
+ "package": "@dckj-npm/dc-material",
13
+ "version": "0.1.27",
14
+ "exportName": "CustomRadioGroupItem",
15
+ "main": "src/index.tsx",
16
+ "destructuring": true,
17
+ "subName": ""
18
+ },
19
+ "configure": {
20
+ "props": [
21
+ {
22
+ "title": {
23
+ "label": {
24
+ "type": "i18n",
25
+ "en-US": "label",
26
+ "zh-CN": "选项"
27
+ },
28
+ "tip": "label | 选项"
29
+ },
30
+ "name": "label",
31
+ "description": "选项",
32
+ "setter": {
33
+ "componentName": "StringSetter",
34
+ "isRequired": true,
35
+ "initialValue": "标签"
36
+ }
37
+ },
38
+ {
39
+ "title": {
40
+ "label": {
41
+ "type": "i18n",
42
+ "en-US": "value",
43
+ "zh-CN": "值"
44
+ }
45
+ },
46
+ "name": "value",
47
+ "setter": {
48
+ "componentName": "StringSetter",
49
+ "isRequired": true,
50
+ "initialValue": "value"
51
+ }
52
+ },
53
+ {
54
+ "title": {
55
+ "label": {
56
+ "type": "i18n",
57
+ "en-US": "checked",
58
+ "zh-CN": "是否选中"
59
+ },
60
+ "tip": "checked | 是否选中"
61
+ },
62
+ "name": "checked",
63
+ "description": "是否选中",
64
+ "setter": {
65
+ "componentName": "BoolSetter",
66
+ "isRequired": true,
67
+ "initialValue": false
68
+ }
69
+ },
70
+ {
71
+ "title": {
72
+ "label": {
73
+ "type": "i18n",
74
+ "en-US": "selectColor",
75
+ "zh-CN": "选中颜色"
76
+ },
77
+ "tip": "selectColor | 选中颜色"
78
+ },
79
+ "name": "selectColor",
80
+ "description": "选中颜色",
81
+ "setter": {
82
+ "componentName": "ColorSetter",
83
+ "isRequired": false,
84
+ "initialValue": "#F5743F"
85
+ }
86
+ },
87
+ {
88
+ "title": {
89
+ "label": {
90
+ "type": "i18n",
91
+ "en-US": "selectTextColor",
92
+ "zh-CN": "选中的文字颜色"
93
+ },
94
+ "tip": "selectTextColor | 选中的文字颜色"
95
+ },
96
+ "name": "selectTextColor",
97
+ "description": "选中的文字颜色",
98
+ "setter": {
99
+ "componentName": "ColorSetter",
100
+ "isRequired": false,
101
+ "initialValue": "#FFFFFF"
102
+ }
103
+ },
104
+ {
105
+ "title": {
106
+ "label": {
107
+ "type": "i18n",
108
+ "en-US": "unSelectColor",
109
+ "zh-CN": "未选中颜色"
110
+ },
111
+ "tip": "unSelectColor | 未选中颜色"
112
+ },
113
+ "name": "unSelectColor",
114
+ "description": "未选中颜色",
115
+ "setter": {
116
+ "componentName": "ColorSetter",
117
+ "isRequired": false,
118
+ "initialValue": "#F0F0F0"
119
+ }
120
+ },
121
+ {
122
+ "title": {
123
+ "label": {
124
+ "type": "i18n",
125
+ "en-US": "unSelectTextColor",
126
+ "zh-CN": "未选中的文字颜色"
127
+ },
128
+ "tip": "unSelectTextColor | 未选中的文字颜色"
129
+ },
130
+ "name": "unSelectTextColor",
131
+ "description": "未选中的文字颜色",
132
+ "setter": {
133
+ "componentName": "ColorSetter",
134
+ "isRequired": false,
135
+ "initialValue": "#666666"
136
+ }
137
+ },
138
+ {
139
+ "title": {
140
+ "label": {
141
+ "type": "i18n",
142
+ "en-US": "type",
143
+ "zh-CN": "类型"
144
+ },
145
+ "tip": "type | 类型"
146
+ },
147
+ "name": "type",
148
+ "description": "类型",
149
+ "setter": {
150
+ "componentName": "RadioGroupSetter",
151
+ "props": {
152
+ "dataSource": [
153
+ {
154
+ "label": "text",
155
+ "value": "text"
156
+ },
157
+ {
158
+ "label": "button",
159
+ "value": "button"
160
+ }
161
+ ],
162
+ "options": [
163
+ {
164
+ "label": "text",
165
+ "value": "text"
166
+ },
167
+ {
168
+ "label": "button",
169
+ "value": "button"
170
+ }
171
+ ]
172
+ },
173
+ "initialValue": "button"
174
+ }
175
+ },
176
+ {
177
+ "title": {
178
+ "label": {
179
+ "type": "i18n",
180
+ "en-US": "name",
181
+ "zh-CN": "名称"
182
+ },
183
+ "tip": "name | 名称"
184
+ },
185
+ "name": "name",
186
+ "description": "名称",
187
+ "setter": {
188
+ "componentName": "StringSetter",
189
+ "isRequired": true,
190
+ "initialValue": ""
191
+ }
192
+ },
193
+ {
194
+ "title": {
195
+ "label": {
196
+ "type": "i18n",
197
+ "en-US": "onChange",
198
+ "zh-CN": "改变事件"
199
+ },
200
+ "tip": "onChange | 改变事件"
201
+ },
202
+ "name": "onChange",
203
+ "description": "改变事件",
204
+ "setter": {
205
+ "componentName": "FunctionSetter",
206
+ "isRequired": true
207
+ }
208
+ }
209
+ ],
210
+ "supports": {
211
+ "style": true
212
+ },
213
+ "component": {}
214
+ }
215
+ };
216
+ const snippets: IPublicTypeSnippet[] = [
217
+ {
218
+ "title": "单选组项",
219
+ "screenshot": "",
220
+ "schema": {
221
+ "componentName": "CustomRadioGroupItem",
222
+ "props": {}
223
+ }
224
+ }
225
+ ];
226
+
227
+ export default {
228
+ ...CustomRadioGroupItemMeta
229
+ };
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;