@dckj-npm/dc-material 0.1.243 → 0.1.244

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.
@@ -0,0 +1,61 @@
1
+ import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
2
+
3
+ const ImageMeta: IPublicTypeComponentMetadata = {
4
+ group: '低代码组件',
5
+ componentName: 'Image',
6
+ title: '图片',
7
+ docUrl: '',
8
+ screenshot: '',
9
+ devMode: 'proCode',
10
+ npm: {
11
+ package: '@dckj-npm/dc-material',
12
+ version: '0.1.0',
13
+ exportName: 'Image',
14
+ main: 'src\\index.tsx',
15
+ destructuring: true,
16
+ subName: '',
17
+ },
18
+ configure: {
19
+ component: {
20
+ isContainer: true,
21
+ disableBehaviors: ['copy'],
22
+ },
23
+ props: [
24
+ {
25
+ title: '图片地址',
26
+ name: 'imgSrc',
27
+ setter: {
28
+ componentName: 'StringSetter',
29
+ isRequired: true,
30
+ initialValue: '',
31
+ },
32
+ },
33
+ ],
34
+ supports: {
35
+ style: true,
36
+ events: [
37
+ {
38
+ name: 'onClick',
39
+ },
40
+ ],
41
+ },
42
+ },
43
+ }
44
+
45
+ const snippets: IPublicTypeSnippet[] = [
46
+ {
47
+ title: '图片',
48
+ screenshot: '',
49
+ schema: {
50
+ componentName: 'Image',
51
+ props: {
52
+ imgSrc: '',
53
+ },
54
+ },
55
+ },
56
+ ]
57
+
58
+ export default {
59
+ ...ImageMeta,
60
+ snippets,
61
+ }
@@ -0,0 +1,189 @@
1
+ import {
2
+ IPublicTypeComponentMetadata,
3
+ IPublicTypeSnippet,
4
+ IPublicTypeConfigure,
5
+ } from '@alilc/lowcode-types'
6
+
7
+ const SelectMeta: IPublicTypeComponentMetadata = {
8
+ group: '低代码组件',
9
+ componentName: 'Select',
10
+ title: '选择器',
11
+ docUrl: '',
12
+ screenshot: '',
13
+ devMode: 'proCode',
14
+ npm: {
15
+ package: '@dckj-npm/dc-material',
16
+ version: '0.1.8',
17
+ exportName: 'Select',
18
+ main: 'src/index.tsx',
19
+ destructuring: true,
20
+ subName: '',
21
+ },
22
+ configure: {
23
+ props: [
24
+ {
25
+ name: '数据源绑定',
26
+ setter: {
27
+ componentName: 'SetterFormVariable',
28
+ props: {
29
+ attributes: [
30
+ {
31
+ label: '选项',
32
+ value: 'options',
33
+ children: [
34
+ { label: '值', isRequire: true, value: 'value' },
35
+ { label: '名称', isRequire: true, value: 'label' },
36
+ ],
37
+ },
38
+ ],
39
+ },
40
+ },
41
+ },
42
+ {
43
+ title: '类型',
44
+ name: 'popType',
45
+ description: '类型',
46
+ setter: {
47
+ componentName: 'RadioGroupSetter',
48
+ props: {
49
+ dataSource: [
50
+ { label: '底部弹出', value: 'bottom' },
51
+ { label: '弹窗', value: 'dialog' },
52
+ ],
53
+ options: [
54
+ { label: '底部弹出', value: 'bottom' },
55
+ { label: '弹窗', value: 'dialog' },
56
+ ],
57
+ },
58
+ initialValue: 'bottom',
59
+ },
60
+ },
61
+ {
62
+ title: '选择类型',
63
+ name: 'selectType',
64
+ description: '选择类型',
65
+ setter: {
66
+ componentName: 'RadioGroupSetter',
67
+ props: {
68
+ dataSource: [
69
+ { label: '数字', value: 'number' },
70
+ { label: '字符串', value: 'string' },
71
+ ],
72
+ options: [
73
+ { label: '数字', value: 'number' },
74
+ { label: '字符串', value: 'string' },
75
+ ],
76
+ },
77
+ },
78
+ },
79
+ {
80
+ title: '选项配置',
81
+ name: 'dataList',
82
+ description: '选项配置',
83
+ setter: {
84
+ componentName: 'ArraySetter',
85
+ props: {
86
+ itemSetter: {
87
+ componentName: 'ObjectSetter',
88
+ props: {
89
+ config: {
90
+ items: [
91
+ {
92
+ title: '选项文字',
93
+ name: 'label',
94
+ description: '选项文字',
95
+ setter: {
96
+ componentName: 'StringSetter',
97
+ isRequired: true,
98
+ initialValue: '',
99
+ },
100
+ },
101
+ {
102
+ title: '选项值',
103
+ name: 'value',
104
+ description: '选项值',
105
+ setter: {
106
+ componentName: 'StringSetter',
107
+ isRequired: true,
108
+ initialValue: '',
109
+ },
110
+ },
111
+ ],
112
+ extraSetter: {
113
+ componentName: 'MixedSetter',
114
+ isRequired: false,
115
+ props: {},
116
+ },
117
+ },
118
+ },
119
+ },
120
+ },
121
+ initialValue: [],
122
+ },
123
+ },
124
+ {
125
+ title: '选中值',
126
+ name: 'value',
127
+ description: '选中值',
128
+ setter: {
129
+ componentName: 'StringSetter',
130
+ initialValue: '',
131
+ },
132
+ },
133
+ {
134
+ title: '前缀',
135
+ name: 'prefix',
136
+ description: '前缀',
137
+ setter: {
138
+ componentName: 'StringSetter',
139
+ initialValue: '',
140
+ },
141
+ },
142
+ {
143
+ title: '按钮文字',
144
+ name: 'btnText',
145
+ description: '按钮文字',
146
+ setter: {
147
+ componentName: 'StringSetter',
148
+ initialValue: '确认',
149
+ },
150
+ },
151
+ {
152
+ title: '弹窗标题',
153
+ name: 'dialogTitle',
154
+ description: '弹窗标题',
155
+ setter: {
156
+ componentName: 'StringSetter',
157
+ initialValue: '请选择',
158
+ },
159
+ },
160
+ ],
161
+ supports: {
162
+ style: true,
163
+ },
164
+ component: {
165
+ disableBehaviors: ['copy'],
166
+ },
167
+ },
168
+ }
169
+
170
+ const snippets: IPublicTypeSnippet[] = [
171
+ {
172
+ title: '选择器',
173
+ screenshot: '',
174
+ schema: {
175
+ componentName: 'Select',
176
+ props: {
177
+ type: 'bottom',
178
+ selectType: 'string',
179
+ dataList: [],
180
+ value: '',
181
+ prefix: '',
182
+ dialogTitle: '',
183
+ btnText: '',
184
+ },
185
+ },
186
+ },
187
+ ]
188
+
189
+ export default { ...SelectMeta, snippets }
@@ -544,6 +544,16 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
544
544
  },
545
545
  },
546
546
  },
547
+ {
548
+ title: '是否为购物车列表',
549
+ name: 'isShoppingCart',
550
+ description: '是否为购物车列表',
551
+ setter: {
552
+ componentName: 'BooleanSetter',
553
+ isRequired: true,
554
+ initialValue: false,
555
+ },
556
+ },
547
557
  {
548
558
  title: {
549
559
  label: {
@@ -741,6 +751,43 @@ const getSnippets = (textLines = 2): IPublicTypeSnippet[] => [
741
751
  key: `text-4`,
742
752
  },
743
753
  },
754
+ {
755
+ componentName: 'Select',
756
+ props: {
757
+ popType: 'dialog',
758
+ selectType: 'number',
759
+ value: 1,
760
+ prefix: '数量',
761
+ dialogTitle: '选择数量',
762
+ btnText: '确定',
763
+ key: 'select-box',
764
+ },
765
+ },
766
+ {
767
+ componentName: 'Select',
768
+ props: {
769
+ popType: 'dialog',
770
+ selectType: 'string',
771
+ dataList: [
772
+ {
773
+ label: 'M',
774
+ value: 'M',
775
+ },
776
+ {
777
+ label: 'X',
778
+ value: 'X',
779
+ },
780
+ {
781
+ label: 'XL',
782
+ value: 'XL',
783
+ },
784
+ ],
785
+ value: 'X',
786
+ prefix: '尺码',
787
+ dialogTitle: '选择尺码',
788
+ btnText: '确定',
789
+ },
790
+ },
744
791
  ],
745
792
  },
746
793
  },
@@ -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,51 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var ImageMeta = {
3
+ group: '低代码组件',
4
+ componentName: 'Image',
5
+ title: '图片',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ "package": '@dckj-npm/dc-material',
11
+ version: '0.1.0',
12
+ exportName: 'Image',
13
+ main: 'src\\index.tsx',
14
+ destructuring: true,
15
+ subName: ''
16
+ },
17
+ configure: {
18
+ component: {
19
+ isContainer: true,
20
+ disableBehaviors: ['copy']
21
+ },
22
+ props: [{
23
+ title: '图片地址',
24
+ name: 'imgSrc',
25
+ setter: {
26
+ componentName: 'StringSetter',
27
+ isRequired: true,
28
+ initialValue: ''
29
+ }
30
+ }],
31
+ supports: {
32
+ style: true,
33
+ events: [{
34
+ name: 'onClick'
35
+ }]
36
+ }
37
+ }
38
+ };
39
+ var snippets = [{
40
+ title: '图片',
41
+ screenshot: '',
42
+ schema: {
43
+ componentName: 'Image',
44
+ props: {
45
+ imgSrc: ''
46
+ }
47
+ }
48
+ }];
49
+ export default _extends({}, ImageMeta, {
50
+ snippets: snippets
51
+ });
@@ -8,6 +8,7 @@ import FormMeta from 'D:/project/company2/lowcode-material/lowcode/form/meta';
8
8
  import GoodsCardListCommonMeta from 'D:/project/company2/lowcode-material/lowcode/goods-card-list-common/meta';
9
9
  import GoodsCardListMeta from 'D:/project/company2/lowcode-material/lowcode/goods-card-list/meta';
10
10
  import GridNavMeta from 'D:/project/company2/lowcode-material/lowcode/grid-nav/meta';
11
+ import ImageMeta from 'D:/project/company2/lowcode-material/lowcode/image/meta';
11
12
  import IntegralTaskMeta from 'D:/project/company2/lowcode-material/lowcode/integral-task/meta';
12
13
  import MemberCardMeta from 'D:/project/company2/lowcode-material/lowcode/member-card/meta';
13
14
  import MenuListMeta from 'D:/project/company2/lowcode-material/lowcode/menu-list/meta';
@@ -17,6 +18,7 @@ import NoticeBarMeta from 'D:/project/company2/lowcode-material/lowcode/notice-b
17
18
  import PositionMeta from 'D:/project/company2/lowcode-material/lowcode/position/meta';
18
19
  import RichTextMeta from 'D:/project/company2/lowcode-material/lowcode/rich-text/meta';
19
20
  import SearchBarMeta from 'D:/project/company2/lowcode-material/lowcode/search-bar/meta';
21
+ import SelectMeta from 'D:/project/company2/lowcode-material/lowcode/select/meta';
20
22
  import ShoppingCartMeta from 'D:/project/company2/lowcode-material/lowcode/shopping-cart/meta';
21
23
  import StreamListMeta from 'D:/project/company2/lowcode-material/lowcode/stream-list/meta';
22
24
  import SwiperMeta from 'D:/project/company2/lowcode-material/lowcode/swiper/meta';
@@ -99,7 +101,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
99
101
  packageName = '@dckj-npm/dc-material';
100
102
  }
101
103
  if (version === void 0) {
102
- version = '0.1.243';
104
+ version = '0.1.244';
103
105
  }
104
106
  if (basicLibraryVersion === void 0) {
105
107
  basicLibraryVersion = {
@@ -126,7 +128,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
126
128
  }
127
129
  return meta;
128
130
  }
129
- var componentMetas = [AddressListMeta, Button2Meta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, FormMeta, GoodsCardListCommonMeta, GoodsCardListMeta, GridNavMeta, IntegralTaskMeta, MemberCardMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, ShoppingCartMeta, StreamListMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, Title1Meta, Title2Meta, UserCardMeta];
131
+ var componentMetas = [AddressListMeta, Button2Meta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, FormMeta, GoodsCardListCommonMeta, GoodsCardListMeta, GridNavMeta, ImageMeta, IntegralTaskMeta, MemberCardMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, SelectMeta, ShoppingCartMeta, StreamListMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, Title1Meta, Title2Meta, UserCardMeta];
130
132
  var components = [];
131
133
  var npmInfo = {};
132
134
  componentMetas.forEach(function (meta) {
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet, IPublicTypeConfigure } 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[] | 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,185 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var SelectMeta = {
3
+ group: '低代码组件',
4
+ componentName: 'Select',
5
+ title: '选择器',
6
+ docUrl: '',
7
+ screenshot: '',
8
+ devMode: 'proCode',
9
+ npm: {
10
+ "package": '@dckj-npm/dc-material',
11
+ version: '0.1.8',
12
+ exportName: 'Select',
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: 'options',
26
+ children: [{
27
+ label: '值',
28
+ isRequire: true,
29
+ value: 'value'
30
+ }, {
31
+ label: '名称',
32
+ isRequire: true,
33
+ value: 'label'
34
+ }]
35
+ }]
36
+ }
37
+ }
38
+ }, {
39
+ title: '类型',
40
+ name: 'popType',
41
+ description: '类型',
42
+ setter: {
43
+ componentName: 'RadioGroupSetter',
44
+ props: {
45
+ dataSource: [{
46
+ label: '底部弹出',
47
+ value: 'bottom'
48
+ }, {
49
+ label: '弹窗',
50
+ value: 'dialog'
51
+ }],
52
+ options: [{
53
+ label: '底部弹出',
54
+ value: 'bottom'
55
+ }, {
56
+ label: '弹窗',
57
+ value: 'dialog'
58
+ }]
59
+ },
60
+ initialValue: 'bottom'
61
+ }
62
+ }, {
63
+ title: '选择类型',
64
+ name: 'selectType',
65
+ description: '选择类型',
66
+ setter: {
67
+ componentName: 'RadioGroupSetter',
68
+ props: {
69
+ dataSource: [{
70
+ label: '数字',
71
+ value: 'number'
72
+ }, {
73
+ label: '字符串',
74
+ value: 'string'
75
+ }],
76
+ options: [{
77
+ label: '数字',
78
+ value: 'number'
79
+ }, {
80
+ label: '字符串',
81
+ value: 'string'
82
+ }]
83
+ }
84
+ }
85
+ }, {
86
+ title: '选项配置',
87
+ name: 'dataList',
88
+ description: '选项配置',
89
+ setter: {
90
+ componentName: 'ArraySetter',
91
+ props: {
92
+ itemSetter: {
93
+ componentName: 'ObjectSetter',
94
+ props: {
95
+ config: {
96
+ items: [{
97
+ title: '选项文字',
98
+ name: 'label',
99
+ description: '选项文字',
100
+ setter: {
101
+ componentName: 'StringSetter',
102
+ isRequired: true,
103
+ initialValue: ''
104
+ }
105
+ }, {
106
+ title: '选项值',
107
+ name: 'value',
108
+ description: '选项值',
109
+ setter: {
110
+ componentName: 'StringSetter',
111
+ isRequired: true,
112
+ initialValue: ''
113
+ }
114
+ }],
115
+ extraSetter: {
116
+ componentName: 'MixedSetter',
117
+ isRequired: false,
118
+ props: {}
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ initialValue: []
125
+ }
126
+ }, {
127
+ title: '选中值',
128
+ name: 'value',
129
+ description: '选中值',
130
+ setter: {
131
+ componentName: 'StringSetter',
132
+ initialValue: ''
133
+ }
134
+ }, {
135
+ title: '前缀',
136
+ name: 'prefix',
137
+ description: '前缀',
138
+ setter: {
139
+ componentName: 'StringSetter',
140
+ initialValue: ''
141
+ }
142
+ }, {
143
+ title: '按钮文字',
144
+ name: 'btnText',
145
+ description: '按钮文字',
146
+ setter: {
147
+ componentName: 'StringSetter',
148
+ initialValue: '确认'
149
+ }
150
+ }, {
151
+ title: '弹窗标题',
152
+ name: 'dialogTitle',
153
+ description: '弹窗标题',
154
+ setter: {
155
+ componentName: 'StringSetter',
156
+ initialValue: '请选择'
157
+ }
158
+ }],
159
+ supports: {
160
+ style: true
161
+ },
162
+ component: {
163
+ disableBehaviors: ['copy']
164
+ }
165
+ }
166
+ };
167
+ var snippets = [{
168
+ title: '选择器',
169
+ screenshot: '',
170
+ schema: {
171
+ componentName: 'Select',
172
+ props: {
173
+ type: 'bottom',
174
+ selectType: 'string',
175
+ dataList: [],
176
+ value: '',
177
+ prefix: '',
178
+ dialogTitle: '',
179
+ btnText: ''
180
+ }
181
+ }
182
+ }];
183
+ export default _extends({}, SelectMeta, {
184
+ snippets: snippets
185
+ });
@@ -464,6 +464,15 @@ var TeletextListMeta = {
464
464
  }
465
465
  }
466
466
  }
467
+ }, {
468
+ title: '是否为购物车列表',
469
+ name: 'isShoppingCart',
470
+ description: '是否为购物车列表',
471
+ setter: {
472
+ componentName: 'BooleanSetter',
473
+ isRequired: true,
474
+ initialValue: false
475
+ }
467
476
  }, {
468
477
  title: {
469
478
  label: {
@@ -638,6 +647,37 @@ var getSnippets = function getSnippets(textLines) {
638
647
  children: '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
639
648
  key: "text-4"
640
649
  }
650
+ }, {
651
+ componentName: 'Select',
652
+ props: {
653
+ popType: 'dialog',
654
+ selectType: 'number',
655
+ value: 1,
656
+ prefix: '数量',
657
+ dialogTitle: '选择数量',
658
+ btnText: '确定',
659
+ key: 'select-box'
660
+ }
661
+ }, {
662
+ componentName: 'Select',
663
+ props: {
664
+ popType: 'dialog',
665
+ selectType: 'string',
666
+ dataList: [{
667
+ label: 'M',
668
+ value: 'M'
669
+ }, {
670
+ label: 'X',
671
+ value: 'X'
672
+ }, {
673
+ label: 'XL',
674
+ value: 'XL'
675
+ }],
676
+ value: 'X',
677
+ prefix: '尺码',
678
+ dialogTitle: '选择尺码',
679
+ btnText: '确定'
680
+ }
641
681
  }]
642
682
  }
643
683
  }];