@dckj-npm/dc-material 0.1.3 → 0.1.5

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 (39) hide show
  1. package/dist/BizComps.js +1 -1
  2. package/dist/BizComps.js.map +1 -1
  3. package/es/components/position/index.scss +16 -16
  4. package/es/components/teletext-list/teletext-list-item.d.ts +4 -0
  5. package/es/components/teletext-list/teletext-list-item.js +6 -3
  6. package/es/components/teletext-list/teletext-list.d.ts +5 -0
  7. package/es/components/teletext-list/teletext-list.js +5 -2
  8. package/lib/components/position/index.scss +16 -16
  9. package/lib/components/teletext-list/teletext-list-item.d.ts +4 -0
  10. package/lib/components/teletext-list/teletext-list-item.js +6 -3
  11. package/lib/components/teletext-list/teletext-list.d.ts +5 -0
  12. package/lib/components/teletext-list/teletext-list.js +5 -2
  13. package/lowcode/d-c-slider/meta.ts +1 -1
  14. package/lowcode/navigation/meta.ts +1 -1
  15. package/lowcode/teletext-list/meta.ts +279 -271
  16. package/lowcode/title1/meta.ts +2 -1
  17. package/lowcode/title2/meta.ts +2 -1
  18. package/package.json +6 -5
  19. package/build/docs/colorful-button.html +0 -48
  20. package/build/docs/colorful-input.html +0 -48
  21. package/build/docs/index.html +0 -48
  22. package/build/docs/umi.6846fe8b.js +0 -1
  23. package/build/docs/umi.7f7df875.css +0 -8
  24. package/build/docs/~demos/colorful-button-demo.html +0 -47
  25. package/build/docs/~demos/colorful-input-demo.html +0 -47
  26. package/build/lowcode/assets-daily.json +0 -67
  27. package/build/lowcode/assets-dev.json +0 -67
  28. package/build/lowcode/assets-prod.json +0 -67
  29. package/build/lowcode/designer.html +0 -302
  30. package/build/lowcode/index.html +0 -304
  31. package/build/lowcode/index.js +0 -1
  32. package/build/lowcode/meta.js +0 -1
  33. package/build/lowcode/preview.css +0 -1
  34. package/build/lowcode/preview.html +0 -33
  35. package/build/lowcode/preview.js +0 -308
  36. package/build/lowcode/render/default/view.css +0 -1
  37. package/build/lowcode/render/default/view.js +0 -295
  38. package/build/lowcode/view.css +0 -1
  39. package/build/lowcode/view.js +0 -295
@@ -1,292 +1,300 @@
1
1
  import {IPublicTypeComponentMetadata, IPublicTypeSnippet} from '@alilc/lowcode-types';
2
2
 
3
3
  const TeletextListMeta: IPublicTypeComponentMetadata = {
4
- "componentName": "TeletextList",
5
- "title": "图文列表",
6
- "docUrl": "",
7
- "screenshot": "",
8
- "devMode": "proCode",
9
- "npm": {
10
- "package": "@dckj-npm/dc-material",
11
- "version": "0.1.0",
12
- "exportName": "TeletextList",
13
- "main": "src/index.tsx",
14
- "destructuring": true,
15
- "subName": ""
16
- },
17
- "configure": {
18
- "props": [
19
- {
20
- "title": {
21
- "label": {
22
- "type": "i18n",
23
- "en-US": "title",
24
- "zh-CN": "标题"
4
+ "group": "低代码组件",
5
+ "componentName": "TeletextList",
6
+ "title": "图文列表",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@dckj-npm/dc-material",
12
+ "version": "0.1.0",
13
+ "exportName": "TeletextList",
14
+ "main": "src/index.tsx",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ "props": [
20
+ {
21
+ "title": {
22
+ "label": {
23
+ "type": "i18n",
24
+ "en-US": "title",
25
+ "zh-CN": "标题"
26
+ },
27
+ "tip": "title | 标题"
28
+ },
29
+ "name": "title",
30
+ "description": "标题",
31
+ "setter": {
32
+ "componentName": "StringSetter",
33
+ "isRequired": false,
34
+ "initialValue": "图文列表标题"
35
+ }
36
+ },
37
+ {
38
+ "title": {
39
+ "label": {
40
+ "type": "i18n",
41
+ "en-US": "dataList",
42
+ "zh-CN": "数据"
43
+ },
44
+ "tip": "dataList | 数据"
45
+ },
46
+ "name": "dataList",
47
+ "description": "数据",
48
+ "setter": {
49
+ "componentName": "ArraySetter",
50
+ "props": {
51
+ "itemSetter": {
52
+ "componentName": "ObjectSetter",
53
+ "props": {
54
+ "config": {
55
+ "items": [
56
+ {
57
+ "title": {
58
+ "label": {
59
+ "type": "i18n",
60
+ "en-US": "title",
61
+ "zh-CN": "标题"
62
+ }
63
+ },
64
+ "name": "title",
65
+ "description": "标题",
66
+ "setter": {
67
+ "componentName": "StringSetter",
68
+ "isRequired": false,
69
+ "initialValue": ""
70
+ }
25
71
  },
26
- "tip": "title | 标题"
27
- },
28
- "name": "title",
29
- "description": "标题",
30
- "setter": {
31
- "componentName": "StringSetter",
32
- "isRequired": false,
33
- "initialValue": "图文列表标题"
34
- }
35
- },
36
- {
37
- "title": {
38
- "label": {
39
- "type": "i18n",
40
- "en-US": "dataList",
41
- "zh-CN": "数据"
72
+ {
73
+ "title": {
74
+ "label": {
75
+ "type": "i18n",
76
+ "en-US": "image",
77
+ "zh-CN": "图片地址"
78
+ }
79
+ },
80
+ "name": "image",
81
+ "description": "图片地址",
82
+ "setter": {
83
+ "componentName": "CustomImageSetter",
84
+ "isRequired": false,
85
+ "initialValue": ""
86
+ }
42
87
  },
43
- "tip": "dataList | 数据"
44
- },
45
- "name": "dataList",
46
- "description": "数据",
47
- "setter": {
48
- "componentName": "ArraySetter",
49
- "props": {
50
- "itemSetter": {
88
+ {
89
+ "title": {
90
+ "label": {
91
+ "type": "i18n",
92
+ "en-US": "imagePlacement",
93
+ "zh-CN": "图片位置"
94
+ }
95
+ },
96
+ "name": "imagePlacement",
97
+ "description": "图片位置",
98
+ "setter": {
99
+ "componentName": "RadioGroupSetter",
100
+ "props": {
101
+ "dataSource": [
102
+ {
103
+ "label": "left",
104
+ "value": "left"
105
+ },
106
+ {
107
+ "label": "right",
108
+ "value": "right"
109
+ },
110
+ {
111
+ "label": "none",
112
+ "value": "none"
113
+ }
114
+ ],
115
+ "options": [
116
+ {
117
+ "label": "left",
118
+ "value": "left"
119
+ },
120
+ {
121
+ "label": "right",
122
+ "value": "right"
123
+ },
124
+ {
125
+ "label": "none",
126
+ "value": "none"
127
+ }
128
+ ]
129
+ },
130
+ "initialValue": "left"
131
+ }
132
+ },
133
+ {
134
+ "title": {
135
+ "label": {
136
+ "type": "i18n",
137
+ "en-US": "description",
138
+ "zh-CN": "描述"
139
+ }
140
+ },
141
+ "name": "description",
142
+ "description": "描述",
143
+ "setter": {
144
+ "componentName": "StringSetter",
145
+ "isRequired": false,
146
+ "initialValue": ""
147
+ }
148
+ },
149
+ {
150
+ "title": {
151
+ "label": {
152
+ "type": "i18n",
153
+ "en-US": "tags",
154
+ "zh-CN": "标签列表"
155
+ }
156
+ },
157
+ "name": "tags",
158
+ "description": "标签列表",
159
+ "setter": {
160
+ "componentName": "ArraySetter",
161
+ "props": {
162
+ "itemSetter": {
51
163
  "componentName": "ObjectSetter",
52
164
  "props": {
53
- "config": {
54
- "items": [
55
- {
56
- "title": {
57
- "label": {
58
- "type": "i18n",
59
- "en-US": "title",
60
- "zh-CN": "标题"
61
- }
62
- },
63
- "name": "title",
64
- "description": "标题",
65
- "setter": {
66
- "componentName": "StringSetter",
67
- "isRequired": false,
68
- "initialValue": ""
69
- }
70
- },
71
- {
72
- "title": {
73
- "label": {
74
- "type": "i18n",
75
- "en-US": "image",
76
- "zh-CN": "图片地址"
77
- }
78
- },
79
- "name": "image",
80
- "description": "图片地址",
81
- "setter": {
82
- "componentName": "StringSetter",
83
- "isRequired": false,
84
- "initialValue": ""
85
- }
86
- },
87
- {
88
- "title": {
89
- "label": {
90
- "type": "i18n",
91
- "en-US": "imagePlacement",
92
- "zh-CN": "图片位置"
93
- }
94
- },
95
- "name": "imagePlacement",
96
- "description": "图片位置",
97
- "setter": {
98
- "componentName": "RadioGroupSetter",
99
- "props": {
100
- "dataSource": [
101
- {
102
- "label": "left",
103
- "value": "left"
104
- },
105
- {
106
- "label": "right",
107
- "value": "right"
108
- },
109
- {
110
- "label": "none",
111
- "value": "none"
112
- }
113
- ],
114
- "options": [
115
- {
116
- "label": "left",
117
- "value": "left"
118
- },
119
- {
120
- "label": "right",
121
- "value": "right"
122
- },
123
- {
124
- "label": "none",
125
- "value": "none"
126
- }
127
- ]
128
- },
129
- "initialValue": "left"
130
- }
131
- },
132
- {
133
- "title": {
134
- "label": {
135
- "type": "i18n",
136
- "en-US": "description",
137
- "zh-CN": "描述"
138
- }
139
- },
140
- "name": "description",
141
- "description": "描述",
142
- "setter": {
143
- "componentName": "StringSetter",
144
- "isRequired": false,
145
- "initialValue": ""
146
- }
147
- },
148
- {
149
- "title": {
150
- "label": {
151
- "type": "i18n",
152
- "en-US": "tags",
153
- "zh-CN": "标签列表"
154
- }
155
- },
156
- "name": "tags",
157
- "description": "标签列表",
158
- "setter": {
159
- "componentName": "ArraySetter",
160
- "props": {
161
- "itemSetter": {
162
- "componentName": "ObjectSetter",
163
- "props": {
164
- "config": {
165
- "items": [
166
- {
167
- "title": {
168
- "label": {
169
- "type": "i18n",
170
- "en-US": "name",
171
- "zh-CN": "标签名称"
172
- }
173
- },
174
- "name": "name",
175
- "description": "标签名称",
176
- "setter": {
177
- "componentName": "StringSetter",
178
- "isRequired": true,
179
- "initialValue": ""
180
- }
181
- },
182
- {
183
- "title": {
184
- "label": {
185
- "type": "i18n",
186
- "en-US": "color",
187
- "zh-CN": "标签颜色"
188
- }
189
- },
190
- "name": "color",
191
- "description": "标签颜色",
192
- "setter": {
193
- "componentName": "StringSetter",
194
- "isRequired": true,
195
- "initialValue": ""
196
- }
197
- }
198
- ],
199
- "extraSetter": {
200
- "componentName": "MixedSetter",
201
- "isRequired": false,
202
- "props": {}
203
- }
204
- }
205
- }
206
- }
207
- },
208
- "initialValue": []
209
- }
210
- }
211
- ],
212
- "extraSetter": {
213
- "componentName": "MixedSetter",
214
- "isRequired": false,
215
- "props": {}
165
+ "config": {
166
+ "items": [
167
+ {
168
+ "title": {
169
+ "label": {
170
+ "type": "i18n",
171
+ "en-US": "name",
172
+ "zh-CN": "标签名称"
173
+ }
174
+ },
175
+ "name": "name",
176
+ "description": "标签名称",
177
+ "setter": {
178
+ "componentName": "StringSetter",
179
+ "isRequired": true,
180
+ "initialValue": ""
181
+ }
182
+ },
183
+ {
184
+ "title": {
185
+ "label": {
186
+ "type": "i18n",
187
+ "en-US": "color",
188
+ "zh-CN": "标签颜色"
189
+ }
190
+ },
191
+ "name": "color",
192
+ "description": "标签颜色",
193
+ "setter": {
194
+ "componentName": "StringSetter",
195
+ "isRequired": true,
196
+ "initialValue": ""
216
197
  }
198
+ }
199
+ ],
200
+ "extraSetter": {
201
+ "componentName": "MixedSetter",
202
+ "isRequired": false,
203
+ "props": {}
217
204
  }
205
+ }
218
206
  }
219
- }
220
- },
221
- "initialValue": [
222
- {
223
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
224
- "imagePlacement": "left",
225
- "title": "标题名称",
226
- "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
227
- "tags": [
228
- {
229
- "name": "报名火热",
230
- "color": "orange"
231
- },
232
- {
233
- "name": "人数众多",
234
- "color": "blue"
235
- }
236
- ]
237
- },
238
- {
239
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
240
- "imagePlacement": "right",
241
- "title": "标题名称",
242
- "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
243
- "tags": [
244
- {
245
- "name": "报名火热",
246
- "color": "orange"
247
- },
248
- {
249
- "name": "人数众多",
250
- "color": "blue"
251
- }
252
- ]
207
+ }
253
208
  },
254
- {
255
- "title": "标题名称",
256
- "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
257
- "tags": [
258
- {
259
- "name": "报名火热",
260
- "color": "orange"
261
- },
262
- {
263
- "name": "人数众多",
264
- "color": "blue"
265
- }
266
- ]
267
- }
268
- ]
209
+ "initialValue": []
210
+ }
211
+ }
212
+ ],
213
+ "extraSetter": {
214
+ "componentName": "MixedSetter",
215
+ "isRequired": false,
216
+ "props": {}
217
+ }
269
218
  }
219
+ }
270
220
  }
271
- ],
272
- "supports": {
273
- "style": true
221
+ },
222
+ "initialValue": [
223
+ {
224
+ "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
225
+ "imagePlacement": "left",
226
+ "title": "标题名称",
227
+ "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
228
+ "tags": [
229
+ {
230
+ "name": "报名火热",
231
+ "color": "orange"
232
+ },
233
+ {
234
+ "name": "人数众多",
235
+ "color": "blue"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
241
+ "imagePlacement": "right",
242
+ "title": "标题名称",
243
+ "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
244
+ "tags": [
245
+ {
246
+ "name": "报名火热",
247
+ "color": "orange"
248
+ },
249
+ {
250
+ "name": "人数众多",
251
+ "color": "blue"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "title": "标题名称",
257
+ "description": "说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
258
+ "tags": [
259
+ {
260
+ "name": "报名火热",
261
+ "color": "orange"
262
+ },
263
+ {
264
+ "name": "人数众多",
265
+ "color": "blue"
266
+ }
267
+ ]
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ ],
273
+ "supports": {
274
+ "style": true,
275
+ "events": [
276
+ {
277
+ "name": "onClick",
278
+ "template":
279
+ "onClick(key,${extParams}){\n// 点击项目的事件\nconsole.log('onClick', key);}",
274
280
  },
275
- "component": {}
276
- }
281
+ ],
282
+ },
283
+ "component": {}
284
+ }
277
285
  };
278
286
  const snippets: IPublicTypeSnippet[] = [
279
- {
280
- "title": "图文列表",
281
- "screenshot": "",
282
- "schema": {
283
- "componentName": "TeletextList",
284
- "props": {}
285
- }
287
+ {
288
+ "title": "图文列表",
289
+ "screenshot": "",
290
+ "schema": {
291
+ "componentName": "TeletextList",
292
+ "props": {}
286
293
  }
294
+ }
287
295
  ];
288
296
 
289
297
  export default {
290
- ...TeletextListMeta,
291
- snippets
298
+ ...TeletextListMeta,
299
+ snippets
292
300
  };
@@ -2,6 +2,7 @@
2
2
  import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
3
 
4
4
  const Title1Meta: IPublicTypeComponentMetadata = {
5
+ "group": "低代码组件",
5
6
  "componentName": "Title1",
6
7
  "title": "个性化标题1",
7
8
  "docUrl": "",
@@ -9,7 +10,7 @@ const Title1Meta: IPublicTypeComponentMetadata = {
9
10
  "devMode": "proCode",
10
11
  "npm": {
11
12
  "package": "@dckj-npm/dc-material",
12
- "version": "0.1.0",
13
+ "version": "0.1.5",
13
14
  "exportName": "Title1",
14
15
  "main": "src/index.tsx",
15
16
  "destructuring": true,
@@ -2,6 +2,7 @@
2
2
  import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
3
3
 
4
4
  const Title2Meta: IPublicTypeComponentMetadata = {
5
+ "group": "低代码组件",
5
6
  "componentName": "Title2",
6
7
  "title": "个性化标题2",
7
8
  "docUrl": "",
@@ -9,7 +10,7 @@ const Title2Meta: IPublicTypeComponentMetadata = {
9
10
  "devMode": "proCode",
10
11
  "npm": {
11
12
  "package": "@dckj-npm/dc-material",
12
- "version": "0.1.0",
13
+ "version": "0.1.5",
13
14
  "exportName": "Title2",
14
15
  "main": "src/index.tsx",
15
16
  "destructuring": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -81,7 +81,8 @@
81
81
  "cross-env": "^7.0.3",
82
82
  "dumi": "^1.1.49",
83
83
  "dumi-theme-default": "^1.1.24",
84
- "f2elint": "^1.2.0"
84
+ "f2elint": "^1.2.0",
85
+ "@alilc/build-plugin-alt": "^1.0.0"
85
86
  },
86
87
  "dependencies": {
87
88
  "@alifd/next": "^1.25.27",
@@ -100,10 +101,10 @@
100
101
  },
101
102
  "componentConfig": {
102
103
  "isComponentLibrary": true,
103
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.3/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.5/build/lowcode/assets-prod.json"
104
105
  },
105
106
  "lcMeta": {
106
107
  "type": "component"
107
108
  },
108
- "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.3/build/index.html"
109
- }
109
+ "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.5/build/index.html"
110
+ }