@dckj-npm/dc-material 0.1.39 → 0.1.40
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/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +6 -6
- package/build/lowcode/render/default/view.js +6 -6
- package/build/lowcode/view.js +6 -6
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +4 -4
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +24 -24
- package/es/components/button/button.d.ts +14 -14
- package/es/components/button/index.d.ts +6 -6
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -14
- package/es/components/carousel/carousel.scss +32 -32
- 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-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +3 -3
- package/es/components/goods-card-list/types.d.ts +45 -45
- package/es/components/grid-nav/grid-nav.d.ts +13 -13
- package/es/components/grid-nav/index.d.ts +3 -3
- package/es/components/grid-nav/index.scss +41 -37
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- package/es/components/integral-task/integral-task.d.ts +40 -40
- package/es/components/menu-list/index.d.ts +6 -6
- package/es/components/menu-list/index.js +2 -2
- package/es/components/menu-list/index.scss +16 -16
- package/es/components/menu-list/menu-list-item.d.ts +5 -5
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -5
- package/es/components/menu-list/types.d.ts +23 -23
- package/es/components/message-list/index.d.ts +6 -6
- package/es/components/message-list/index.js +2 -2
- package/es/components/message-list/index.scss +22 -22
- package/es/components/message-list/message-list-item.d.ts +29 -29
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +50 -50
- package/es/components/message-list/message-list.d.ts +32 -32
- package/es/components/notice-bar/index.d.ts +3 -3
- package/es/components/notice-bar/index.scss +29 -29
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -37
- package/es/components/position/entity.d.ts +5 -5
- package/es/components/position/index.d.ts +3 -3
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-left.d.ts +9 -9
- package/es/components/position/position-list.d.ts +12 -12
- package/es/components/position/position.d.ts +8 -8
- package/es/components/radio-group/index.d.ts +8 -8
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/radio-group/radio-group-item.d.ts +48 -48
- package/es/components/radio-group/radio-group.d.ts +52 -52
- package/es/components/rich-text/index.d.ts +6 -0
- package/es/components/rich-text/index.js +6 -0
- package/es/components/rich-text/index.scss +8 -0
- package/es/components/rich-text/rich-text.d.ts +14 -0
- package/es/components/rich-text/rich-text.js +28 -0
- package/es/components/search-bar/index.d.ts +3 -3
- package/es/components/search-bar/index.scss +13 -13
- package/es/components/search-bar/search-bar.d.ts +7 -7
- package/es/components/swiper/index.d.ts +3 -3
- package/es/components/swiper/index.scss +12 -12
- package/es/components/swiper/swiper.d.ts +47 -47
- package/es/components/tab/index.d.ts +6 -6
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +23 -23
- package/es/components/tab/tab.d.ts +23 -23
- package/es/components/tab-container/index.d.ts +3 -3
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -10
- package/es/components/tab-container-item/index.d.ts +3 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +11 -9
- package/es/components/tab-container-item/tab-container-item.js +7 -2
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- package/es/components/tag/tag.d.ts +14 -14
- 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 +19 -19
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +8 -4
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +61 -61
- 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 +25 -25
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +42 -40
- package/es/index.js +4 -0
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/button.d.ts +14 -14
- package/lib/components/button/index.d.ts +6 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -14
- package/lib/components/carousel/carousel.scss +32 -32
- 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-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +3 -3
- package/lib/components/goods-card-list/types.d.ts +45 -45
- package/lib/components/grid-nav/grid-nav.d.ts +13 -13
- package/lib/components/grid-nav/index.d.ts +3 -3
- package/lib/components/grid-nav/index.scss +41 -37
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- package/lib/components/integral-task/integral-task.d.ts +40 -40
- package/lib/components/menu-list/index.d.ts +6 -6
- package/lib/components/menu-list/index.js +2 -2
- package/lib/components/menu-list/index.scss +16 -16
- package/lib/components/menu-list/menu-list-item.d.ts +5 -5
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -5
- package/lib/components/menu-list/types.d.ts +23 -23
- package/lib/components/message-list/index.d.ts +6 -6
- package/lib/components/message-list/index.js +2 -2
- package/lib/components/message-list/index.scss +22 -22
- package/lib/components/message-list/message-list-item.d.ts +29 -29
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +50 -50
- package/lib/components/message-list/message-list.d.ts +32 -32
- package/lib/components/notice-bar/index.d.ts +3 -3
- package/lib/components/notice-bar/index.scss +29 -29
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -37
- package/lib/components/position/entity.d.ts +5 -5
- package/lib/components/position/index.d.ts +3 -3
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-left.d.ts +9 -9
- package/lib/components/position/position-list.d.ts +12 -12
- package/lib/components/position/position.d.ts +8 -8
- package/lib/components/radio-group/index.d.ts +8 -8
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -48
- package/lib/components/radio-group/radio-group.d.ts +52 -52
- package/lib/components/rich-text/index.d.ts +6 -0
- package/lib/components/rich-text/index.js +6 -0
- package/lib/components/rich-text/index.scss +8 -0
- package/lib/components/rich-text/rich-text.d.ts +14 -0
- package/lib/components/rich-text/rich-text.js +33 -0
- package/lib/components/search-bar/index.d.ts +3 -3
- package/lib/components/search-bar/index.scss +13 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -7
- package/lib/components/swiper/index.d.ts +3 -3
- package/lib/components/swiper/index.scss +12 -12
- package/lib/components/swiper/swiper.d.ts +47 -47
- package/lib/components/tab/index.d.ts +6 -6
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +23 -23
- package/lib/components/tab/tab.d.ts +23 -23
- package/lib/components/tab-container/index.d.ts +3 -3
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -10
- package/lib/components/tab-container-item/index.d.ts +3 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +11 -9
- package/lib/components/tab-container-item/tab-container-item.js +7 -2
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/tag/tag.d.ts +14 -14
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +8 -4
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +61 -61
- 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 +25 -25
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +42 -40
- package/lib/index.js +5 -1
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/custom-radio-group/meta.ts +310 -310
- package/lowcode/custom-radio-group-item/meta.ts +229 -229
- package/lowcode/d-c-slider/meta.design.ts +173 -173
- package/lowcode/d-c-slider/meta.ts +342 -342
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +268 -268
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +202 -202
- package/lowcode/navigation/meta.ts +165 -165
- package/lowcode/notice-bar/meta.ts +229 -229
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/tab-container/meta.ts +70 -70
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +101 -101
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode/teletext-list/meta.ts +329 -329
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/button2/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_es/d-c-slider/meta.d.ts +148 -148
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/goods-card-list/meta.d.ts +22 -22
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/meta.js +23 -23
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/rich-text/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/swiper/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.js +4 -4
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container/props.js +12 -12
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- package/lowcode_es/tab-container-item/meta.js +1 -1
- package/lowcode_es/tab-message/meta.d.ts +22 -22
- package/lowcode_es/tag-c/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.js +1 -1
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -23
- package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/goods-card-list/meta.d.ts +22 -22
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/meta.js +23 -23
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/rich-text/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.js +4 -4
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container/props.js +12 -12
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-container-item/meta.js +1 -1
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.js +1 -1
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './index.scss';
|
|
3
|
+
interface DataProps {
|
|
4
|
+
content?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface RichTextProps {
|
|
7
|
+
content?: string;
|
|
8
|
+
dataList?: DataProps[];
|
|
9
|
+
}
|
|
10
|
+
declare const RichText: {
|
|
11
|
+
(props: RichTextProps): JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default RichText;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 = ["content", "dataList"];
|
|
11
|
+
// 富文本
|
|
12
|
+
|
|
13
|
+
var RichText = function RichText(props) {
|
|
14
|
+
var content = props.content,
|
|
15
|
+
dataList = props.dataList,
|
|
16
|
+
otherProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
17
|
+
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
18
|
+
className: "rich-text"
|
|
19
|
+
}, otherProps), dataList && dataList.length > 0 ? dataList.map(function (item, index) {
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
|
+
key: index,
|
|
22
|
+
dangerouslySetInnerHTML: {
|
|
23
|
+
__html: item.content
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
|
+
dangerouslySetInnerHTML: {
|
|
28
|
+
__html: content
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
RichText.displayName = 'RichText';
|
|
33
|
+
var _default = exports["default"] = RichText;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import SearchBar from "./search-bar";
|
|
2
|
-
export type { SearchBarProps } from './search-bar';
|
|
3
|
-
export default SearchBar;
|
|
1
|
+
import SearchBar from "./search-bar";
|
|
2
|
+
export type { SearchBarProps } from './search-bar';
|
|
3
|
+
export default SearchBar;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.search-bar-box {
|
|
2
|
-
width: 260px;
|
|
3
|
-
height: 35px;
|
|
4
|
-
margin: 0;
|
|
5
|
-
.next-input {
|
|
6
|
-
width: 260px;
|
|
7
|
-
border-radius: 34px;
|
|
8
|
-
height: 35px;
|
|
9
|
-
& input {
|
|
10
|
-
height: 100%;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
.search-bar-box {
|
|
2
|
+
width: 260px;
|
|
3
|
+
height: 35px;
|
|
4
|
+
margin: 0;
|
|
5
|
+
.next-input {
|
|
6
|
+
width: 260px;
|
|
7
|
+
border-radius: 34px;
|
|
8
|
+
height: 35px;
|
|
9
|
+
& input {
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface SearchBarProps {
|
|
3
|
-
defaultValue: string;
|
|
4
|
-
onSearch: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
|
|
7
|
-
export default SearchBar;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface SearchBarProps {
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
onSearch: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<any>>;
|
|
7
|
+
export default SearchBar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Swiper from './swiper';
|
|
2
|
-
export type { ComponentProps } from './swiper';
|
|
3
|
-
export default Swiper;
|
|
1
|
+
import Swiper from './swiper';
|
|
2
|
+
export type { ComponentProps } from './swiper';
|
|
3
|
+
export default Swiper;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* write style here */
|
|
2
|
-
.swiper__container {
|
|
3
|
-
margin: 0;
|
|
4
|
-
&__sliede {
|
|
5
|
-
position: relative;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.img{
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
1
|
+
/* write style here */
|
|
2
|
+
.swiper__container {
|
|
3
|
+
margin: 0;
|
|
4
|
+
&__sliede {
|
|
5
|
+
position: relative;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.img{
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
import 'swiper/swiper.min.css';
|
|
4
|
-
export interface ComponentProps {
|
|
5
|
-
/**
|
|
6
|
-
* 设定初始化时slide的索引
|
|
7
|
-
*/
|
|
8
|
-
initialSlide?: number;
|
|
9
|
-
/**
|
|
10
|
-
* 设定初始化时slide的索引
|
|
11
|
-
*/
|
|
12
|
-
direction?: 'vertical' | 'horizontal';
|
|
13
|
-
/**
|
|
14
|
-
* 切换速度,单位ms
|
|
15
|
-
*/
|
|
16
|
-
speed?: number;
|
|
17
|
-
/**
|
|
18
|
-
* 展示数量
|
|
19
|
-
*/
|
|
20
|
-
slidesPerView: number;
|
|
21
|
-
/**
|
|
22
|
-
* 高度
|
|
23
|
-
*/
|
|
24
|
-
height: number;
|
|
25
|
-
/**
|
|
26
|
-
* 自动高度
|
|
27
|
-
*/
|
|
28
|
-
autoHeight: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* 自动播放
|
|
31
|
-
*/
|
|
32
|
-
autoplay: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* 循环播放
|
|
35
|
-
*/
|
|
36
|
-
loop: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* 图片间距
|
|
39
|
-
*/
|
|
40
|
-
spaceBetween: number;
|
|
41
|
-
/**
|
|
42
|
-
* 图片路径
|
|
43
|
-
*/
|
|
44
|
-
picUrls: string[];
|
|
45
|
-
}
|
|
46
|
-
declare const DCSlider: React.FC<ComponentProps>;
|
|
47
|
-
export default DCSlider;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
import 'swiper/swiper.min.css';
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* 设定初始化时slide的索引
|
|
7
|
+
*/
|
|
8
|
+
initialSlide?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 设定初始化时slide的索引
|
|
11
|
+
*/
|
|
12
|
+
direction?: 'vertical' | 'horizontal';
|
|
13
|
+
/**
|
|
14
|
+
* 切换速度,单位ms
|
|
15
|
+
*/
|
|
16
|
+
speed?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 展示数量
|
|
19
|
+
*/
|
|
20
|
+
slidesPerView: number;
|
|
21
|
+
/**
|
|
22
|
+
* 高度
|
|
23
|
+
*/
|
|
24
|
+
height: number;
|
|
25
|
+
/**
|
|
26
|
+
* 自动高度
|
|
27
|
+
*/
|
|
28
|
+
autoHeight: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 自动播放
|
|
31
|
+
*/
|
|
32
|
+
autoplay: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* 循环播放
|
|
35
|
+
*/
|
|
36
|
+
loop: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 图片间距
|
|
39
|
+
*/
|
|
40
|
+
spaceBetween: number;
|
|
41
|
+
/**
|
|
42
|
+
* 图片路径
|
|
43
|
+
*/
|
|
44
|
+
picUrls: string[];
|
|
45
|
+
}
|
|
46
|
+
declare const DCSlider: React.FC<ComponentProps>;
|
|
47
|
+
export default DCSlider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标签tag
|
|
3
|
-
*/
|
|
4
|
-
import Tab from './tab';
|
|
5
|
-
export type { TabProps } from './tab';
|
|
6
|
-
export default Tab;
|
|
1
|
+
/**
|
|
2
|
+
* 标签tag
|
|
3
|
+
*/
|
|
4
|
+
import Tab from './tab';
|
|
5
|
+
export type { TabProps } from './tab';
|
|
6
|
+
export default Tab;
|
|
@@ -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 _tab = _interopRequireDefault(require("./tab"));
|
|
7
|
-
/**
|
|
8
|
-
* 标签tag
|
|
7
|
+
/**
|
|
8
|
+
* 标签tag
|
|
9
9
|
*/
|
|
10
10
|
var _default = exports["default"] = _tab["default"];
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.tabs__container {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
padding: 5px 17px;
|
|
4
|
-
border-radius: 19px;
|
|
5
|
-
background-color: #FFFFFF;
|
|
6
|
-
color: #666666;
|
|
7
|
-
font-size: 15px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
margin-right: 6px;
|
|
10
|
-
letter-spacing: 2px;
|
|
11
|
-
&--selected {
|
|
12
|
-
background-color: #ED794A;
|
|
13
|
-
color: #FFFFFF;
|
|
14
|
-
}
|
|
15
|
-
&--small {
|
|
16
|
-
padding: 5px 16px;
|
|
17
|
-
border-radius: 19px;
|
|
18
|
-
}
|
|
19
|
-
&--large {
|
|
20
|
-
padding: 14px 30px;
|
|
21
|
-
border-radius: 28px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
.tabs__container {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
padding: 5px 17px;
|
|
4
|
+
border-radius: 19px;
|
|
5
|
+
background-color: #FFFFFF;
|
|
6
|
+
color: #666666;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
margin-right: 6px;
|
|
10
|
+
letter-spacing: 2px;
|
|
11
|
+
&--selected {
|
|
12
|
+
background-color: #ED794A;
|
|
13
|
+
color: #FFFFFF;
|
|
14
|
+
}
|
|
15
|
+
&--small {
|
|
16
|
+
padding: 5px 16px;
|
|
17
|
+
border-radius: 19px;
|
|
18
|
+
}
|
|
19
|
+
&--large {
|
|
20
|
+
padding: 14px 30px;
|
|
21
|
+
border-radius: 28px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface TabProps {
|
|
4
|
-
/**
|
|
5
|
-
* 选中背景颜色
|
|
6
|
-
*/
|
|
7
|
-
selectedBGColor: string;
|
|
8
|
-
/**
|
|
9
|
-
* 选中字体颜色
|
|
10
|
-
*/
|
|
11
|
-
selectedFontColor: string;
|
|
12
|
-
/**
|
|
13
|
-
* 尺寸 small | large
|
|
14
|
-
*/
|
|
15
|
-
size: string;
|
|
16
|
-
/**
|
|
17
|
-
* 点击事件
|
|
18
|
-
* @param e
|
|
19
|
-
*/
|
|
20
|
-
onClickHandle?: (e: string) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const Tab: React.FC<TabProps>;
|
|
23
|
-
export default Tab;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface TabProps {
|
|
4
|
+
/**
|
|
5
|
+
* 选中背景颜色
|
|
6
|
+
*/
|
|
7
|
+
selectedBGColor: string;
|
|
8
|
+
/**
|
|
9
|
+
* 选中字体颜色
|
|
10
|
+
*/
|
|
11
|
+
selectedFontColor: string;
|
|
12
|
+
/**
|
|
13
|
+
* 尺寸 small | large
|
|
14
|
+
*/
|
|
15
|
+
size: string;
|
|
16
|
+
/**
|
|
17
|
+
* 点击事件
|
|
18
|
+
* @param e
|
|
19
|
+
*/
|
|
20
|
+
onClickHandle?: (e: string) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const Tab: React.FC<TabProps>;
|
|
23
|
+
export default Tab;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TabContainer } from '../tab-container/tab-container';
|
|
2
|
-
export type { TabContainerProps } from '../tab-container/tab-container';
|
|
3
|
-
export default TabContainer;
|
|
1
|
+
import { TabContainer } from '../tab-container/tab-container';
|
|
2
|
+
export type { TabContainerProps } from '../tab-container/tab-container';
|
|
3
|
+
export default TabContainer;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
.fusion-ui-tab {
|
|
2
|
-
display: block;
|
|
3
|
-
background-color: #fff;
|
|
4
|
-
|
|
5
|
-
&.next-medium {
|
|
6
|
-
.next-tabs-content {
|
|
7
|
-
padding: 0;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
.next-tabs-bar {
|
|
12
|
-
border-bottom: none;
|
|
13
|
-
margin-bottom: 15px;
|
|
14
|
-
.next-tabs-nav-container {
|
|
15
|
-
.next-tabs-nav {
|
|
16
|
-
.next-tabs-tab {
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
color: #666666;
|
|
19
|
-
margin-right: 13px;
|
|
20
|
-
&.active {
|
|
21
|
-
color: #333;
|
|
22
|
-
font-size: 17px;
|
|
23
|
-
}
|
|
24
|
-
&.active::before {
|
|
25
|
-
bottom: 2px;
|
|
26
|
-
border-bottom: 5px solid #E96D40;
|
|
27
|
-
z-index: 0;
|
|
28
|
-
border-radius: 2.5px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.next-small {
|
|
36
|
-
.next-tabs-content {
|
|
37
|
-
padding: 12px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.navigation {
|
|
42
|
-
z-index: 10;
|
|
43
|
-
position: relative;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:global(.fd-layout-p-margin) {
|
|
47
|
-
margin-top: 0 !important;
|
|
1
|
+
.fusion-ui-tab {
|
|
2
|
+
display: block;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
|
|
5
|
+
&.next-medium {
|
|
6
|
+
.next-tabs-content {
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
.next-tabs-bar {
|
|
12
|
+
border-bottom: none;
|
|
13
|
+
margin-bottom: 15px;
|
|
14
|
+
.next-tabs-nav-container {
|
|
15
|
+
.next-tabs-nav {
|
|
16
|
+
.next-tabs-tab {
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
color: #666666;
|
|
19
|
+
margin-right: 13px;
|
|
20
|
+
&.active {
|
|
21
|
+
color: #333;
|
|
22
|
+
font-size: 17px;
|
|
23
|
+
}
|
|
24
|
+
&.active::before {
|
|
25
|
+
bottom: 2px;
|
|
26
|
+
border-bottom: 5px solid #E96D40;
|
|
27
|
+
z-index: 0;
|
|
28
|
+
border-radius: 2.5px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.next-small {
|
|
36
|
+
.next-tabs-content {
|
|
37
|
+
padding: 12px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.navigation {
|
|
42
|
+
z-index: 10;
|
|
43
|
+
position: relative;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:global(.fd-layout-p-margin) {
|
|
47
|
+
margin-top: 0 !important;
|
|
48
48
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Tab } from '@alifd/next';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const TabContainer: {
|
|
8
|
-
(props: TabContainerProps): JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tab } from '@alifd/next';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TabContainer: {
|
|
8
|
+
(props: TabContainerProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TabContainerItem } from './tab-container-item';
|
|
2
|
-
export type { TabContainerItemProps } from './tab-container-item';
|
|
3
|
-
export default TabContainerItem;
|
|
1
|
+
import { TabContainerItem } from './tab-container-item';
|
|
2
|
+
export type { TabContainerItemProps } from './tab-container-item';
|
|
3
|
+
export default TabContainerItem;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Tab } from '@alifd/next';
|
|
3
|
-
export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
|
|
4
|
-
className?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Tab } from '@alifd/next';
|
|
3
|
+
export interface TabContainerItemProps extends React.ComponentProps<typeof Tab> {
|
|
4
|
+
className?: string;
|
|
5
|
+
tab: string;
|
|
6
|
+
key: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TabContainerItem: {
|
|
9
|
+
(props: TabContainerItemProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -8,12 +8,17 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
8
8
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _excluded = ["className"];
|
|
11
|
+
var _excluded = ["className", "tab", "key"];
|
|
12
12
|
var TabContainerItem = exports.TabContainerItem = function TabContainerItem(props) {
|
|
13
13
|
var className = props.className,
|
|
14
|
+
tab = props.tab,
|
|
15
|
+
key = props.key,
|
|
14
16
|
restProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
15
17
|
return /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, (0, _extends2["default"])({
|
|
16
18
|
className: (0, _classnames["default"])(className, 'fusion-ui-tab')
|
|
17
|
-
}, restProps
|
|
19
|
+
}, restProps, {
|
|
20
|
+
title: tab,
|
|
21
|
+
primaryKey: key
|
|
22
|
+
}));
|
|
18
23
|
};
|
|
19
24
|
TabContainerItem.displayName = 'TabContainerItem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 标签tag
|
|
3
|
-
*/
|
|
4
|
-
import Tag from './tag';
|
|
5
|
-
export type { TagProps } from './tag';
|
|
6
|
-
export default Tag;
|
|
1
|
+
/**
|
|
2
|
+
* 标签tag
|
|
3
|
+
*/
|
|
4
|
+
import Tag from './tag';
|
|
5
|
+
export type { TagProps } from './tag';
|
|
6
|
+
export default Tag;
|
|
@@ -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 _tag = _interopRequireDefault(require("./tag"));
|
|
7
|
-
/**
|
|
8
|
-
* 标签tag
|
|
7
|
+
/**
|
|
8
|
+
* 标签tag
|
|
9
9
|
*/
|
|
10
10
|
var _default = exports["default"] = _tag["default"];
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
.tags__container {
|
|
2
|
-
padding: 2px 6px;
|
|
3
|
-
border-radius: 3px;
|
|
4
|
-
color: white;
|
|
5
|
-
font-size: 11px;
|
|
6
|
-
}
|
|
7
|
-
.orange {
|
|
8
|
-
color: #F1770E;
|
|
9
|
-
background: rgba(241, 119, 14, 0.1);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.blue {
|
|
13
|
-
color: #2972DD;
|
|
14
|
-
background-color: rgba(41, 114, 221, 0.1);
|
|
15
|
-
}
|
|
16
|
-
.green {
|
|
17
|
-
color: #52AD7C;
|
|
18
|
-
background: rgba(195, 254, 222, 0.4);
|
|
19
|
-
}
|
|
20
|
-
.green-n {
|
|
21
|
-
color: #52AD7C;
|
|
22
|
-
background: #FFFFFF;
|
|
23
|
-
box-shadow: 3.5px 5.5px 11px 0px rgba(203,203,203,0.34);
|
|
24
|
-
}
|
|
1
|
+
.tags__container {
|
|
2
|
+
padding: 2px 6px;
|
|
3
|
+
border-radius: 3px;
|
|
4
|
+
color: white;
|
|
5
|
+
font-size: 11px;
|
|
6
|
+
}
|
|
7
|
+
.orange {
|
|
8
|
+
color: #F1770E;
|
|
9
|
+
background: rgba(241, 119, 14, 0.1);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.blue {
|
|
13
|
+
color: #2972DD;
|
|
14
|
+
background-color: rgba(41, 114, 221, 0.1);
|
|
15
|
+
}
|
|
16
|
+
.green {
|
|
17
|
+
color: #52AD7C;
|
|
18
|
+
background: rgba(195, 254, 222, 0.4);
|
|
19
|
+
}
|
|
20
|
+
.green-n {
|
|
21
|
+
color: #52AD7C;
|
|
22
|
+
background: #FFFFFF;
|
|
23
|
+
box-shadow: 3.5px 5.5px 11px 0px rgba(203,203,203,0.34);
|
|
24
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface TagProps {
|
|
4
|
-
/**
|
|
5
|
-
* 标签名称
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* 标签颜色
|
|
10
|
-
*/
|
|
11
|
-
color: string;
|
|
12
|
-
}
|
|
13
|
-
declare const Tag: React.FC<TagProps>;
|
|
14
|
-
export default Tag;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface TagProps {
|
|
4
|
+
/**
|
|
5
|
+
* 标签名称
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* 标签颜色
|
|
10
|
+
*/
|
|
11
|
+
color: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Tag: React.FC<TagProps>;
|
|
14
|
+
export default Tag;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图文列表
|
|
3
|
-
*/
|
|
4
|
-
import TeletextList from './teletext-list';
|
|
5
|
-
export type { TeletextListProps } from './teletext-list';
|
|
6
|
-
export { TeletextList, };
|
|
1
|
+
/**
|
|
2
|
+
* 图文列表
|
|
3
|
+
*/
|
|
4
|
+
import TeletextList from './teletext-list';
|
|
5
|
+
export type { TeletextListProps } from './teletext-list';
|
|
6
|
+
export { TeletextList, };
|