@dckj-npm/dc-material 0.1.7 → 0.1.9
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 -17
- package/lowcode/d-c-slider/meta.ts +331 -331
- package/lowcode/grid-nav/meta.ts +160 -0
- package/lowcode/menu-list/meta.ts +147 -0
- package/lowcode/navigation/meta.ts +152 -151
- package/lowcode/position/meta.ts +211 -0
- package/lowcode/search-bar/meta.ts +54 -0
- package/lowcode/tag-c/meta.ts +75 -0
- package/lowcode/teletext-list/meta.ts +44 -2
- package/lowcode/title1/meta.ts +1 -1
- package/lowcode/title2/meta.ts +1 -1
- package/package.json +110 -110
- package/build/docs/colorful-button.html +0 -48
- package/build/docs/colorful-input.html +0 -48
- package/build/docs/index.html +0 -48
- package/build/docs/umi.7f7df875.css +0 -8
- package/build/docs/umi.7face50a.js +0 -1
- package/build/docs/~demos/colorful-button-demo.html +0 -47
- package/build/docs/~demos/colorful-input-demo.html +0 -47
- package/build/index.css +0 -2
- package/build/index.html +0 -1
- package/build/index.js +0 -60
- package/build/lowcode/assets-daily.json +0 -67
- package/build/lowcode/assets-dev.json +0 -67
- package/build/lowcode/assets-prod.json +0 -67
- package/build/lowcode/designer.html +0 -302
- package/build/lowcode/index.html +0 -304
- package/build/lowcode/index.js +0 -1
- package/build/lowcode/meta.js +0 -1
- package/build/lowcode/preview.css +0 -1
- package/build/lowcode/preview.html +0 -33
- package/build/lowcode/preview.js +0 -308
- package/build/lowcode/render/default/view.css +0 -1
- package/build/lowcode/render/default/view.js +0 -295
- package/build/lowcode/view.css +0 -1
- package/build/lowcode/view.js +0 -295
- package/dist/BizComps.css +0 -1
- package/dist/BizComps.js +0 -7
- package/dist/BizComps.js.map +0 -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 +0 -13
- package/es/components/bottom-navigation/bottom-navigation.js +0 -39
- package/es/components/bottom-navigation/index.d.ts +0 -3
- package/es/components/bottom-navigation/index.js +0 -2
- package/es/components/bottom-navigation/index.scss +0 -16
- package/es/components/colorful-button/colorful-button.d.ts +0 -12
- package/es/components/colorful-button/colorful-button.js +0 -25
- package/es/components/colorful-button/index.d.ts +0 -3
- package/es/components/colorful-button/index.js +0 -2
- package/es/components/colorful-button/index.scss +0 -5
- package/es/components/colorful-input/colorful-input.d.ts +0 -8
- package/es/components/colorful-input/colorful-input.js +0 -19
- package/es/components/colorful-input/index.d.ts +0 -3
- package/es/components/colorful-input/index.js +0 -2
- package/es/components/colorful-input/index.scss +0 -5
- package/es/components/dc-slider/index.d.ts +0 -3
- package/es/components/dc-slider/index.js +0 -2
- package/es/components/dc-slider/index.scss +0 -8
- package/es/components/dc-slider/slider.d.ts +0 -32
- package/es/components/dc-slider/slider.js +0 -14
- 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/es/components/teletext-list/index.d.ts +0 -6
- package/es/components/teletext-list/index.js +0 -6
- package/es/components/teletext-list/index.scss +0 -16
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/es/components/teletext-list/teletext-list-item.js +0 -50
- package/es/components/teletext-list/teletext-list-item.scss +0 -74
- package/es/components/teletext-list/teletext-list.d.ts +0 -53
- package/es/components/teletext-list/teletext-list.js +0 -73
- package/es/components/title/index.d.ts +0 -8
- package/es/components/title/index.js +0 -7
- package/es/components/title/title-1.d.ts +0 -10
- package/es/components/title/title-1.js +0 -16
- package/es/components/title/title-1.scss +0 -26
- package/es/components/title/title-2.d.ts +0 -18
- package/es/components/title/title-2.js +0 -31
- package/es/components/title/title-2.scss +0 -22
- package/es/index.d.ts +0 -12
- package/es/index.js +0 -7
- package/es/index.scss +0 -3
- package/es/style.js +0 -3
- package/es/variables.d.ts +0 -2
- package/es/variables.js +0 -2
- package/es/variables.scss +0 -3
- 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 +0 -13
- package/lib/components/bottom-navigation/bottom-navigation.js +0 -46
- package/lib/components/bottom-navigation/index.d.ts +0 -3
- package/lib/components/bottom-navigation/index.js +0 -7
- package/lib/components/bottom-navigation/index.scss +0 -16
- package/lib/components/colorful-button/colorful-button.d.ts +0 -12
- package/lib/components/colorful-button/colorful-button.js +0 -32
- package/lib/components/colorful-button/index.d.ts +0 -3
- package/lib/components/colorful-button/index.js +0 -7
- package/lib/components/colorful-button/index.scss +0 -5
- package/lib/components/colorful-input/colorful-input.d.ts +0 -8
- package/lib/components/colorful-input/colorful-input.js +0 -26
- package/lib/components/colorful-input/index.d.ts +0 -3
- package/lib/components/colorful-input/index.js +0 -7
- package/lib/components/colorful-input/index.scss +0 -5
- package/lib/components/dc-slider/index.d.ts +0 -3
- package/lib/components/dc-slider/index.js +0 -7
- package/lib/components/dc-slider/index.scss +0 -8
- package/lib/components/dc-slider/slider.d.ts +0 -32
- package/lib/components/dc-slider/slider.js +0 -21
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/index.js +0 -7
- 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
- package/lib/components/teletext-list/index.d.ts +0 -6
- package/lib/components/teletext-list/index.js +0 -10
- package/lib/components/teletext-list/index.scss +0 -16
- package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/lib/components/teletext-list/teletext-list-item.js +0 -54
- package/lib/components/teletext-list/teletext-list-item.scss +0 -74
- package/lib/components/teletext-list/teletext-list.d.ts +0 -53
- package/lib/components/teletext-list/teletext-list.js +0 -77
- package/lib/components/title/index.d.ts +0 -8
- package/lib/components/title/index.js +0 -8
- package/lib/components/title/title-1.d.ts +0 -10
- package/lib/components/title/title-1.js +0 -21
- package/lib/components/title/title-1.scss +0 -26
- package/lib/components/title/title-2.d.ts +0 -18
- package/lib/components/title/title-2.js +0 -36
- package/lib/components/title/title-2.scss +0 -22
- package/lib/index.d.ts +0 -12
- package/lib/index.js +0 -15
- package/lib/index.scss +0 -3
- package/lib/style.js +0 -3
- package/lib/variables.d.ts +0 -2
- package/lib/variables.js +0 -5
- package/lib/variables.scss +0 -3
- package/lowcode_es/d-c-slider/meta.d.ts +0 -140
- package/lowcode_es/d-c-slider/meta.js +0 -298
- package/lowcode_es/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_es/d-c-slider/snippets.js +0 -36
- package/lowcode_es/meta.js +0 -168
- package/lowcode_es/navigation/meta.d.ts +0 -22
- package/lowcode_es/navigation/meta.js +0 -135
- package/lowcode_es/teletext-list/meta.d.ts +0 -22
- package/lowcode_es/teletext-list/meta.js +0 -259
- package/lowcode_es/title1/meta.d.ts +0 -22
- package/lowcode_es/title1/meta.js +0 -51
- package/lowcode_es/title2/meta.d.ts +0 -22
- package/lowcode_es/title2/meta.js +0 -83
- package/lowcode_es/view.js +0 -18
- package/lowcode_lib/d-c-slider/meta.d.ts +0 -140
- package/lowcode_lib/d-c-slider/meta.js +0 -303
- package/lowcode_lib/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_lib/d-c-slider/snippets.js +0 -40
- package/lowcode_lib/meta.js +0 -172
- package/lowcode_lib/navigation/meta.d.ts +0 -22
- package/lowcode_lib/navigation/meta.js +0 -140
- package/lowcode_lib/teletext-list/meta.d.ts +0 -22
- package/lowcode_lib/teletext-list/meta.js +0 -264
- package/lowcode_lib/title1/meta.d.ts +0 -22
- package/lowcode_lib/title1/meta.js +0 -56
- package/lowcode_lib/title2/meta.d.ts +0 -22
- package/lowcode_lib/title2/meta.js +0 -88
- package/lowcode_lib/view.js +0 -29
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["itemArray", "selectedColor"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Image } from '@alilc/lowcode-materials';
|
|
6
|
-
import "./index.scss";
|
|
7
|
-
var Navigation = function bottomNavigation(_ref) {
|
|
8
|
-
var itemArray = _ref.itemArray,
|
|
9
|
-
selectedColor = _ref.selectedColor,
|
|
10
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
-
var _React$useState = React.useState(0),
|
|
12
|
-
activeNum = _React$useState[0],
|
|
13
|
-
setActiveNum = _React$useState[1];
|
|
14
|
-
var clickHandle = function clickHandle(index) {
|
|
15
|
-
// 更新激活tab
|
|
16
|
-
setActiveNum(index);
|
|
17
|
-
};
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
19
|
-
className: "navigation"
|
|
20
|
-
}, otherProps), itemArray.map(function (item, index) {
|
|
21
|
-
var _item$selectedIcon;
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: "navigation-item",
|
|
24
|
-
onClick: function onClick() {
|
|
25
|
-
return clickHandle(index);
|
|
26
|
-
},
|
|
27
|
-
style: {
|
|
28
|
-
color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
|
|
29
|
-
}
|
|
30
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
31
|
-
src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
|
|
32
|
-
style: {
|
|
33
|
-
width: '24.5px',
|
|
34
|
-
height: '24.5px'
|
|
35
|
-
}
|
|
36
|
-
}), /*#__PURE__*/React.createElement("span", null, item.text));
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
export default Navigation;
|
|
@@ -1,16 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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,25 +0,0 @@
|
|
|
1
|
-
import _Button from "@alifd/next/es/button";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
-
var _excluded = ["type", "color", "style"];
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import "./index.scss";
|
|
7
|
-
var ColorfulButton = function ColorfulButton(_ref) {
|
|
8
|
-
var _ref$type = _ref.type,
|
|
9
|
-
type = _ref$type === void 0 ? 'primary' : _ref$type,
|
|
10
|
-
color = _ref.color,
|
|
11
|
-
_ref$style = _ref.style,
|
|
12
|
-
style = _ref$style === void 0 ? {} : _ref$style,
|
|
13
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
14
|
-
var _style = style || {};
|
|
15
|
-
if (color) {
|
|
16
|
-
_style.backgroundColor = color;
|
|
17
|
-
}
|
|
18
|
-
var _otherProps = otherProps || {};
|
|
19
|
-
_otherProps.style = _style;
|
|
20
|
-
return /*#__PURE__*/React.createElement(_Button, _extends({
|
|
21
|
-
type: type
|
|
22
|
-
}, _otherProps), "fusion button");
|
|
23
|
-
};
|
|
24
|
-
ColorfulButton.displayName = 'ColorfulButton';
|
|
25
|
-
export default ColorfulButton;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _Input from "@alifd/next/es/input";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["color", "style"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
var ColorfulInput = function ColorfulInput(_ref) {
|
|
7
|
-
var color = _ref.color,
|
|
8
|
-
_ref$style = _ref.style,
|
|
9
|
-
style = _ref$style === void 0 ? {} : _ref$style,
|
|
10
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
-
var _style = style || {};
|
|
12
|
-
if (color) {
|
|
13
|
-
_style.backgroundColor = color;
|
|
14
|
-
}
|
|
15
|
-
var _otherProps = otherProps || {};
|
|
16
|
-
_otherProps.style = _style;
|
|
17
|
-
return /*#__PURE__*/React.createElement(_Input, _otherProps);
|
|
18
|
-
};
|
|
19
|
-
export default ColorfulInput;
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _Slider from "@alifd/next/es/slider";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Image } from '@alilc/lowcode-materials';
|
|
4
|
-
import "./index.scss";
|
|
5
|
-
var DCSlider = function DCSlider(props) {
|
|
6
|
-
return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(_Slider, props, props.picUrls && props.picUrls.length > 0 ? props.picUrls.map(function (url, index) {
|
|
7
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
8
|
-
src: url,
|
|
9
|
-
alt: "Slide",
|
|
10
|
-
key: index
|
|
11
|
-
});
|
|
12
|
-
}) : /*#__PURE__*/React.createElement("div", null, "\u56FE\u7247\u4E3A\u7A7A")));
|
|
13
|
-
};
|
|
14
|
-
export default DCSlider;
|
|
@@ -1,16 +0,0 @@
|
|
|
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,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["itemArray", "selectedColor"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Image } from '@alilc/lowcode-materials';
|
|
6
|
-
import "./index.scss";
|
|
7
|
-
var Navigation = function bottomNavigation(_ref) {
|
|
8
|
-
var itemArray = _ref.itemArray,
|
|
9
|
-
selectedColor = _ref.selectedColor,
|
|
10
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
-
var _React$useState = React.useState(0),
|
|
12
|
-
activeNum = _React$useState[0],
|
|
13
|
-
setActiveNum = _React$useState[1];
|
|
14
|
-
var clickHandle = function clickHandle(index) {
|
|
15
|
-
// 更新激活tab
|
|
16
|
-
setActiveNum(index);
|
|
17
|
-
};
|
|
18
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
19
|
-
className: "navigation"
|
|
20
|
-
}, otherProps), itemArray.map(function (item, index) {
|
|
21
|
-
var _item$selectedIcon;
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: "navigation-item",
|
|
24
|
-
onClick: function onClick() {
|
|
25
|
-
return clickHandle(index);
|
|
26
|
-
},
|
|
27
|
-
style: {
|
|
28
|
-
color: activeNum === index ? selectedColor !== null && selectedColor !== void 0 ? selectedColor : '#4598FF' : ''
|
|
29
|
-
}
|
|
30
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
31
|
-
src: activeNum === index ? (_item$selectedIcon = item.selectedIcon) !== null && _item$selectedIcon !== void 0 ? _item$selectedIcon : item.icon : item.icon,
|
|
32
|
-
style: {
|
|
33
|
-
width: '24.5px',
|
|
34
|
-
height: '24.5px'
|
|
35
|
-
}
|
|
36
|
-
}), /*#__PURE__*/React.createElement("span", null, item.text));
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
export default Navigation;
|
|
@@ -1,42 +0,0 @@
|
|
|
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,50 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["onClick", "title", "image", "imagePlacement", "description", "tags"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import "./teletext-list-item.scss";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 数据
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
var TeletextListItem = function TeletextListItem(_ref) {
|
|
12
|
-
var _ref$onClick = _ref.onClick,
|
|
13
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
14
|
-
title = _ref.title,
|
|
15
|
-
image = _ref.image,
|
|
16
|
-
imagePlacement = _ref.imagePlacement,
|
|
17
|
-
description = _ref.description,
|
|
18
|
-
tags = _ref.tags,
|
|
19
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
20
|
-
var _otherProps = otherProps || {};
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
22
|
-
className: "teletext-list__panel__item",
|
|
23
|
-
onClick: onClick
|
|
24
|
-
}, _otherProps), image && imagePlacement === 'left' ? /*#__PURE__*/React.createElement("div", {
|
|
25
|
-
className: "teletext-list__panel__item_image"
|
|
26
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
27
|
-
alt: "img",
|
|
28
|
-
src: image
|
|
29
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "teletext-list__panel__item__text"
|
|
31
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "teletext-list__panel__item__text__title"
|
|
33
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "teletext-list__panel__item__text__description"
|
|
35
|
-
}, description), tags ? /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "teletext-list__panel__item__text__tags"
|
|
37
|
-
}, tags === null || tags === void 0 ? void 0 : tags.map(function (tag, tagIndex) {
|
|
38
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
39
|
-
key: tagIndex,
|
|
40
|
-
className: tag.color
|
|
41
|
-
}, tag.name);
|
|
42
|
-
})) : null), image && imagePlacement === 'right' ? /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: "teletext-list__panel__item_image"
|
|
44
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
45
|
-
alt: "img",
|
|
46
|
-
src: image
|
|
47
|
-
})) : null);
|
|
48
|
-
};
|
|
49
|
-
TeletextListItem.displayName = 'TeletextListItem';
|
|
50
|
-
export default TeletextListItem;
|
|
@@ -1,74 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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;
|