@dckj-npm/dc-material 0.1.283 → 0.1.285
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/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 +5 -5
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +2 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +2 -2
- package/lowcode/switch/meta.ts +69 -0
- package/lowcode/teletext-list/meta.ts +20 -0
- package/lowcode_es/meta.js +3 -2
- package/lowcode_es/switch/meta.d.ts +22 -0
- package/lowcode_es/switch/meta.js +69 -0
- package/lowcode_es/teletext-list/meta.js +22 -0
- package/lowcode_lib/meta.js +12 -11
- package/lowcode_lib/switch/meta.d.ts +22 -0
- package/lowcode_lib/switch/meta.js +74 -0
- package/lowcode_lib/teletext-list/meta.js +22 -0
- package/package.json +2 -2
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'
|
|
2
|
+
|
|
3
|
+
const SwitchMeta: IPublicTypeComponentMetadata = {
|
|
4
|
+
group: '低代码组件',
|
|
5
|
+
componentName: 'Switch',
|
|
6
|
+
title: '开关',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
devMode: 'proCode',
|
|
10
|
+
npm: {
|
|
11
|
+
package: '@dckj-npm/dc-material',
|
|
12
|
+
version: '0.1.8',
|
|
13
|
+
exportName: 'Switch',
|
|
14
|
+
main: 'src/index.tsx',
|
|
15
|
+
destructuring: true,
|
|
16
|
+
subName: '',
|
|
17
|
+
},
|
|
18
|
+
configure: {
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '尺寸',
|
|
22
|
+
name: 'size',
|
|
23
|
+
setter: {
|
|
24
|
+
componentName: 'RadioGroupSetter',
|
|
25
|
+
props: {
|
|
26
|
+
dataSource: [
|
|
27
|
+
{ label: '小', value: 'small' },
|
|
28
|
+
{ label: '中', value: 'middle' },
|
|
29
|
+
],
|
|
30
|
+
options: [
|
|
31
|
+
{ label: '小', value: 'small' },
|
|
32
|
+
{ label: '中', value: 'middle' },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: '是否禁用',
|
|
39
|
+
name: 'disabled',
|
|
40
|
+
setter: {
|
|
41
|
+
componentName: 'BoolSetter',
|
|
42
|
+
initialValue: false,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
supports: {
|
|
47
|
+
style: true,
|
|
48
|
+
},
|
|
49
|
+
component: {
|
|
50
|
+
disableBehaviors: ['copy'],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
56
|
+
{
|
|
57
|
+
title: '开关',
|
|
58
|
+
screenshot: '',
|
|
59
|
+
schema: {
|
|
60
|
+
componentName: 'Switch',
|
|
61
|
+
props: {
|
|
62
|
+
size: 'medium',
|
|
63
|
+
disable: false,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
export default { ...SwitchMeta, snippets }
|
|
@@ -166,6 +166,7 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
166
166
|
value: 'dataList',
|
|
167
167
|
children: [
|
|
168
168
|
{ label: '图片链接', value: 'image' },
|
|
169
|
+
{ label: '类型', value: 'itemType' },
|
|
169
170
|
{ label: '标题', value: 'title' },
|
|
170
171
|
{ label: '说明', value: 'description' },
|
|
171
172
|
],
|
|
@@ -266,6 +267,7 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
266
267
|
if (dataListBindProp && dataListBindProp.setter) {
|
|
267
268
|
const baseChildren = [
|
|
268
269
|
{ label: '图片链接', value: 'image' },
|
|
270
|
+
{ label: '类型', value: 'type' },
|
|
269
271
|
{ label: '标题', value: 'title' },
|
|
270
272
|
{ label: '说明', value: 'description' },
|
|
271
273
|
]
|
|
@@ -554,6 +556,16 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
554
556
|
initialValue: false,
|
|
555
557
|
},
|
|
556
558
|
},
|
|
559
|
+
{
|
|
560
|
+
title: '是否为用户菜单列表',
|
|
561
|
+
name: 'isUserMenu',
|
|
562
|
+
description: '是否为用户菜单列表',
|
|
563
|
+
setter: {
|
|
564
|
+
componentName: 'BoolSetter',
|
|
565
|
+
isRequired: true,
|
|
566
|
+
initialValue: false,
|
|
567
|
+
},
|
|
568
|
+
},
|
|
557
569
|
{
|
|
558
570
|
title: {
|
|
559
571
|
label: {
|
|
@@ -789,6 +801,14 @@ const getSnippets = (textLines = 2): IPublicTypeSnippet[] => [
|
|
|
789
801
|
key: 'select-box-2',
|
|
790
802
|
},
|
|
791
803
|
},
|
|
804
|
+
{
|
|
805
|
+
componentName: 'Switch',
|
|
806
|
+
props: {
|
|
807
|
+
size: 'small',
|
|
808
|
+
disabled: false,
|
|
809
|
+
key: 'switch-1',
|
|
810
|
+
},
|
|
811
|
+
},
|
|
792
812
|
],
|
|
793
813
|
},
|
|
794
814
|
},
|
package/lowcode_es/meta.js
CHANGED
|
@@ -25,6 +25,7 @@ import SelectMeta from 'D:/project/company2/lowcode-material/lowcode/select/meta
|
|
|
25
25
|
import ShoppingCartMeta from 'D:/project/company2/lowcode-material/lowcode/shopping-cart/meta';
|
|
26
26
|
import StreamListMeta from 'D:/project/company2/lowcode-material/lowcode/stream-list/meta';
|
|
27
27
|
import SwiperMeta from 'D:/project/company2/lowcode-material/lowcode/swiper/meta';
|
|
28
|
+
import SwitchMeta from 'D:/project/company2/lowcode-material/lowcode/switch/meta';
|
|
28
29
|
import TabContainerItemMeta from 'D:/project/company2/lowcode-material/lowcode/tab-container-item/meta';
|
|
29
30
|
import TabContainerMeta from 'D:/project/company2/lowcode-material/lowcode/tab-container/meta';
|
|
30
31
|
import TabMessageMeta from 'D:/project/company2/lowcode-material/lowcode/tab-message/meta';
|
|
@@ -105,7 +106,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
105
106
|
packageName = '@dckj-npm/dc-material';
|
|
106
107
|
}
|
|
107
108
|
if (version === void 0) {
|
|
108
|
-
version = '0.1.
|
|
109
|
+
version = '0.1.285';
|
|
109
110
|
}
|
|
110
111
|
if (basicLibraryVersion === void 0) {
|
|
111
112
|
basicLibraryVersion = {
|
|
@@ -132,7 +133,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
132
133
|
}
|
|
133
134
|
return meta;
|
|
134
135
|
}
|
|
135
|
-
var componentMetas = [AddressListMeta, Button2Meta, CustomDrawerMeta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, DrawerMeta, FormMeta, GoodsCardListCommonMeta, GoodsCardListMeta, GridNavMeta, ImageMeta, InputMeta, IntegralTaskMeta, MemberCardMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, SelectMeta, ShoppingCartMeta, StreamListMeta, SwiperMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, TextDescriptionDetailListMeta, Title1Meta, Title2Meta, UserCardMeta];
|
|
136
|
+
var componentMetas = [AddressListMeta, Button2Meta, CustomDrawerMeta, CustomRadioGroupItemMeta, CustomRadioGroupMeta, DCSliderMeta, DrawerMeta, FormMeta, GoodsCardListCommonMeta, GoodsCardListMeta, GridNavMeta, ImageMeta, InputMeta, IntegralTaskMeta, MemberCardMeta, MenuListMeta, MessageListMeta, NavigationMeta, NoticeBarMeta, PositionMeta, RichTextMeta, SearchBarMeta, SelectMeta, ShoppingCartMeta, StreamListMeta, SwiperMeta, SwitchMeta, TabContainerItemMeta, TabContainerMeta, TabMessageMeta, TagCMeta, TeletextListMeta, TextDescriptionDetailListMeta, Title1Meta, Title2Meta, UserCardMeta];
|
|
136
137
|
var components = [];
|
|
137
138
|
var npmInfo = {};
|
|
138
139
|
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;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var SwitchMeta = {
|
|
3
|
+
group: '低代码组件',
|
|
4
|
+
componentName: 'Switch',
|
|
5
|
+
title: '开关',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
"package": '@dckj-npm/dc-material',
|
|
11
|
+
version: '0.1.8',
|
|
12
|
+
exportName: 'Switch',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: ''
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
props: [{
|
|
19
|
+
title: '尺寸',
|
|
20
|
+
name: 'size',
|
|
21
|
+
setter: {
|
|
22
|
+
componentName: 'RadioGroupSetter',
|
|
23
|
+
props: {
|
|
24
|
+
dataSource: [{
|
|
25
|
+
label: '小',
|
|
26
|
+
value: 'small'
|
|
27
|
+
}, {
|
|
28
|
+
label: '中',
|
|
29
|
+
value: 'middle'
|
|
30
|
+
}],
|
|
31
|
+
options: [{
|
|
32
|
+
label: '小',
|
|
33
|
+
value: 'small'
|
|
34
|
+
}, {
|
|
35
|
+
label: '中',
|
|
36
|
+
value: 'middle'
|
|
37
|
+
}]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
title: '是否禁用',
|
|
42
|
+
name: 'disabled',
|
|
43
|
+
setter: {
|
|
44
|
+
componentName: 'BoolSetter',
|
|
45
|
+
initialValue: false
|
|
46
|
+
}
|
|
47
|
+
}],
|
|
48
|
+
supports: {
|
|
49
|
+
style: true
|
|
50
|
+
},
|
|
51
|
+
component: {
|
|
52
|
+
disableBehaviors: ['copy']
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var snippets = [{
|
|
57
|
+
title: '开关',
|
|
58
|
+
screenshot: '',
|
|
59
|
+
schema: {
|
|
60
|
+
componentName: 'Switch',
|
|
61
|
+
props: {
|
|
62
|
+
size: 'medium',
|
|
63
|
+
disable: false
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}];
|
|
67
|
+
export default _extends({}, SwitchMeta, {
|
|
68
|
+
snippets: snippets
|
|
69
|
+
});
|
|
@@ -137,6 +137,9 @@ var TeletextListMeta = {
|
|
|
137
137
|
children: [{
|
|
138
138
|
label: '图片链接',
|
|
139
139
|
value: 'image'
|
|
140
|
+
}, {
|
|
141
|
+
label: '类型',
|
|
142
|
+
value: 'itemType'
|
|
140
143
|
}, {
|
|
141
144
|
label: '标题',
|
|
142
145
|
value: 'title'
|
|
@@ -235,6 +238,9 @@ var TeletextListMeta = {
|
|
|
235
238
|
var baseChildren = [{
|
|
236
239
|
label: '图片链接',
|
|
237
240
|
value: 'image'
|
|
241
|
+
}, {
|
|
242
|
+
label: '类型',
|
|
243
|
+
value: 'type'
|
|
238
244
|
}, {
|
|
239
245
|
label: '标题',
|
|
240
246
|
value: 'title'
|
|
@@ -473,6 +479,15 @@ var TeletextListMeta = {
|
|
|
473
479
|
isRequired: true,
|
|
474
480
|
initialValue: false
|
|
475
481
|
}
|
|
482
|
+
}, {
|
|
483
|
+
title: '是否为用户菜单列表',
|
|
484
|
+
name: 'isUserMenu',
|
|
485
|
+
description: '是否为用户菜单列表',
|
|
486
|
+
setter: {
|
|
487
|
+
componentName: 'BoolSetter',
|
|
488
|
+
isRequired: true,
|
|
489
|
+
initialValue: false
|
|
490
|
+
}
|
|
476
491
|
}, {
|
|
477
492
|
title: {
|
|
478
493
|
label: {
|
|
@@ -679,6 +694,13 @@ var getSnippets = function getSnippets(textLines) {
|
|
|
679
694
|
btnText: '确定',
|
|
680
695
|
key: 'select-box-2'
|
|
681
696
|
}
|
|
697
|
+
}, {
|
|
698
|
+
componentName: 'Switch',
|
|
699
|
+
props: {
|
|
700
|
+
size: 'small',
|
|
701
|
+
disabled: false,
|
|
702
|
+
key: 'switch-1'
|
|
703
|
+
}
|
|
682
704
|
}]
|
|
683
705
|
}
|
|
684
706
|
}];
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -30,15 +30,16 @@ var _meta23 = _interopRequireDefault(require("D:/project/company2/lowcode-materi
|
|
|
30
30
|
var _meta24 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/shopping-cart/meta"));
|
|
31
31
|
var _meta25 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/stream-list/meta"));
|
|
32
32
|
var _meta26 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/swiper/meta"));
|
|
33
|
-
var _meta27 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
34
|
-
var _meta28 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tab-container/meta"));
|
|
35
|
-
var _meta29 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tab-
|
|
36
|
-
var _meta30 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
37
|
-
var _meta31 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
38
|
-
var _meta32 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
39
|
-
var _meta33 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
40
|
-
var _meta34 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
41
|
-
var _meta35 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/
|
|
33
|
+
var _meta27 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/switch/meta"));
|
|
34
|
+
var _meta28 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tab-container-item/meta"));
|
|
35
|
+
var _meta29 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tab-container/meta"));
|
|
36
|
+
var _meta30 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tab-message/meta"));
|
|
37
|
+
var _meta31 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/tag-c/meta"));
|
|
38
|
+
var _meta32 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/teletext-list/meta"));
|
|
39
|
+
var _meta33 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/text-description-detail-list/meta"));
|
|
40
|
+
var _meta34 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/title1/meta"));
|
|
41
|
+
var _meta35 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/title2/meta"));
|
|
42
|
+
var _meta36 = _interopRequireDefault(require("D:/project/company2/lowcode-material/lowcode/user-card/meta"));
|
|
42
43
|
var componentCategorySort = {};
|
|
43
44
|
["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
|
|
44
45
|
componentCategorySort[item] = ++index;
|
|
@@ -110,7 +111,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
110
111
|
packageName = '@dckj-npm/dc-material';
|
|
111
112
|
}
|
|
112
113
|
if (version === void 0) {
|
|
113
|
-
version = '0.1.
|
|
114
|
+
version = '0.1.285';
|
|
114
115
|
}
|
|
115
116
|
if (basicLibraryVersion === void 0) {
|
|
116
117
|
basicLibraryVersion = {
|
|
@@ -137,7 +138,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
137
138
|
}
|
|
138
139
|
return meta;
|
|
139
140
|
}
|
|
140
|
-
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"], _meta5["default"], _meta6["default"], _meta7["default"], _meta8["default"], _meta9["default"], _meta10["default"], _meta11["default"], _meta12["default"], _meta13["default"], _meta14["default"], _meta15["default"], _meta16["default"], _meta17["default"], _meta18["default"], _meta19["default"], _meta20["default"], _meta21["default"], _meta22["default"], _meta23["default"], _meta24["default"], _meta25["default"], _meta26["default"], _meta27["default"], _meta28["default"], _meta29["default"], _meta30["default"], _meta31["default"], _meta32["default"], _meta33["default"], _meta34["default"], _meta35["default"]];
|
|
141
|
+
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"], _meta5["default"], _meta6["default"], _meta7["default"], _meta8["default"], _meta9["default"], _meta10["default"], _meta11["default"], _meta12["default"], _meta13["default"], _meta14["default"], _meta15["default"], _meta16["default"], _meta17["default"], _meta18["default"], _meta19["default"], _meta20["default"], _meta21["default"], _meta22["default"], _meta23["default"], _meta24["default"], _meta25["default"], _meta26["default"], _meta27["default"], _meta28["default"], _meta29["default"], _meta30["default"], _meta31["default"], _meta32["default"], _meta33["default"], _meta34["default"], _meta35["default"], _meta36["default"]];
|
|
141
142
|
var components = exports.components = [];
|
|
142
143
|
var npmInfo = {};
|
|
143
144
|
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;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var SwitchMeta = {
|
|
8
|
+
group: '低代码组件',
|
|
9
|
+
componentName: 'Switch',
|
|
10
|
+
title: '开关',
|
|
11
|
+
docUrl: '',
|
|
12
|
+
screenshot: '',
|
|
13
|
+
devMode: 'proCode',
|
|
14
|
+
npm: {
|
|
15
|
+
"package": '@dckj-npm/dc-material',
|
|
16
|
+
version: '0.1.8',
|
|
17
|
+
exportName: 'Switch',
|
|
18
|
+
main: 'src/index.tsx',
|
|
19
|
+
destructuring: true,
|
|
20
|
+
subName: ''
|
|
21
|
+
},
|
|
22
|
+
configure: {
|
|
23
|
+
props: [{
|
|
24
|
+
title: '尺寸',
|
|
25
|
+
name: 'size',
|
|
26
|
+
setter: {
|
|
27
|
+
componentName: 'RadioGroupSetter',
|
|
28
|
+
props: {
|
|
29
|
+
dataSource: [{
|
|
30
|
+
label: '小',
|
|
31
|
+
value: 'small'
|
|
32
|
+
}, {
|
|
33
|
+
label: '中',
|
|
34
|
+
value: 'middle'
|
|
35
|
+
}],
|
|
36
|
+
options: [{
|
|
37
|
+
label: '小',
|
|
38
|
+
value: 'small'
|
|
39
|
+
}, {
|
|
40
|
+
label: '中',
|
|
41
|
+
value: 'middle'
|
|
42
|
+
}]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
title: '是否禁用',
|
|
47
|
+
name: 'disabled',
|
|
48
|
+
setter: {
|
|
49
|
+
componentName: 'BoolSetter',
|
|
50
|
+
initialValue: false
|
|
51
|
+
}
|
|
52
|
+
}],
|
|
53
|
+
supports: {
|
|
54
|
+
style: true
|
|
55
|
+
},
|
|
56
|
+
component: {
|
|
57
|
+
disableBehaviors: ['copy']
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var snippets = [{
|
|
62
|
+
title: '开关',
|
|
63
|
+
screenshot: '',
|
|
64
|
+
schema: {
|
|
65
|
+
componentName: 'Switch',
|
|
66
|
+
props: {
|
|
67
|
+
size: 'medium',
|
|
68
|
+
disable: false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}];
|
|
72
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, SwitchMeta, {
|
|
73
|
+
snippets: snippets
|
|
74
|
+
});
|
|
@@ -142,6 +142,9 @@ var TeletextListMeta = {
|
|
|
142
142
|
children: [{
|
|
143
143
|
label: '图片链接',
|
|
144
144
|
value: 'image'
|
|
145
|
+
}, {
|
|
146
|
+
label: '类型',
|
|
147
|
+
value: 'itemType'
|
|
145
148
|
}, {
|
|
146
149
|
label: '标题',
|
|
147
150
|
value: 'title'
|
|
@@ -240,6 +243,9 @@ var TeletextListMeta = {
|
|
|
240
243
|
var baseChildren = [{
|
|
241
244
|
label: '图片链接',
|
|
242
245
|
value: 'image'
|
|
246
|
+
}, {
|
|
247
|
+
label: '类型',
|
|
248
|
+
value: 'type'
|
|
243
249
|
}, {
|
|
244
250
|
label: '标题',
|
|
245
251
|
value: 'title'
|
|
@@ -478,6 +484,15 @@ var TeletextListMeta = {
|
|
|
478
484
|
isRequired: true,
|
|
479
485
|
initialValue: false
|
|
480
486
|
}
|
|
487
|
+
}, {
|
|
488
|
+
title: '是否为用户菜单列表',
|
|
489
|
+
name: 'isUserMenu',
|
|
490
|
+
description: '是否为用户菜单列表',
|
|
491
|
+
setter: {
|
|
492
|
+
componentName: 'BoolSetter',
|
|
493
|
+
isRequired: true,
|
|
494
|
+
initialValue: false
|
|
495
|
+
}
|
|
481
496
|
}, {
|
|
482
497
|
title: {
|
|
483
498
|
label: {
|
|
@@ -684,6 +699,13 @@ var getSnippets = function getSnippets(textLines) {
|
|
|
684
699
|
btnText: '确定',
|
|
685
700
|
key: 'select-box-2'
|
|
686
701
|
}
|
|
702
|
+
}, {
|
|
703
|
+
componentName: 'Switch',
|
|
704
|
+
props: {
|
|
705
|
+
size: 'small',
|
|
706
|
+
disabled: false,
|
|
707
|
+
key: 'switch-1'
|
|
708
|
+
}
|
|
687
709
|
}]
|
|
688
710
|
}
|
|
689
711
|
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dckj-npm/dc-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.285",
|
|
4
4
|
"description": "dc低代码物料",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"componentConfig": {
|
|
108
108
|
"isComponentLibrary": true,
|
|
109
|
-
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.
|
|
109
|
+
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.285/build/lowcode/assets-prod.json"
|
|
110
110
|
},
|
|
111
111
|
"lcMeta": {
|
|
112
112
|
"type": "component"
|