@lemon-fe/kits 1.0.0-175 → 1.0.0-176
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "disabled", "onFocus", "onBlur"];
|
|
1
|
+
var _excluded = ["children", "className", "disabled", "onFocus", "onBlur", "split"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -33,6 +33,7 @@ export default function InputCompact(props) {
|
|
|
33
33
|
disabled = props.disabled,
|
|
34
34
|
_onFocus = props.onFocus,
|
|
35
35
|
_onBlur = props.onBlur,
|
|
36
|
+
split = props.split,
|
|
36
37
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
37
38
|
|
|
38
39
|
var inputPrefixCls = useContext(ConfigProvider.ConfigContext).getPrefixCls('input');
|
|
@@ -70,7 +71,9 @@ export default function InputCompact(props) {
|
|
|
70
71
|
newNode = /*#__PURE__*/cloneElement(node, extraProps);
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, newNode, /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, newNode, split ? /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: prefix('split')
|
|
76
|
+
}, split) : /*#__PURE__*/React.createElement("div", {
|
|
74
77
|
className: prefix('gutter')
|
|
75
78
|
}));
|
|
76
79
|
}));
|
|
@@ -16,9 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
&-split {
|
|
20
|
+
&:last-child {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
&.@{ant-prefix}-input-status-error {
|
|
20
|
-
.@{ant-prefix}-select-borderless
|
|
21
|
-
|
|
26
|
+
.@{ant-prefix}-select-borderless.@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled):not(
|
|
27
|
+
.@{ant-prefix}-select-customize-input
|
|
28
|
+
):not(.@{ant-prefix}-pagination-size-changer)
|
|
29
|
+
.@{ant-prefix}-select-selector {
|
|
30
|
+
border-color: transparent !important;
|
|
22
31
|
}
|
|
23
32
|
}
|
|
24
33
|
}
|
|
@@ -196,7 +196,8 @@ export default function SelectView(props) {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
var result = [{
|
|
199
|
-
type: 'delete'
|
|
199
|
+
type: 'delete',
|
|
200
|
+
sortable: false
|
|
200
201
|
}].concat(_toConsumableArray(selectedColumns));
|
|
201
202
|
return result;
|
|
202
203
|
}, [selectedColumns, readOnly]);
|
|
@@ -253,7 +254,10 @@ export default function SelectView(props) {
|
|
|
253
254
|
defaultColDef: defaultColDef,
|
|
254
255
|
rowHeight: rowHeight,
|
|
255
256
|
cellDisplayFlex: cellDisplayFlex,
|
|
256
|
-
onDataSourceChange:
|
|
257
|
+
onDataSourceChange: function onDataSourceChange(val) {
|
|
258
|
+
setData(val);
|
|
259
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
260
|
+
},
|
|
257
261
|
columns: mSelectedCols,
|
|
258
262
|
rowKey: rowKey,
|
|
259
263
|
pagination: pagination,
|