@lemon-fe/components 0.1.78 → 0.1.82
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/es/BaseTable/index.less +1 -1
- package/es/ColorPicker/index.less +47 -0
- package/es/MainFramework/components/Menu/index.less +0 -407
- package/es/Table/typings.d.ts +0 -1
- package/es/index.less +1 -0
- package/package.json +5 -2
- package/es/Actions/index.d.ts +0 -26
- package/es/Actions/index.js +0 -171
- package/es/BaseTable/Actions.d.ts +0 -8
- package/es/BaseTable/Actions.js +0 -136
- package/es/BaseTable/BaseTableContext.d.ts +0 -6
- package/es/BaseTable/BaseTableContext.js +0 -6
- package/es/BaseTable/ResizeHeaderCell.d.ts +0 -8
- package/es/BaseTable/ResizeHeaderCell.js +0 -126
- package/es/BaseTable/VirtualBody.d.ts +0 -8
- package/es/BaseTable/VirtualBody.js +0 -165
- package/es/BaseTable/index.d.ts +0 -7
- package/es/BaseTable/index.js +0 -465
- package/es/BaseTable/utils.d.ts +0 -4
- package/es/BaseTable/utils.js +0 -26
- package/es/Dropdown/index.d.ts +0 -14
- package/es/Dropdown/index.js +0 -53
- package/es/DurationPicker/index.d.ts +0 -25
- package/es/DurationPicker/index.js +0 -237
- package/es/EditableTable/EditableCell.d.ts +0 -11
- package/es/EditableTable/EditableCell.js +0 -37
- package/es/EditableTable/EditableTableFormItem.d.ts +0 -5
- package/es/EditableTable/EditableTableFormItem.js +0 -49
- package/es/EditableTable/Table.d.ts +0 -7
- package/es/EditableTable/Table.js +0 -363
- package/es/EditableTable/index.d.ts +0 -9
- package/es/EditableTable/index.js +0 -8
- package/es/EditableTable/util.d.ts +0 -25
- package/es/EditableTable/util.js +0 -387
- package/es/Filter/index.d.ts +0 -7
- package/es/Filter/index.js +0 -610
- package/es/FormHorizontal/index.d.ts +0 -6
- package/es/FormHorizontal/index.js +0 -35
- package/es/FormInline/index.d.ts +0 -15
- package/es/FormInline/index.js +0 -90
- package/es/FormLayout/index.d.ts +0 -32
- package/es/FormLayout/index.js +0 -41
- package/es/FormTable/index.d.ts +0 -6
- package/es/FormTable/index.js +0 -159
- package/es/Icons/BigTip/index.d.ts +0 -6
- package/es/Icons/BigTip/index.js +0 -50
- package/es/Icons/Calendar.d.ts +0 -5
- package/es/Icons/Calendar.js +0 -47
- package/es/Icons/CollapseUp.d.ts +0 -5
- package/es/Icons/CollapseUp.js +0 -31
- package/es/Icons/DarkSearch.d.ts +0 -5
- package/es/Icons/DarkSearch.js +0 -38
- package/es/Icons/Down.d.ts +0 -5
- package/es/Icons/Down.js +0 -35
- package/es/Icons/Empty.d.ts +0 -2
- package/es/Icons/Empty.js +0 -267
- package/es/Icons/LookUp.d.ts +0 -5
- package/es/Icons/LookUp.js +0 -74
- package/es/Icons/More.d.ts +0 -5
- package/es/Icons/More.js +0 -44
- package/es/Icons/Search.d.ts +0 -5
- package/es/Icons/Search.js +0 -35
- package/es/Icons/Tip.d.ts +0 -6
- package/es/Icons/Tip.js +0 -169
- package/es/Icons/index.d.ts +0 -22
- package/es/Icons/index.js +0 -23
- package/es/InputMaxLength/index.d.ts +0 -14
- package/es/InputMaxLength/index.js +0 -92
- package/es/Layout/index.d.ts +0 -41
- package/es/Layout/index.js +0 -175
- package/es/MainFramework/components/DropMenu/index.d.ts +0 -10
- package/es/MainFramework/components/DropMenu/index.js +0 -104
- package/es/MainFramework/components/Menu/index.d.ts +0 -9
- package/es/MainFramework/components/Menu/index.js +0 -656
- package/es/MainFramework/components/RefreshButton/index.d.ts +0 -5
- package/es/MainFramework/components/RefreshButton/index.js +0 -72
- package/es/MainFramework/components/RefreshButton/index.less +0 -30
- package/es/MainFramework/components/TabBar/index.d.ts +0 -9
- package/es/MainFramework/components/TabBar/index.js +0 -116
- package/es/MainFramework/index.d.ts +0 -24
- package/es/MainFramework/index.js +0 -66
- package/es/PageLoading/index.d.ts +0 -5
- package/es/PageLoading/index.js +0 -15
- package/es/Popup/index.d.ts +0 -37
- package/es/Popup/index.js +0 -198
- package/es/Portal/index.d.ts +0 -12
- package/es/Portal/index.js +0 -72
- package/es/Section/TabBar.d.ts +0 -12
- package/es/Section/TabBar.js +0 -48
- package/es/Section/index.d.ts +0 -54
- package/es/Section/index.js +0 -96
- package/es/SelectView/index.d.ts +0 -53
- package/es/SelectView/index.js +0 -257
- package/es/SiderTree/TreeNodeTitle.d.ts +0 -8
- package/es/SiderTree/TreeNodeTitle.js +0 -107
- package/es/SiderTree/index.d.ts +0 -37
- package/es/SiderTree/index.js +0 -221
- package/es/SymbolIcon/index.d.ts +0 -8
- package/es/SymbolIcon/index.js +0 -32
- package/es/TabBar/index.d.ts +0 -14
- package/es/TabBar/index.js +0 -52
- package/es/Table/index.d.ts +0 -2
- package/es/Table/index.js +0 -236
- package/es/Table/utils.d.ts +0 -2
- package/es/Table/utils.js +0 -3
- package/es/TipMark/index.d.ts +0 -10
- package/es/TipMark/index.js +0 -45
- package/es/constants.d.ts +0 -1
- package/es/constants.js +0 -1
- package/es/index.d.ts +0 -31
- package/es/index.js +0 -26
- package/es/init.d.ts +0 -3
- package/es/init.js +0 -135
- package/es/utils.d.ts +0 -2
- package/es/utils.js +0 -14
package/es/Icons/Tip.js
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
var _excluded = ["type"];
|
|
2
|
-
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
|
|
5
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
-
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
|
-
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
-
|
|
11
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import Icon from '@ant-design/icons';
|
|
15
|
-
|
|
16
|
-
var ErrorSvg = function ErrorSvg(props) {
|
|
17
|
-
return /*#__PURE__*/React.createElement("svg", _objectSpread({
|
|
18
|
-
width: "1em",
|
|
19
|
-
height: "1em",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
viewBox: "0 0 20 20"
|
|
22
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
23
|
-
fill: "none",
|
|
24
|
-
fillRule: "evenodd"
|
|
25
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
26
|
-
fill: "#EC4510",
|
|
27
|
-
cx: "10",
|
|
28
|
-
cy: "10",
|
|
29
|
-
r: "10"
|
|
30
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
31
|
-
transform: "rotate(45 3.172 12.828)",
|
|
32
|
-
fill: "#FFF"
|
|
33
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
34
|
-
x: "4",
|
|
35
|
-
width: "4",
|
|
36
|
-
height: "12",
|
|
37
|
-
rx: "1"
|
|
38
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
39
|
-
transform: "rotate(90 6 6)",
|
|
40
|
-
x: "4",
|
|
41
|
-
width: "4",
|
|
42
|
-
height: "12",
|
|
43
|
-
rx: "1"
|
|
44
|
-
}))));
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
var SuccessSvg = function SuccessSvg(props) {
|
|
48
|
-
return /*#__PURE__*/React.createElement("svg", _objectSpread({
|
|
49
|
-
width: "1em",
|
|
50
|
-
height: "1em",
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
viewBox: "0 0 20 20"
|
|
53
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
54
|
-
fill: "none",
|
|
55
|
-
fillRule: "evenodd"
|
|
56
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
57
|
-
fill: "#1ED07C",
|
|
58
|
-
cx: "10",
|
|
59
|
-
cy: "10",
|
|
60
|
-
r: "10"
|
|
61
|
-
}), /*#__PURE__*/React.createElement("g", {
|
|
62
|
-
transform: "rotate(45 3.379 14.743)",
|
|
63
|
-
fill: "#FFF"
|
|
64
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
65
|
-
x: "4",
|
|
66
|
-
width: "4",
|
|
67
|
-
height: "12",
|
|
68
|
-
rx: "1"
|
|
69
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
70
|
-
transform: "rotate(90 4 10)",
|
|
71
|
-
x: "2",
|
|
72
|
-
y: "6",
|
|
73
|
-
width: "4",
|
|
74
|
-
height: "8",
|
|
75
|
-
rx: "1"
|
|
76
|
-
}))));
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
var WarningSvg = function WarningSvg(props) {
|
|
80
|
-
return /*#__PURE__*/React.createElement("svg", _objectSpread({
|
|
81
|
-
width: "1em",
|
|
82
|
-
height: "1em",
|
|
83
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
84
|
-
viewBox: "0 0 20 20"
|
|
85
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
86
|
-
fill: "none",
|
|
87
|
-
fillRule: "evenodd"
|
|
88
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
89
|
-
fill: "#FAAD14",
|
|
90
|
-
cx: "10",
|
|
91
|
-
cy: "10",
|
|
92
|
-
r: "10"
|
|
93
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
94
|
-
fill: "#FFF",
|
|
95
|
-
x: "8",
|
|
96
|
-
y: "13",
|
|
97
|
-
width: "4",
|
|
98
|
-
height: "4",
|
|
99
|
-
rx: "1"
|
|
100
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
101
|
-
fill: "#FFF",
|
|
102
|
-
x: "8",
|
|
103
|
-
y: "4",
|
|
104
|
-
width: "4",
|
|
105
|
-
height: "8",
|
|
106
|
-
rx: "1"
|
|
107
|
-
})));
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
var InfoSvg = function InfoSvg(props) {
|
|
111
|
-
return /*#__PURE__*/React.createElement("svg", _objectSpread({
|
|
112
|
-
width: "1em",
|
|
113
|
-
height: "1em",
|
|
114
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
115
|
-
viewBox: "0 0 20 20"
|
|
116
|
-
}, props), /*#__PURE__*/React.createElement("g", {
|
|
117
|
-
fill: "none",
|
|
118
|
-
fillRule: "evenodd"
|
|
119
|
-
}, /*#__PURE__*/React.createElement("circle", {
|
|
120
|
-
fill: "#2357DF",
|
|
121
|
-
cx: "10",
|
|
122
|
-
cy: "10",
|
|
123
|
-
r: "10"
|
|
124
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
125
|
-
fill: "#FFF",
|
|
126
|
-
x: "8",
|
|
127
|
-
y: "4",
|
|
128
|
-
width: "4",
|
|
129
|
-
height: "4",
|
|
130
|
-
rx: "1"
|
|
131
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
132
|
-
fill: "#FFF",
|
|
133
|
-
x: "8",
|
|
134
|
-
y: "9",
|
|
135
|
-
width: "4",
|
|
136
|
-
height: "8",
|
|
137
|
-
rx: "1"
|
|
138
|
-
})));
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export default function Tip(props) {
|
|
142
|
-
var _props$type = props.type,
|
|
143
|
-
type = _props$type === void 0 ? 'success' : _props$type,
|
|
144
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
145
|
-
|
|
146
|
-
var comp;
|
|
147
|
-
|
|
148
|
-
switch (type) {
|
|
149
|
-
case 'warning':
|
|
150
|
-
comp = WarningSvg;
|
|
151
|
-
break;
|
|
152
|
-
|
|
153
|
-
case 'error':
|
|
154
|
-
comp = ErrorSvg;
|
|
155
|
-
break;
|
|
156
|
-
|
|
157
|
-
case 'info':
|
|
158
|
-
comp = InfoSvg;
|
|
159
|
-
break;
|
|
160
|
-
|
|
161
|
-
case 'success':
|
|
162
|
-
default:
|
|
163
|
-
comp = SuccessSvg;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return /*#__PURE__*/React.createElement(Icon, _objectSpread({
|
|
167
|
-
component: comp
|
|
168
|
-
}, restProps));
|
|
169
|
-
}
|
package/es/Icons/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Down from './Down';
|
|
2
|
-
import Search from './Search';
|
|
3
|
-
import Tip from './Tip';
|
|
4
|
-
import DarkSearch from './DarkSearch';
|
|
5
|
-
import More from './More';
|
|
6
|
-
import Calendar from './Calendar';
|
|
7
|
-
import BigTip from './BigTip';
|
|
8
|
-
import LookUp from './LookUp';
|
|
9
|
-
import CollapseUp from './CollapseUp';
|
|
10
|
-
declare const Icons: {
|
|
11
|
-
Search: typeof Search;
|
|
12
|
-
Down: typeof Down;
|
|
13
|
-
Tip: typeof Tip;
|
|
14
|
-
Empty: () => JSX.Element;
|
|
15
|
-
DarkSearch: typeof DarkSearch;
|
|
16
|
-
More: typeof More;
|
|
17
|
-
Calendar: typeof Calendar;
|
|
18
|
-
BigTip: typeof BigTip;
|
|
19
|
-
LookUp: typeof LookUp;
|
|
20
|
-
CollapseUp: typeof CollapseUp;
|
|
21
|
-
};
|
|
22
|
-
export default Icons;
|
package/es/Icons/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Down from './Down';
|
|
2
|
-
import Search from './Search';
|
|
3
|
-
import Tip from './Tip';
|
|
4
|
-
import Empty from './Empty';
|
|
5
|
-
import DarkSearch from './DarkSearch';
|
|
6
|
-
import More from './More';
|
|
7
|
-
import Calendar from './Calendar';
|
|
8
|
-
import BigTip from './BigTip';
|
|
9
|
-
import LookUp from './LookUp';
|
|
10
|
-
import CollapseUp from './CollapseUp';
|
|
11
|
-
var Icons = {
|
|
12
|
-
Search: Search,
|
|
13
|
-
Down: Down,
|
|
14
|
-
Tip: Tip,
|
|
15
|
-
Empty: Empty,
|
|
16
|
-
DarkSearch: DarkSearch,
|
|
17
|
-
More: More,
|
|
18
|
-
Calendar: Calendar,
|
|
19
|
-
BigTip: BigTip,
|
|
20
|
-
LookUp: LookUp,
|
|
21
|
-
CollapseUp: CollapseUp
|
|
22
|
-
};
|
|
23
|
-
export default Icons;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
2
|
-
declare type Value = string | number | undefined;
|
|
3
|
-
interface InputWithLengthLimitProps {
|
|
4
|
-
maxLength?: number;
|
|
5
|
-
value?: Value;
|
|
6
|
-
isRealLength?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
onChange?: (value: string) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
defaultValue?: Value;
|
|
12
|
-
}
|
|
13
|
-
declare const InputWithLengthLimit: (props: InputWithLengthLimitProps) => JSX.Element;
|
|
14
|
-
export default InputWithLengthLimit;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
var _excluded = ["maxLength", "value", "isRealLength", "className", "onChange"];
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
|
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
-
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import classNames from 'classnames';
|
|
15
|
-
import { Input } from 'antd';
|
|
16
|
-
|
|
17
|
-
var InputWithLengthLimit = function InputWithLengthLimit(props) {
|
|
18
|
-
var _props$maxLength = props.maxLength,
|
|
19
|
-
maxLength = _props$maxLength === void 0 ? 10 : _props$maxLength,
|
|
20
|
-
value = props.value,
|
|
21
|
-
isRealLength = props.isRealLength,
|
|
22
|
-
_props$className = props.className,
|
|
23
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
24
|
-
onChange = props.onChange,
|
|
25
|
-
otherProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
-
|
|
27
|
-
var getTextLength = function getTextLength(str) {
|
|
28
|
-
var chiLength = 0; //中文汉字数
|
|
29
|
-
|
|
30
|
-
var maxLength = 10;
|
|
31
|
-
var len = 0;
|
|
32
|
-
chiLength = 0; //中文汉字数
|
|
33
|
-
|
|
34
|
-
for (var i = 0; i < str.length; i++) {
|
|
35
|
-
var c = str.charCodeAt(i);
|
|
36
|
-
var one = c >= 0x0001 && c <= 0x007e || 0xff60 <= c && c <= 0xff9f; //单字节加1
|
|
37
|
-
|
|
38
|
-
if (one && len <= 20) {
|
|
39
|
-
len++;
|
|
40
|
-
maxLength++;
|
|
41
|
-
} else if (len < 20) {
|
|
42
|
-
len += 2;
|
|
43
|
-
chiLength++;
|
|
44
|
-
maxLength++;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return len;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var handleOnChange = function handleOnChange(event) {
|
|
52
|
-
var value = event.target.value;
|
|
53
|
-
var newValue = value ? value.toString() : '';
|
|
54
|
-
|
|
55
|
-
if (isRealLength) {
|
|
56
|
-
var currentNum = getTextLength(newValue);
|
|
57
|
-
|
|
58
|
-
if (currentNum > maxLength) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (onChange) onChange(value);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
var renderLengthNotice = function renderLengthNotice() {
|
|
67
|
-
var newValue = value ? value.toString() : '';
|
|
68
|
-
var currentNum = 0;
|
|
69
|
-
currentNum = newValue && newValue.length || 0;
|
|
70
|
-
|
|
71
|
-
if (isRealLength) {
|
|
72
|
-
currentNum = getTextLength(newValue);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
76
|
-
style: {
|
|
77
|
-
color: '#aaa'
|
|
78
|
-
}
|
|
79
|
-
}, currentNum, "/", maxLength);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return /*#__PURE__*/React.createElement(Input, _objectSpread(_objectSpread({
|
|
83
|
-
className: classNames('input-max-length', className),
|
|
84
|
-
maxLength: maxLength,
|
|
85
|
-
value: value
|
|
86
|
-
}, otherProps), {}, {
|
|
87
|
-
onChange: handleOnChange,
|
|
88
|
-
suffix: renderLengthNotice()
|
|
89
|
-
}));
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export default InputWithLengthLimit;
|
package/es/Layout/index.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
interface Props {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
/**
|
|
8
|
-
* @description 加载中
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @description 高度是否为100%
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
full?: boolean;
|
|
18
|
-
left?: ReactNode;
|
|
19
|
-
header?: ReactNode;
|
|
20
|
-
footer?: ReactNode;
|
|
21
|
-
body?: ReactNode;
|
|
22
|
-
onCollapse?: (collapsed: boolean) => void;
|
|
23
|
-
}
|
|
24
|
-
declare function Layout(props: Props): JSX.Element;
|
|
25
|
-
declare namespace Layout {
|
|
26
|
-
var Tabs: typeof LayoutTabs;
|
|
27
|
-
var Content: (props: {
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
left?: React.ReactNode;
|
|
30
|
-
tab?: string | undefined;
|
|
31
|
-
} & Pick<Props, "onCollapse">) => JSX.Element;
|
|
32
|
-
}
|
|
33
|
-
export default Layout;
|
|
34
|
-
declare function LayoutTabs(props: {
|
|
35
|
-
tabs?: {
|
|
36
|
-
title: string;
|
|
37
|
-
key?: string;
|
|
38
|
-
}[];
|
|
39
|
-
activeKey?: string;
|
|
40
|
-
onTabClick?: (activeKey: string, e: React.KeyboardEvent | React.MouseEvent) => void;
|
|
41
|
-
} & Omit<Props, 'body'>): JSX.Element;
|
package/es/Layout/index.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
var _excluded = ["tabs", "children", "className", "activeKey", "onTabClick"];
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
|
|
9
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
|
|
11
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
|
|
13
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
-
|
|
15
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
-
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
|
|
19
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
-
|
|
21
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
|
-
|
|
23
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
-
|
|
25
|
-
import React, { useState } from 'react';
|
|
26
|
-
import classNames from 'classnames';
|
|
27
|
-
import { Spin, Tabs } from 'antd';
|
|
28
|
-
import { get } from 'lodash';
|
|
29
|
-
import { PREFIX_CLS } from '../constants';
|
|
30
|
-
import { mapChildren } from '../utils';
|
|
31
|
-
var prefixCls = "".concat(PREFIX_CLS, "-layout");
|
|
32
|
-
|
|
33
|
-
function Sider(props) {
|
|
34
|
-
var children = props.children,
|
|
35
|
-
onCollapse = props.onCollapse;
|
|
36
|
-
|
|
37
|
-
var _useState = useState(false),
|
|
38
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
-
collapsed = _useState2[0],
|
|
40
|
-
setCollapsed = _useState2[1];
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: classNames("".concat(prefixCls, "-left"), _defineProperty({}, "".concat(prefixCls, "-left-collapsed"), collapsed))
|
|
44
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: "".concat(prefixCls, "-left-body")
|
|
46
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
-
className: "".concat(prefixCls, "-left-content")
|
|
48
|
-
}, children)), /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: "".concat(prefixCls, "-left-collapse"),
|
|
50
|
-
onClick: function onClick() {
|
|
51
|
-
var result = !collapsed;
|
|
52
|
-
onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(result);
|
|
53
|
-
setCollapsed(result);
|
|
54
|
-
}
|
|
55
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
56
|
-
width: "12",
|
|
57
|
-
height: "12",
|
|
58
|
-
version: "1.1",
|
|
59
|
-
viewBox: "0 0 12 12"
|
|
60
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
61
|
-
stroke: "none",
|
|
62
|
-
strokeWidth: "1",
|
|
63
|
-
fill: "none",
|
|
64
|
-
fillRule: "evenodd",
|
|
65
|
-
opacity: "1"
|
|
66
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
67
|
-
transform: "translate(-463.000000, -140.000000)"
|
|
68
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
69
|
-
transform: "translate(463.000000, 140.000000)"
|
|
70
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
71
|
-
opacity: "0.699999988",
|
|
72
|
-
transform: "translate(2.000000, 2.000000)"
|
|
73
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
74
|
-
d: "M9,0.75 C9,1.16421356 8.66421356,1.5 8.25,1.5 L5.75,1.5 C5.33578644,1.5 5,1.16421356 5,0.75 C5,0.335786438 5.33578644,7.6089797e-17 5.75,0 L8.25,0 C8.66421356,-7.6089797e-17 9,0.335786438 9,0.75 Z",
|
|
75
|
-
id: "Rectangle-393",
|
|
76
|
-
fill: "currentColor",
|
|
77
|
-
fillRule: "nonzero"
|
|
78
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
79
|
-
d: "M9,4 C9,4.41421356 8.66421356,4.75 8.25,4.75 L5.75,4.75 C5.33578644,4.75 5,4.41421356 5,4 C5,3.58578644 5.33578644,3.25 5.75,3.25 L8.25,3.25 C8.66421356,3.25 9,3.58578644 9,4 Z",
|
|
80
|
-
id: "Rectangle-394",
|
|
81
|
-
fill: "currentColor",
|
|
82
|
-
fillRule: "nonzero"
|
|
83
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
84
|
-
d: "M9,7.75 C9,8.16421356 8.66421356,8.5 8.25,8.5 L0.75,8.5 C0.335786438,8.5 5.07265313e-17,8.16421356 0,7.75 C-5.07265313e-17,7.33578644 0.335786438,7 0.75,7 L8.25,7 C8.66421356,7 9,7.33578644 9,7.75 Z",
|
|
85
|
-
id: "Rectangle-395",
|
|
86
|
-
fill: "currentColor",
|
|
87
|
-
fillRule: "nonzero"
|
|
88
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
89
|
-
d: "M4.32842712,0.621320344 L1.32842712,0.621320344 L1.32842712,3.62132034",
|
|
90
|
-
stroke: "currentColor",
|
|
91
|
-
strokeWidth: "1.5",
|
|
92
|
-
strokeLinecap: "round",
|
|
93
|
-
strokeLinejoin: "round",
|
|
94
|
-
strokeDasharray: "0,0",
|
|
95
|
-
transform: "translate(2.828427, 2.121320) rotate(-45.000000) translate(-2.828427, -2.121320) "
|
|
96
|
-
}))))))));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function Content(props) {
|
|
100
|
-
var left = props.left,
|
|
101
|
-
children = props.children,
|
|
102
|
-
onCollapse = props.onCollapse;
|
|
103
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
104
|
-
className: "".concat(prefixCls, "-content")
|
|
105
|
-
}, left ? /*#__PURE__*/React.createElement(Sider, {
|
|
106
|
-
onCollapse: onCollapse
|
|
107
|
-
}, left) : null, /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className: "".concat(prefixCls, "-main")
|
|
109
|
-
}, children));
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export default function Layout(props) {
|
|
113
|
-
var className = props.className,
|
|
114
|
-
style = props.style,
|
|
115
|
-
children = props.children,
|
|
116
|
-
_props$loading = props.loading,
|
|
117
|
-
loading = _props$loading === void 0 ? false : _props$loading,
|
|
118
|
-
_props$full = props.full,
|
|
119
|
-
full = _props$full === void 0 ? false : _props$full,
|
|
120
|
-
header = props.header,
|
|
121
|
-
left = props.left,
|
|
122
|
-
footer = props.footer,
|
|
123
|
-
body = props.body,
|
|
124
|
-
onCollapse = props.onCollapse;
|
|
125
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
126
|
-
className: classNames(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-full"), full)),
|
|
127
|
-
style: style
|
|
128
|
-
}, header ? /*#__PURE__*/React.createElement("div", {
|
|
129
|
-
className: "".concat(prefixCls, "-header")
|
|
130
|
-
}, header) : null, /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className: "".concat(prefixCls, "-body")
|
|
132
|
-
}, body || /*#__PURE__*/React.createElement(Content, {
|
|
133
|
-
onCollapse: onCollapse,
|
|
134
|
-
left: left
|
|
135
|
-
}, children)), footer ? /*#__PURE__*/React.createElement("div", {
|
|
136
|
-
className: "".concat(prefixCls, "-footer")
|
|
137
|
-
}, footer) : null, loading && /*#__PURE__*/React.createElement("div", {
|
|
138
|
-
className: "".concat(prefixCls, "-spin")
|
|
139
|
-
}, /*#__PURE__*/React.createElement(Spin, null)));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function LayoutTabs(props) {
|
|
143
|
-
var _props$tabs = props.tabs,
|
|
144
|
-
tabs = _props$tabs === void 0 ? [] : _props$tabs,
|
|
145
|
-
children = props.children,
|
|
146
|
-
className = props.className,
|
|
147
|
-
activeKey = props.activeKey,
|
|
148
|
-
onTabClick = props.onTabClick,
|
|
149
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
150
|
-
|
|
151
|
-
var getKey = function getKey(tab) {
|
|
152
|
-
return tab.key || tab.title;
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
var nodes = mapChildren(children, function (node, index) {
|
|
156
|
-
var _get, _get2;
|
|
157
|
-
|
|
158
|
-
var tab = tabs[index];
|
|
159
|
-
return /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
160
|
-
tab: (_get = get(node, ['props', 'tab'])) !== null && _get !== void 0 ? _get : tab.title,
|
|
161
|
-
key: (_get2 = get(node, 'key')) !== null && _get2 !== void 0 ? _get2 : getKey(tab)
|
|
162
|
-
}, node);
|
|
163
|
-
});
|
|
164
|
-
return /*#__PURE__*/React.createElement(Layout, _objectSpread({
|
|
165
|
-
className: classNames(className, "".concat(prefixCls, "-tabs-wrapper")),
|
|
166
|
-
body: /*#__PURE__*/React.createElement(Tabs, {
|
|
167
|
-
activeKey: activeKey,
|
|
168
|
-
onTabClick: onTabClick,
|
|
169
|
-
className: "".concat(prefixCls, "-tabs")
|
|
170
|
-
}, nodes)
|
|
171
|
-
}, restProps));
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
Layout.Tabs = LayoutTabs;
|
|
175
|
-
Layout.Content = Content;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
-
|
|
5
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
|
|
7
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8
|
-
|
|
9
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10
|
-
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
12
|
-
|
|
13
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
|
|
15
|
-
import React, { useState } from 'react';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import { PREFIX_CLS as prefixCls } from '../../../constants';
|
|
18
|
-
import { Popover } from 'antd';
|
|
19
|
-
export default function DropMenu(props) {
|
|
20
|
-
var tabs = props.tabs,
|
|
21
|
-
active = props.active,
|
|
22
|
-
_props$visible = props.visible,
|
|
23
|
-
visible = _props$visible === void 0 ? false : _props$visible,
|
|
24
|
-
onClick = props.onClick,
|
|
25
|
-
onClose = props.onClose;
|
|
26
|
-
|
|
27
|
-
var _useState = useState(false),
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
popVisible = _useState2[0],
|
|
30
|
-
setPopVisible = _useState2[1];
|
|
31
|
-
|
|
32
|
-
var handleClose = function handleClose(e, index) {
|
|
33
|
-
e.stopPropagation();
|
|
34
|
-
onClose(index);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var handleClick = function handleClick(index) {
|
|
38
|
-
onClick(index);
|
|
39
|
-
setPopVisible(false);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
return /*#__PURE__*/React.createElement(Popover, {
|
|
43
|
-
visible: popVisible,
|
|
44
|
-
onVisibleChange: setPopVisible,
|
|
45
|
-
overlayClassName: "".concat(prefixCls, "-nav-menu-pop"),
|
|
46
|
-
trigger: "click",
|
|
47
|
-
placement: "bottomRight",
|
|
48
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: "".concat(prefixCls, "-nav-menu-tabs")
|
|
50
|
-
}, tabs.map(function (item, index) {
|
|
51
|
-
var key = item.title;
|
|
52
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: classNames("".concat(prefixCls, "-nav-menu-tab"), _defineProperty({}, "".concat(prefixCls, "-nav-menu-tab-active"), index === active)),
|
|
54
|
-
onClick: function onClick() {
|
|
55
|
-
return handleClick(index);
|
|
56
|
-
},
|
|
57
|
-
key: key
|
|
58
|
-
}, item.title, item.closable !== false && /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "".concat(prefixCls, "-nav-menu-tab-close"),
|
|
60
|
-
onClick: function onClick(e) {
|
|
61
|
-
return handleClose(e, index);
|
|
62
|
-
}
|
|
63
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
64
|
-
width: "14",
|
|
65
|
-
height: "14",
|
|
66
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
67
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
68
|
-
fill: "none",
|
|
69
|
-
fillRule: "evenodd"
|
|
70
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
71
|
-
fill: "currentColor"
|
|
72
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
73
|
-
fillRule: "nonzero"
|
|
74
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
75
|
-
d: "M7.74992318,2.75006802 L7.74992318,11.250068 C7.74992318,11.6642816 7.41413675,12.000068 6.99992318,12.000068 C6.58570962,12.000068 6.24992318,11.6642816 6.24992318,11.250068 L6.24992318,2.75006802 C6.24992318,2.33585446 6.58570962,2.00006802 6.99992318,2.00006802 C7.41413675,2.00006802 7.74992318,2.33585446 7.74992318,2.75006802 Z",
|
|
76
|
-
transform: "translate(-367.000000, -21.000000) translate(367.000000, 21.000000) translate(6.999923, 7.000068) rotate(45.000000) translate(-6.999923, -7.000068)"
|
|
77
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
78
|
-
d: "M7.74994595,2.75007682 L7.74994595,11.2500768 C7.74994595,11.6642904 7.41415952,12.0000768 6.99994595,12.0000768 C6.58573239,12.0000768 6.24994595,11.6642904 6.24994595,11.2500768 L6.24994595,2.75007682 C6.24994595,2.33586325 6.58573239,2.00007682 6.99994595,2.00007682 C7.41415952,2.00007682 7.74994595,2.33586325 7.74994595,2.75007682 Z",
|
|
79
|
-
transform: "translate(-367.000000, -21.000000) translate(367.000000, 21.000000) translate(6.999946, 7.000077) rotate(-45.000000) translate(-6.999946, -7.000077)"
|
|
80
|
-
})))))));
|
|
81
|
-
}))
|
|
82
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
83
|
-
className: classNames("".concat(prefixCls, "-nav-menu-drop-icon"), _defineProperty({}, "".concat(prefixCls, "-nav-menu-drop-icon-active"), popVisible)),
|
|
84
|
-
style: visible ? {
|
|
85
|
-
visibility: 'visible'
|
|
86
|
-
} : {
|
|
87
|
-
visibility: 'hidden'
|
|
88
|
-
}
|
|
89
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
90
|
-
width: "20",
|
|
91
|
-
height: "20",
|
|
92
|
-
viewBox: "0 0 20 20",
|
|
93
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
94
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
95
|
-
d: "M5.757 7.757 10 12l4.243-4.243",
|
|
96
|
-
stroke: "currentColor",
|
|
97
|
-
strokeWidth: "1.5",
|
|
98
|
-
strokeLinecap: "round",
|
|
99
|
-
strokeLinejoin: "round",
|
|
100
|
-
strokeDasharray: "0,0",
|
|
101
|
-
fill: "none",
|
|
102
|
-
fillRule: "evenodd"
|
|
103
|
-
}))));
|
|
104
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { MenuFavorites, MenuItem } from '../../typings';
|
|
2
|
-
interface Props {
|
|
3
|
-
data: MenuItem[];
|
|
4
|
-
favorites?: MenuFavorites;
|
|
5
|
-
onFavoritesChange?: (items: MenuFavorites) => void;
|
|
6
|
-
onClick: (item: MenuItem) => void;
|
|
7
|
-
}
|
|
8
|
-
export default function Menu(props: Props): JSX.Element;
|
|
9
|
-
export {};
|