@dckj-npm/dc-material 0.1.35 → 0.1.37

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/build/lowcode/assets-daily.json +71 -0
  2. package/build/lowcode/assets-dev.json +71 -0
  3. package/build/lowcode/assets-prod.json +71 -0
  4. package/build/lowcode/designer.html +302 -0
  5. package/build/lowcode/index.html +304 -0
  6. package/build/lowcode/index.js +1 -0
  7. package/build/lowcode/meta.design.js +1 -0
  8. package/build/lowcode/meta.js +1 -0
  9. package/build/lowcode/preview.css +1 -0
  10. package/build/lowcode/preview.html +33 -0
  11. package/build/lowcode/preview.js +308 -0
  12. package/build/lowcode/render/default/view.css +1 -0
  13. package/build/lowcode/render/default/view.js +295 -0
  14. package/build/lowcode/view.css +1 -0
  15. package/build/lowcode/view.js +295 -0
  16. package/lowcode/rich-text/meta.ts +56 -0
  17. package/lowcode_es/custom-radio-group/meta.d.ts +22 -0
  18. package/lowcode_es/custom-radio-group/meta.js +294 -0
  19. package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -0
  20. package/lowcode_es/custom-radio-group-item/meta.js +205 -0
  21. package/lowcode_es/goods-card-list/meta.d.ts +22 -0
  22. package/lowcode_es/goods-card-list/meta.js +250 -0
  23. package/lowcode_es/message-list/meta.js +4 -9
  24. package/lowcode_es/meta.js +6 -2
  25. package/lowcode_es/notice-bar/meta.js +16 -13
  26. package/lowcode_es/rich-text/meta.d.ts +22 -0
  27. package/lowcode_es/rich-text/meta.js +48 -0
  28. package/lowcode_lib/custom-radio-group/meta.d.ts +22 -0
  29. package/lowcode_lib/custom-radio-group/meta.js +299 -0
  30. package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -0
  31. package/lowcode_lib/custom-radio-group-item/meta.js +210 -0
  32. package/lowcode_lib/goods-card-list/meta.d.ts +22 -0
  33. package/lowcode_lib/goods-card-list/meta.js +255 -0
  34. package/lowcode_lib/message-list/meta.js +4 -9
  35. package/lowcode_lib/meta.js +23 -19
  36. package/lowcode_lib/notice-bar/meta.js +16 -13
  37. package/lowcode_lib/rich-text/meta.d.ts +22 -0
  38. package/lowcode_lib/rich-text/meta.js +53 -0
  39. package/package.json +4 -4
@@ -0,0 +1,250 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var GoodsCardListMeta = {
3
+ group: '低代码组件',
4
+ componentName: 'GoodsCardList',
5
+ title: '商品卡片列表',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ "package": '@dckj-npm/dc-material',
11
+ version: '0.1.29',
12
+ exportName: 'GoodsCardList',
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: 'GoodsCardList',
245
+ props: {}
246
+ }
247
+ }];
248
+ export default _extends({}, GoodsCardListMeta, {
249
+ snippets: snippets
250
+ });
@@ -33,9 +33,6 @@ var MessageListMeta = {
33
33
  label: '消息数据',
34
34
  value: 'dataList',
35
35
  children: [{
36
- label: '图片链接',
37
- value: 'image'
38
- }, {
39
36
  label: '标题',
40
37
  value: 'title'
41
38
  }, {
@@ -101,23 +98,19 @@ var snippets = [{
101
98
  "gmtCreate": "2024-05-24 09:24"
102
99
  }],
103
100
  readDataList: [{
104
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
105
101
  "title": "已读标题名称",
106
102
  "description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
107
103
  "gmtCreate": "2024-05-24 09:24"
108
104
  }, {
109
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
110
105
  "title": "已读标题名称",
111
106
  "description": "已读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
112
107
  "gmtCreate": "2024-05-24 09:24"
113
108
  }],
114
109
  unReadDataList: [{
115
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
116
110
  "title": "未读标题名称",
117
111
  "description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
118
112
  "gmtCreate": "2024-05-24 09:24"
119
113
  }, {
120
- "image": "https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg",
121
114
  "title": "未读标题名称",
122
115
  "description": "未读说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字",
123
116
  "gmtCreate": "2024-05-24 09:24"
@@ -140,7 +133,8 @@ var snippets = [{
140
133
  key: 'title',
141
134
  'style': {
142
135
  fontSize: '15px',
143
- color: '#333'
136
+ color: '#333',
137
+ fontWeght: 'bold'
144
138
  }
145
139
  }
146
140
  }, {
@@ -160,7 +154,8 @@ var snippets = [{
160
154
  key: 'gmtCreate',
161
155
  'style': {
162
156
  fontSize: '10px',
163
- color: '#999'
157
+ color: '#999',
158
+ marginBottom: '5px'
164
159
  }
165
160
  }
166
161
  }, {
@@ -1,6 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import Button2Meta from 'D:/project/company2/lowcode-material/lowcode/button2/meta';
3
+ import CustomRadioGroupItemMeta from 'D:/project/company2/lowcode-material/lowcode/custom-radio-group-item/meta';
4
+ import CustomRadioGroupMeta from 'D:/project/company2/lowcode-material/lowcode/custom-radio-group/meta';
3
5
  import DCSliderMeta from 'D:/project/company2/lowcode-material/lowcode/d-c-slider/meta';
6
+ import GoodsCardListMeta from 'D:/project/company2/lowcode-material/lowcode/goods-card-list/meta';
4
7
  import GridNavMeta from 'D:/project/company2/lowcode-material/lowcode/grid-nav/meta';
5
8
  import IntegralTaskMeta from 'D:/project/company2/lowcode-material/lowcode/integral-task/meta';
6
9
  import MenuListMeta from 'D:/project/company2/lowcode-material/lowcode/menu-list/meta';
@@ -8,6 +11,7 @@ import MessageListMeta from 'D:/project/company2/lowcode-material/lowcode/messag
8
11
  import NavigationMeta from 'D:/project/company2/lowcode-material/lowcode/navigation/meta';
9
12
  import NoticeBarMeta from 'D:/project/company2/lowcode-material/lowcode/notice-bar/meta';
10
13
  import PositionMeta from 'D:/project/company2/lowcode-material/lowcode/position/meta';
14
+ import RichTextMeta from 'D:/project/company2/lowcode-material/lowcode/rich-text/meta';
11
15
  import SearchBarMeta from 'D:/project/company2/lowcode-material/lowcode/search-bar/meta';
12
16
  import SwiperMeta from 'D:/project/company2/lowcode-material/lowcode/swiper/meta';
13
17
  import TabContainerItemMeta from 'D:/project/company2/lowcode-material/lowcode/tab-container-item/meta';
@@ -88,7 +92,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
88
92
  packageName = '@dckj-npm/dc-material';
89
93
  }
90
94
  if (version === void 0) {
91
- version = '0.1.34';
95
+ version = '0.1.37';
92
96
  }
93
97
  if (basicLibraryVersion === void 0) {
94
98
  basicLibraryVersion = {
@@ -115,7 +119,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
115
119
  }
116
120
  return meta;
117
121
  }
118
- var componentMetas = [Button2Meta, DCSliderMeta, GridNavMeta, IntegralTaskMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, SearchBarMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, Title1Meta, Title2Meta];
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];
119
123
  var components = [];
120
124
  var npmInfo = {};
121
125
  componentMetas.forEach(function (meta) {
@@ -92,18 +92,21 @@ var NoticeBarMeta = {
92
92
  "initialValue": ""
93
93
  }
94
94
  }, {
95
- "title": {
96
- "label": {
97
- "type": "i18n",
98
- "en-US": "isTop",
99
- "zh-CN": "是否置顶"
100
- }
101
- },
95
+ "title": "是否置顶",
102
96
  "name": "isTop",
103
97
  "setter": {
104
- "componentName": "BoolSetter",
105
- "isRequired": false,
106
- "initialValue": false
98
+ "componentName": "SelectSetter",
99
+ "initialValue": 0,
100
+ "props": {
101
+ "defaultValue": 0,
102
+ "options": [{
103
+ "title": "是",
104
+ "value": 0
105
+ }, {
106
+ "title": "否",
107
+ "value": 1
108
+ }]
109
+ }
107
110
  }
108
111
  }],
109
112
  "extraSetter": {
@@ -117,15 +120,15 @@ var NoticeBarMeta = {
117
120
  },
118
121
  "initialValue": [{
119
122
  "content": "按需招聘,智能推荐附件测试测试测试测试测试测试测试",
120
- "isTop": true,
123
+ "isTop": 0,
121
124
  "releaseTime": "1小时前"
122
125
  }, {
123
126
  "content": "近期,有关部门相继部署有关部门相继部署有关部门相继部署",
124
- "isTop": false,
127
+ "isTop": 1,
125
128
  "releaseTime": "2024-03-26"
126
129
  }, {
127
130
  "content": "测试测试测试测试测试测测试测试测试测试测试测测试测试测试测试测试测",
128
- "isTop": false,
131
+ "isTop": 1,
129
132
  "releaseTime": "2023-10-15"
130
133
  }]
131
134
  }
@@ -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,48 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var RichTextMeta = {
3
+ "group": "低代码组件",
4
+ "componentName": "RichText",
5
+ "title": "富文本",
6
+ "docUrl": "",
7
+ "screenshot": "",
8
+ "devMode": "proCode",
9
+ "npm": {
10
+ "package": "@dckj-npm/dc-material",
11
+ "version": "0.1.36",
12
+ "exportName": "RichText",
13
+ "main": "src\\index.tsx",
14
+ "destructuring": true,
15
+ "subName": ""
16
+ },
17
+ "configure": {
18
+ "props": [{
19
+ "title": {
20
+ "label": {
21
+ "type": "i18n",
22
+ "en-US": "content",
23
+ "zh-CN": "内容"
24
+ }
25
+ },
26
+ "name": "content",
27
+ "setter": {
28
+ "componentName": "RichTextSetter",
29
+ "initialValue": ""
30
+ }
31
+ }],
32
+ "supports": {
33
+ "style": true
34
+ },
35
+ "component": {}
36
+ }
37
+ };
38
+ var snippets = [{
39
+ "title": "富文本",
40
+ "screenshot": "",
41
+ "schema": {
42
+ "componentName": "RichText",
43
+ "props": {}
44
+ }
45
+ }];
46
+ export default _extends({}, RichTextMeta, {
47
+ snippets: snippets
48
+ });
@@ -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;