linkmore-design 2.0.23 → 2.0.24
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/dist/default-theme.js +1 -1
- package/dist/linkmore-design-with-locales.css +21 -21
- package/dist/linkmore-design-with-locales.css.map +1 -1
- package/dist/linkmore-design-with-locales.js +1 -1
- package/dist/linkmore-design-with-locales.min.css +2 -2
- package/dist/linkmore-design-with-locales.min.css.map +1 -1
- package/dist/linkmore-design-with-locales.min.js +1 -1
- package/dist/linkmore-design.compact.css +62 -63
- package/dist/linkmore-design.compact.css.map +1 -1
- package/dist/linkmore-design.compact.min.css +2 -2
- package/dist/linkmore-design.compact.min.css.map +1 -1
- package/dist/linkmore-design.css +61 -62
- package/dist/linkmore-design.css.map +1 -1
- package/dist/linkmore-design.dark.css +25 -26
- package/dist/linkmore-design.dark.css.map +1 -1
- package/dist/linkmore-design.dark.min.css +2 -2
- package/dist/linkmore-design.dark.min.css.map +1 -1
- package/dist/linkmore-design.js +1 -1
- package/dist/linkmore-design.min.css +2 -2
- package/dist/linkmore-design.min.css.map +1 -1
- package/dist/linkmore-design.min.js +1 -1
- package/dist/linkmore-design.variable.css +61 -62
- package/dist/linkmore-design.variable.css.map +1 -1
- package/dist/linkmore-design.variable.min.css +2 -2
- package/dist/linkmore-design.variable.min.css.map +1 -1
- package/es/cascader/style/index-pure.less +11 -3
- package/es/date-picker/style/index-pure.less +1 -1
- package/es/drawer/style/drawer.less +1 -0
- package/es/input/style/mixin.less +2 -1
- package/es/lm-filter/style/index-pure.less +0 -3
- package/es/lm-filter/style/variables.less +0 -3
- package/es/lm-select/style/index-pure.less +0 -3
- package/es/style/themes/default.less +2 -1
- package/es/style/themes/variable.less +2 -1
- package/es/table/demo/expand.d.ts +3 -0
- package/es/table/demo/expand.js +72 -0
- package/es/table/demo/filter-in-tree.d.ts +3 -0
- package/es/table/demo/filter-in-tree.js +93 -0
- package/es/table/demo/filter-search.d.ts +3 -0
- package/es/table/demo/filter-search.js +79 -0
- package/es/table/demo/head.d.ts +3 -0
- package/es/table/demo/head.js +88 -0
- package/es/table/demo/narrow.d.ts +3 -0
- package/es/table/demo/narrow.js +41 -0
- package/lib/cascader/style/index-pure.less +11 -3
- package/lib/date-picker/style/index-pure.less +1 -1
- package/lib/drawer/style/drawer.less +1 -0
- package/lib/input/style/mixin.less +2 -1
- package/lib/lm-filter/style/index-pure.less +0 -3
- package/lib/lm-filter/style/variables.less +0 -3
- package/lib/lm-select/style/index-pure.less +0 -3
- package/lib/style/themes/default.less +2 -1
- package/lib/style/themes/variable.less +2 -1
- package/lib/table/demo/expand.d.ts +3 -0
- package/lib/table/demo/expand.js +77 -0
- package/lib/table/demo/filter-in-tree.d.ts +3 -0
- package/lib/table/demo/filter-in-tree.js +98 -0
- package/lib/table/demo/filter-search.d.ts +3 -0
- package/lib/table/demo/filter-search.js +84 -0
- package/lib/table/demo/head.d.ts +3 -0
- package/lib/table/demo/head.js +91 -0
- package/lib/table/demo/narrow.d.ts +3 -0
- package/lib/table/demo/narrow.js +52 -0
- package/package.json +1 -1
|
@@ -33,8 +33,10 @@
|
|
|
33
33
|
min-width: 111px;
|
|
34
34
|
height: 180px;
|
|
35
35
|
margin: 0;
|
|
36
|
-
margin: -@dropdown-edge-child-vertical-padding 0;
|
|
37
|
-
padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
|
36
|
+
// margin: -@dropdown-edge-child-vertical-padding 0;
|
|
37
|
+
// padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 8px;
|
|
38
40
|
overflow: auto;
|
|
39
41
|
vertical-align: top;
|
|
40
42
|
list-style: none;
|
|
@@ -45,13 +47,19 @@
|
|
|
45
47
|
display: flex;
|
|
46
48
|
flex-wrap: nowrap;
|
|
47
49
|
align-items: center;
|
|
48
|
-
padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
50
|
+
// padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
51
|
+
padding: @cascader-dropdown-vertical-padding 12px;
|
|
49
52
|
overflow: hidden;
|
|
50
53
|
line-height: @cascader-dropdown-line-height;
|
|
51
54
|
white-space: nowrap;
|
|
52
55
|
text-overflow: ellipsis;
|
|
53
56
|
cursor: pointer;
|
|
54
57
|
transition: all 0.3s;
|
|
58
|
+
border-radius: @border-radius-base;
|
|
59
|
+
margin-bottom: 4px;
|
|
60
|
+
&:last-child {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
55
63
|
|
|
56
64
|
&:hover {
|
|
57
65
|
background: @item-hover-bg;
|
|
@@ -211,7 +211,8 @@
|
|
|
211
211
|
|
|
212
212
|
// Disabled states
|
|
213
213
|
@disabled-color: @text-color-disable;
|
|
214
|
-
@disabled-bg: @background-color-base;
|
|
214
|
+
// @disabled-bg: @background-color-base;
|
|
215
|
+
@disabled-bg: @text-color-bg;
|
|
215
216
|
@disabled-active-bg: tint(@black, 90%);
|
|
216
217
|
@disabled-color-dark: fade(#fff, 35%);
|
|
217
218
|
|
|
@@ -279,7 +279,8 @@
|
|
|
279
279
|
|
|
280
280
|
// Disabled states
|
|
281
281
|
@disabled-color: @text-color-disable;
|
|
282
|
-
@disabled-bg: @background-color-base;
|
|
282
|
+
// @disabled-bg: @background-color-base;
|
|
283
|
+
@disabled-bg: @text-color-bg;
|
|
283
284
|
@disabled-active-bg: tint(@black, 90%);
|
|
284
285
|
@disabled-color-dark: fade(#fff, 35%);
|
|
285
286
|
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Table } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var columns = [{
|
|
5
|
+
title: 'Name',
|
|
6
|
+
dataIndex: 'name',
|
|
7
|
+
key: 'name'
|
|
8
|
+
}, {
|
|
9
|
+
title: 'Age',
|
|
10
|
+
dataIndex: 'age',
|
|
11
|
+
key: 'age'
|
|
12
|
+
}, {
|
|
13
|
+
title: 'Address',
|
|
14
|
+
dataIndex: 'address',
|
|
15
|
+
key: 'address'
|
|
16
|
+
}, {
|
|
17
|
+
title: 'Action',
|
|
18
|
+
dataIndex: '',
|
|
19
|
+
key: 'x',
|
|
20
|
+
render: function render() {
|
|
21
|
+
return /*#__PURE__*/_jsx("a", {
|
|
22
|
+
children: "Delete"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}];
|
|
26
|
+
var data = [{
|
|
27
|
+
key: 1,
|
|
28
|
+
name: 'John Brown',
|
|
29
|
+
age: 32,
|
|
30
|
+
address: 'New York No. 1 Lake Park',
|
|
31
|
+
description: 'My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park.'
|
|
32
|
+
}, {
|
|
33
|
+
key: 2,
|
|
34
|
+
name: 'Jim Green',
|
|
35
|
+
age: 42,
|
|
36
|
+
address: 'London No. 1 Lake Park',
|
|
37
|
+
description: 'My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park.'
|
|
38
|
+
}, {
|
|
39
|
+
key: 3,
|
|
40
|
+
name: 'Not Expandable',
|
|
41
|
+
age: 29,
|
|
42
|
+
address: 'Jiangsu No. 1 Lake Park',
|
|
43
|
+
description: 'This not expandable'
|
|
44
|
+
}, {
|
|
45
|
+
key: 4,
|
|
46
|
+
name: 'Joe Black',
|
|
47
|
+
age: 32,
|
|
48
|
+
address: 'Sidney No. 1 Lake Park',
|
|
49
|
+
description: 'My name is Joe Black, I am 32 years old, living in Sidney No. 1 Lake Park.'
|
|
50
|
+
}];
|
|
51
|
+
|
|
52
|
+
var App = function App() {
|
|
53
|
+
return /*#__PURE__*/_jsx(Table, {
|
|
54
|
+
columns: columns,
|
|
55
|
+
expandable: {
|
|
56
|
+
expandedRowRender: function expandedRowRender(record) {
|
|
57
|
+
return /*#__PURE__*/_jsx("p", {
|
|
58
|
+
style: {
|
|
59
|
+
margin: 0
|
|
60
|
+
},
|
|
61
|
+
children: record.description
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
rowExpandable: function rowExpandable(record) {
|
|
65
|
+
return record.name !== 'Not Expandable';
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
dataSource: data
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export default App;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Table } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var columns = [{
|
|
5
|
+
title: 'Name',
|
|
6
|
+
dataIndex: 'name',
|
|
7
|
+
filters: [{
|
|
8
|
+
text: 'Joe',
|
|
9
|
+
value: 'Joe'
|
|
10
|
+
}, {
|
|
11
|
+
text: 'Category 1',
|
|
12
|
+
value: 'Category 1',
|
|
13
|
+
children: [{
|
|
14
|
+
text: 'Yellow',
|
|
15
|
+
value: 'Yellow'
|
|
16
|
+
}, {
|
|
17
|
+
text: 'Pink',
|
|
18
|
+
value: 'Pink'
|
|
19
|
+
}]
|
|
20
|
+
}, {
|
|
21
|
+
text: 'Category 2',
|
|
22
|
+
value: 'Category 2',
|
|
23
|
+
children: [{
|
|
24
|
+
text: 'Green',
|
|
25
|
+
value: 'Green'
|
|
26
|
+
}, {
|
|
27
|
+
text: 'Black',
|
|
28
|
+
value: 'Black'
|
|
29
|
+
}]
|
|
30
|
+
}],
|
|
31
|
+
filterMode: 'tree',
|
|
32
|
+
filterSearch: true,
|
|
33
|
+
onFilter: function onFilter(value, record) {
|
|
34
|
+
return record.name.includes(value);
|
|
35
|
+
},
|
|
36
|
+
width: '30%'
|
|
37
|
+
}, {
|
|
38
|
+
title: 'Age',
|
|
39
|
+
dataIndex: 'age',
|
|
40
|
+
sorter: function sorter(a, b) {
|
|
41
|
+
return a.age - b.age;
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
title: 'Address',
|
|
45
|
+
dataIndex: 'address',
|
|
46
|
+
filters: [{
|
|
47
|
+
text: 'London',
|
|
48
|
+
value: 'London'
|
|
49
|
+
}, {
|
|
50
|
+
text: 'New York',
|
|
51
|
+
value: 'New York'
|
|
52
|
+
}],
|
|
53
|
+
onFilter: function onFilter(value, record) {
|
|
54
|
+
return record.address.startsWith(value);
|
|
55
|
+
},
|
|
56
|
+
filterSearch: true,
|
|
57
|
+
width: '40%'
|
|
58
|
+
}];
|
|
59
|
+
var data = [{
|
|
60
|
+
key: '1',
|
|
61
|
+
name: 'John Brown',
|
|
62
|
+
age: 32,
|
|
63
|
+
address: 'New York No. 1 Lake Park'
|
|
64
|
+
}, {
|
|
65
|
+
key: '2',
|
|
66
|
+
name: 'Jim Green',
|
|
67
|
+
age: 42,
|
|
68
|
+
address: 'London No. 1 Lake Park'
|
|
69
|
+
}, {
|
|
70
|
+
key: '3',
|
|
71
|
+
name: 'Joe Black',
|
|
72
|
+
age: 32,
|
|
73
|
+
address: 'Sidney No. 1 Lake Park'
|
|
74
|
+
}, {
|
|
75
|
+
key: '4',
|
|
76
|
+
name: 'Jim Red',
|
|
77
|
+
age: 32,
|
|
78
|
+
address: 'London No. 2 Lake Park'
|
|
79
|
+
}];
|
|
80
|
+
|
|
81
|
+
var onChange = function onChange(pagination, filters, sorter, extra) {
|
|
82
|
+
console.log('params', pagination, filters, sorter, extra);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
var App = function App() {
|
|
86
|
+
return /*#__PURE__*/_jsx(Table, {
|
|
87
|
+
columns: columns,
|
|
88
|
+
dataSource: data,
|
|
89
|
+
onChange: onChange
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export default App;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Table } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var columns = [{
|
|
5
|
+
title: 'Name',
|
|
6
|
+
dataIndex: 'name',
|
|
7
|
+
filters: [{
|
|
8
|
+
text: 'Joe',
|
|
9
|
+
value: 'Joe'
|
|
10
|
+
}, {
|
|
11
|
+
text: 'Category 1',
|
|
12
|
+
value: 'Category 1'
|
|
13
|
+
}, {
|
|
14
|
+
text: 'Category 2',
|
|
15
|
+
value: 'Category 2'
|
|
16
|
+
}],
|
|
17
|
+
filterMode: 'tree',
|
|
18
|
+
filterSearch: true,
|
|
19
|
+
onFilter: function onFilter(value, record) {
|
|
20
|
+
return record.name.startsWith(value);
|
|
21
|
+
},
|
|
22
|
+
width: '30%'
|
|
23
|
+
}, {
|
|
24
|
+
title: 'Age',
|
|
25
|
+
dataIndex: 'age',
|
|
26
|
+
sorter: function sorter(a, b) {
|
|
27
|
+
return a.age - b.age;
|
|
28
|
+
}
|
|
29
|
+
}, {
|
|
30
|
+
title: 'Address',
|
|
31
|
+
dataIndex: 'address',
|
|
32
|
+
filters: [{
|
|
33
|
+
text: 'London',
|
|
34
|
+
value: 'London'
|
|
35
|
+
}, {
|
|
36
|
+
text: 'New York',
|
|
37
|
+
value: 'New York'
|
|
38
|
+
}],
|
|
39
|
+
onFilter: function onFilter(value, record) {
|
|
40
|
+
return record.address.startsWith(value);
|
|
41
|
+
},
|
|
42
|
+
filterSearch: true,
|
|
43
|
+
width: '40%'
|
|
44
|
+
}];
|
|
45
|
+
var data = [{
|
|
46
|
+
key: '1',
|
|
47
|
+
name: 'John Brown',
|
|
48
|
+
age: 32,
|
|
49
|
+
address: 'New York No. 1 Lake Park'
|
|
50
|
+
}, {
|
|
51
|
+
key: '2',
|
|
52
|
+
name: 'Jim Green',
|
|
53
|
+
age: 42,
|
|
54
|
+
address: 'London No. 1 Lake Park'
|
|
55
|
+
}, {
|
|
56
|
+
key: '3',
|
|
57
|
+
name: 'Joe Black',
|
|
58
|
+
age: 32,
|
|
59
|
+
address: 'Sidney No. 1 Lake Park'
|
|
60
|
+
}, {
|
|
61
|
+
key: '4',
|
|
62
|
+
name: 'Jim Red',
|
|
63
|
+
age: 32,
|
|
64
|
+
address: 'London No. 2 Lake Park'
|
|
65
|
+
}];
|
|
66
|
+
|
|
67
|
+
var onChange = function onChange(pagination, filters, sorter, extra) {
|
|
68
|
+
console.log('params', pagination, filters, sorter, extra);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var App = function App() {
|
|
72
|
+
return /*#__PURE__*/_jsx(Table, {
|
|
73
|
+
columns: columns,
|
|
74
|
+
dataSource: data,
|
|
75
|
+
onChange: onChange
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export default App;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Table } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var columns = [{
|
|
5
|
+
title: 'Name',
|
|
6
|
+
dataIndex: 'name',
|
|
7
|
+
filters: [{
|
|
8
|
+
text: 'Joe',
|
|
9
|
+
value: 'Joe'
|
|
10
|
+
}, {
|
|
11
|
+
text: 'Jim',
|
|
12
|
+
value: 'Jim'
|
|
13
|
+
}, {
|
|
14
|
+
text: 'Submenu',
|
|
15
|
+
value: 'Submenu',
|
|
16
|
+
children: [{
|
|
17
|
+
text: 'Green',
|
|
18
|
+
value: 'Green'
|
|
19
|
+
}, {
|
|
20
|
+
text: 'Black',
|
|
21
|
+
value: 'Black'
|
|
22
|
+
}]
|
|
23
|
+
}],
|
|
24
|
+
// specify the condition of filtering result
|
|
25
|
+
// here is that finding the name started with `value`
|
|
26
|
+
onFilter: function onFilter(value, record) {
|
|
27
|
+
return record.name.indexOf(value) === 0;
|
|
28
|
+
},
|
|
29
|
+
sorter: function sorter(a, b) {
|
|
30
|
+
return a.name.length - b.name.length;
|
|
31
|
+
},
|
|
32
|
+
sortDirections: ['descend']
|
|
33
|
+
}, {
|
|
34
|
+
title: 'Age',
|
|
35
|
+
dataIndex: 'age',
|
|
36
|
+
defaultSortOrder: 'descend',
|
|
37
|
+
sorter: function sorter(a, b) {
|
|
38
|
+
return a.age - b.age;
|
|
39
|
+
}
|
|
40
|
+
}, {
|
|
41
|
+
title: 'Address',
|
|
42
|
+
dataIndex: 'address',
|
|
43
|
+
filters: [{
|
|
44
|
+
text: 'London',
|
|
45
|
+
value: 'London'
|
|
46
|
+
}, {
|
|
47
|
+
text: 'New York',
|
|
48
|
+
value: 'New York'
|
|
49
|
+
}],
|
|
50
|
+
onFilter: function onFilter(value, record) {
|
|
51
|
+
return record.address.indexOf(value) === 0;
|
|
52
|
+
}
|
|
53
|
+
}];
|
|
54
|
+
var data = [{
|
|
55
|
+
key: '1',
|
|
56
|
+
name: 'John Brown',
|
|
57
|
+
age: 32,
|
|
58
|
+
address: 'New York No. 1 Lake Park'
|
|
59
|
+
}, {
|
|
60
|
+
key: '2',
|
|
61
|
+
name: 'Jim Green',
|
|
62
|
+
age: 42,
|
|
63
|
+
address: 'London No. 1 Lake Park'
|
|
64
|
+
}, {
|
|
65
|
+
key: '3',
|
|
66
|
+
name: 'Joe Black',
|
|
67
|
+
age: 32,
|
|
68
|
+
address: 'Sidney No. 1 Lake Park'
|
|
69
|
+
}, {
|
|
70
|
+
key: '4',
|
|
71
|
+
name: 'Jim Red',
|
|
72
|
+
age: 32,
|
|
73
|
+
address: 'London No. 2 Lake Park'
|
|
74
|
+
}];
|
|
75
|
+
|
|
76
|
+
var onChange = function onChange(pagination, filters, sorter, extra) {
|
|
77
|
+
console.log('params', pagination, filters, sorter, extra);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var App = function App() {
|
|
81
|
+
return /*#__PURE__*/_jsx(Table, {
|
|
82
|
+
columns: columns,
|
|
83
|
+
dataSource: data,
|
|
84
|
+
onChange: onChange
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default App;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Table } from "../..";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
var columns = [{
|
|
5
|
+
title: 'Name',
|
|
6
|
+
dataIndex: 'name'
|
|
7
|
+
}, {
|
|
8
|
+
title: 'Age',
|
|
9
|
+
dataIndex: 'age'
|
|
10
|
+
}, {
|
|
11
|
+
title: 'Address',
|
|
12
|
+
dataIndex: 'address'
|
|
13
|
+
}];
|
|
14
|
+
var data = [];
|
|
15
|
+
|
|
16
|
+
for (var i = 0; i < 200; i += 1) {
|
|
17
|
+
data.push({
|
|
18
|
+
key: i,
|
|
19
|
+
name: 'Sample Name',
|
|
20
|
+
age: 30 + i % 5,
|
|
21
|
+
address: "Sample Address ".concat(i)
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var App = function App() {
|
|
26
|
+
return /*#__PURE__*/_jsx("div", {
|
|
27
|
+
style: {
|
|
28
|
+
width: 300
|
|
29
|
+
},
|
|
30
|
+
children: /*#__PURE__*/_jsx(Table, {
|
|
31
|
+
columns: columns,
|
|
32
|
+
dataSource: data,
|
|
33
|
+
size: "small",
|
|
34
|
+
pagination: {
|
|
35
|
+
defaultCurrent: 13
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default App;
|
|
@@ -33,8 +33,10 @@
|
|
|
33
33
|
min-width: 111px;
|
|
34
34
|
height: 180px;
|
|
35
35
|
margin: 0;
|
|
36
|
-
margin: -@dropdown-edge-child-vertical-padding 0;
|
|
37
|
-
padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
|
36
|
+
// margin: -@dropdown-edge-child-vertical-padding 0;
|
|
37
|
+
// padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 8px;
|
|
38
40
|
overflow: auto;
|
|
39
41
|
vertical-align: top;
|
|
40
42
|
list-style: none;
|
|
@@ -45,13 +47,19 @@
|
|
|
45
47
|
display: flex;
|
|
46
48
|
flex-wrap: nowrap;
|
|
47
49
|
align-items: center;
|
|
48
|
-
padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
50
|
+
// padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
51
|
+
padding: @cascader-dropdown-vertical-padding 12px;
|
|
49
52
|
overflow: hidden;
|
|
50
53
|
line-height: @cascader-dropdown-line-height;
|
|
51
54
|
white-space: nowrap;
|
|
52
55
|
text-overflow: ellipsis;
|
|
53
56
|
cursor: pointer;
|
|
54
57
|
transition: all 0.3s;
|
|
58
|
+
border-radius: @border-radius-base;
|
|
59
|
+
margin-bottom: 4px;
|
|
60
|
+
&:last-child {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
55
63
|
|
|
56
64
|
&:hover {
|
|
57
65
|
background: @item-hover-bg;
|
|
@@ -211,7 +211,8 @@
|
|
|
211
211
|
|
|
212
212
|
// Disabled states
|
|
213
213
|
@disabled-color: @text-color-disable;
|
|
214
|
-
@disabled-bg: @background-color-base;
|
|
214
|
+
// @disabled-bg: @background-color-base;
|
|
215
|
+
@disabled-bg: @text-color-bg;
|
|
215
216
|
@disabled-active-bg: tint(@black, 90%);
|
|
216
217
|
@disabled-color-dark: fade(#fff, 35%);
|
|
217
218
|
|
|
@@ -279,7 +279,8 @@
|
|
|
279
279
|
|
|
280
280
|
// Disabled states
|
|
281
281
|
@disabled-color: @text-color-disable;
|
|
282
|
-
@disabled-bg: @background-color-base;
|
|
282
|
+
// @disabled-bg: @background-color-base;
|
|
283
|
+
@disabled-bg: @text-color-bg;
|
|
283
284
|
@disabled-active-bg: tint(@black, 90%);
|
|
284
285
|
@disabled-color-dark: fade(#fff, 35%);
|
|
285
286
|
|