@lemon-fe/components 0.1.125 → 0.1.127
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/Filter/index.less +2 -2
- package/es/Layout/index.less +5 -5
- package/es/MainFramework/components/DropMenu/index.js +2 -2
- package/es/MainFramework/components/Menu/index.js +2 -1
- package/es/MainFramework/components/Menu/index.less +7 -0
- package/es/MainFramework/components/RefreshButton/index.js +2 -2
- package/es/Section/index.less +3 -3
- package/es/SiderTree/index.less +7 -5
- package/es/theme.less +3 -0
- package/package.json +2 -2
package/es/Filter/index.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.@{prefixCls}-filter {
|
|
2
2
|
&-tab-bar {
|
|
3
|
-
margin-bottom:
|
|
3
|
+
margin-bottom: @space-v;
|
|
4
4
|
|
|
5
5
|
.@{prefixCls}-tab-bar-item {
|
|
6
6
|
padding: 8px 12px;
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.@{prefixCls}-section-body > .@{prefixCls}-filter:not(.@{prefixCls}-filter-simple):first-child {
|
|
77
|
-
margin-top: -
|
|
77
|
+
margin-top: -@space-v;
|
|
78
78
|
}
|
package/es/Layout/index.less
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100%;
|
|
6
|
-
padding: 0 @space;
|
|
6
|
+
padding: 0 @space-h;
|
|
7
7
|
background: #f2f2f2;
|
|
8
8
|
|
|
9
9
|
&-header {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
|
|
68
68
|
&-collapse {
|
|
69
69
|
position: absolute;
|
|
70
|
-
top:
|
|
70
|
+
top: @space-v;
|
|
71
71
|
right: 0;
|
|
72
72
|
z-index: 100;
|
|
73
73
|
box-sizing: border-box;
|
|
@@ -115,10 +115,10 @@
|
|
|
115
115
|
align-items: center;
|
|
116
116
|
justify-content: center;
|
|
117
117
|
box-sizing: border-box;
|
|
118
|
-
height:
|
|
119
|
-
padding: @space;
|
|
118
|
+
height: 60px;
|
|
119
|
+
padding: @space-v @space-h;
|
|
120
120
|
background: #fff;
|
|
121
|
-
|
|
121
|
+
box-shadow: inset 0 1px 0 0 #dfdfdf;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&-spin {
|
|
@@ -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/es/Section/index.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.@{prefixCls}-section {
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
|
-
padding:
|
|
4
|
+
padding: @space-v @space-h;
|
|
5
5
|
color: #333;
|
|
6
6
|
|
|
7
7
|
& + & {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
&-tab {
|
|
78
78
|
display: inline-flex;
|
|
79
79
|
align-self: flex-start;
|
|
80
|
-
margin-bottom:
|
|
80
|
+
margin-bottom: @space-v;
|
|
81
81
|
padding: 2px;
|
|
82
82
|
background-color: #f2f2f2;
|
|
83
83
|
border-radius: 4px;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
&-item {
|
|
86
86
|
position: relative;
|
|
87
87
|
min-width: 88px;
|
|
88
|
-
padding:
|
|
88
|
+
padding: (@space-v / 2) (@space-h / 2);
|
|
89
89
|
color: rgba(51, 51, 51, 0.65);
|
|
90
90
|
font-size: 14px;
|
|
91
91
|
line-height: 22px;
|
package/es/SiderTree/index.less
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
height: 100%;
|
|
10
|
-
padding: @space 0;
|
|
10
|
+
padding: @space-v 0;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&-menu-popover {
|
|
@@ -47,18 +47,20 @@
|
|
|
47
47
|
.fullTabs();
|
|
48
48
|
|
|
49
49
|
& > .@{ant-prefix}-tabs-nav {
|
|
50
|
-
margin: 0 @space;
|
|
50
|
+
margin: 0 @space-h;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&-header {
|
|
55
|
-
padding: 0 @space;
|
|
55
|
+
padding: 0 @space-h;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
&-body {
|
|
59
59
|
min-height: 0;
|
|
60
|
-
padding: 0 @space;
|
|
60
|
+
padding: 0 @space-h;
|
|
61
61
|
overflow: auto;
|
|
62
|
+
|
|
63
|
+
.scrollBar(8px);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
&-header + &-body {
|
|
@@ -207,5 +209,5 @@
|
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
.@{prefixCls}-layout-left .@{prefixCls}-tree-wrapper:first-child .@{prefixCls}-tree-header {
|
|
210
|
-
padding-right: 12px + @space;
|
|
212
|
+
padding-right: 12px + @space-h;
|
|
211
213
|
}
|
package/es/theme.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.127",
|
|
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": "a9474fa6f304224a06ed537c7be81796dd6a119f"
|
|
43
43
|
}
|