@dckj-npm/dc-material 0.1.0 → 0.1.3
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/docs/colorful-button.html +48 -0
- package/build/docs/colorful-input.html +48 -0
- package/build/docs/index.html +48 -0
- package/build/docs/umi.6846fe8b.js +1 -0
- package/build/docs/umi.7f7df875.css +8 -0
- package/build/docs/~demos/colorful-button-demo.html +47 -0
- package/build/docs/~demos/colorful-input-demo.html +47 -0
- package/build/index.js +19 -12
- 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 +147 -147
- 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/assets/icon/navigation/index-selected.png +0 -0
- package/es/assets/icon/navigation/index.png +0 -0
- package/es/assets/icon/navigation/message-selected.png +0 -0
- package/es/assets/icon/navigation/message.png +0 -0
- package/es/assets/icon/navigation/mine-selected.png +0 -0
- package/es/assets/icon/navigation/mine.png +0 -0
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/es/components/bottom-navigation/bottom-navigation.js +39 -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/colorful-button/colorful-button.d.ts +12 -12
- package/es/components/colorful-button/index.d.ts +3 -3
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- 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/position/index.d.ts +3 -0
- package/es/components/position/index.js +2 -0
- package/es/components/position/index.scss +16 -0
- package/es/components/position/position.d.ts +13 -0
- package/es/components/position/position.js +39 -0
- package/es/components/teletext-list/index.d.ts +6 -6
- package/es/components/teletext-list/index.js +2 -2
- package/es/components/teletext-list/index.scss +16 -114
- package/es/components/teletext-list/teletext-list-item.d.ts +38 -0
- package/es/components/teletext-list/teletext-list-item.js +47 -0
- package/es/components/teletext-list/teletext-list-item.scss +74 -0
- package/es/components/teletext-list/teletext-list.d.ts +48 -48
- package/es/components/teletext-list/teletext-list.js +10 -33
- 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 +12 -8
- package/es/index.js +4 -2
- package/es/index.scss +3 -3
- package/es/style.js +2 -2
- package/es/variables.d.ts +2 -2
- package/lib/assets/icon/navigation/index-selected.png +0 -0
- package/lib/assets/icon/navigation/index.png +0 -0
- package/lib/assets/icon/navigation/message-selected.png +0 -0
- package/lib/assets/icon/navigation/message.png +0 -0
- package/lib/assets/icon/navigation/mine-selected.png +0 -0
- package/lib/assets/icon/navigation/mine.png +0 -0
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -0
- package/lib/components/bottom-navigation/bottom-navigation.js +46 -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/colorful-button/colorful-button.d.ts +12 -12
- package/lib/components/colorful-button/index.d.ts +3 -3
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- 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/position/index.d.ts +3 -0
- package/lib/components/position/index.js +7 -0
- package/lib/components/position/index.scss +16 -0
- package/lib/components/position/position.d.ts +13 -0
- package/lib/components/position/position.js +46 -0
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.js +2 -2
- package/lib/components/teletext-list/index.scss +16 -114
- package/lib/components/teletext-list/teletext-list-item.d.ts +38 -0
- package/lib/components/teletext-list/teletext-list-item.js +51 -0
- package/lib/components/teletext-list/teletext-list-item.scss +74 -0
- package/lib/components/teletext-list/teletext-list.d.ts +48 -48
- package/lib/components/teletext-list/teletext-list.js +10 -33
- 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 +12 -8
- package/lib/index.js +8 -5
- package/lib/index.scss +3 -3
- package/lib/style.js +2 -2
- package/lib/variables.d.ts +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 +151 -0
- package/lowcode/teletext-list/meta.ts +292 -292
- package/lowcode/{colorful-input → title1}/meta.ts +58 -56
- 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 +8 -6
- package/lowcode_es/{colorful-input → navigation}/meta.d.ts +22 -22
- package/lowcode_es/navigation/meta.js +135 -0
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.js +3 -3
- package/{lowcode_lib/colorful-button → lowcode_es/title1}/meta.d.ts +22 -22
- package/lowcode_es/{colorful-input → title1}/meta.js +15 -13
- package/lowcode_es/{colorful-button → title2}/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.js +82 -0
- package/lowcode_es/view.js +3 -3
- 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 +8 -6
- package/lowcode_lib/{colorful-input → navigation}/meta.d.ts +22 -22
- package/lowcode_lib/navigation/meta.js +140 -0
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- 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 +38 -41
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -4
- package/lowcode/colorful-button/meta.ts +0 -102
- package/lowcode_es/colorful-button/meta.js +0 -85
|
@@ -1,48 +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;
|
|
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;
|
|
@@ -3,9 +3,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
|
3
3
|
var _excluded = ["title", "dataList"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import "./index.scss";
|
|
6
|
+
import { Title1 } from "../title";
|
|
7
|
+
import { default as TeletextListItem } from "./teletext-list-item";
|
|
6
8
|
|
|
7
|
-
/**
|
|
8
|
-
* 数据
|
|
9
|
+
/**
|
|
10
|
+
* 数据
|
|
9
11
|
*/
|
|
10
12
|
|
|
11
13
|
var DEFAULT_DATA_1 = {
|
|
@@ -54,39 +56,14 @@ var TeletextList = function TeletextList(_ref) {
|
|
|
54
56
|
var _otherProps = otherProps || {};
|
|
55
57
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
56
58
|
className: "teletext-list__panel"
|
|
57
|
-
}, _otherProps),
|
|
58
|
-
|
|
59
|
-
}
|
|
59
|
+
}, _otherProps), /*#__PURE__*/React.createElement(Title1, {
|
|
60
|
+
title: title
|
|
61
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
60
62
|
className: "teletext-list__panel__item-list"
|
|
61
63
|
}, dataList.map(function (item, index) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
className: "teletext-list__panel__item"
|
|
66
|
-
}, item.image && item.imagePlacement === 'left' ? /*#__PURE__*/React.createElement("div", {
|
|
67
|
-
className: "teletext-list__panel__item_image"
|
|
68
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
69
|
-
alt: "img",
|
|
70
|
-
src: item.image
|
|
71
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "teletext-list__panel__item__text"
|
|
73
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className: "teletext-list__panel__item__text__title"
|
|
75
|
-
}, item.title), /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: "teletext-list__panel__item__text__description"
|
|
77
|
-
}, item.description), item.tags ? /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: "teletext-list__panel__item__text__tags"
|
|
79
|
-
}, (_item$tags = item.tags) === null || _item$tags === void 0 ? void 0 : _item$tags.map(function (tag, tagIndex) {
|
|
80
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
81
|
-
key: tagIndex,
|
|
82
|
-
className: tag.color
|
|
83
|
-
}, tag.name);
|
|
84
|
-
})) : null), item.image && item.imagePlacement === 'right' ? /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
className: "teletext-list__panel__item_image"
|
|
86
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
87
|
-
alt: "img",
|
|
88
|
-
src: item.image
|
|
89
|
-
})) : null);
|
|
64
|
+
return /*#__PURE__*/React.createElement(TeletextListItem, _extends({
|
|
65
|
+
key: index
|
|
66
|
+
}, item));
|
|
90
67
|
})));
|
|
91
68
|
};
|
|
92
69
|
TeletextList.displayName = 'TeletextList';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import "./title-1.scss";
|
|
6
|
+
var Title1 = function Title1(_ref) {
|
|
7
|
+
var _ref$title = _ref.title,
|
|
8
|
+
title = _ref$title === void 0 ? '标题标题' : _ref$title,
|
|
9
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
+
var _otherProps = otherProps || {};
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12
|
+
className: "custom-title-1"
|
|
13
|
+
}, _otherProps), /*#__PURE__*/React.createElement("span", null, title));
|
|
14
|
+
};
|
|
15
|
+
Title1.displayName = 'Title1';
|
|
16
|
+
export default Title1;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-1 {
|
|
4
|
+
|
|
5
|
+
& > span {
|
|
6
|
+
position: relative;
|
|
7
|
+
font-size: 17px;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
color: #000000;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
|
|
12
|
+
&::after {
|
|
13
|
+
content: '';
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: -2px;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 5px;
|
|
19
|
+
background: linear-gradient(-30deg, #95CDFE, #61A0FE);
|
|
20
|
+
border-radius: 5px;
|
|
21
|
+
opacity: 0.6;
|
|
22
|
+
z-index: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './title-2.scss';
|
|
3
|
+
export interface Title2Props {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 颜色
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* tip颜色
|
|
14
|
+
*/
|
|
15
|
+
tipColor?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Title2: React.FC<Title2Props>;
|
|
18
|
+
export default Title2;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title", "color", "tipColor"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import "./title-2.scss";
|
|
6
|
+
var Title2 = function Title2(_ref) {
|
|
7
|
+
var _ref$title = _ref.title,
|
|
8
|
+
title = _ref$title === void 0 ? '标题标题' : _ref$title,
|
|
9
|
+
_ref$color = _ref.color,
|
|
10
|
+
color = _ref$color === void 0 ? '#144477' : _ref$color,
|
|
11
|
+
_ref$tipColor = _ref.tipColor,
|
|
12
|
+
tipColor = _ref$tipColor === void 0 ? '#388AF7' : _ref$tipColor,
|
|
13
|
+
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
|
+
var _otherProps = otherProps || {};
|
|
15
|
+
var colorStyle = color ? {
|
|
16
|
+
color: color
|
|
17
|
+
} : {};
|
|
18
|
+
var tipColorStyle = tipColor ? {
|
|
19
|
+
'backgroundColor': tipColor
|
|
20
|
+
} : {};
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
22
|
+
className: "custom-title-2"
|
|
23
|
+
}, _otherProps), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "tips",
|
|
25
|
+
style: tipColorStyle
|
|
26
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
27
|
+
style: colorStyle
|
|
28
|
+
}, title)));
|
|
29
|
+
};
|
|
30
|
+
Title2.displayName = 'Title2';
|
|
31
|
+
export default Title2;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.custom-title-2 {
|
|
4
|
+
|
|
5
|
+
& > div {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
color: #144477;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 3.5px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
|
|
13
|
+
& > div.tips {
|
|
14
|
+
content: '';
|
|
15
|
+
display: inline-block;
|
|
16
|
+
width: 3.5px;
|
|
17
|
+
height: 14.5px;
|
|
18
|
+
background-color: #388AF7;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export { default as
|
|
3
|
-
export type {
|
|
4
|
-
export { default as
|
|
5
|
-
export type { TeletextListProps } from './components/teletext-list';
|
|
6
|
-
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
-
|
|
8
|
-
export {
|
|
1
|
+
export type { ComponentProps } from './components/dc-slider';
|
|
2
|
+
export { default as DCSlider } from './components/dc-slider';
|
|
3
|
+
export type { NavigationProps } from './components/bottom-navigation';
|
|
4
|
+
export { default as Navigation } from './components/bottom-navigation';
|
|
5
|
+
export type { TeletextListProps } from './components/teletext-list';
|
|
6
|
+
export { default as TeletextList } from './components/teletext-list';
|
|
7
|
+
export type { Title1Props } from './components/title';
|
|
8
|
+
export { Title1 } from './components/title';
|
|
9
|
+
export type { Title2Props } from './components/title';
|
|
10
|
+
export { Title2 } from './components/title';
|
|
11
|
+
declare const bizCssPrefix = "bizpack";
|
|
12
|
+
export { bizCssPrefix };
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as DCSlider } from "./components/dc-slider";
|
|
2
|
+
export { default as Navigation } from "./components/bottom-navigation";
|
|
3
3
|
export { default as TeletextList } from "./components/teletext-list";
|
|
4
|
+
export { Title1 } from "./components/title";
|
|
5
|
+
export { Title2 } from "./components/title";
|
|
4
6
|
var bizCssPrefix = 'bizpack';
|
|
5
7
|
export { bizCssPrefix };
|
package/es/index.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import './components/colorful-button/index.scss';
|
|
2
|
-
@import './components/colorful-input/index.scss';
|
|
3
|
-
@import './components/teletext-list/index.scss';
|
|
1
|
+
@import './components/colorful-button/index.scss';
|
|
2
|
+
@import './components/colorful-input/index.scss';
|
|
3
|
+
@import './components/teletext-list/index.scss';
|
package/es/style.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import '@alifd/next/es/
|
|
2
|
-
import '@
|
|
1
|
+
import '@alifd/next/es/slider/style';
|
|
2
|
+
import '@alilc/lowcode-materials/lib/style.js';
|
|
3
3
|
import './index.scss';
|
package/es/variables.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const bizCssPrefix = "bizpack";
|
|
2
|
-
export { bizCssPrefix };
|
|
1
|
+
declare const bizCssPrefix = "bizpack";
|
|
2
|
+
export { bizCssPrefix };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface Navigation {
|
|
4
|
+
text: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
selectedIcon: string;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationProps {
|
|
9
|
+
itemArray: Navigation[];
|
|
10
|
+
selectedColor: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Navigation: React.FC<NavigationProps>;
|
|
13
|
+
export default Navigation;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _lowcodeMaterials = require("@alilc/lowcode-materials");
|
|
10
|
+
require("./index.scss");
|
|
11
|
+
var _excluded = ["itemArray", "selectedColor"];
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
var Navigation = function bottomNavigation(_ref) {
|
|
15
|
+
var itemArray = _ref.itemArray,
|
|
16
|
+
selectedColor = _ref.selectedColor,
|
|
17
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
18
|
+
var _React$useState = React.useState(0),
|
|
19
|
+
activeNum = _React$useState[0],
|
|
20
|
+
setActiveNum = _React$useState[1];
|
|
21
|
+
var clickHandle = function clickHandle(index) {
|
|
22
|
+
// 更新激活tab
|
|
23
|
+
setActiveNum(index);
|
|
24
|
+
};
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
26
|
+
className: "navigation"
|
|
27
|
+
}, otherProps), itemArray.map(function (item, index) {
|
|
28
|
+
var _item$selectedIcon;
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: "navigation-item",
|
|
31
|
+
onClick: function onClick() {
|
|
32
|
+
return clickHandle(index);
|
|
33
|
+
},
|
|
34
|
+
style: {
|
|
35
|
+
color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
|
|
38
|
+
src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
|
|
39
|
+
style: {
|
|
40
|
+
width: '24.5px',
|
|
41
|
+
height: '24.5px'
|
|
42
|
+
}
|
|
43
|
+
}), /*#__PURE__*/React.createElement("span", null, item.text));
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
var _default = exports["default"] = Navigation;
|
|
@@ -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 _bottomNavigation = _interopRequireDefault(require("./bottom-navigation"));
|
|
7
|
+
var _default = exports["default"] = _bottomNavigation["default"];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.navigation {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 9px 50px 6px 50px;
|
|
7
|
+
position: fixed;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
&-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* 类型
|
|
6
|
-
*/
|
|
7
|
-
type?: "primary" | "secondary" | "normal";
|
|
8
|
-
color?: string;
|
|
9
|
-
style?: object;
|
|
10
|
-
}
|
|
11
|
-
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
-
export default ColorfulButton;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* 类型
|
|
6
|
+
*/
|
|
7
|
+
type?: "primary" | "secondary" | "normal";
|
|
8
|
+
color?: string;
|
|
9
|
+
style?: object;
|
|
10
|
+
}
|
|
11
|
+
declare const ColorfulButton: React.FC<ColorfulButtonProps>;
|
|
12
|
+
export default ColorfulButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulButton from './colorful-button';
|
|
2
|
-
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
-
export default ColorfulButton;
|
|
1
|
+
import ColorfulButton from './colorful-button';
|
|
2
|
+
export type { ColorfulButtonProps } from './colorful-button';
|
|
3
|
+
export default ColorfulButton;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ColorfulInputProps {
|
|
4
|
-
color?: string;
|
|
5
|
-
style?: object;
|
|
6
|
-
}
|
|
7
|
-
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
-
export default ColorfulInput;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ColorfulInputProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
style?: object;
|
|
6
|
+
}
|
|
7
|
+
declare const ColorfulInput: React.FC<ColorfulInputProps>;
|
|
8
|
+
export default ColorfulInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ColorfulInput from './colorful-input';
|
|
2
|
-
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
-
export default ColorfulInput;
|
|
1
|
+
import ColorfulInput from './colorful-input';
|
|
2
|
+
export type { ColorfulInputProps } from './colorful-input';
|
|
3
|
+
export 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 _slider = _interopRequireDefault(require("./slider"));
|
|
7
|
+
var _default = exports["default"] = _slider["default"];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
prefix: string;
|
|
5
|
+
animation: string;
|
|
6
|
+
arrows: true;
|
|
7
|
+
arrowSize: string;
|
|
8
|
+
arrowPosition: string;
|
|
9
|
+
arrowDirection: string;
|
|
10
|
+
autoplaySpeed: number;
|
|
11
|
+
dots: boolean;
|
|
12
|
+
dotsDirection: string;
|
|
13
|
+
draggable: boolean;
|
|
14
|
+
infinite: boolean;
|
|
15
|
+
slide: string;
|
|
16
|
+
slideDirection: string;
|
|
17
|
+
slidesToShow: number;
|
|
18
|
+
slidesToScroll: number;
|
|
19
|
+
speed: number;
|
|
20
|
+
triggerType: string;
|
|
21
|
+
centerPadding: string;
|
|
22
|
+
cssEase: string;
|
|
23
|
+
edgeFriction: number;
|
|
24
|
+
swipe: boolean;
|
|
25
|
+
touchMove: boolean;
|
|
26
|
+
touchThreshold: number;
|
|
27
|
+
useCSS: boolean;
|
|
28
|
+
waitForAnimate: boolean;
|
|
29
|
+
picUrls: string[];
|
|
30
|
+
}
|
|
31
|
+
declare const DCSlider: React.FC<ComponentProps>;
|
|
32
|
+
export default DCSlider;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _slider = _interopRequireDefault(require("@alifd/next/lib/slider"));
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _lowcodeMaterials = require("@alilc/lowcode-materials");
|
|
9
|
+
require("./index.scss");
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
var DCSlider = function DCSlider(props) {
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(_slider["default"], props, props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
|
|
14
|
+
return /*#__PURE__*/React.createElement(_lowcodeMaterials.Image, {
|
|
15
|
+
src: url,
|
|
16
|
+
alt: "Slide",
|
|
17
|
+
key: index
|
|
18
|
+
});
|
|
19
|
+
}) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A")));
|
|
20
|
+
};
|
|
21
|
+
var _default = exports["default"] = DCSlider;
|
|
@@ -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 _position = _interopRequireDefault(require("./position"));
|
|
7
|
+
var _default = exports["default"] = _position["default"];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.navigation {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 9px 50px 6px 50px;
|
|
7
|
+
position: fixed;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
&-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
}
|