@dckj-npm/dc-material 0.1.0 → 0.1.1
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 +12 -12
- package/build/lowcode/assets-dev.json +3 -3
- package/build/lowcode/assets-prod.json +12 -12
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +144 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +295 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +295 -1
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +6 -1
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/es/components/bottom-navigation/bottom-navigation.js +37 -0
- package/es/components/bottom-navigation/index.d.ts +3 -0
- package/es/components/bottom-navigation/index.js +2 -0
- package/es/components/bottom-navigation/index.scss +16 -0
- package/es/components/dc-slider/index.d.ts +3 -0
- package/es/components/dc-slider/index.js +2 -0
- package/es/components/dc-slider/index.scss +8 -0
- package/es/components/dc-slider/slider.d.ts +32 -0
- package/es/components/dc-slider/slider.js +14 -0
- package/es/components/title/index.d.ts +8 -0
- package/es/components/title/index.js +7 -0
- package/es/components/title/title-1.d.ts +10 -0
- package/es/components/title/title-1.js +16 -0
- package/es/components/title/title-1.scss +26 -0
- package/es/components/title/title-2.d.ts +18 -0
- package/es/components/title/title-2.js +31 -0
- package/es/components/title/title-2.scss +22 -0
- package/es/index.d.ts +8 -4
- package/es/index.js +4 -2
- package/es/style.js +2 -2
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/lib/components/bottom-navigation/bottom-navigation.js +44 -0
- package/lib/components/bottom-navigation/index.d.ts +3 -0
- package/lib/components/bottom-navigation/index.js +7 -0
- package/lib/components/bottom-navigation/index.scss +16 -0
- package/lib/components/dc-slider/index.d.ts +3 -0
- package/lib/components/dc-slider/index.js +7 -0
- package/lib/components/dc-slider/index.scss +8 -0
- package/lib/components/dc-slider/slider.d.ts +32 -0
- package/lib/components/dc-slider/slider.js +21 -0
- package/lib/components/title/index.d.ts +8 -0
- package/lib/components/title/index.js +8 -0
- package/lib/components/title/title-1.d.ts +10 -0
- package/lib/components/title/title-1.js +21 -0
- package/lib/components/title/title-1.scss +26 -0
- package/lib/components/title/title-2.d.ts +18 -0
- package/lib/components/title/title-2.js +36 -0
- package/lib/components/title/title-2.scss +22 -0
- package/lib/index.d.ts +8 -4
- package/lib/index.js +8 -5
- package/lib/style.js +2 -2
- package/lowcode/d-c-slider/meta.ts +331 -0
- package/lowcode/d-c-slider/snippets.ts +42 -0
- package/lowcode/navigation/meta.ts +117 -0
- package/lowcode/teletext-list/meta.ts +2 -2
- package/lowcode/{colorful-input → title1}/meta.ts +14 -12
- package/lowcode/title2/meta.ts +92 -0
- package/lowcode_es/d-c-slider/meta.d.ts +140 -0
- package/lowcode_es/d-c-slider/meta.js +298 -0
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -0
- package/lowcode_es/d-c-slider/snippets.js +36 -0
- package/lowcode_es/meta.js +7 -5
- package/lowcode_es/navigation/meta.js +105 -0
- package/lowcode_es/teletext-list/meta.js +3 -3
- package/lowcode_es/{colorful-input → title1}/meta.js +15 -13
- package/lowcode_es/title2/meta.js +82 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +140 -0
- package/lowcode_lib/d-c-slider/meta.js +303 -0
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -0
- package/lowcode_lib/d-c-slider/snippets.js +40 -0
- package/lowcode_lib/meta.js +7 -5
- package/lowcode_lib/navigation/meta.js +110 -0
- package/lowcode_lib/teletext-list/meta.js +3 -3
- package/lowcode_lib/title1/meta.d.ts +22 -0
- package/lowcode_lib/{colorful-input → title1}/meta.js +15 -13
- package/lowcode_lib/title2/meta.d.ts +22 -0
- package/lowcode_lib/{colorful-button → title2}/meta.js +37 -40
- package/package.json +6 -5
- package/lowcode/colorful-button/meta.ts +0 -102
- package/lowcode_es/colorful-button/meta.js +0 -85
- /package/lowcode_es/{colorful-button → navigation}/meta.d.ts +0 -0
- /package/lowcode_es/{colorful-input → title1}/meta.d.ts +0 -0
- /package/{lowcode_lib/colorful-button → lowcode_es/title2}/meta.d.ts +0 -0
- /package/lowcode_lib/{colorful-input → navigation}/meta.d.ts +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
screenshot: string;
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: string;
|
|
6
|
+
props: {
|
|
7
|
+
prefix: string;
|
|
8
|
+
animation: string;
|
|
9
|
+
arrows: boolean;
|
|
10
|
+
arrowSize: string;
|
|
11
|
+
arrowPosition: string;
|
|
12
|
+
arrowDirection: string;
|
|
13
|
+
autoplaySpeed: number;
|
|
14
|
+
dots: boolean;
|
|
15
|
+
dotsDirection: string;
|
|
16
|
+
draggable: boolean;
|
|
17
|
+
infinite: boolean;
|
|
18
|
+
slide: string;
|
|
19
|
+
slideDirection: string;
|
|
20
|
+
slidesToShow: number;
|
|
21
|
+
slidesToScroll: number;
|
|
22
|
+
speed: number;
|
|
23
|
+
triggerType: string;
|
|
24
|
+
centerPadding: string;
|
|
25
|
+
cssEase: string;
|
|
26
|
+
edgeFriction: number;
|
|
27
|
+
swipe: boolean;
|
|
28
|
+
touchMove: boolean;
|
|
29
|
+
touchThreshold: number;
|
|
30
|
+
useCSS: boolean;
|
|
31
|
+
waitForAnimate: boolean;
|
|
32
|
+
picUrls: string[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
var _default = exports["default"] = [{
|
|
6
|
+
title: '图片轮播',
|
|
7
|
+
screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_slider.png',
|
|
8
|
+
schema: {
|
|
9
|
+
componentName: 'DCSlider',
|
|
10
|
+
props: {
|
|
11
|
+
prefix: 'next-',
|
|
12
|
+
animation: 'slide',
|
|
13
|
+
arrows: true,
|
|
14
|
+
arrowSize: 'medium',
|
|
15
|
+
arrowPosition: 'inner',
|
|
16
|
+
arrowDirection: 'hoz',
|
|
17
|
+
autoplaySpeed: 3000,
|
|
18
|
+
dots: true,
|
|
19
|
+
dotsDirection: 'hoz',
|
|
20
|
+
draggable: true,
|
|
21
|
+
infinite: true,
|
|
22
|
+
slide: 'div',
|
|
23
|
+
slideDirection: 'hoz',
|
|
24
|
+
slidesToShow: 1,
|
|
25
|
+
slidesToScroll: 1,
|
|
26
|
+
speed: 600,
|
|
27
|
+
triggerType: 'click',
|
|
28
|
+
centerPadding: '50px',
|
|
29
|
+
cssEase: 'ease',
|
|
30
|
+
edgeFriction: 0.35,
|
|
31
|
+
swipe: true,
|
|
32
|
+
touchMove: true,
|
|
33
|
+
touchThreshold: 5,
|
|
34
|
+
useCSS: true,
|
|
35
|
+
waitForAnimate: true,
|
|
36
|
+
// 轮播路径
|
|
37
|
+
picUrls: ['https://img.alicdn.com/tps/TB1bewbNVXXXXc5XXXXXXXXXXXX-1000-300.png', 'https://img.alicdn.com/tps/TB1xuUcNVXXXXcRXXXXXXXXXXXX-1000-300.jpg', 'https://img.alicdn.com/tps/TB1ikP.NVXXXXaYXpXXXXXXXXXX-1000-300.jpg', 'https://img.alicdn.com/tps/TB1s1_JNVXXXXbhaXXXXXXXXXXX-1000-300.jpg']
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}];
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -4,9 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.components = exports.componentList = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
-
var _meta = _interopRequireDefault(require("./
|
|
8
|
-
var _meta2 = _interopRequireDefault(require("./
|
|
7
|
+
var _meta = _interopRequireDefault(require("./d-c-slider/meta"));
|
|
8
|
+
var _meta2 = _interopRequireDefault(require("./navigation/meta"));
|
|
9
9
|
var _meta3 = _interopRequireDefault(require("./teletext-list/meta"));
|
|
10
|
+
var _meta4 = _interopRequireDefault(require("./title1/meta"));
|
|
11
|
+
var _meta5 = _interopRequireDefault(require("./title2/meta"));
|
|
10
12
|
var componentCategorySort = {};
|
|
11
13
|
["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
|
|
12
14
|
componentCategorySort[item] = ++index;
|
|
@@ -78,7 +80,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
78
80
|
packageName = '@dckj-npm/dc-material';
|
|
79
81
|
}
|
|
80
82
|
if (version === void 0) {
|
|
81
|
-
version = '0.1.
|
|
83
|
+
version = '0.1.1';
|
|
82
84
|
}
|
|
83
85
|
if (basicLibraryVersion === void 0) {
|
|
84
86
|
basicLibraryVersion = {
|
|
@@ -105,7 +107,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
105
107
|
}
|
|
106
108
|
return meta;
|
|
107
109
|
}
|
|
108
|
-
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"]];
|
|
110
|
+
var componentMetas = [_meta["default"], _meta2["default"], _meta3["default"], _meta4["default"], _meta5["default"]];
|
|
109
111
|
var components = exports.components = [];
|
|
110
112
|
var npmInfo = {};
|
|
111
113
|
componentMetas.forEach(function (meta) {
|
|
@@ -167,4 +169,4 @@ if (!execCompile) {
|
|
|
167
169
|
components: components,
|
|
168
170
|
componentList: componentList
|
|
169
171
|
};
|
|
170
|
-
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 NavigationMeta = {
|
|
8
|
+
"componentName": "Navigation",
|
|
9
|
+
"title": "Navigation",
|
|
10
|
+
"docUrl": "",
|
|
11
|
+
"screenshot": "",
|
|
12
|
+
"devMode": "proCode",
|
|
13
|
+
"npm": {
|
|
14
|
+
"package": "dc-material",
|
|
15
|
+
"version": "0.1.1",
|
|
16
|
+
"exportName": "Navigation",
|
|
17
|
+
"main": "src\\index.tsx",
|
|
18
|
+
"destructuring": true,
|
|
19
|
+
"subName": ""
|
|
20
|
+
},
|
|
21
|
+
"configure": {
|
|
22
|
+
"props": [{
|
|
23
|
+
"title": {
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "i18n",
|
|
26
|
+
"en-US": "itemArray",
|
|
27
|
+
"zh-CN": "itemArray"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"name": "itemArray",
|
|
31
|
+
"setter": {
|
|
32
|
+
"componentName": "ArraySetter",
|
|
33
|
+
"props": {
|
|
34
|
+
"itemSetter": {
|
|
35
|
+
"componentName": "ObjectSetter",
|
|
36
|
+
"props": {
|
|
37
|
+
"config": {
|
|
38
|
+
"items": [{
|
|
39
|
+
"title": {
|
|
40
|
+
"label": {
|
|
41
|
+
"type": "i18n",
|
|
42
|
+
"en-US": "text",
|
|
43
|
+
"zh-CN": "text"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"name": "text",
|
|
47
|
+
"setter": {
|
|
48
|
+
"componentName": "StringSetter",
|
|
49
|
+
"isRequired": true,
|
|
50
|
+
"initialValue": ""
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
"title": {
|
|
54
|
+
"label": {
|
|
55
|
+
"type": "i18n",
|
|
56
|
+
"en-US": "icon",
|
|
57
|
+
"zh-CN": "icon"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"name": "icon",
|
|
61
|
+
"setter": {
|
|
62
|
+
"componentName": "StringSetter",
|
|
63
|
+
"isRequired": true,
|
|
64
|
+
"initialValue": ""
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
"title": {
|
|
68
|
+
"label": {
|
|
69
|
+
"type": "i18n",
|
|
70
|
+
"en-US": "selectedIcon",
|
|
71
|
+
"zh-CN": "selectedIcon"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"name": "selectedIcon",
|
|
75
|
+
"setter": {
|
|
76
|
+
"componentName": "StringSetter",
|
|
77
|
+
"isRequired": true,
|
|
78
|
+
"initialValue": ""
|
|
79
|
+
}
|
|
80
|
+
}],
|
|
81
|
+
"extraSetter": {
|
|
82
|
+
"componentName": "MixedSetter",
|
|
83
|
+
"isRequired": false,
|
|
84
|
+
"props": {}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"isRequired": true,
|
|
91
|
+
"initialValue": []
|
|
92
|
+
}
|
|
93
|
+
}],
|
|
94
|
+
"supports": {
|
|
95
|
+
"style": true
|
|
96
|
+
},
|
|
97
|
+
"component": {}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
var snippets = [{
|
|
101
|
+
"title": "Navigation",
|
|
102
|
+
"screenshot": "",
|
|
103
|
+
"schema": {
|
|
104
|
+
"componentName": "Navigation",
|
|
105
|
+
"props": {}
|
|
106
|
+
}
|
|
107
|
+
}];
|
|
108
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, NavigationMeta, {
|
|
109
|
+
snippets: snippets
|
|
110
|
+
});
|
|
@@ -6,7 +6,7 @@ exports["default"] = void 0;
|
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
7
|
var TeletextListMeta = {
|
|
8
8
|
"componentName": "TeletextList",
|
|
9
|
-
"title": "
|
|
9
|
+
"title": "图文列表",
|
|
10
10
|
"docUrl": "",
|
|
11
11
|
"screenshot": "",
|
|
12
12
|
"devMode": "proCode",
|
|
@@ -247,7 +247,7 @@ var TeletextListMeta = {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
var snippets = [{
|
|
250
|
-
"title": "
|
|
250
|
+
"title": "图文列表",
|
|
251
251
|
"screenshot": "",
|
|
252
252
|
"schema": {
|
|
253
253
|
"componentName": "TeletextList",
|
|
@@ -256,4 +256,4 @@ var snippets = [{
|
|
|
256
256
|
}];
|
|
257
257
|
var _default = exports["default"] = (0, _extends2["default"])({}, TeletextListMeta, {
|
|
258
258
|
snippets: snippets
|
|
259
|
-
});
|
|
259
|
+
});
|
|
@@ -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;
|
|
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
-
var
|
|
8
|
-
"componentName": "
|
|
9
|
-
"title": "
|
|
7
|
+
var Title1Meta = {
|
|
8
|
+
"componentName": "Title1",
|
|
9
|
+
"title": "个性化标题1",
|
|
10
10
|
"docUrl": "",
|
|
11
11
|
"screenshot": "",
|
|
12
12
|
"devMode": "proCode",
|
|
13
13
|
"npm": {
|
|
14
14
|
"package": "@dckj-npm/dc-material",
|
|
15
15
|
"version": "0.1.0",
|
|
16
|
-
"exportName": "
|
|
16
|
+
"exportName": "Title1",
|
|
17
17
|
"main": "src/index.tsx",
|
|
18
18
|
"destructuring": true,
|
|
19
19
|
"subName": ""
|
|
@@ -23,15 +23,17 @@ var ColorfulInputMeta = {
|
|
|
23
23
|
"title": {
|
|
24
24
|
"label": {
|
|
25
25
|
"type": "i18n",
|
|
26
|
-
"en-US": "
|
|
27
|
-
"zh-CN": "
|
|
28
|
-
}
|
|
26
|
+
"en-US": "title",
|
|
27
|
+
"zh-CN": "标题"
|
|
28
|
+
},
|
|
29
|
+
"tip": "title | 标题"
|
|
29
30
|
},
|
|
30
|
-
"name": "
|
|
31
|
+
"name": "title",
|
|
32
|
+
"description": "标题",
|
|
31
33
|
"setter": {
|
|
32
34
|
"componentName": "StringSetter",
|
|
33
35
|
"isRequired": false,
|
|
34
|
-
"initialValue": ""
|
|
36
|
+
"initialValue": "标题名称"
|
|
35
37
|
}
|
|
36
38
|
}],
|
|
37
39
|
"supports": {
|
|
@@ -41,13 +43,13 @@ var ColorfulInputMeta = {
|
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
45
|
var snippets = [{
|
|
44
|
-
"title": "
|
|
46
|
+
"title": "个性化标题1",
|
|
45
47
|
"screenshot": "",
|
|
46
48
|
"schema": {
|
|
47
|
-
"componentName": "
|
|
49
|
+
"componentName": "Title1",
|
|
48
50
|
"props": {}
|
|
49
51
|
}
|
|
50
52
|
}];
|
|
51
|
-
var _default = exports["default"] = (0, _extends2["default"])({},
|
|
53
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, Title1Meta, {
|
|
52
54
|
snippets: snippets
|
|
53
|
-
});
|
|
55
|
+
});
|
|
@@ -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;
|
|
@@ -4,16 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
-
var
|
|
8
|
-
"componentName": "
|
|
9
|
-
"title": "
|
|
7
|
+
var Title2Meta = {
|
|
8
|
+
"componentName": "Title2",
|
|
9
|
+
"title": "个性化标题2",
|
|
10
10
|
"docUrl": "",
|
|
11
11
|
"screenshot": "",
|
|
12
12
|
"devMode": "proCode",
|
|
13
13
|
"npm": {
|
|
14
14
|
"package": "@dckj-npm/dc-material",
|
|
15
15
|
"version": "0.1.0",
|
|
16
|
-
"exportName": "
|
|
16
|
+
"exportName": "Title2",
|
|
17
17
|
"main": "src/index.tsx",
|
|
18
18
|
"destructuring": true,
|
|
19
19
|
"subName": ""
|
|
@@ -23,52 +23,49 @@ var ColorfulButtonMeta = {
|
|
|
23
23
|
"title": {
|
|
24
24
|
"label": {
|
|
25
25
|
"type": "i18n",
|
|
26
|
-
"en-US": "
|
|
27
|
-
"zh-CN": "
|
|
26
|
+
"en-US": "title",
|
|
27
|
+
"zh-CN": "标题"
|
|
28
28
|
},
|
|
29
|
-
"tip": "
|
|
29
|
+
"tip": "title | 标题"
|
|
30
30
|
},
|
|
31
|
-
"name": "
|
|
32
|
-
"description": "
|
|
31
|
+
"name": "title",
|
|
32
|
+
"description": "标题",
|
|
33
33
|
"setter": {
|
|
34
|
-
"componentName": "
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"label": "primary",
|
|
38
|
-
"value": "primary"
|
|
39
|
-
}, {
|
|
40
|
-
"label": "secondary",
|
|
41
|
-
"value": "secondary"
|
|
42
|
-
}, {
|
|
43
|
-
"label": "normal",
|
|
44
|
-
"value": "normal"
|
|
45
|
-
}],
|
|
46
|
-
"options": [{
|
|
47
|
-
"label": "primary",
|
|
48
|
-
"value": "primary"
|
|
49
|
-
}, {
|
|
50
|
-
"label": "secondary",
|
|
51
|
-
"value": "secondary"
|
|
52
|
-
}, {
|
|
53
|
-
"label": "normal",
|
|
54
|
-
"value": "normal"
|
|
55
|
-
}]
|
|
56
|
-
},
|
|
57
|
-
"initialValue": "primary"
|
|
34
|
+
"componentName": "StringSetter",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"initialValue": "标题名称"
|
|
58
37
|
}
|
|
59
38
|
}, {
|
|
60
39
|
"title": {
|
|
61
40
|
"label": {
|
|
62
41
|
"type": "i18n",
|
|
63
42
|
"en-US": "color",
|
|
64
|
-
"zh-CN": "
|
|
65
|
-
}
|
|
43
|
+
"zh-CN": "颜色"
|
|
44
|
+
},
|
|
45
|
+
"tip": "color | 颜色"
|
|
66
46
|
},
|
|
67
47
|
"name": "color",
|
|
48
|
+
"description": "颜色",
|
|
49
|
+
"setter": {
|
|
50
|
+
"componentName": "StringSetter",
|
|
51
|
+
"isRequired": false,
|
|
52
|
+
"initialValue": "#144477"
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
"title": {
|
|
56
|
+
"label": {
|
|
57
|
+
"type": "i18n",
|
|
58
|
+
"en-US": "tipColor",
|
|
59
|
+
"zh-CN": "tip颜色"
|
|
60
|
+
},
|
|
61
|
+
"tip": "tipColor | tip颜色"
|
|
62
|
+
},
|
|
63
|
+
"name": "tipColor",
|
|
64
|
+
"description": "tip颜色",
|
|
68
65
|
"setter": {
|
|
69
66
|
"componentName": "StringSetter",
|
|
70
67
|
"isRequired": false,
|
|
71
|
-
"initialValue": ""
|
|
68
|
+
"initialValue": "#388AF7"
|
|
72
69
|
}
|
|
73
70
|
}],
|
|
74
71
|
"supports": {
|
|
@@ -78,13 +75,13 @@ var ColorfulButtonMeta = {
|
|
|
78
75
|
}
|
|
79
76
|
};
|
|
80
77
|
var snippets = [{
|
|
81
|
-
"title": "
|
|
78
|
+
"title": "个性化标题2",
|
|
82
79
|
"screenshot": "",
|
|
83
80
|
"schema": {
|
|
84
|
-
"componentName": "
|
|
81
|
+
"componentName": "Title2",
|
|
85
82
|
"props": {}
|
|
86
83
|
}
|
|
87
84
|
}];
|
|
88
|
-
var _default = exports["default"] = (0, _extends2["default"])({},
|
|
85
|
+
var _default = exports["default"] = (0, _extends2["default"])({}, Title2Meta, {
|
|
89
86
|
snippets: snippets
|
|
90
|
-
});
|
|
87
|
+
});
|
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.1",
|
|
4
4
|
"description": "dc低代码物料",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"moment": "latest",
|
|
91
91
|
"prop-types": "^15.5.8",
|
|
92
92
|
"react": "^16.x",
|
|
93
|
-
"react-dom": "^16.x"
|
|
93
|
+
"react-dom": "^16.x",
|
|
94
|
+
"@alilc/lowcode-materials": "^1.2.1"
|
|
94
95
|
},
|
|
95
96
|
"acceptDependencies": {
|
|
96
97
|
"webpack": "^4.46.x"
|
|
@@ -100,10 +101,10 @@
|
|
|
100
101
|
},
|
|
101
102
|
"componentConfig": {
|
|
102
103
|
"isComponentLibrary": true,
|
|
103
|
-
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.
|
|
104
|
+
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.1/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.
|
|
109
|
-
}
|
|
109
|
+
"homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.1/build/index.html"
|
|
110
|
+
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
-
|
|
4
|
-
const ColorfulButtonMeta: IPublicTypeComponentMetadata = {
|
|
5
|
-
"componentName": "ColorfulButton",
|
|
6
|
-
"title": "ColorfulButton",
|
|
7
|
-
"docUrl": "",
|
|
8
|
-
"screenshot": "",
|
|
9
|
-
"devMode": "proCode",
|
|
10
|
-
"npm": {
|
|
11
|
-
"package": "@dckj-npm/dc-material",
|
|
12
|
-
"version": "0.1.0",
|
|
13
|
-
"exportName": "ColorfulButton",
|
|
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": "type",
|
|
25
|
-
"zh-CN": "类型"
|
|
26
|
-
},
|
|
27
|
-
"tip": "type | 类型"
|
|
28
|
-
},
|
|
29
|
-
"name": "type",
|
|
30
|
-
"description": "类型",
|
|
31
|
-
"setter": {
|
|
32
|
-
"componentName": "RadioGroupSetter",
|
|
33
|
-
"props": {
|
|
34
|
-
"dataSource": [
|
|
35
|
-
{
|
|
36
|
-
"label": "primary",
|
|
37
|
-
"value": "primary"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"label": "secondary",
|
|
41
|
-
"value": "secondary"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"label": "normal",
|
|
45
|
-
"value": "normal"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"options": [
|
|
49
|
-
{
|
|
50
|
-
"label": "primary",
|
|
51
|
-
"value": "primary"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"label": "secondary",
|
|
55
|
-
"value": "secondary"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"label": "normal",
|
|
59
|
-
"value": "normal"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"initialValue": "primary"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": {
|
|
68
|
-
"label": {
|
|
69
|
-
"type": "i18n",
|
|
70
|
-
"en-US": "color",
|
|
71
|
-
"zh-CN": "color"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"name": "color",
|
|
75
|
-
"setter": {
|
|
76
|
-
"componentName": "StringSetter",
|
|
77
|
-
"isRequired": false,
|
|
78
|
-
"initialValue": ""
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"supports": {
|
|
83
|
-
"style": true
|
|
84
|
-
},
|
|
85
|
-
"component": {}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
const snippets: IPublicTypeSnippet[] = [
|
|
89
|
-
{
|
|
90
|
-
"title": "ColorfulButton",
|
|
91
|
-
"screenshot": "",
|
|
92
|
-
"schema": {
|
|
93
|
-
"componentName": "ColorfulButton",
|
|
94
|
-
"props": {}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
];
|
|
98
|
-
|
|
99
|
-
export default {
|
|
100
|
-
...ColorfulButtonMeta,
|
|
101
|
-
snippets
|
|
102
|
-
};
|