@dckj-npm/dc-material 0.1.6 → 0.1.8
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/index.js +12 -19
- 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 +295 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +295 -0
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +13 -13
- package/es/components/bottom-navigation/index.d.ts +3 -3
- 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 -3
- package/es/components/dc-slider/slider.d.ts +32 -32
- package/es/components/menu-list/index.d.ts +6 -0
- package/es/components/menu-list/index.js +6 -0
- package/es/components/menu-list/index.scss +16 -0
- package/es/components/menu-list/menu-list-item.d.ts +5 -0
- package/es/components/menu-list/menu-list-item.js +32 -0
- package/es/components/menu-list/menu-list-item.scss +49 -0
- package/es/components/menu-list/menu-list.d.ts +5 -0
- package/es/components/menu-list/menu-list.js +25 -0
- package/es/components/menu-list/types.d.ts +23 -0
- package/es/components/menu-list/types.js +1 -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 -16
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +2 -2
- package/es/components/teletext-list/teletext-list-item.scss +74 -74
- package/es/components/teletext-list/teletext-list.d.ts +53 -53
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -8
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -10
- package/es/components/title/title-1.scss +26 -26
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +14 -12
- package/es/index.js +1 -0
- package/es/index.scss +3 -3
- package/es/variables.d.ts +2 -2
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +13 -13
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- 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 -3
- package/lib/components/dc-slider/slider.d.ts +32 -32
- package/lib/components/menu-list/index.d.ts +6 -0
- package/lib/components/{position → menu-list}/index.js +5 -2
- package/lib/components/menu-list/index.scss +16 -0
- package/lib/components/menu-list/menu-list-item.d.ts +5 -0
- package/lib/components/menu-list/menu-list-item.js +37 -0
- package/lib/components/menu-list/menu-list-item.scss +49 -0
- package/lib/components/menu-list/menu-list.d.ts +5 -0
- package/lib/components/menu-list/menu-list.js +30 -0
- package/lib/components/menu-list/types.d.ts +23 -0
- package/lib/components/menu-list/types.js +3 -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 -16
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +2 -2
- package/lib/components/teletext-list/teletext-list-item.scss +74 -74
- package/lib/components/teletext-list/teletext-list.d.ts +53 -53
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -8
- package/lib/components/title/title-1.d.ts +10 -10
- package/lib/components/title/title-1.scss +26 -26
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +14 -12
- package/lib/index.js +3 -1
- package/lib/index.scss +3 -3
- package/lib/variables.d.ts +2 -2
- package/lowcode/d-c-slider/meta.ts +1 -1
- package/lowcode/d-c-slider/snippets.ts +42 -42
- package/lowcode/menu-list/meta.ts +147 -0
- package/lowcode/navigation/meta.ts +1 -1
- package/lowcode/teletext-list/meta.ts +300 -300
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/d-c-slider/meta.d.ts +140 -140
- package/lowcode_es/d-c-slider/meta.js +1 -1
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/menu-list/meta.d.ts +22 -0
- package/lowcode_es/menu-list/meta.js +128 -0
- package/lowcode_es/meta.js +8 -7
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/navigation/meta.js +1 -1
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.js +8 -3
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title1/meta.js +2 -1
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.js +2 -1
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/d-c-slider/meta.d.ts +140 -140
- package/lowcode_lib/d-c-slider/meta.js +1 -1
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/menu-list/meta.d.ts +22 -0
- package/lowcode_lib/menu-list/meta.js +133 -0
- package/lowcode_lib/meta.js +8 -7
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/navigation/meta.js +1 -1
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.js +8 -3
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.js +2 -1
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.js +2 -1
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -4
- package/es/components/position/index.d.ts +0 -3
- package/es/components/position/index.js +0 -2
- package/es/components/position/index.scss +0 -16
- package/es/components/position/position.d.ts +0 -13
- package/es/components/position/position.js +0 -39
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/index.scss +0 -16
- package/lib/components/position/position.d.ts +0 -13
- package/lib/components/position/position.js +0 -46
|
@@ -0,0 +1,30 @@
|
|
|
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 _menuListItem = _interopRequireDefault(require("./menu-list-item"));
|
|
11
|
+
var _excluded = ["dataList"];
|
|
12
|
+
var MenuList = function MenuList(_ref) {
|
|
13
|
+
var dataList = _ref.dataList,
|
|
14
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
15
|
+
var _otherProps = otherProps || {};
|
|
16
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
17
|
+
className: "menu-list__panel"
|
|
18
|
+
}, _otherProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
19
|
+
className: "menu-list__panel__item-list"
|
|
20
|
+
}, dataList.map(function (item, index) {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_menuListItem["default"], {
|
|
22
|
+
key: index,
|
|
23
|
+
title: item.title,
|
|
24
|
+
iconUrl: item.iconUrl,
|
|
25
|
+
handleClick: item.handleClick
|
|
26
|
+
});
|
|
27
|
+
})));
|
|
28
|
+
};
|
|
29
|
+
MenuList.displayName = 'MenuList';
|
|
30
|
+
var _default = exports["default"] = MenuList;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 数据
|
|
3
|
+
*/
|
|
4
|
+
export interface MenuListDataProps {
|
|
5
|
+
/**
|
|
6
|
+
* 菜单名称
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* 菜单图标地址
|
|
11
|
+
*/
|
|
12
|
+
iconUrl?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 点击事件
|
|
15
|
+
*/
|
|
16
|
+
handleClick?: Function;
|
|
17
|
+
}
|
|
18
|
+
export interface MenuListProps {
|
|
19
|
+
/**
|
|
20
|
+
* 数据
|
|
21
|
+
*/
|
|
22
|
+
dataList?: MenuListDataProps[];
|
|
23
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图文列表
|
|
3
|
-
*/
|
|
4
|
-
import TeletextList from './teletext-list';
|
|
5
|
-
export type { TeletextListProps } from './teletext-list';
|
|
6
|
-
export default TeletextList;
|
|
1
|
+
/**
|
|
2
|
+
* 图文列表
|
|
3
|
+
*/
|
|
4
|
+
import TeletextList from './teletext-list';
|
|
5
|
+
export type { TeletextListProps } from './teletext-list';
|
|
6
|
+
export default TeletextList;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports["default"] = void 0;
|
|
6
6
|
var _teletextList = _interopRequireDefault(require("./teletext-list"));
|
|
7
|
-
/**
|
|
8
|
-
* 图文列表
|
|
7
|
+
/**
|
|
8
|
+
* 图文列表
|
|
9
9
|
*/
|
|
10
10
|
var _default = exports["default"] = _teletextList["default"];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.teletext-list__panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 10px;
|
|
7
|
-
|
|
8
|
-
.teletext-list__panel__item-list {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
gap: 10px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.teletext-list__panel {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
|
|
8
|
+
.teletext-list__panel__item-list {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './teletext-list-item.scss';
|
|
3
|
-
/**
|
|
4
|
-
* 数据
|
|
5
|
-
*/
|
|
6
|
-
interface TeletextListItemProps {
|
|
7
|
-
/**
|
|
8
|
-
* 点击事件
|
|
9
|
-
*/
|
|
10
|
-
onClick?: (e: any) => void;
|
|
11
|
-
/**
|
|
12
|
-
* 标题
|
|
13
|
-
*/
|
|
14
|
-
title?: string;
|
|
15
|
-
/**
|
|
16
|
-
* 图片地址
|
|
17
|
-
*/
|
|
18
|
-
image?: string;
|
|
19
|
-
/**
|
|
20
|
-
* 图片位置
|
|
21
|
-
*/
|
|
22
|
-
imagePlacement?: "left" | "right" | "none";
|
|
23
|
-
/**
|
|
24
|
-
* 说明
|
|
25
|
-
*/
|
|
26
|
-
description?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 标签列表
|
|
29
|
-
*/
|
|
30
|
-
tags?: {
|
|
31
|
-
/**
|
|
32
|
-
* 标签名称
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* 标签颜色
|
|
37
|
-
*/
|
|
38
|
-
color: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
declare const TeletextListItem: React.FC<TeletextListItemProps>;
|
|
42
|
-
export default TeletextListItem;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './teletext-list-item.scss';
|
|
3
|
+
/**
|
|
4
|
+
* 数据
|
|
5
|
+
*/
|
|
6
|
+
interface TeletextListItemProps {
|
|
7
|
+
/**
|
|
8
|
+
* 点击事件
|
|
9
|
+
*/
|
|
10
|
+
onClick?: (e: any) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 标题
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 图片地址
|
|
17
|
+
*/
|
|
18
|
+
image?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 图片位置
|
|
21
|
+
*/
|
|
22
|
+
imagePlacement?: "left" | "right" | "none";
|
|
23
|
+
/**
|
|
24
|
+
* 说明
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 标签列表
|
|
29
|
+
*/
|
|
30
|
+
tags?: {
|
|
31
|
+
/**
|
|
32
|
+
* 标签名称
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* 标签颜色
|
|
37
|
+
*/
|
|
38
|
+
color: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
declare const TeletextListItem: React.FC<TeletextListItemProps>;
|
|
42
|
+
export default TeletextListItem;
|
|
@@ -8,8 +8,8 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./teletext-list-item.scss");
|
|
10
10
|
var _excluded = ["onClick", "title", "image", "imagePlacement", "description", "tags"];
|
|
11
|
-
/**
|
|
12
|
-
* 数据
|
|
11
|
+
/**
|
|
12
|
+
* 数据
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var TeletextListItem = function TeletextListItem(_ref) {
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.teletext-list__panel__item {
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 5px;
|
|
6
|
-
padding-bottom: 10px;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
|
|
9
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
10
|
-
|
|
11
|
-
.teletext-list__panel__item_image {
|
|
12
|
-
width: 90px;
|
|
13
|
-
height: 71px;
|
|
14
|
-
border-radius: 5px;
|
|
15
|
-
flex: 0 0 auto;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
|
|
18
|
-
& > img {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
object-fit: cover;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.teletext-list__panel__item__text {
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
gap: 3px;
|
|
30
|
-
|
|
31
|
-
.teletext-list__panel__item__text__title {
|
|
32
|
-
font-size: 15px;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
color: #000000;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.teletext-list__panel__item__text__description {
|
|
38
|
-
-webkit-line-clamp: 1;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
color: #686868;
|
|
41
|
-
-webkit-box-orient: vertical;
|
|
42
|
-
display: -webkit-box;
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
text-overflow: ellipsis;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.teletext-list__panel__item__text__tags {
|
|
48
|
-
display: flex;
|
|
49
|
-
gap: 6px;
|
|
50
|
-
|
|
51
|
-
& > span {
|
|
52
|
-
padding: 2px 6px;
|
|
53
|
-
border-radius: 4px;
|
|
54
|
-
background-color: black;
|
|
55
|
-
color: white;
|
|
56
|
-
font-size: 11px;
|
|
57
|
-
|
|
58
|
-
&.orange {
|
|
59
|
-
color: #F1770E;
|
|
60
|
-
background-color: rgba(241, 119, 14, 0.1);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.blue {
|
|
64
|
-
color: #2972DD;
|
|
65
|
-
background-color: rgba(41, 114, 221, 0.1);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
1
|
+
@import '../../variables.scss';
|
|
2
|
+
|
|
3
|
+
.teletext-list__panel__item {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 5px;
|
|
6
|
+
padding-bottom: 10px;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
|
|
9
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
10
|
+
|
|
11
|
+
.teletext-list__panel__item_image {
|
|
12
|
+
width: 90px;
|
|
13
|
+
height: 71px;
|
|
14
|
+
border-radius: 5px;
|
|
15
|
+
flex: 0 0 auto;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
& > img {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
object-fit: cover;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.teletext-list__panel__item__text {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 3px;
|
|
30
|
+
|
|
31
|
+
.teletext-list__panel__item__text__title {
|
|
32
|
+
font-size: 15px;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
color: #000000;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.teletext-list__panel__item__text__description {
|
|
38
|
+
-webkit-line-clamp: 1;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
color: #686868;
|
|
41
|
+
-webkit-box-orient: vertical;
|
|
42
|
+
display: -webkit-box;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.teletext-list__panel__item__text__tags {
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 6px;
|
|
50
|
+
|
|
51
|
+
& > span {
|
|
52
|
+
padding: 2px 6px;
|
|
53
|
+
border-radius: 4px;
|
|
54
|
+
background-color: black;
|
|
55
|
+
color: white;
|
|
56
|
+
font-size: 11px;
|
|
57
|
+
|
|
58
|
+
&.orange {
|
|
59
|
+
color: #F1770E;
|
|
60
|
+
background-color: rgba(241, 119, 14, 0.1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.blue {
|
|
64
|
+
color: #2972DD;
|
|
65
|
+
background-color: rgba(41, 114, 221, 0.1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
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
|
-
* 点击事件
|
|
48
|
-
* @param e
|
|
49
|
-
*/
|
|
50
|
-
onClick?: (e: any) => void;
|
|
51
|
-
}
|
|
52
|
-
declare const TeletextList: React.FC<TeletextListProps>;
|
|
53
|
-
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
|
+
* 点击事件
|
|
48
|
+
* @param e
|
|
49
|
+
*/
|
|
50
|
+
onClick?: (e: any) => void;
|
|
51
|
+
}
|
|
52
|
+
declare const TeletextList: React.FC<TeletextListProps>;
|
|
53
|
+
export default TeletextList;
|
|
@@ -10,8 +10,8 @@ require("./index.scss");
|
|
|
10
10
|
var _title = require("../title");
|
|
11
11
|
var _teletextListItem = _interopRequireDefault(require("./teletext-list-item"));
|
|
12
12
|
var _excluded = ["title", "dataList", "onClick"];
|
|
13
|
-
/**
|
|
14
|
-
* 数据
|
|
13
|
+
/**
|
|
14
|
+
* 数据
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
var DEFAULT_DATA_1 = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标题
|
|
3
|
-
*/
|
|
4
|
-
import Title1 from './title-1';
|
|
5
|
-
import Title2 from './title-2';
|
|
6
|
-
export type { Title1Props } from './title-1';
|
|
7
|
-
export type { Title2Props } from './title-2';
|
|
8
|
-
export { Title1, Title2 };
|
|
1
|
+
/**
|
|
2
|
+
* 标题
|
|
3
|
+
*/
|
|
4
|
+
import Title1 from './title-1';
|
|
5
|
+
import Title2 from './title-2';
|
|
6
|
+
export type { Title1Props } from './title-1';
|
|
7
|
+
export type { Title2Props } from './title-2';
|
|
8
|
+
export { Title1, Title2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './title-1.scss';
|
|
3
|
-
export interface Title1Props {
|
|
4
|
-
/**
|
|
5
|
-
* 标题
|
|
6
|
-
*/
|
|
7
|
-
title?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Title1: React.FC<Title1Props>;
|
|
10
|
-
export default Title1;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './title-1.scss';
|
|
3
|
+
export interface Title1Props {
|
|
4
|
+
/**
|
|
5
|
+
* 标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Title1: React.FC<Title1Props>;
|
|
10
|
+
export default Title1;
|
|
@@ -1,26 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,18 +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;
|
|
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;
|
|
@@ -1,22 +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
|
-
}
|
|
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
|
+
}
|