@dckj-npm/dc-material 0.1.16 → 0.1.18
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/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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/grid-nav/meta.ts +3 -3
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/message-list/meta.ts +24 -6
- package/lowcode/navigation/meta.ts +23 -2
- package/lowcode/notice-bar/meta.ts +15 -3
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/swiper/meta.ts +237 -0
- package/lowcode/tab-message/meta.ts +101 -101
- package/lowcode/teletext-list/meta.ts +0 -14
- package/lowcode_es/grid-nav/meta.js +3 -3
- package/lowcode_es/message-list/meta.js +19 -6
- package/lowcode_es/meta.js +20 -19
- package/lowcode_es/navigation/meta.js +21 -2
- package/lowcode_es/notice-bar/meta.js +12 -1
- package/lowcode_es/swiper/meta.d.ts +22 -0
- package/lowcode_es/swiper/meta.js +209 -0
- package/lowcode_es/teletext-list/meta.js +0 -10
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/grid-nav/meta.js +3 -3
- package/lowcode_lib/message-list/meta.js +19 -6
- package/lowcode_lib/meta.js +20 -19
- package/lowcode_lib/navigation/meta.js +21 -2
- package/lowcode_lib/notice-bar/meta.js +12 -1
- package/lowcode_lib/swiper/meta.d.ts +22 -0
- package/lowcode_lib/swiper/meta.js +214 -0
- package/lowcode_lib/teletext-list/meta.js +0 -10
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -3
- 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.172d0fea.js +0 -1
- package/build/docs/umi.2ce6bf4c.css +0 -8
- 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/dist/BizComps.css +0 -1
- package/dist/BizComps.js +0 -16
- package/dist/BizComps.js.map +0 -1
- package/es/assets/icon/integral-task/icon1.png +0 -0
- 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/assets/icon/notice-bar/notice.png +0 -0
- package/es/assets/icon/position/arror.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 -20
- package/es/components/button/button.d.ts +0 -14
- package/es/components/button/button.js +0 -14
- package/es/components/button/index.d.ts +0 -6
- package/es/components/button/index.js +0 -5
- package/es/components/button/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 -33
- package/es/components/dc-slider/slider.js +0 -10
- package/es/components/grid-nav/grid-nav.d.ts +0 -13
- package/es/components/grid-nav/grid-nav.js +0 -91
- package/es/components/grid-nav/index.d.ts +0 -3
- package/es/components/grid-nav/index.js +0 -2
- package/es/components/grid-nav/index.scss +0 -36
- package/es/components/integral-task/index.d.ts +0 -6
- package/es/components/integral-task/index.js +0 -5
- package/es/components/integral-task/index.scss +0 -35
- package/es/components/integral-task/integral-task.d.ts +0 -40
- package/es/components/integral-task/integral-task.js +0 -53
- package/es/components/menu-list/index.d.ts +0 -6
- package/es/components/menu-list/index.js +0 -6
- package/es/components/menu-list/index.scss +0 -16
- package/es/components/menu-list/menu-list-item.d.ts +0 -5
- package/es/components/menu-list/menu-list-item.js +0 -32
- package/es/components/menu-list/menu-list-item.scss +0 -49
- package/es/components/menu-list/menu-list.d.ts +0 -5
- package/es/components/menu-list/menu-list.js +0 -25
- package/es/components/menu-list/types.d.ts +0 -23
- package/es/components/menu-list/types.js +0 -1
- package/es/components/message-list/index.d.ts +0 -6
- package/es/components/message-list/index.js +0 -6
- package/es/components/message-list/index.scss +0 -17
- package/es/components/message-list/message-list-item.d.ts +0 -29
- package/es/components/message-list/message-list-item.js +0 -38
- package/es/components/message-list/message-list-item.scss +0 -49
- package/es/components/message-list/message-list.d.ts +0 -28
- package/es/components/message-list/message-list.js +0 -47
- package/es/components/notice-bar/index.d.ts +0 -3
- package/es/components/notice-bar/index.js +0 -2
- package/es/components/notice-bar/index.scss +0 -26
- package/es/components/notice-bar/notice-bar-item.d.ts +0 -31
- package/es/components/notice-bar/notice-bar-item.js +0 -31
- package/es/components/notice-bar/notice-bar-item.scss +0 -23
- package/es/components/notice-bar/notice-bar.d.ts +0 -46
- package/es/components/notice-bar/notice-bar.js +0 -48
- package/es/components/position/entity.d.ts +0 -5
- package/es/components/position/entity.js +0 -1
- package/es/components/position/index.d.ts +0 -3
- package/es/components/position/index.js +0 -2
- package/es/components/position/index.scss +0 -21
- package/es/components/position/position-left.d.ts +0 -9
- package/es/components/position/position-left.js +0 -28
- package/es/components/position/position-list.d.ts +0 -12
- package/es/components/position/position-list.js +0 -30
- package/es/components/position/position.d.ts +0 -8
- package/es/components/position/position.js +0 -48
- package/es/components/search-bar/index.d.ts +0 -3
- package/es/components/search-bar/index.js +0 -2
- package/es/components/search-bar/index.scss +0 -6
- package/es/components/search-bar/search-bar.d.ts +0 -7
- package/es/components/search-bar/search-bar.js +0 -21
- package/es/components/tab/index.d.ts +0 -6
- package/es/components/tab/index.js +0 -5
- package/es/components/tab/index.scss +0 -21
- package/es/components/tab/tab.d.ts +0 -23
- package/es/components/tab/tab.js +0 -46
- package/es/components/tab-container/index.d.ts +0 -3
- package/es/components/tab-container/index.js +0 -2
- package/es/components/tab-container/index.scss +0 -17
- package/es/components/tab-container/tab-container.d.ts +0 -9
- package/es/components/tab-container/tab-container.js +0 -14
- package/es/components/tab-container-item/index.d.ts +0 -3
- package/es/components/tab-container-item/index.js +0 -2
- package/es/components/tab-container-item/index.scss +0 -0
- package/es/components/tab-container-item/tab-container-item.d.ts +0 -9
- package/es/components/tab-container-item/tab-container-item.js +0 -14
- package/es/components/tag/index.d.ts +0 -6
- package/es/components/tag/index.js +0 -5
- package/es/components/tag/index.scss +0 -16
- package/es/components/tag/tag.d.ts +0 -14
- package/es/components/tag/tag.js +0 -14
- 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 -17
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/es/components/teletext-list/teletext-list-item.js +0 -48
- package/es/components/teletext-list/teletext-list-item.scss +0 -74
- package/es/components/teletext-list/teletext-list.d.ts +0 -61
- package/es/components/teletext-list/teletext-list.js +0 -38
- 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 -25
- 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 -36
- package/es/index.js +0 -66
- package/es/index.scss +0 -6
- package/es/style.js +0 -5
- package/es/utils/children-node-handle.d.ts +0 -9
- package/es/utils/children-node-handle.js +0 -27
- package/es/utils/component-wrapper.d.ts +0 -9
- package/es/utils/component-wrapper.js +0 -38
- package/es/variables.d.ts +0 -2
- package/es/variables.js +0 -2
- package/es/variables.scss +0 -3
- package/lib/assets/icon/integral-task/icon1.png +0 -0
- 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/assets/icon/notice-bar/notice.png +0 -0
- package/lib/assets/icon/position/arror.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 -20
- package/lib/components/button/button.d.ts +0 -14
- package/lib/components/button/button.js +0 -21
- package/lib/components/button/index.d.ts +0 -6
- package/lib/components/button/index.js +0 -10
- package/lib/components/button/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 -33
- package/lib/components/dc-slider/slider.js +0 -17
- package/lib/components/grid-nav/grid-nav.d.ts +0 -13
- package/lib/components/grid-nav/grid-nav.js +0 -98
- package/lib/components/grid-nav/index.d.ts +0 -3
- package/lib/components/grid-nav/index.js +0 -7
- package/lib/components/grid-nav/index.scss +0 -36
- package/lib/components/integral-task/index.d.ts +0 -6
- package/lib/components/integral-task/index.js +0 -10
- package/lib/components/integral-task/index.scss +0 -35
- package/lib/components/integral-task/integral-task.d.ts +0 -40
- package/lib/components/integral-task/integral-task.js +0 -60
- package/lib/components/menu-list/index.d.ts +0 -6
- package/lib/components/menu-list/index.js +0 -10
- package/lib/components/menu-list/index.scss +0 -16
- package/lib/components/menu-list/menu-list-item.d.ts +0 -5
- package/lib/components/menu-list/menu-list-item.js +0 -37
- package/lib/components/menu-list/menu-list-item.scss +0 -49
- package/lib/components/menu-list/menu-list.d.ts +0 -5
- package/lib/components/menu-list/menu-list.js +0 -30
- package/lib/components/menu-list/types.d.ts +0 -23
- package/lib/components/menu-list/types.js +0 -3
- package/lib/components/message-list/index.d.ts +0 -6
- package/lib/components/message-list/index.js +0 -10
- package/lib/components/message-list/index.scss +0 -17
- package/lib/components/message-list/message-list-item.d.ts +0 -29
- package/lib/components/message-list/message-list-item.js +0 -42
- package/lib/components/message-list/message-list-item.scss +0 -49
- package/lib/components/message-list/message-list.d.ts +0 -28
- package/lib/components/message-list/message-list.js +0 -52
- package/lib/components/notice-bar/index.d.ts +0 -3
- package/lib/components/notice-bar/index.js +0 -7
- package/lib/components/notice-bar/index.scss +0 -26
- package/lib/components/notice-bar/notice-bar-item.d.ts +0 -31
- package/lib/components/notice-bar/notice-bar-item.js +0 -36
- package/lib/components/notice-bar/notice-bar-item.scss +0 -23
- package/lib/components/notice-bar/notice-bar.d.ts +0 -46
- package/lib/components/notice-bar/notice-bar.js +0 -53
- package/lib/components/position/entity.d.ts +0 -5
- package/lib/components/position/entity.js +0 -3
- package/lib/components/position/index.d.ts +0 -3
- package/lib/components/position/index.js +0 -7
- package/lib/components/position/index.scss +0 -21
- package/lib/components/position/position-left.d.ts +0 -9
- package/lib/components/position/position-left.js +0 -35
- package/lib/components/position/position-list.d.ts +0 -12
- package/lib/components/position/position-list.js +0 -36
- package/lib/components/position/position.d.ts +0 -8
- package/lib/components/position/position.js +0 -55
- package/lib/components/search-bar/index.d.ts +0 -3
- package/lib/components/search-bar/index.js +0 -7
- package/lib/components/search-bar/index.scss +0 -6
- package/lib/components/search-bar/search-bar.d.ts +0 -7
- package/lib/components/search-bar/search-bar.js +0 -28
- package/lib/components/tab/index.d.ts +0 -6
- package/lib/components/tab/index.js +0 -10
- package/lib/components/tab/index.scss +0 -21
- package/lib/components/tab/tab.d.ts +0 -23
- package/lib/components/tab/tab.js +0 -53
- package/lib/components/tab-container/index.d.ts +0 -3
- package/lib/components/tab-container/index.js +0 -6
- package/lib/components/tab-container/index.scss +0 -17
- package/lib/components/tab-container/tab-container.d.ts +0 -9
- package/lib/components/tab-container/tab-container.js +0 -19
- package/lib/components/tab-container-item/index.d.ts +0 -3
- package/lib/components/tab-container-item/index.js +0 -6
- package/lib/components/tab-container-item/index.scss +0 -0
- package/lib/components/tab-container-item/tab-container-item.d.ts +0 -9
- package/lib/components/tab-container-item/tab-container-item.js +0 -19
- package/lib/components/tag/index.d.ts +0 -6
- package/lib/components/tag/index.js +0 -10
- package/lib/components/tag/index.scss +0 -16
- package/lib/components/tag/tag.d.ts +0 -14
- package/lib/components/tag/tag.js +0 -21
- package/lib/components/teletext-list/index.d.ts +0 -6
- package/lib/components/teletext-list/index.js +0 -6
- package/lib/components/teletext-list/index.scss +0 -17
- package/lib/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/lib/components/teletext-list/teletext-list-item.js +0 -52
- package/lib/components/teletext-list/teletext-list-item.scss +0 -74
- package/lib/components/teletext-list/teletext-list.d.ts +0 -61
- package/lib/components/teletext-list/teletext-list.js +0 -42
- 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 -25
- 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 -36
- package/lib/index.js +0 -73
- package/lib/index.scss +0 -6
- package/lib/style.js +0 -5
- package/lib/utils/children-node-handle.d.ts +0 -9
- package/lib/utils/children-node-handle.js +0 -32
- package/lib/utils/component-wrapper.d.ts +0 -9
- package/lib/utils/component-wrapper.js +0 -45
- package/lib/variables.d.ts +0 -2
- package/lib/variables.js +0 -5
- package/lib/variables.scss +0 -3
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["currentLocation", "clickHandle"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
import arror from "../../assets/icon/position/arror.png";
|
|
7
|
-
var NavigationLeft = function navigationLeft(_ref) {
|
|
8
|
-
var currentLocation = _ref.currentLocation,
|
|
9
|
-
clickHandle = _ref.clickHandle,
|
|
10
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", _extends({
|
|
12
|
-
className: "location"
|
|
13
|
-
}, otherProps, {
|
|
14
|
-
onClick: function onClick() {
|
|
15
|
-
return clickHandle();
|
|
16
|
-
}
|
|
17
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: "location-address"
|
|
19
|
-
}, currentLocation.address), /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "location-icon"
|
|
21
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
22
|
-
src: arror,
|
|
23
|
-
width: "10",
|
|
24
|
-
height: "5",
|
|
25
|
-
alt: "icon"
|
|
26
|
-
}))));
|
|
27
|
-
};
|
|
28
|
-
export default NavigationLeft;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
import { Location } from "./position";
|
|
4
|
-
interface LocationProps {
|
|
5
|
-
itemArray: Location[];
|
|
6
|
-
currentLocation: Location;
|
|
7
|
-
open: boolean;
|
|
8
|
-
setIsOpen: () => void;
|
|
9
|
-
setCurrent: (data: Location) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const ContentList: React.FC<LocationProps>;
|
|
12
|
-
export default ContentList;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
var ContentList = function navigationList(_ref) {
|
|
4
|
-
var open = _ref.open,
|
|
5
|
-
itemArray = _ref.itemArray,
|
|
6
|
-
currentLocation = _ref.currentLocation,
|
|
7
|
-
setIsOpen = _ref.setIsOpen,
|
|
8
|
-
setCurrent = _ref.setCurrent;
|
|
9
|
-
var changeHandle = function changeHandle(position) {
|
|
10
|
-
console.log('changeHandle', position);
|
|
11
|
-
// 设置当前选中位置
|
|
12
|
-
setCurrent(position);
|
|
13
|
-
// 关闭位置列表
|
|
14
|
-
setIsOpen();
|
|
15
|
-
};
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "location-list",
|
|
18
|
-
style: {
|
|
19
|
-
display: open ? 'block' : 'none'
|
|
20
|
-
}
|
|
21
|
-
}, itemArray.map(function (item) {
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
onClick: function onClick() {
|
|
24
|
-
return changeHandle(item);
|
|
25
|
-
},
|
|
26
|
-
className: "location-list-item"
|
|
27
|
-
}, item.address);
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
export default ContentList;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["itemArray", "defaultLocation", "__designMode"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { default as List } from "./position-list";
|
|
6
|
-
import { default as Position } from "./position-left";
|
|
7
|
-
var Navigation = function bottomNavigation(_ref) {
|
|
8
|
-
var itemArray = _ref.itemArray,
|
|
9
|
-
defaultLocation = _ref.defaultLocation,
|
|
10
|
-
__designMode = _ref.__designMode,
|
|
11
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
-
var _React$useState = React.useState(defaultLocation),
|
|
13
|
-
current = _React$useState[0],
|
|
14
|
-
_setCurrent = _React$useState[1];
|
|
15
|
-
var _React$useState2 = React.useState(false),
|
|
16
|
-
isOpen = _React$useState2[0],
|
|
17
|
-
setIsOpen = _React$useState2[1];
|
|
18
|
-
var openList = function openList() {
|
|
19
|
-
if (__designMode == 'design') {
|
|
20
|
-
// 设计态不打开列表
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
setIsOpen(!isOpen);
|
|
24
|
-
console.log('isopen', isOpen);
|
|
25
|
-
};
|
|
26
|
-
// React.useEffect(() => {
|
|
27
|
-
// console.log('defaultLocation', defaultLocation)
|
|
28
|
-
// if (defaultLocation) {
|
|
29
|
-
// setCurrent(defaultLocation)
|
|
30
|
-
// }
|
|
31
|
-
// })
|
|
32
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Position, _extends({
|
|
33
|
-
currentLocation: current
|
|
34
|
-
}, otherProps, {
|
|
35
|
-
clickHandle: function clickHandle() {
|
|
36
|
-
return openList();
|
|
37
|
-
}
|
|
38
|
-
})), /*#__PURE__*/React.createElement(List, {
|
|
39
|
-
open: isOpen,
|
|
40
|
-
currentLocation: current,
|
|
41
|
-
itemArray: itemArray,
|
|
42
|
-
setIsOpen: openList,
|
|
43
|
-
setCurrent: function setCurrent(value) {
|
|
44
|
-
return _setCurrent(value);
|
|
45
|
-
}
|
|
46
|
-
}));
|
|
47
|
-
};
|
|
48
|
-
export default Navigation;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _Search from "@alifd/next/es/search";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
var ExampleComponent = function ExampleComponent(props, ref) {
|
|
5
|
-
var defaultValue = props.defaultValue,
|
|
6
|
-
onSearch = props.onSearch;
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
ref: ref,
|
|
9
|
-
className: "search-bar-box",
|
|
10
|
-
onClick: function onClick() {
|
|
11
|
-
onSearch();
|
|
12
|
-
}
|
|
13
|
-
}, /*#__PURE__*/React.createElement(_Search, {
|
|
14
|
-
size: "medium",
|
|
15
|
-
shape: "simple",
|
|
16
|
-
placeholder: defaultValue
|
|
17
|
-
}));
|
|
18
|
-
};
|
|
19
|
-
var SearchBar = /*#__PURE__*/forwardRef(ExampleComponent);
|
|
20
|
-
SearchBar.displayName = 'SearchBar';
|
|
21
|
-
export default SearchBar;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.tabs__container {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
padding: 7px 15px;
|
|
4
|
-
border-radius: 14px;
|
|
5
|
-
background-color: #FFFFFF;
|
|
6
|
-
color: #666666;
|
|
7
|
-
font-size: 15px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
&--selected {
|
|
10
|
-
background-color: #ED794A;
|
|
11
|
-
color: #FFFFFF;
|
|
12
|
-
}
|
|
13
|
-
&--small {
|
|
14
|
-
padding: 7px 15px;
|
|
15
|
-
border-radius: 14px;
|
|
16
|
-
}
|
|
17
|
-
&--large {
|
|
18
|
-
padding: 14px 30px;
|
|
19
|
-
border-radius: 28px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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;
|
package/es/components/tab/tab.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["selectedBGColor", "selectedFontColor", "size", "onClickHandle"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
var Tab = function Tab(_ref) {
|
|
7
|
-
var selectedBGColor = _ref.selectedBGColor,
|
|
8
|
-
selectedFontColor = _ref.selectedFontColor,
|
|
9
|
-
size = _ref.size,
|
|
10
|
-
onClickHandle = _ref.onClickHandle,
|
|
11
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
-
var tabList = [{
|
|
13
|
-
key: 'all',
|
|
14
|
-
label: '全部'
|
|
15
|
-
}, {
|
|
16
|
-
key: 'read',
|
|
17
|
-
label: '已读'
|
|
18
|
-
}, {
|
|
19
|
-
key: 'unRead',
|
|
20
|
-
label: '未读'
|
|
21
|
-
}];
|
|
22
|
-
var _React$useState = React.useState('all'),
|
|
23
|
-
tab = _React$useState[0],
|
|
24
|
-
setTab = _React$useState[1];
|
|
25
|
-
var handleClick = function handleClick(key) {
|
|
26
|
-
console.log(key);
|
|
27
|
-
// 切换tab
|
|
28
|
-
setTab(key);
|
|
29
|
-
// 触发父组件传递的点击处理函数
|
|
30
|
-
onClickHandle && onClickHandle(key);
|
|
31
|
-
};
|
|
32
|
-
return tabList.map(function (item) {
|
|
33
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
34
|
-
className: "tabs__container\n " + (tab === item.key ? 'tabs__container--selected' : '') + "\n " + (size == 'large' ? 'tabs__container--large' : 'tabs__container--small')
|
|
35
|
-
}, otherProps, {
|
|
36
|
-
onClick: function onClick() {
|
|
37
|
-
return handleClick(item.key);
|
|
38
|
-
},
|
|
39
|
-
style: {
|
|
40
|
-
backgroundColor: tab === item.key ? selectedBGColor : '',
|
|
41
|
-
color: tab === item.key ? selectedFontColor : ''
|
|
42
|
-
}
|
|
43
|
-
}), item.label);
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
export default Tab;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Tab } from '@alifd/next';
|
|
3
|
-
export interface TabContainerProps extends React.ComponentProps<typeof Tab> {
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const TabContainer: {
|
|
7
|
-
(props: TabContainerProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _Tab from "@alifd/next/es/tab";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
-
var _excluded = ["className"];
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import cx from 'classnames';
|
|
7
|
-
export var TabContainer = function TabContainer(props) {
|
|
8
|
-
var className = props.className,
|
|
9
|
-
restProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
10
|
-
return /*#__PURE__*/React.createElement(_Tab, _extends({
|
|
11
|
-
className: cx(className, 'fusion-ui-tab')
|
|
12
|
-
}, restProps));
|
|
13
|
-
};
|
|
14
|
-
TabContainer.displayName = 'TabContainer';
|
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
export declare const TabContainerItem: {
|
|
7
|
-
(props: TabContainerItemProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _Tab from "@alifd/next/es/tab";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
-
var _excluded = ["className"];
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import cx from 'classnames';
|
|
7
|
-
export var TabContainerItem = function TabContainerItem(props) {
|
|
8
|
-
var className = props.className,
|
|
9
|
-
restProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
10
|
-
return /*#__PURE__*/React.createElement(_Tab.Item, _extends({
|
|
11
|
-
className: cx(className, 'fusion-ui-tab')
|
|
12
|
-
}, restProps));
|
|
13
|
-
};
|
|
14
|
-
TabContainerItem.displayName = 'TabContainerItem';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.tags__container {
|
|
2
|
-
padding: 2px 6px;
|
|
3
|
-
border-radius: 4px;
|
|
4
|
-
color: white;
|
|
5
|
-
font-size: 11px;
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
.orange {
|
|
9
|
-
color: #F1770E;
|
|
10
|
-
background-color: rgba(241, 119, 14, 0.1);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.blue {
|
|
14
|
-
color: #2972DD;
|
|
15
|
-
background-color: rgba(41, 114, 221, 0.1);
|
|
16
|
-
}
|
package/es/components/tag/tag.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["name", "color"];
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
var Tag = function Tag(_ref) {
|
|
7
|
-
var name = _ref.name,
|
|
8
|
-
color = _ref.color,
|
|
9
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
11
|
-
className: "tags__container " + (color ? color : '')
|
|
12
|
-
}, otherProps), name);
|
|
13
|
-
};
|
|
14
|
-
export default Tag;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.teletext-list__panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 10px;
|
|
7
|
-
padding: 0 12px;
|
|
8
|
-
|
|
9
|
-
.teletext-list__panel__item-list {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
gap: 10px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './teletext-list-item.scss';
|
|
3
|
-
/**
|
|
4
|
-
* 数据
|
|
5
|
-
*/
|
|
6
|
-
export 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
|
-
}[] | string;
|
|
40
|
-
}
|
|
41
|
-
declare const TeletextListItem: React.FC<TeletextListItemProps>;
|
|
42
|
-
export default TeletextListItem;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["onClick", "title", "image", "children", "imagePlacement", "description", "tags"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import "./teletext-list-item.scss";
|
|
6
|
-
import { convertChildren } from "../../utils/children-node-handle";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 数据
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
var TeletextListItem = function TeletextListItem(_ref) {
|
|
13
|
-
var _ref$onClick = _ref.onClick,
|
|
14
|
-
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
15
|
-
title = _ref.title,
|
|
16
|
-
image = _ref.image,
|
|
17
|
-
children = _ref.children,
|
|
18
|
-
imagePlacement = _ref.imagePlacement,
|
|
19
|
-
description = _ref.description,
|
|
20
|
-
tags = _ref.tags,
|
|
21
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
22
|
-
var _otherProps = otherProps || {};
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
24
|
-
className: "teletext-list__panel__item",
|
|
25
|
-
onClick: onClick
|
|
26
|
-
}, _otherProps), image && imagePlacement === 'left' ? convertChildren(children, 'image', {
|
|
27
|
-
src: image,
|
|
28
|
-
className: 'teletext-list__panel__item_image'
|
|
29
|
-
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "teletext-list__panel__item__text"
|
|
31
|
-
}, convertChildren(children, 'title', {
|
|
32
|
-
children: [title]
|
|
33
|
-
}), convertChildren(children, 'content', {
|
|
34
|
-
children: [description]
|
|
35
|
-
}), tags ? /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "teletext-list__panel__item__text__tags"
|
|
37
|
-
}, (Array.isArray(tags) ? tags : tags.split(',')).map(function (tag, tagIndex) {
|
|
38
|
-
return convertChildren(children, 'teletext-tagc-1', {
|
|
39
|
-
name: tag.name,
|
|
40
|
-
key: tagIndex
|
|
41
|
-
});
|
|
42
|
-
})) : null), image && imagePlacement === 'right' ? convertChildren(children, 'image', {
|
|
43
|
-
src: image,
|
|
44
|
-
className: 'teletext-list__panel__item_image'
|
|
45
|
-
}) : null);
|
|
46
|
-
};
|
|
47
|
-
TeletextListItem.displayName = 'TeletextListItem';
|
|
48
|
-
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: flex-start;
|
|
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
|
-
}
|