@aloudata/aloudata-design 0.2.0-beta.16 → 0.2.0-beta.19
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/Button/style/index.less +1 -1
- package/es/Input/components/Input/index.d.ts +10 -5
- package/es/Input/style/index.less +31 -2
- package/es/Navigator/components/Menu/index.js +2 -2
- package/es/Select/BaseSelect.js +0 -2
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +1 -0
- package/es/Select/OptionsList/OptionItem/RenderLabelIcon.js +1 -0
- package/es/Select/OptionsList/index.js +12 -19
- package/es/Select/Selector/index.js +7 -5
- package/es/Select/interface.d.ts +3 -0
- package/es/Select/style/index.less +39 -7
- package/es/Table/index.d.ts +1 -1
- package/es/Table/index.js +78 -40
- package/es/Table/interface.d.ts +3 -1
- package/es/Table/style/index.less +3 -5
- package/es/Tabs/index.js +2 -1
- package/es/Tabs/style/index.less +8 -1
- package/lib/Button/style/index.less +1 -1
- package/lib/Input/components/Input/index.d.ts +10 -5
- package/lib/Input/style/index.less +31 -2
- package/lib/Navigator/components/Menu/index.js +2 -2
- package/lib/Select/BaseSelect.js +0 -2
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.d.ts +1 -0
- package/lib/Select/OptionsList/OptionItem/RenderLabelIcon.js +2 -0
- package/lib/Select/OptionsList/index.js +11 -19
- package/lib/Select/Selector/index.js +7 -5
- package/lib/Select/interface.d.ts +3 -0
- package/lib/Select/style/index.less +39 -7
- package/lib/Table/index.d.ts +1 -1
- package/lib/Table/index.js +78 -40
- package/lib/Table/interface.d.ts +3 -1
- package/lib/Table/style/index.less +3 -5
- package/lib/Tabs/index.js +2 -1
- package/lib/Tabs/style/index.less +8 -1
- package/package.json +2 -1
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
&-cell {
|
|
27
27
|
flex-grow: 1;
|
|
28
28
|
height: unset;
|
|
29
|
-
min-height: @table-row-height;
|
|
30
29
|
color: @NL0;
|
|
31
|
-
line-height:
|
|
30
|
+
line-height: 16px;
|
|
32
31
|
text-align: left;
|
|
33
32
|
border-bottom: 1px solid @NL95;
|
|
34
33
|
word-break: break-all;
|
|
35
|
-
display: flex;
|
|
36
|
-
padding:
|
|
34
|
+
display: flex !important; // 目前都让表格先居左、居中处理,所以这里需要强制设置为flex
|
|
35
|
+
padding: 11.5px 12px;
|
|
37
36
|
align-items: center;
|
|
38
37
|
|
|
39
38
|
&-content {
|
|
@@ -126,7 +125,6 @@
|
|
|
126
125
|
align-items: center;
|
|
127
126
|
justify-content: space-between;
|
|
128
127
|
margin-bottom: 24px;
|
|
129
|
-
padding: 0 10px;
|
|
130
128
|
|
|
131
129
|
&-left {
|
|
132
130
|
color: @NL0;
|
package/es/Tabs/index.js
CHANGED
package/es/Tabs/style/index.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
.ald-tabs {
|
|
3
|
+
.ant-tabs.ald-tabs {
|
|
4
4
|
&.ant-tabs {
|
|
5
5
|
color: @NL30;
|
|
6
6
|
}
|
|
@@ -30,6 +30,13 @@
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
&.ald-tabs-default {
|
|
34
|
+
.ant-tabs-tab {
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
line-height: 20px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
33
40
|
.ant-tabs-nav-more {
|
|
34
41
|
margin: 0 !important;
|
|
35
42
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { InputProps, InputRef } from 'antd/lib/input/Input';
|
|
3
|
+
interface IShowCountProps {
|
|
4
|
+
formatter: (args: {
|
|
5
|
+
count: number;
|
|
6
|
+
maxLength?: number;
|
|
7
|
+
}) => string;
|
|
8
|
+
}
|
|
4
9
|
export declare type TSize = 'small' | 'default' | 'large';
|
|
5
|
-
export
|
|
10
|
+
export type { InputRef };
|
|
6
11
|
declare type ChangeEventHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
12
|
export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' | 'allowClear' | 'disabled' | 'showCount' | 'maxLength' | 'value' | 'defaultValue' | 'onPressEnter' | 'onChange'> {
|
|
8
13
|
/**
|
|
@@ -33,7 +38,7 @@ export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' |
|
|
|
33
38
|
* @default false
|
|
34
39
|
* @type boolean | { formatter: (args: { count: number; maxLength?: number; }) => string; };
|
|
35
40
|
*/
|
|
36
|
-
showCount?: boolean |
|
|
41
|
+
showCount?: boolean | IShowCountProps;
|
|
37
42
|
/**
|
|
38
43
|
* @description 最大长度
|
|
39
44
|
*/
|
|
@@ -57,5 +62,5 @@ export interface IInputProps extends Omit<InputProps, 'size' | 'id' | 'prefix' |
|
|
|
57
62
|
*/
|
|
58
63
|
onChange?: ChangeEventHandler;
|
|
59
64
|
}
|
|
60
|
-
declare const Input: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<
|
|
65
|
+
declare const Input: React.ForwardRefExoticComponent<IInputProps & React.RefAttributes<InputRef>>;
|
|
61
66
|
export default Input;
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
.ant-input {
|
|
9
9
|
color: @NL0;
|
|
10
10
|
border-radius: @border-radius-base;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
height: 28px;
|
|
11
13
|
|
|
12
14
|
&::placeholder {
|
|
13
15
|
color: @NL50;
|
|
@@ -15,6 +17,9 @@
|
|
|
15
17
|
|
|
16
18
|
&-prefix {
|
|
17
19
|
color: @NL30;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
line-height: 16px;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
&-suffix {
|
|
@@ -39,10 +44,19 @@
|
|
|
39
44
|
|
|
40
45
|
&-sm {
|
|
41
46
|
border-radius: @border-radius-sm;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
height: 24px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-lg {
|
|
52
|
+
height: 32px;
|
|
53
|
+
font-size: 14px;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
56
|
&-affix-wrapper {
|
|
45
57
|
border-radius: @border-radius-base;
|
|
58
|
+
padding: 0 12px;
|
|
59
|
+
height: 28px;
|
|
46
60
|
|
|
47
61
|
&-hover,
|
|
48
62
|
&-focused,
|
|
@@ -53,10 +67,25 @@
|
|
|
53
67
|
.ant-input {
|
|
54
68
|
border-radius: 0;
|
|
55
69
|
caret-color: @B40;
|
|
70
|
+
height: 100%;
|
|
56
71
|
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-input-affix-wrapper.ant-input-affix-wrapper {
|
|
76
|
+
&-lg {
|
|
77
|
+
padding: 4px 11px;
|
|
78
|
+
height: 32px;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-sm {
|
|
83
|
+
border-radius: @border-radius-sm;
|
|
84
|
+
padding: 0 12px;
|
|
85
|
+
height: 24px;
|
|
57
86
|
|
|
58
|
-
|
|
59
|
-
|
|
87
|
+
.ant-input-sm {
|
|
88
|
+
height: 22px;
|
|
60
89
|
}
|
|
61
90
|
}
|
|
62
91
|
}
|
|
@@ -64,14 +64,14 @@ function Menu(props) {
|
|
|
64
64
|
|
|
65
65
|
if (isOpen) {
|
|
66
66
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
67
|
-
type: "
|
|
67
|
+
type: "arrow_drop_up",
|
|
68
68
|
size: 20,
|
|
69
69
|
className: "ald-nav-menu-icon-right"
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
74
|
-
type: "
|
|
74
|
+
type: "arrow_drop_down",
|
|
75
75
|
size: 20,
|
|
76
76
|
className: "ald-nav-menu-icon-right"
|
|
77
77
|
});
|
package/lib/Select/BaseSelect.js
CHANGED
|
@@ -74,7 +74,6 @@ var Select = function Select(props, ref) {
|
|
|
74
74
|
label = props.label,
|
|
75
75
|
className = props.className,
|
|
76
76
|
style = props.style,
|
|
77
|
-
optionStyle = props.optionStyle,
|
|
78
77
|
groupStyle = props.groupStyle,
|
|
79
78
|
_props$allowClear = props.allowClear,
|
|
80
79
|
allowClear = _props$allowClear === void 0 ? false : _props$allowClear,
|
|
@@ -341,7 +340,6 @@ var Select = function Select(props, ref) {
|
|
|
341
340
|
visible: visible,
|
|
342
341
|
hasGroup: hasGroup,
|
|
343
342
|
groupStyle: groupStyle,
|
|
344
|
-
optionStyle: optionStyle,
|
|
345
343
|
searchType: "no-search",
|
|
346
344
|
placeholder: placeholder,
|
|
347
345
|
data: flattenOptions,
|
|
@@ -13,6 +13,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _lodash = require("lodash");
|
|
15
15
|
|
|
16
|
+
require("antd/lib/checkbox/style");
|
|
17
|
+
|
|
16
18
|
var _Icon = _interopRequireDefault(require("../../../Icon"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -11,11 +11,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _VirtualList = _interopRequireDefault(require("../VirtualList"));
|
|
15
|
-
|
|
16
14
|
var _OptionItem = require("./OptionItem");
|
|
17
15
|
|
|
18
|
-
var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "
|
|
16
|
+
var _excluded = ["input", "prefixCls", "data", "groupStyle", "height", "itemHeight", "selected", "optionChecked", "tempValue", "value", "placeholder", "notFoundContent", "onValueChange", "onTempValueChange", "setTempValue", "onInputChange", "onOptionClick", "activeIndex", "multiple", "visible", "setActiveIndex"];
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
@@ -47,13 +45,16 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
47
45
|
|
|
48
46
|
var ZERO_LENGTH = 0;
|
|
49
47
|
var DEFAULT_ACTIVE_INDEX = -1;
|
|
48
|
+
var DEFAULT_LIST_HEIGHT = 256;
|
|
49
|
+
var DEFAULT_LIST_PADDING = 8;
|
|
50
50
|
|
|
51
51
|
var OptionsList = function OptionsList(props, ref) {
|
|
52
52
|
var input = props.input,
|
|
53
53
|
prefixCls = props.prefixCls,
|
|
54
54
|
data = props.data,
|
|
55
55
|
groupStyle = props.groupStyle,
|
|
56
|
-
height = props.height,
|
|
56
|
+
_props$height = props.height,
|
|
57
|
+
height = _props$height === void 0 ? DEFAULT_LIST_HEIGHT : _props$height,
|
|
57
58
|
itemHeight = props.itemHeight,
|
|
58
59
|
selected = props.selected,
|
|
59
60
|
optionChecked = props.optionChecked,
|
|
@@ -69,7 +70,6 @@ var OptionsList = function OptionsList(props, ref) {
|
|
|
69
70
|
activeIndex = props.activeIndex,
|
|
70
71
|
multiple = props.multiple,
|
|
71
72
|
visible = props.visible,
|
|
72
|
-
style = props.style,
|
|
73
73
|
setActiveIndex = props.setActiveIndex,
|
|
74
74
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
75
75
|
|
|
@@ -164,7 +164,9 @@ var OptionsList = function OptionsList(props, ref) {
|
|
|
164
164
|
|
|
165
165
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
166
166
|
className: "".concat(prefixCls, "-list"),
|
|
167
|
-
style:
|
|
167
|
+
style: {
|
|
168
|
+
maxHeight: "".concat(height - DEFAULT_LIST_PADDING, "px")
|
|
169
|
+
},
|
|
168
170
|
ref: OptionListRef,
|
|
169
171
|
role: "list",
|
|
170
172
|
"aria-hidden": "true",
|
|
@@ -173,20 +175,10 @@ var OptionsList = function OptionsList(props, ref) {
|
|
|
173
175
|
onMouseLeave: function onMouseLeave() {
|
|
174
176
|
return setActiveIndex(DEFAULT_ACTIVE_INDEX);
|
|
175
177
|
}
|
|
176
|
-
}, multiple && renderAllOptions(), data.length > ZERO_LENGTH ?
|
|
177
|
-
|
|
178
|
-
prefixCls: prefixCls,
|
|
179
|
-
ref: VirtualListRef,
|
|
180
|
-
data: data,
|
|
181
|
-
height: height,
|
|
182
|
-
itemHeight: itemHeight
|
|
183
|
-
}, restProps), function (option, index) {
|
|
184
|
-
return option.isSelectOptGroup ? /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderGroup, {
|
|
185
|
-
option: option,
|
|
186
|
-
prefixCls: prefixCls,
|
|
187
|
-
groupStyle: groupStyle
|
|
188
|
-
}) : /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderTooltip, {
|
|
178
|
+
}, multiple && renderAllOptions(), data.length > ZERO_LENGTH ? data.map(function (option, index) {
|
|
179
|
+
return /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderTooltip, {
|
|
189
180
|
tooltip: option === null || option === void 0 ? void 0 : option.tooltip,
|
|
181
|
+
key: option === null || option === void 0 ? void 0 : option.value,
|
|
190
182
|
render: /*#__PURE__*/_react.default.createElement(_OptionItem.ForwardRenderOption, _objectSpread({
|
|
191
183
|
option: option,
|
|
192
184
|
prefixCls: prefixCls,
|
|
@@ -62,6 +62,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
62
62
|
var ZERO = 0;
|
|
63
63
|
var ICON_LARGE_SIZE = 20;
|
|
64
64
|
var ICON_SMALL_SIZE = 16;
|
|
65
|
+
var FIRST_INDEX = 0;
|
|
66
|
+
var REVERSE_INDEX = -1;
|
|
65
67
|
|
|
66
68
|
var defaultArrowComponent = function defaultArrowComponent(prefix, size) {
|
|
67
69
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
@@ -185,17 +187,17 @@ var Selector = function Selector(props, ref) {
|
|
|
185
187
|
|
|
186
188
|
var renderMultipleValue = function renderMultipleValue() {
|
|
187
189
|
// @ts-ignore
|
|
188
|
-
var
|
|
190
|
+
var allTooltipTitleNode = value === null || value === void 0 ? void 0 : value.reduce(function (prev, curr) {
|
|
189
191
|
var item = getOptionByValue(curr);
|
|
190
192
|
|
|
191
193
|
if (item) {
|
|
192
|
-
return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || (item === null || item === void 0 ? void 0 : item.label)]);
|
|
194
|
+
return [].concat(_toConsumableArray(prev), [(item === null || item === void 0 ? void 0 : item.title) || optionLabelRenderer(curr, getOptionByValue(curr)) || (item === null || item === void 0 ? void 0 : item.label), ',']);
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
return [].concat(_toConsumableArray(prev), [curr]);
|
|
197
|
+
return [].concat(_toConsumableArray(prev), [curr, ',']);
|
|
196
198
|
}, []);
|
|
197
199
|
|
|
198
|
-
if (Array.isArray(value) && value.length === filteredOptions.length) {
|
|
200
|
+
if (Array.isArray(value) && value.length === filteredOptions.length && !(0, _lodash.isEmpty)(value)) {
|
|
199
201
|
return /*#__PURE__*/_react.default.createElement("span", null, "\u5168\u90E8");
|
|
200
202
|
}
|
|
201
203
|
|
|
@@ -210,7 +212,7 @@ var Selector = function Selector(props, ref) {
|
|
|
210
212
|
return !input && !(0, _lodash.isNil)(value) ? /*#__PURE__*/_react.default.createElement(_Tooltip.default // @ts-ignore
|
|
211
213
|
, {
|
|
212
214
|
// @ts-ignore
|
|
213
|
-
title:
|
|
215
|
+
title: allTooltipTitleNode.slice(FIRST_INDEX, REVERSE_INDEX),
|
|
214
216
|
placement: "top",
|
|
215
217
|
getTooltipContainer: function getTooltipContainer() {
|
|
216
218
|
var _selectorRef$current4;
|
|
@@ -117,6 +117,9 @@ export interface ISelectProps {
|
|
|
117
117
|
labelRenderer?: (input: string) => (option: IOption, isGroup: boolean) => React.ReactNode;
|
|
118
118
|
searchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
|
|
119
119
|
matchPredicate?: (input: string) => _.ListIterateeCustom<IOption, boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* @description 渲染选中条目对应的内容
|
|
122
|
+
*/
|
|
120
123
|
optionLabelRenderer?: (value: string | number, option?: IOption) => React.ReactNode;
|
|
121
124
|
/**
|
|
122
125
|
* @description 选中值改变时的回调
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
// Base Text
|
|
36
36
|
// @text-color-base: #313e75;
|
|
37
37
|
// @text-color-disabled: #313e75;
|
|
38
|
-
@text-font-size
|
|
38
|
+
@text-font-base-size: 14px;
|
|
39
39
|
// @text-lint-height-base: 22px;
|
|
40
40
|
|
|
41
41
|
//Background Color
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
@ald-prefix: ~'@{component-prefix}';
|
|
46
46
|
@select-prefix-cls-legacy: ~'@{component-prefix}-select-legacy';
|
|
47
|
-
@select-input-fontSize: @text-font-size
|
|
48
|
-
@select-input-fontSize-sm: @text-font-size
|
|
47
|
+
@select-input-fontSize: @text-font-base-size;
|
|
48
|
+
@select-input-fontSize-sm: @text-font-base-size - 2px;
|
|
49
49
|
// @color-font-list-primary-normal: @palette-black-6; // $color-black-6
|
|
50
50
|
// @color-box-shadow-focused: #c0c4d3;
|
|
51
51
|
// @color-background-matchHeight: #ffcf3c;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
border: 1px solid transparent;
|
|
58
58
|
border-radius: @border-radius-base;
|
|
59
|
-
padding: 0 36px 0
|
|
59
|
+
padding: 0 36px 0 11px;
|
|
60
60
|
outline: none;
|
|
61
61
|
transition: all 0.2s;
|
|
62
62
|
cursor: pointer;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
&-close {
|
|
142
142
|
position: absolute;
|
|
143
143
|
top: 0;
|
|
144
|
-
right:
|
|
144
|
+
right: 8px;
|
|
145
145
|
display: flex;
|
|
146
146
|
align-items: center;
|
|
147
147
|
justify-content: center;
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
|
|
163
163
|
&-text {
|
|
164
164
|
overflow: hidden;
|
|
165
|
-
font-size:
|
|
165
|
+
font-size: @select-input-fontSize-sm;
|
|
166
166
|
line-height: 22px;
|
|
167
167
|
white-space: nowrap;
|
|
168
168
|
text-overflow: ellipsis;
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
|
|
198
198
|
&-text {
|
|
199
199
|
overflow: hidden;
|
|
200
|
-
font-size:
|
|
200
|
+
font-size: @select-input-fontSize-sm;
|
|
201
201
|
line-height: 22px;
|
|
202
202
|
white-space: nowrap;
|
|
203
203
|
text-overflow: ellipsis;
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
top: 0;
|
|
210
210
|
left: 0;
|
|
211
211
|
color: @select-placeholder-color;
|
|
212
|
+
font-size: @select-input-fontSize-sm;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
&-input {
|
|
@@ -282,7 +283,27 @@
|
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
&-default {
|
|
287
|
+
height: 28px;
|
|
288
|
+
.@{select-prefix-cls-legacy} {
|
|
289
|
+
&-selector {
|
|
290
|
+
height: 26px;
|
|
291
|
+
min-height: 26px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&-values-wrapper {
|
|
295
|
+
line-height: 26px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&-selector-label {
|
|
299
|
+
height: 26px;
|
|
300
|
+
font-size: 12px;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
285
305
|
&-large {
|
|
306
|
+
height: @height-lg;
|
|
286
307
|
.@{select-prefix-cls-legacy} {
|
|
287
308
|
&-selector {
|
|
288
309
|
min-height: @height-lg;
|
|
@@ -310,6 +331,14 @@
|
|
|
310
331
|
&-input-tags {
|
|
311
332
|
top: 0;
|
|
312
333
|
}
|
|
334
|
+
|
|
335
|
+
&-placeholder {
|
|
336
|
+
font-size: @select-input-fontSize;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
&-item-text {
|
|
340
|
+
font-size: @select-input-fontSize;
|
|
341
|
+
}
|
|
313
342
|
}
|
|
314
343
|
}
|
|
315
344
|
|
|
@@ -406,6 +435,8 @@
|
|
|
406
435
|
// min-width: 160px;
|
|
407
436
|
// padding: 16px 0 16px 8px;
|
|
408
437
|
outline: none;
|
|
438
|
+
overflow-y: scroll;
|
|
439
|
+
overflow-y: overlay;
|
|
409
440
|
}
|
|
410
441
|
|
|
411
442
|
.@{select-prefix-cls-legacy}-list-option {
|
|
@@ -434,6 +465,7 @@
|
|
|
434
465
|
transform: translateY(-50%);
|
|
435
466
|
left: 12px;
|
|
436
467
|
color: @B40;
|
|
468
|
+
margin-top: -2px;
|
|
437
469
|
|
|
438
470
|
&-checkbox {
|
|
439
471
|
.@{component-prefix}-checkbox-inner {
|
package/lib/Table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITableProps } from './interface';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<ITableProps<Record<string, unknown>>, "onChange" | "loading" | "data" | "columns" | "total" | "renderHeaderLeft" | "renderHeaderRight" | "onRowSelected" | "loadMore" | "hasNextPage" | "sortable" | "defaultSort" | "resizeColumn" | "sortDirections" | "showHeader" | "innerScroll"> & React.RefAttributes<unknown>>;
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<ITableProps<Record<string, unknown>>, "onChange" | "loading" | "data" | "columns" | "total" | "renderHeaderLeft" | "renderHeaderRight" | "onRowSelected" | "loadMore" | "hasNextPage" | "sortable" | "defaultSort" | "resizeColumn" | "sortDirections" | "showHeader" | "innerScroll" | "scrollThreshold" | "rowKey"> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default _default;
|