@lemon-fe/kits 1.0.0-139 → 1.0.0-140
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.
|
@@ -47,7 +47,7 @@ export default class DataGrid<TData extends Record<string, any>> extends Compone
|
|
|
47
47
|
Text: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").TextEditorParams<any> & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
|
|
48
48
|
Date: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").DateEditorParams & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
|
|
49
49
|
Number: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").NumberEditorParams<any> & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
|
|
50
|
-
Select: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "
|
|
50
|
+
Select: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "allowClear" | "mode" | "options" | "virtual" | "showSearch" | "listHeight"> & {
|
|
51
51
|
fieldNames?: {
|
|
52
52
|
label: string;
|
|
53
53
|
value: string;
|
|
@@ -203,6 +203,10 @@ var DataGrid = /*#__PURE__*/function (_Component) {
|
|
|
203
203
|
var currSelected = node.isSelected();
|
|
204
204
|
|
|
205
205
|
if (currSelected !== prevSelected) {
|
|
206
|
+
if (rowSelection.type === 'radio') {
|
|
207
|
+
_this.selected.clear();
|
|
208
|
+
}
|
|
209
|
+
|
|
206
210
|
if (currSelected) {
|
|
207
211
|
_this.selected.set(node.id, node.data);
|
|
208
212
|
} else {
|
|
@@ -893,7 +897,7 @@ var DataGrid = /*#__PURE__*/function (_Component) {
|
|
|
893
897
|
value: function isPreserveSelected() {
|
|
894
898
|
var rowSelection = this.props.rowSelection;
|
|
895
899
|
|
|
896
|
-
if (rowSelection === undefined
|
|
900
|
+
if (rowSelection === undefined) {
|
|
897
901
|
return false;
|
|
898
902
|
}
|
|
899
903
|
|
|
@@ -23,7 +23,7 @@ export default function InputNumber(props) {
|
|
|
23
23
|
var prefixCls = prefixClassName('input-number');
|
|
24
24
|
return /*#__PURE__*/React.createElement(AntdInputNumber, _extends({}, restProps, {
|
|
25
25
|
prefix: suffix !== null && suffix !== void 0 ? suffix : prefix,
|
|
26
|
-
className: classNames(className, _defineProperty({}, prefixCls('suffix'), !!suffix)),
|
|
26
|
+
className: classNames(prefixCls(), className, _defineProperty({}, prefixCls('suffix'), !!suffix)),
|
|
27
27
|
controls: controls !== null && controls !== void 0 ? controls : {
|
|
28
28
|
downIcon: /*#__PURE__*/React.createElement(Icons.Down, null),
|
|
29
29
|
upIcon: /*#__PURE__*/React.createElement(Icons.Down, {
|
|
@@ -1,44 +1,58 @@
|
|
|
1
1
|
.@{prefixCls}-input-number {
|
|
2
|
+
.@{ant-prefix}-input-number-prefix {
|
|
3
|
+
color: #666;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.@{ant-prefix}-input-number-handler {
|
|
7
|
+
border-left: none;
|
|
8
|
+
|
|
9
|
+
&-wrap {
|
|
10
|
+
width: 18px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-up-inner {
|
|
14
|
+
top: unset;
|
|
15
|
+
bottom: -1px;
|
|
16
|
+
margin-top: unset;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-down-inner {
|
|
20
|
+
top: -1px;
|
|
21
|
+
transform: unset;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-down {
|
|
25
|
+
border-top: none !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-up-inner,
|
|
29
|
+
&-down-inner {
|
|
30
|
+
right: 3px;
|
|
31
|
+
color: fade(#333, 70);
|
|
32
|
+
font-size: 10px !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
2
36
|
&-suffix {
|
|
37
|
+
flex-direction: row-reverse;
|
|
38
|
+
padding-inline-end: @padding-sm;
|
|
39
|
+
|
|
3
40
|
.@{ant-prefix}-input-number-affix-wrapper {
|
|
4
41
|
flex-direction: row-reverse;
|
|
5
42
|
padding-inline-end: @padding-sm;
|
|
6
43
|
}
|
|
7
44
|
|
|
8
45
|
.@{ant-prefix}-input-number-prefix {
|
|
9
|
-
color: #666;
|
|
10
|
-
margin-inline-end: 0;
|
|
11
46
|
margin-inline-start: 4px;
|
|
47
|
+
margin-inline-end: 0;
|
|
12
48
|
}
|
|
13
49
|
|
|
14
|
-
.@{ant-prefix}-input-number
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
&-wrap {
|
|
18
|
-
width: 12px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-up-inner {
|
|
22
|
-
top: unset;
|
|
23
|
-
bottom: -1px;
|
|
24
|
-
margin-top: unset;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-down-inner {
|
|
28
|
-
top: -1px;
|
|
29
|
-
transform: unset;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-down {
|
|
33
|
-
border-top: none !important;
|
|
34
|
-
}
|
|
50
|
+
.@{ant-prefix}-input-number {
|
|
51
|
+
padding-inline-end: 0;
|
|
52
|
+
}
|
|
35
53
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
right: 0;
|
|
39
|
-
color: fade(#333, 70);
|
|
40
|
-
font-size: 10px !important;
|
|
41
|
-
}
|
|
54
|
+
.@{ant-prefix}-input-number-handler-wrap {
|
|
55
|
+
right: -3px;
|
|
42
56
|
}
|
|
43
57
|
}
|
|
44
58
|
}
|
|
@@ -273,7 +273,11 @@ function Popup(props) {
|
|
|
273
273
|
suffix: /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && !readOnly && allowClear && label && /*#__PURE__*/React.createElement(Icons.Clear, {
|
|
274
274
|
className: "".concat(getPrefixCls('input'), "-clear-icon ").concat(prefix('input-clear')),
|
|
275
275
|
onClick: handleClear
|
|
276
|
-
}), /*#__PURE__*/React.createElement(SearchIcon,
|
|
276
|
+
}), /*#__PURE__*/React.createElement(SearchIcon, {
|
|
277
|
+
style: {
|
|
278
|
+
color: 'rgba(51,51,51,0.7)'
|
|
279
|
+
}
|
|
280
|
+
}))
|
|
277
281
|
});
|
|
278
282
|
}
|
|
279
283
|
|