@dckj-npm/dc-material 0.1.40 → 0.1.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.
- 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 +6 -6
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +2 -2
- package/dist/BizComps.js.map +1 -1
- package/es/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/es/components/goods-card-list/goods-card-list-common.js +52 -0
- package/es/components/goods-card-list/goods-card-list-common.scss +119 -0
- package/es/components/goods-card-list/index.d.ts +2 -1
- package/es/components/goods-card-list/index.js +2 -1
- package/es/components/rich-text/index.scss +7 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/components/goods-card-list/goods-card-list-common.d.ts +5 -0
- package/lib/components/goods-card-list/goods-card-list-common.js +57 -0
- package/lib/components/goods-card-list/goods-card-list-common.scss +119 -0
- package/lib/components/goods-card-list/index.d.ts +2 -1
- package/lib/components/goods-card-list/index.js +3 -1
- package/lib/components/rich-text/index.scss +7 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lowcode/goods-card-list-common/meta.ts +268 -0
- package/lowcode_es/goods-card-list-common/meta.d.ts +22 -0
- package/lowcode_es/goods-card-list-common/meta.js +250 -0
- package/lowcode_es/meta.js +3 -2
- package/lowcode_lib/goods-card-list-common/meta.d.ts +22 -0
- package/lowcode_lib/goods-card-list-common/meta.js +255 -0
- package/lowcode_lib/meta.js +21 -20
- package/package.json +3 -3
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
|
|
2
|
+
|
|
3
|
+
const GoodsCardListCommonMeta: IPublicTypeComponentMetadata = {
|
|
4
|
+
group: '低代码组件',
|
|
5
|
+
componentName: 'GoodsCardListCommon',
|
|
6
|
+
title: '普通商品卡片列表',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
devMode: 'proCode',
|
|
10
|
+
npm: {
|
|
11
|
+
package: '@dckj-npm/dc-material',
|
|
12
|
+
version: '0.1.41',
|
|
13
|
+
exportName: 'GoodsCardListCommon',
|
|
14
|
+
main: 'src/index.tsx',
|
|
15
|
+
destructuring: true,
|
|
16
|
+
subName: '',
|
|
17
|
+
},
|
|
18
|
+
configure: {
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: '数据源绑定',
|
|
22
|
+
setter: {
|
|
23
|
+
componentName: 'SetterFormVariable',
|
|
24
|
+
props: {
|
|
25
|
+
attributes: [
|
|
26
|
+
{
|
|
27
|
+
label: '列表数据',
|
|
28
|
+
value: 'dataList',
|
|
29
|
+
children: [
|
|
30
|
+
{ label: '唯一标识', value: 'key' },
|
|
31
|
+
{ label: '封面图片地址列表', value: 'imageList' },
|
|
32
|
+
{ label: '标题', value: 'title' },
|
|
33
|
+
{ label: '介绍', value: 'desc' },
|
|
34
|
+
{ label: '价格', value: 'price' },
|
|
35
|
+
{
|
|
36
|
+
label: '促销价格',
|
|
37
|
+
value: 'activePrice',
|
|
38
|
+
isRequire: false,
|
|
39
|
+
notes: '商品信息的促销价格,只有存在的情况下才会展示该信息',
|
|
40
|
+
},
|
|
41
|
+
{ label: '销量', value: 'sales' },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: {
|
|
50
|
+
label: {
|
|
51
|
+
type: 'i18n',
|
|
52
|
+
'en-US': 'dataList',
|
|
53
|
+
'zh-CN': '卡片列表数据',
|
|
54
|
+
},
|
|
55
|
+
tip: 'dataList | 卡片列表数据',
|
|
56
|
+
},
|
|
57
|
+
name: 'dataList',
|
|
58
|
+
description: '卡片列表数据',
|
|
59
|
+
setter: {
|
|
60
|
+
componentName: 'ArraySetter',
|
|
61
|
+
props: {
|
|
62
|
+
itemSetter: {
|
|
63
|
+
componentName: 'ObjectSetter',
|
|
64
|
+
props: {
|
|
65
|
+
config: {
|
|
66
|
+
items: [
|
|
67
|
+
{
|
|
68
|
+
title: {
|
|
69
|
+
label: {
|
|
70
|
+
type: 'i18n',
|
|
71
|
+
'en-US': 'key',
|
|
72
|
+
'zh-CN': 'ID',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
name: 'key',
|
|
76
|
+
setter: {
|
|
77
|
+
componentName: 'StringSetter',
|
|
78
|
+
isRequired: true,
|
|
79
|
+
initialValue: '',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: {
|
|
84
|
+
label: {
|
|
85
|
+
type: 'i18n',
|
|
86
|
+
'en-US': 'imageList',
|
|
87
|
+
'zh-CN': '封面',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
name: 'imageList',
|
|
91
|
+
setter: {
|
|
92
|
+
componentName: 'ArraySetter',
|
|
93
|
+
props: {
|
|
94
|
+
itemSetter: {
|
|
95
|
+
componentName: 'StringSetter',
|
|
96
|
+
isRequired: false,
|
|
97
|
+
initialValue: '',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
isRequired: true,
|
|
101
|
+
initialValue: [],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: {
|
|
106
|
+
label: {
|
|
107
|
+
type: 'i18n',
|
|
108
|
+
'en-US': 'title',
|
|
109
|
+
'zh-CN': '标题',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
name: 'title',
|
|
113
|
+
setter: {
|
|
114
|
+
componentName: 'StringSetter',
|
|
115
|
+
isRequired: true,
|
|
116
|
+
initialValue: '',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: {
|
|
121
|
+
label: {
|
|
122
|
+
type: 'i18n',
|
|
123
|
+
'en-US': 'desc',
|
|
124
|
+
'zh-CN': '介绍',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
name: 'desc',
|
|
128
|
+
setter: {
|
|
129
|
+
componentName: 'StringSetter',
|
|
130
|
+
isRequired: true,
|
|
131
|
+
initialValue: '',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
title: {
|
|
136
|
+
label: {
|
|
137
|
+
type: 'i18n',
|
|
138
|
+
'en-US': 'price',
|
|
139
|
+
'zh-CN': '价格',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
name: 'price',
|
|
143
|
+
setter: {
|
|
144
|
+
componentName: 'StringSetter',
|
|
145
|
+
isRequired: true,
|
|
146
|
+
initialValue: '',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: {
|
|
151
|
+
label: {
|
|
152
|
+
type: 'i18n',
|
|
153
|
+
'en-US': 'sales',
|
|
154
|
+
'zh-CN': '销量',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
name: 'sales',
|
|
158
|
+
setter: {
|
|
159
|
+
componentName: 'NumberSetter',
|
|
160
|
+
isRequired: true,
|
|
161
|
+
initialValue: 0,
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
extraSetter: {
|
|
166
|
+
componentName: 'MixedSetter',
|
|
167
|
+
isRequired: false,
|
|
168
|
+
props: {},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
isRequired: true,
|
|
175
|
+
initialValue: [
|
|
176
|
+
{
|
|
177
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
178
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_0_0'],
|
|
179
|
+
key: '1_0',
|
|
180
|
+
price: '2.57',
|
|
181
|
+
sales: 39261,
|
|
182
|
+
title: '商品标题',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
186
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_1_0'],
|
|
187
|
+
key: '1_1',
|
|
188
|
+
price: '2.57',
|
|
189
|
+
sales: 39261,
|
|
190
|
+
title: '商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
194
|
+
imageList: [
|
|
195
|
+
'https://loremflickr.com/400/300/food?id=1_2_0',
|
|
196
|
+
'https://loremflickr.com/400/300/food?id=1_2_1',
|
|
197
|
+
'https://loremflickr.com/400/300/food?id=1_2_2',
|
|
198
|
+
],
|
|
199
|
+
key: '1_2',
|
|
200
|
+
price: '2.57',
|
|
201
|
+
sales: 39261,
|
|
202
|
+
title: '商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
206
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_3_0'],
|
|
207
|
+
key: '1_3',
|
|
208
|
+
price: '2.57',
|
|
209
|
+
sales: 39261,
|
|
210
|
+
title: '商品标题',
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
title: {
|
|
217
|
+
label: {
|
|
218
|
+
type: 'i18n',
|
|
219
|
+
'en-US': 'maxSales',
|
|
220
|
+
'zh-CN': '最大销量',
|
|
221
|
+
},
|
|
222
|
+
tip: 'maxSales | 最大销量',
|
|
223
|
+
},
|
|
224
|
+
name: 'maxSales',
|
|
225
|
+
description: '最大销量',
|
|
226
|
+
setter: {
|
|
227
|
+
componentName: 'NumberSetter',
|
|
228
|
+
isRequired: false,
|
|
229
|
+
initialValue: 1000,
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
title: {
|
|
234
|
+
label: {
|
|
235
|
+
type: 'i18n',
|
|
236
|
+
'en-US': 'onClick',
|
|
237
|
+
'zh-CN': '点击事件',
|
|
238
|
+
},
|
|
239
|
+
tip: 'onClick | 点击事件',
|
|
240
|
+
},
|
|
241
|
+
name: 'onClick',
|
|
242
|
+
description: '点击事件',
|
|
243
|
+
setter: {
|
|
244
|
+
componentName: 'FunctionSetter',
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
supports: {
|
|
249
|
+
style: true,
|
|
250
|
+
},
|
|
251
|
+
component: {},
|
|
252
|
+
},
|
|
253
|
+
}
|
|
254
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
255
|
+
{
|
|
256
|
+
title: '普通商品卡片列表',
|
|
257
|
+
screenshot: '',
|
|
258
|
+
schema: {
|
|
259
|
+
componentName: 'GoodsCardListCommon',
|
|
260
|
+
props: {},
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
]
|
|
264
|
+
|
|
265
|
+
export default {
|
|
266
|
+
...GoodsCardListCommonMeta,
|
|
267
|
+
snippets,
|
|
268
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var GoodsCardListCommonMeta = {
|
|
3
|
+
group: '低代码组件',
|
|
4
|
+
componentName: 'GoodsCardListCommon',
|
|
5
|
+
title: '普通商品卡片列表',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
"package": '@dckj-npm/dc-material',
|
|
11
|
+
version: '0.1.41',
|
|
12
|
+
exportName: 'GoodsCardListCommon',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: ''
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [{
|
|
19
|
+
name: '数据源绑定',
|
|
20
|
+
setter: {
|
|
21
|
+
componentName: 'SetterFormVariable',
|
|
22
|
+
props: {
|
|
23
|
+
attributes: [{
|
|
24
|
+
label: '列表数据',
|
|
25
|
+
value: 'dataList',
|
|
26
|
+
children: [{
|
|
27
|
+
label: '唯一标识',
|
|
28
|
+
value: 'key'
|
|
29
|
+
}, {
|
|
30
|
+
label: '封面图片地址列表',
|
|
31
|
+
value: 'imageList'
|
|
32
|
+
}, {
|
|
33
|
+
label: '标题',
|
|
34
|
+
value: 'title'
|
|
35
|
+
}, {
|
|
36
|
+
label: '介绍',
|
|
37
|
+
value: 'desc'
|
|
38
|
+
}, {
|
|
39
|
+
label: '价格',
|
|
40
|
+
value: 'price'
|
|
41
|
+
}, {
|
|
42
|
+
label: '促销价格',
|
|
43
|
+
value: 'activePrice',
|
|
44
|
+
isRequire: false,
|
|
45
|
+
notes: '商品信息的促销价格,只有存在的情况下才会展示该信息'
|
|
46
|
+
}, {
|
|
47
|
+
label: '销量',
|
|
48
|
+
value: 'sales'
|
|
49
|
+
}]
|
|
50
|
+
}]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, {
|
|
54
|
+
title: {
|
|
55
|
+
label: {
|
|
56
|
+
type: 'i18n',
|
|
57
|
+
'en-US': 'dataList',
|
|
58
|
+
'zh-CN': '卡片列表数据'
|
|
59
|
+
},
|
|
60
|
+
tip: 'dataList | 卡片列表数据'
|
|
61
|
+
},
|
|
62
|
+
name: 'dataList',
|
|
63
|
+
description: '卡片列表数据',
|
|
64
|
+
setter: {
|
|
65
|
+
componentName: 'ArraySetter',
|
|
66
|
+
props: {
|
|
67
|
+
itemSetter: {
|
|
68
|
+
componentName: 'ObjectSetter',
|
|
69
|
+
props: {
|
|
70
|
+
config: {
|
|
71
|
+
items: [{
|
|
72
|
+
title: {
|
|
73
|
+
label: {
|
|
74
|
+
type: 'i18n',
|
|
75
|
+
'en-US': 'key',
|
|
76
|
+
'zh-CN': 'ID'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
name: 'key',
|
|
80
|
+
setter: {
|
|
81
|
+
componentName: 'StringSetter',
|
|
82
|
+
isRequired: true,
|
|
83
|
+
initialValue: ''
|
|
84
|
+
}
|
|
85
|
+
}, {
|
|
86
|
+
title: {
|
|
87
|
+
label: {
|
|
88
|
+
type: 'i18n',
|
|
89
|
+
'en-US': 'imageList',
|
|
90
|
+
'zh-CN': '封面'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
name: 'imageList',
|
|
94
|
+
setter: {
|
|
95
|
+
componentName: 'ArraySetter',
|
|
96
|
+
props: {
|
|
97
|
+
itemSetter: {
|
|
98
|
+
componentName: 'StringSetter',
|
|
99
|
+
isRequired: false,
|
|
100
|
+
initialValue: ''
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
isRequired: true,
|
|
104
|
+
initialValue: []
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
title: {
|
|
108
|
+
label: {
|
|
109
|
+
type: 'i18n',
|
|
110
|
+
'en-US': 'title',
|
|
111
|
+
'zh-CN': '标题'
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
name: 'title',
|
|
115
|
+
setter: {
|
|
116
|
+
componentName: 'StringSetter',
|
|
117
|
+
isRequired: true,
|
|
118
|
+
initialValue: ''
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
title: {
|
|
122
|
+
label: {
|
|
123
|
+
type: 'i18n',
|
|
124
|
+
'en-US': 'desc',
|
|
125
|
+
'zh-CN': '介绍'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
name: 'desc',
|
|
129
|
+
setter: {
|
|
130
|
+
componentName: 'StringSetter',
|
|
131
|
+
isRequired: true,
|
|
132
|
+
initialValue: ''
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
title: {
|
|
136
|
+
label: {
|
|
137
|
+
type: 'i18n',
|
|
138
|
+
'en-US': 'price',
|
|
139
|
+
'zh-CN': '价格'
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
name: 'price',
|
|
143
|
+
setter: {
|
|
144
|
+
componentName: 'StringSetter',
|
|
145
|
+
isRequired: true,
|
|
146
|
+
initialValue: ''
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
title: {
|
|
150
|
+
label: {
|
|
151
|
+
type: 'i18n',
|
|
152
|
+
'en-US': 'sales',
|
|
153
|
+
'zh-CN': '销量'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
name: 'sales',
|
|
157
|
+
setter: {
|
|
158
|
+
componentName: 'NumberSetter',
|
|
159
|
+
isRequired: true,
|
|
160
|
+
initialValue: 0
|
|
161
|
+
}
|
|
162
|
+
}],
|
|
163
|
+
extraSetter: {
|
|
164
|
+
componentName: 'MixedSetter',
|
|
165
|
+
isRequired: false,
|
|
166
|
+
props: {}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
isRequired: true,
|
|
173
|
+
initialValue: [{
|
|
174
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
175
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_0_0'],
|
|
176
|
+
key: '1_0',
|
|
177
|
+
price: '2.57',
|
|
178
|
+
sales: 39261,
|
|
179
|
+
title: '商品标题'
|
|
180
|
+
}, {
|
|
181
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
182
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_1_0'],
|
|
183
|
+
key: '1_1',
|
|
184
|
+
price: '2.57',
|
|
185
|
+
sales: 39261,
|
|
186
|
+
title: '商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题'
|
|
187
|
+
}, {
|
|
188
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
189
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_2_0', 'https://loremflickr.com/400/300/food?id=1_2_1', 'https://loremflickr.com/400/300/food?id=1_2_2'],
|
|
190
|
+
key: '1_2',
|
|
191
|
+
price: '2.57',
|
|
192
|
+
sales: 39261,
|
|
193
|
+
title: '商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题'
|
|
194
|
+
}, {
|
|
195
|
+
desc: '商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍商品介绍',
|
|
196
|
+
imageList: ['https://loremflickr.com/400/300/food?id=1_3_0'],
|
|
197
|
+
key: '1_3',
|
|
198
|
+
price: '2.57',
|
|
199
|
+
sales: 39261,
|
|
200
|
+
title: '商品标题'
|
|
201
|
+
}]
|
|
202
|
+
}
|
|
203
|
+
}, {
|
|
204
|
+
title: {
|
|
205
|
+
label: {
|
|
206
|
+
type: 'i18n',
|
|
207
|
+
'en-US': 'maxSales',
|
|
208
|
+
'zh-CN': '最大销量'
|
|
209
|
+
},
|
|
210
|
+
tip: 'maxSales | 最大销量'
|
|
211
|
+
},
|
|
212
|
+
name: 'maxSales',
|
|
213
|
+
description: '最大销量',
|
|
214
|
+
setter: {
|
|
215
|
+
componentName: 'NumberSetter',
|
|
216
|
+
isRequired: false,
|
|
217
|
+
initialValue: 1000
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
title: {
|
|
221
|
+
label: {
|
|
222
|
+
type: 'i18n',
|
|
223
|
+
'en-US': 'onClick',
|
|
224
|
+
'zh-CN': '点击事件'
|
|
225
|
+
},
|
|
226
|
+
tip: 'onClick | 点击事件'
|
|
227
|
+
},
|
|
228
|
+
name: 'onClick',
|
|
229
|
+
description: '点击事件',
|
|
230
|
+
setter: {
|
|
231
|
+
componentName: 'FunctionSetter'
|
|
232
|
+
}
|
|
233
|
+
}],
|
|
234
|
+
supports: {
|
|
235
|
+
style: true
|
|
236
|
+
},
|
|
237
|
+
component: {}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
var snippets = [{
|
|
241
|
+
title: '普通商品卡片列表',
|
|
242
|
+
screenshot: '',
|
|
243
|
+
schema: {
|
|
244
|
+
componentName: 'GoodsCardListCommon',
|
|
245
|
+
props: {}
|
|
246
|
+
}
|
|
247
|
+
}];
|
|
248
|
+
export default _extends({}, GoodsCardListCommonMeta, {
|
|
249
|
+
snippets: snippets
|
|
250
|
+
});
|
package/lowcode_es/meta.js
CHANGED
|
@@ -3,6 +3,7 @@ import Button2Meta from "./button2/meta";
|
|
|
3
3
|
import CustomRadioGroupItemMeta from "./custom-radio-group-item/meta";
|
|
4
4
|
import CustomRadioGroupMeta from "./custom-radio-group/meta";
|
|
5
5
|
import DCSliderMeta from "./d-c-slider/meta";
|
|
6
|
+
import GoodsCardListCommonMeta from "./goods-card-list-common/meta";
|
|
6
7
|
import GoodsCardListMeta from "./goods-card-list/meta";
|
|
7
8
|
import GridNavMeta from "./grid-nav/meta";
|
|
8
9
|
import IntegralTaskMeta from "./integral-task/meta";
|
|
@@ -92,7 +93,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
92
93
|
packageName = '@dckj-npm/dc-material';
|
|
93
94
|
}
|
|
94
95
|
if (version === void 0) {
|
|
95
|
-
version = '0.1.
|
|
96
|
+
version = '0.1.42';
|
|
96
97
|
}
|
|
97
98
|
if (basicLibraryVersion === void 0) {
|
|
98
99
|
basicLibraryVersion = {
|
|
@@ -119,7 +120,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
119
120
|
}
|
|
120
121
|
return meta;
|
|
121
122
|
}
|
|
122
|
-
var componentMetas = [Button2Meta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, GoodsCardListMeta, GridNavMeta, IntegralTaskMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, Title1Meta, Title2Meta];
|
|
123
|
+
var componentMetas = [Button2Meta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, GoodsCardListCommonMeta, GoodsCardListMeta, GridNavMeta, IntegralTaskMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, Title1Meta, Title2Meta];
|
|
123
124
|
var components = [];
|
|
124
125
|
var npmInfo = {};
|
|
125
126
|
componentMetas.forEach(function (meta) {
|
|
@@ -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;
|