@lemon-fe/components 0.1.125 → 0.1.126
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.
|
@@ -29,8 +29,8 @@ export default function DropMenu(props) {
|
|
|
29
29
|
setPopVisible(false);
|
|
30
30
|
};
|
|
31
31
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
open: popVisible,
|
|
33
|
+
onOpenChange: setPopVisible,
|
|
34
34
|
overlayClassName: "".concat(prefixCls, "-nav-menu-pop"),
|
|
35
35
|
trigger: "click",
|
|
36
36
|
placement: "bottomRight",
|
|
@@ -17,6 +17,7 @@ import classNames from 'classnames';
|
|
|
17
17
|
import { useDebounce } from '@lemon-fe/hooks';
|
|
18
18
|
import { PREFIX_CLS as prefixCls } from '../../../constants';
|
|
19
19
|
import { Divider } from 'antd';
|
|
20
|
+
import Icons from '../../../Icons';
|
|
20
21
|
function Star(props) {
|
|
21
22
|
if (props.active) {
|
|
22
23
|
return /*#__PURE__*/React.createElement("svg", {
|
|
@@ -529,7 +530,7 @@ export default function Menu(props) {
|
|
|
529
530
|
className: "".concat(prefixCls, "-menu-icon")
|
|
530
531
|
}, item.icon), /*#__PURE__*/React.createElement("div", {
|
|
531
532
|
className: "".concat(prefixCls, "-menu-title")
|
|
532
|
-
}, item.name)));
|
|
533
|
+
}, item.name), item.children && item.children.length > 0 && /*#__PURE__*/React.createElement(Icons.Down, null)));
|
|
533
534
|
})), /*#__PURE__*/React.createElement("div", {
|
|
534
535
|
className: classNames("".concat(prefixCls, "-menu-divider-div"), _defineProperty({}, "".concat(prefixCls, "-menu-divider-div-collapsed"), collapsed))
|
|
535
536
|
}, /*#__PURE__*/React.createElement(Divider, {
|
|
@@ -121,9 +121,16 @@
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&-title {
|
|
124
|
+
flex: 1;
|
|
124
125
|
overflow: hidden;
|
|
125
126
|
white-space: nowrap;
|
|
126
127
|
text-overflow: ellipsis;
|
|
128
|
+
|
|
129
|
+
& + .anticon {
|
|
130
|
+
color: #666;
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
transform: rotate(270deg);
|
|
133
|
+
}
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
&-top-item:hover &-icon {
|
|
@@ -18,8 +18,8 @@ export default function RefreshButton(props) {
|
|
|
18
18
|
popVisible = _useState2[0],
|
|
19
19
|
setPopVisible = _useState2[1];
|
|
20
20
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
open: popVisible,
|
|
22
|
+
onOpenChange: setPopVisible,
|
|
23
23
|
trigger: "click",
|
|
24
24
|
overlayClassName: "".concat(prefixCls, "-refresh-down-pop"),
|
|
25
25
|
placement: "bottomRight",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.126",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "鲁盛杰 <lusj@cnlemon.net>",
|
|
6
6
|
"homepage": "",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react": "^17.0.2",
|
|
40
40
|
"react-dom": "^17.0.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "40af92a9b3630892c493b52346896abfe0f18cef"
|
|
43
43
|
}
|