@dckj-npm/dc-material 0.1.11 → 0.1.12
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 +1 -15
- package/lowcode/position/meta.ts +211 -211
- package/lowcode/search-bar/meta.ts +4 -4
- package/lowcode/tag-c/meta.ts +75 -75
- package/package.json +110 -110
- 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/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 -19
- 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/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/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/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 -47
- 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 -3
- package/es/components/search-bar/search-bar.d.ts +0 -7
- package/es/components/search-bar/search-bar.js +0 -21
- package/es/components/tag/index.d.ts +0 -6
- package/es/components/tag/index.js +0 -5
- package/es/components/tag/index.scss +0 -17
- 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 -16
- package/es/components/teletext-list/teletext-list-item.d.ts +0 -42
- package/es/components/teletext-list/teletext-list-item.js +0 -35
- package/es/components/teletext-list/teletext-list-item.scss +0 -74
- package/es/components/teletext-list/teletext-list.d.ts +0 -57
- package/es/components/teletext-list/teletext-list.js +0 -75
- 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 -22
- package/es/index.js +0 -12
- package/es/index.scss +0 -5
- package/es/style.js +0 -4
- package/es/utils/children-node-handle.d.ts +0 -6
- package/es/utils/children-node-handle.js +0 -23
- 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/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/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 -19
- 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/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/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/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 -54
- 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 -3
- package/lib/components/search-bar/search-bar.d.ts +0 -7
- package/lib/components/search-bar/search-bar.js +0 -28
- package/lib/components/tag/index.d.ts +0 -6
- package/lib/components/tag/index.js +0 -10
- package/lib/components/tag/index.scss +0 -17
- 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 -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 -39
- package/lib/components/teletext-list/teletext-list-item.scss +0 -74
- package/lib/components/teletext-list/teletext-list.d.ts +0 -57
- package/lib/components/teletext-list/teletext-list.js +0 -79
- 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 -22
- package/lib/index.js +0 -25
- package/lib/index.scss +0 -5
- package/lib/style.js +0 -4
- package/lib/utils/children-node-handle.d.ts +0 -6
- package/lib/utils/children-node-handle.js +0 -28
- 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
- package/lowcode_es/d-c-slider/meta.d.ts +0 -152
- package/lowcode_es/d-c-slider/meta.js +0 -313
- package/lowcode_es/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_es/d-c-slider/snippets.js +0 -36
- package/lowcode_es/grid-nav/meta.d.ts +0 -22
- package/lowcode_es/grid-nav/meta.js +0 -152
- package/lowcode_es/menu-list/meta.d.ts +0 -22
- package/lowcode_es/menu-list/meta.js +0 -128
- package/lowcode_es/meta.js +0 -173
- package/lowcode_es/navigation/meta.d.ts +0 -22
- package/lowcode_es/navigation/meta.js +0 -136
- package/lowcode_es/position/meta.d.ts +0 -22
- package/lowcode_es/position/meta.js +0 -190
- package/lowcode_es/search-bar/meta.d.ts +0 -22
- package/lowcode_es/search-bar/meta.js +0 -46
- package/lowcode_es/tag-c/meta.d.ts +0 -22
- package/lowcode_es/tag-c/meta.js +0 -66
- package/lowcode_es/teletext-list/meta.d.ts +0 -22
- package/lowcode_es/teletext-list/meta.js +0 -294
- 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 -152
- package/lowcode_lib/d-c-slider/meta.js +0 -318
- package/lowcode_lib/d-c-slider/snippets.d.ts +0 -36
- package/lowcode_lib/d-c-slider/snippets.js +0 -40
- package/lowcode_lib/grid-nav/meta.d.ts +0 -22
- package/lowcode_lib/grid-nav/meta.js +0 -157
- package/lowcode_lib/menu-list/meta.d.ts +0 -22
- package/lowcode_lib/menu-list/meta.js +0 -133
- package/lowcode_lib/meta.js +0 -177
- package/lowcode_lib/navigation/meta.d.ts +0 -22
- package/lowcode_lib/navigation/meta.js +0 -141
- package/lowcode_lib/position/meta.d.ts +0 -22
- package/lowcode_lib/position/meta.js +0 -195
- package/lowcode_lib/search-bar/meta.d.ts +0 -22
- package/lowcode_lib/search-bar/meta.js +0 -51
- package/lowcode_lib/tag-c/meta.d.ts +0 -22
- package/lowcode_lib/tag-c/meta.js +0 -71
- package/lowcode_lib/teletext-list/meta.d.ts +0 -22
- package/lowcode_lib/teletext-list/meta.js +0 -299
- 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
|
|
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-panel"
|
|
20
|
-
}, otherProps), itemArray.map(function (item, index) {
|
|
21
|
-
var _item$selectedIcon;
|
|
22
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: "navigation-panel-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,19 +0,0 @@
|
|
|
1
|
-
.navigation-panel {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
align-items: center;
|
|
5
|
-
padding: 9px 0px 6px 0px;
|
|
6
|
-
width: 100%;
|
|
7
|
-
position: fixed;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
background-color: #fff;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
&-item {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
align-items: center;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
flex: 1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface GridNavProps {
|
|
3
|
-
dataSourceSetting: [];
|
|
4
|
-
columns: number;
|
|
5
|
-
iconSize: string;
|
|
6
|
-
fontWeight: string;
|
|
7
|
-
fontSize: number;
|
|
8
|
-
fontColor: string;
|
|
9
|
-
lineHeight: string;
|
|
10
|
-
lineNum: number;
|
|
11
|
-
}
|
|
12
|
-
declare const GridNav: React.ForwardRefExoticComponent<GridNavProps & React.RefAttributes<any>>;
|
|
13
|
-
export default GridNav;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
var ExampleComponent = function ExampleComponent(props, ref) {
|
|
5
|
-
var columns = props.columns,
|
|
6
|
-
_props$iconSize = props.iconSize,
|
|
7
|
-
iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
|
|
8
|
-
_props$fontWeight = props.fontWeight,
|
|
9
|
-
fontWeight = _props$fontWeight === void 0 ? 'normal' : _props$fontWeight,
|
|
10
|
-
_props$fontSize = props.fontSize,
|
|
11
|
-
fontSize = _props$fontSize === void 0 ? 14 : _props$fontSize,
|
|
12
|
-
_props$fontColor = props.fontColor,
|
|
13
|
-
fontColor = _props$fontColor === void 0 ? '#333' : _props$fontColor,
|
|
14
|
-
_props$lineHeight = props.lineHeight,
|
|
15
|
-
lineHeight = _props$lineHeight === void 0 ? 'auto' : _props$lineHeight,
|
|
16
|
-
_props$lineNum = props.lineNum,
|
|
17
|
-
lineNum = _props$lineNum === void 0 ? 1 : _props$lineNum,
|
|
18
|
-
dataSourceSetting = props.dataSourceSetting;
|
|
19
|
-
console.log('dataSourceSetting的值为', dataSourceSetting);
|
|
20
|
-
|
|
21
|
-
// 设置图标尺寸
|
|
22
|
-
var iconStyle = {};
|
|
23
|
-
switch (iconSize) {
|
|
24
|
-
case 'large':
|
|
25
|
-
iconStyle = {
|
|
26
|
-
width: '64px',
|
|
27
|
-
height: '64px'
|
|
28
|
-
};
|
|
29
|
-
break;
|
|
30
|
-
case 'medium':
|
|
31
|
-
iconStyle = {
|
|
32
|
-
width: '48px',
|
|
33
|
-
height: '48px'
|
|
34
|
-
};
|
|
35
|
-
break;
|
|
36
|
-
case 'small':
|
|
37
|
-
iconStyle = {
|
|
38
|
-
width: '32px',
|
|
39
|
-
height: '32px'
|
|
40
|
-
};
|
|
41
|
-
break;
|
|
42
|
-
default:
|
|
43
|
-
iconStyle = {
|
|
44
|
-
width: '48px',
|
|
45
|
-
height: '48px'
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// 设置字重
|
|
50
|
-
var fontStyle = {
|
|
51
|
-
fontWeight: fontWeight,
|
|
52
|
-
fontSize: fontSize,
|
|
53
|
-
color: fontColor,
|
|
54
|
-
lineHeight: lineHeight
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// 设置行数
|
|
58
|
-
var fontLineStyle = {};
|
|
59
|
-
fontLineStyle = {
|
|
60
|
-
maxWidth: '80px',
|
|
61
|
-
overflow: 'hidden',
|
|
62
|
-
// whiteSpace: lineNum === 1 ? 'nowrap' : 'none',
|
|
63
|
-
textOverflow: 'ellipsis',
|
|
64
|
-
display: '-webkit-box',
|
|
65
|
-
WebkitLineClamp: lineNum,
|
|
66
|
-
WebkitBoxOrient: 'vertical'
|
|
67
|
-
};
|
|
68
|
-
var fontAllStyle = _extends({}, fontStyle, fontLineStyle);
|
|
69
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
ref: ref,
|
|
71
|
-
className: "grid-navigation",
|
|
72
|
-
style: {
|
|
73
|
-
gridTemplateColumns: "repeat(" + columns + ", 1fr)"
|
|
74
|
-
}
|
|
75
|
-
}, dataSourceSetting.map(function (item, index) {
|
|
76
|
-
return item ? /*#__PURE__*/React.createElement("a", {
|
|
77
|
-
key: index,
|
|
78
|
-
href: item.link || '#',
|
|
79
|
-
className: "grid-item"
|
|
80
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
81
|
-
src: item.icon || 'https://qcloudimg.tencent-cloud.cn/raw/fe54a986a821473655ba20afe30a543a.png',
|
|
82
|
-
alt: item.title || '导航',
|
|
83
|
-
style: iconStyle
|
|
84
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
85
|
-
style: fontAllStyle
|
|
86
|
-
}, item.title || '无标题')) : null;
|
|
87
|
-
}));
|
|
88
|
-
};
|
|
89
|
-
var GridNav = /*#__PURE__*/forwardRef(ExampleComponent);
|
|
90
|
-
GridNav.displayName = 'GridNav';
|
|
91
|
-
export default GridNav;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/* write style here */
|
|
2
|
-
.grid-navigation {
|
|
3
|
-
padding: 10px;
|
|
4
|
-
width: 100%;
|
|
5
|
-
display: grid;
|
|
6
|
-
gap: 16px; /* 宫格之间的间距 */
|
|
7
|
-
// grid-template-columns: repeat(60px, minmax(1fr));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.grid-item {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
align-items: center;
|
|
14
|
-
text-align: center;
|
|
15
|
-
text-decoration: none;
|
|
16
|
-
color: #333;
|
|
17
|
-
position: relative;
|
|
18
|
-
img {
|
|
19
|
-
width: 48px;
|
|
20
|
-
height: 48px;
|
|
21
|
-
margin-bottom: 4px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
span {
|
|
25
|
-
font-size: 14px;
|
|
26
|
-
// overflow: hidden;
|
|
27
|
-
// text-overflow: ellipsis;
|
|
28
|
-
// white-space: nowrap;
|
|
29
|
-
// max-width: 60px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
color: #007bff;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./menu-list-item.scss";
|
|
3
|
-
var MenuListItem = function MenuListItem(_ref) {
|
|
4
|
-
var _ref$title = _ref.title,
|
|
5
|
-
title = _ref$title === void 0 ? '菜单名称' : _ref$title,
|
|
6
|
-
_ref$iconUrl = _ref.iconUrl,
|
|
7
|
-
iconUrl = _ref$iconUrl === void 0 ? '' : _ref$iconUrl,
|
|
8
|
-
handleClick = _ref.handleClick;
|
|
9
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: "menu-list__panel__item",
|
|
11
|
-
onClick: handleClick
|
|
12
|
-
}, iconUrl ? /*#__PURE__*/React.createElement("div", {
|
|
13
|
-
className: "menu-list__panel__item_icon"
|
|
14
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
15
|
-
alt: "",
|
|
16
|
-
src: iconUrl
|
|
17
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: "menu-list__panel__item_title"
|
|
19
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
className: "menu-list__panel__item_right"
|
|
21
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
22
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
width: "32",
|
|
24
|
-
height: "32",
|
|
25
|
-
viewBox: "0 0 32 32"
|
|
26
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
27
|
-
fill: "currentColor",
|
|
28
|
-
d: "M22 16L12 26l-1.4-1.4l8.6-8.6l-8.6-8.6L12 6z"
|
|
29
|
-
}))));
|
|
30
|
-
};
|
|
31
|
-
MenuListItem.displayName = 'MenuListItem';
|
|
32
|
-
export default MenuListItem;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@import '../../variables.scss';
|
|
2
|
-
|
|
3
|
-
.menu-list__panel__item {
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: 7px;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
height: 45px;
|
|
9
|
-
|
|
10
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
11
|
-
|
|
12
|
-
&:last-child {
|
|
13
|
-
border-bottom: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.menu-list__panel__item_icon {
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
|
|
21
|
-
& > img {
|
|
22
|
-
height: 15px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.menu-list__panel__item_title {
|
|
27
|
-
font-size: 15px;
|
|
28
|
-
color: #666666;
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
margin-right: auto;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.menu-list__panel__item_right {
|
|
34
|
-
height: 100%;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
|
|
38
|
-
& > svg {
|
|
39
|
-
height: 16px;
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
color: #666666;
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["dataList"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
import MenuListItem from "./menu-list-item";
|
|
7
|
-
var MenuList = function MenuList(_ref) {
|
|
8
|
-
var dataList = _ref.dataList,
|
|
9
|
-
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
10
|
-
var _otherProps = otherProps || {};
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12
|
-
className: "menu-list__panel"
|
|
13
|
-
}, _otherProps), /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
className: "menu-list__panel__item-list"
|
|
15
|
-
}, dataList.map(function (item, index) {
|
|
16
|
-
return /*#__PURE__*/React.createElement(MenuListItem, {
|
|
17
|
-
key: index,
|
|
18
|
-
title: item.title,
|
|
19
|
-
iconUrl: item.iconUrl,
|
|
20
|
-
handleClick: item.handleClick
|
|
21
|
-
});
|
|
22
|
-
})));
|
|
23
|
-
};
|
|
24
|
-
MenuList.displayName = 'MenuList';
|
|
25
|
-
export default MenuList;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 数据
|
|
3
|
-
*/
|
|
4
|
-
export interface MenuListDataProps {
|
|
5
|
-
/**
|
|
6
|
-
* 菜单名称
|
|
7
|
-
*/
|
|
8
|
-
title: string;
|
|
9
|
-
/**
|
|
10
|
-
* 菜单图标地址
|
|
11
|
-
*/
|
|
12
|
-
iconUrl?: string;
|
|
13
|
-
/**
|
|
14
|
-
* 点击事件
|
|
15
|
-
*/
|
|
16
|
-
handleClick?: Function;
|
|
17
|
-
}
|
|
18
|
-
export interface MenuListProps {
|
|
19
|
-
/**
|
|
20
|
-
* 数据
|
|
21
|
-
*/
|
|
22
|
-
dataList?: MenuListDataProps[];
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.location {
|
|
2
|
-
display: flex;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
&-address {
|
|
5
|
-
margin-right: 7px;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
.location-list {
|
|
9
|
-
position: fixed;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
width: 100vw;
|
|
13
|
-
height: 100vh;
|
|
14
|
-
background-color: #fff;
|
|
15
|
-
padding: 10px 15px;
|
|
16
|
-
z-index: 999;
|
|
17
|
-
&-item {
|
|
18
|
-
padding: 10px 0;
|
|
19
|
-
border-bottom: solid 1px #eee;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
import { Location } from "./entity";
|
|
4
|
-
export interface LocationProps {
|
|
5
|
-
currentLocation: Location;
|
|
6
|
-
clickHandle: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const NavigationLeft: React.FC<LocationProps>;
|
|
9
|
-
export default NavigationLeft;
|