@dckj-npm/dc-material 0.1.0
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/README.md +17 -0
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +53 -0
- package/build/lowcode/assets-daily.json +67 -0
- package/build/lowcode/assets-dev.json +67 -0
- package/build/lowcode/assets-prod.json +67 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +308 -0
- package/build/lowcode/render/default/view.css +1 -0
- package/build/lowcode/render/default/view.js +1 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +1 -0
- package/dist/BizComps.css +1 -0
- package/dist/BizComps.js +2 -0
- package/dist/BizComps.js.map +1 -0
- package/es/components/colorful-button/colorful-button.d.ts +12 -0
- package/es/components/colorful-button/colorful-button.js +25 -0
- package/es/components/colorful-button/index.d.ts +3 -0
- package/es/components/colorful-button/index.js +2 -0
- package/es/components/colorful-button/index.scss +5 -0
- package/es/components/colorful-input/colorful-input.d.ts +8 -0
- package/es/components/colorful-input/colorful-input.js +19 -0
- package/es/components/colorful-input/index.d.ts +3 -0
- package/es/components/colorful-input/index.js +2 -0
- package/es/components/colorful-input/index.scss +5 -0
- package/es/components/teletext-list/index.d.ts +6 -0
- package/es/components/teletext-list/index.js +6 -0
- package/es/components/teletext-list/index.scss +114 -0
- package/es/components/teletext-list/teletext-list.d.ts +48 -0
- package/es/components/teletext-list/teletext-list.js +93 -0
- package/es/index.d.ts +8 -0
- package/es/index.js +5 -0
- package/es/index.scss +3 -0
- package/es/style.js +3 -0
- package/es/variables.d.ts +2 -0
- package/es/variables.js +2 -0
- package/es/variables.scss +3 -0
- package/lib/components/colorful-button/colorful-button.d.ts +12 -0
- package/lib/components/colorful-button/colorful-button.js +32 -0
- package/lib/components/colorful-button/index.d.ts +3 -0
- package/lib/components/colorful-button/index.js +7 -0
- package/lib/components/colorful-button/index.scss +5 -0
- package/lib/components/colorful-input/colorful-input.d.ts +8 -0
- package/lib/components/colorful-input/colorful-input.js +26 -0
- package/lib/components/colorful-input/index.d.ts +3 -0
- package/lib/components/colorful-input/index.js +7 -0
- package/lib/components/colorful-input/index.scss +5 -0
- package/lib/components/teletext-list/index.d.ts +6 -0
- package/lib/components/teletext-list/index.js +10 -0
- package/lib/components/teletext-list/index.scss +114 -0
- package/lib/components/teletext-list/teletext-list.d.ts +48 -0
- package/lib/components/teletext-list/teletext-list.js +97 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +12 -0
- package/lib/index.scss +3 -0
- package/lib/style.js +3 -0
- package/lib/variables.d.ts +2 -0
- package/lib/variables.js +5 -0
- package/lib/variables.scss +3 -0
- package/lowcode/colorful-button/meta.ts +102 -0
- package/lowcode/colorful-input/meta.ts +56 -0
- package/lowcode/teletext-list/meta.ts +292 -0
- package/lowcode_es/colorful-button/meta.d.ts +22 -0
- package/lowcode_es/colorful-button/meta.js +85 -0
- package/lowcode_es/colorful-input/meta.d.ts +22 -0
- package/lowcode_es/colorful-input/meta.js +48 -0
- package/lowcode_es/meta.js +166 -0
- package/lowcode_es/teletext-list/meta.d.ts +22 -0
- package/lowcode_es/teletext-list/meta.js +254 -0
- package/lowcode_es/view.js +18 -0
- package/lowcode_lib/colorful-button/meta.d.ts +22 -0
- package/lowcode_lib/colorful-button/meta.js +90 -0
- package/lowcode_lib/colorful-input/meta.d.ts +22 -0
- package/lowcode_lib/colorful-input/meta.js +53 -0
- package/lowcode_lib/meta.js +170 -0
- package/lowcode_lib/teletext-list/meta.d.ts +22 -0
- package/lowcode_lib/teletext-list/meta.js +259 -0
- package/lowcode_lib/view.js +29 -0
- package/package.json +109 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _input = _interopRequireDefault(require("@alifd/next/lib/input"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
require("./index.scss");
|
|
10
|
+
var _excluded = ["color", "style"];
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
var ColorfulInput = function ColorfulInput(_ref) {
|
|
14
|
+
var color = _ref.color,
|
|
15
|
+
_ref$style = _ref.style,
|
|
16
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
17
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
18
|
+
var _style = style || {};
|
|
19
|
+
if (color) {
|
|
20
|
+
_style.backgroundColor = color;
|
|
21
|
+
}
|
|
22
|
+
var _otherProps = otherProps || {};
|
|
23
|
+
_otherProps.style = _style;
|
|
24
|
+
return /*#__PURE__*/React.createElement(_input["default"], _otherProps);
|
|
25
|
+
};
|
|
26
|
+
var _default = exports["default"] = ColorfulInput;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _colorfulInput = _interopRequireDefault(require("./colorful-input"));
|
|
7
|
+
var _default = exports["default"] = _colorfulInput["default"];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _teletextList = _interopRequireDefault(require("./teletext-list"));
|
|
7
|
+
/**
|
|
8
|
+
* 图文列表
|
|
9
|
+
*/
|
|
10
|
+
var _default = exports["default"] = _teletextList["default"];
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.teletext-list__panel {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
|
|
8
|
+
.teletext-list__panel__title {
|
|
9
|
+
|
|
10
|
+
& > span {
|
|
11
|
+
position: relative;
|
|
12
|
+
font-size: 17px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
color: #000000;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
content: '';
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: -2px;
|
|
21
|
+
left: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 5px;
|
|
24
|
+
background: linear-gradient(-30deg, #95CDFE, #61A0FE);
|
|
25
|
+
border-radius: 5px;
|
|
26
|
+
opacity: 0.6;
|
|
27
|
+
z-index: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.teletext-list__panel__item-list {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: 10px;
|
|
37
|
+
|
|
38
|
+
.teletext-list__panel__item {
|
|
39
|
+
display: flex;
|
|
40
|
+
gap: 5px;
|
|
41
|
+
padding-bottom: 10px;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
|
|
44
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
45
|
+
|
|
46
|
+
.teletext-list__panel__item_image {
|
|
47
|
+
width: 90px;
|
|
48
|
+
height: 71px;
|
|
49
|
+
border-radius: 5px;
|
|
50
|
+
flex: 0 0 auto;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
|
|
53
|
+
& > img {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
object-fit: cover;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.teletext-list__panel__item__text {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 3px;
|
|
65
|
+
|
|
66
|
+
.teletext-list__panel__item__text__title {
|
|
67
|
+
font-size: 15px;
|
|
68
|
+
font-weight: 500;
|
|
69
|
+
color: #000000;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.teletext-list__panel__item__text__description {
|
|
73
|
+
-webkit-line-clamp: 1;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
color: #686868;
|
|
76
|
+
-webkit-box-orient: vertical;
|
|
77
|
+
display: -webkit-box;
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.teletext-list__panel__item__text__tags {
|
|
83
|
+
display: flex;
|
|
84
|
+
gap: 6px;
|
|
85
|
+
|
|
86
|
+
& > span {
|
|
87
|
+
padding: 2px 6px;
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
background-color: black;
|
|
90
|
+
color: white;
|
|
91
|
+
font-size: 11px;
|
|
92
|
+
|
|
93
|
+
&.orange {
|
|
94
|
+
color: #F1770E;
|
|
95
|
+
background-color: rgba(241, 119, 14, 0.1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.blue {
|
|
99
|
+
color: #2972DD;
|
|
100
|
+
background-color: rgba(41, 114, 221, 0.1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 数据
|
|
5
|
+
*/
|
|
6
|
+
interface DataProps {
|
|
7
|
+
/**
|
|
8
|
+
* 标题
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 图片地址
|
|
13
|
+
*/
|
|
14
|
+
image?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 图片位置
|
|
17
|
+
*/
|
|
18
|
+
imagePlacement?: "left" | "right" | "none";
|
|
19
|
+
/**
|
|
20
|
+
* 说明
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 标签列表
|
|
25
|
+
*/
|
|
26
|
+
tags?: {
|
|
27
|
+
/**
|
|
28
|
+
* 标签名称
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* 标签颜色
|
|
33
|
+
*/
|
|
34
|
+
color: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
export interface TeletextListProps {
|
|
38
|
+
/**
|
|
39
|
+
* 标题
|
|
40
|
+
*/
|
|
41
|
+
title?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 数据
|
|
44
|
+
*/
|
|
45
|
+
dataList?: DataProps[];
|
|
46
|
+
}
|
|
47
|
+
declare const TeletextList: React.FC<TeletextListProps>;
|
|
48
|
+
export default TeletextList;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
require("./index.scss");
|
|
10
|
+
var _excluded = ["title", "dataList"];
|
|
11
|
+
/**
|
|
12
|
+
* 数据
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var DEFAULT_DATA_1 = {
|
|
16
|
+
image: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
17
|
+
imagePlacement: 'left',
|
|
18
|
+
title: '标题名称',
|
|
19
|
+
description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
|
|
20
|
+
tags: [{
|
|
21
|
+
name: '报名火热',
|
|
22
|
+
color: 'orange'
|
|
23
|
+
}, {
|
|
24
|
+
name: '人数众多',
|
|
25
|
+
color: 'blue'
|
|
26
|
+
}]
|
|
27
|
+
};
|
|
28
|
+
var DEFAULT_DATA_2 = {
|
|
29
|
+
image: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
30
|
+
imagePlacement: 'right',
|
|
31
|
+
title: '标题名称',
|
|
32
|
+
description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
|
|
33
|
+
tags: [{
|
|
34
|
+
name: '报名火热',
|
|
35
|
+
color: 'orange'
|
|
36
|
+
}, {
|
|
37
|
+
name: '人数众多',
|
|
38
|
+
color: 'blue'
|
|
39
|
+
}]
|
|
40
|
+
};
|
|
41
|
+
var DEFAULT_DATA_3 = {
|
|
42
|
+
title: '标题名称',
|
|
43
|
+
description: '说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字说明文字',
|
|
44
|
+
tags: [{
|
|
45
|
+
name: '报名火热',
|
|
46
|
+
color: 'orange'
|
|
47
|
+
}, {
|
|
48
|
+
name: '人数众多',
|
|
49
|
+
color: 'blue'
|
|
50
|
+
}]
|
|
51
|
+
};
|
|
52
|
+
var TeletextList = function TeletextList(_ref) {
|
|
53
|
+
var _ref$title = _ref.title,
|
|
54
|
+
title = _ref$title === void 0 ? '标题标题' : _ref$title,
|
|
55
|
+
_ref$dataList = _ref.dataList,
|
|
56
|
+
dataList = _ref$dataList === void 0 ? [DEFAULT_DATA_1, DEFAULT_DATA_2, DEFAULT_DATA_3] : _ref$dataList,
|
|
57
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
58
|
+
var _otherProps = otherProps || {};
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
60
|
+
className: "teletext-list__panel"
|
|
61
|
+
}, _otherProps), title ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: "teletext-list__panel__title"
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement("span", null, title))) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
className: "teletext-list__panel__item-list"
|
|
65
|
+
}, dataList.map(function (item, index) {
|
|
66
|
+
var _item$tags;
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
key: index,
|
|
69
|
+
className: "teletext-list__panel__item"
|
|
70
|
+
}, item.image && item.imagePlacement === 'left' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
+
className: "teletext-list__panel__item_image"
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
73
|
+
alt: "img",
|
|
74
|
+
src: item.image
|
|
75
|
+
})) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
|
+
className: "teletext-list__panel__item__text"
|
|
77
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
className: "teletext-list__panel__item__text__title"
|
|
79
|
+
}, item.title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
+
className: "teletext-list__panel__item__text__description"
|
|
81
|
+
}, item.description), item.tags ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
82
|
+
className: "teletext-list__panel__item__text__tags"
|
|
83
|
+
}, (_item$tags = item.tags) === null || _item$tags === void 0 ? void 0 : _item$tags.map(function (tag, tagIndex) {
|
|
84
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
+
key: tagIndex,
|
|
86
|
+
className: tag.color
|
|
87
|
+
}, tag.name);
|
|
88
|
+
})) : null), item.image && item.imagePlacement === 'right' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
className: "teletext-list__panel__item_image"
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
91
|
+
alt: "img",
|
|
92
|
+
src: item.image
|
|
93
|
+
})) : null);
|
|
94
|
+
})));
|
|
95
|
+
};
|
|
96
|
+
TeletextList.displayName = 'TeletextList';
|
|
97
|
+
var _default = exports["default"] = TeletextList;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { ColorfulButtonProps } from './components/colorful-button';
|
|
2
|
+
export { default as ColorfulButton } from './components/colorful-button';
|
|
3
|
+
export type { ColorfulInputProps } from './components/colorful-input';
|
|
4
|
+
export { default as ColorfulInput } from './components/colorful-input';
|
|
5
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
6
|
+
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
+
declare const bizCssPrefix = "bizpack";
|
|
8
|
+
export { bizCssPrefix };
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.bizCssPrefix = exports.TeletextList = exports.ColorfulInput = exports.ColorfulButton = void 0;
|
|
6
|
+
var _colorfulButton = _interopRequireDefault(require("./components/colorful-button"));
|
|
7
|
+
exports.ColorfulButton = _colorfulButton["default"];
|
|
8
|
+
var _colorfulInput = _interopRequireDefault(require("./components/colorful-input"));
|
|
9
|
+
exports.ColorfulInput = _colorfulInput["default"];
|
|
10
|
+
var _teletextList = _interopRequireDefault(require("./components/teletext-list"));
|
|
11
|
+
exports.TeletextList = _teletextList["default"];
|
|
12
|
+
var bizCssPrefix = exports.bizCssPrefix = 'bizpack';
|
package/lib/index.scss
ADDED
package/lib/style.js
ADDED
package/lib/variables.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const ColorfulInputMeta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "ColorfulInput",
|
|
6
|
+
"title": "ColorfulInput",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@dckj-npm/dc-material",
|
|
12
|
+
"version": "0.1.0",
|
|
13
|
+
"exportName": "ColorfulInput",
|
|
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": "color",
|
|
25
|
+
"zh-CN": "color"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "color",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "StringSetter",
|
|
31
|
+
"isRequired": false,
|
|
32
|
+
"initialValue": ""
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"supports": {
|
|
37
|
+
"style": true
|
|
38
|
+
},
|
|
39
|
+
"component": {}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
43
|
+
{
|
|
44
|
+
"title": "ColorfulInput",
|
|
45
|
+
"screenshot": "",
|
|
46
|
+
"schema": {
|
|
47
|
+
"componentName": "ColorfulInput",
|
|
48
|
+
"props": {}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
export default {
|
|
54
|
+
...ColorfulInputMeta,
|
|
55
|
+
snippets
|
|
56
|
+
};
|