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