@ccs-ui/rc-pro 1.1.22-beta-4 → 1.1.22-beta-5
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/pro-table/search.js +14 -7
- package/package.json +2 -2
package/es/pro-table/search.js
CHANGED
|
@@ -83,11 +83,12 @@ function SearchComponent(_ref) {
|
|
|
83
83
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
84
84
|
filterColumns = _useState4[0],
|
|
85
85
|
setFilterColumns = _useState4[1];
|
|
86
|
-
var _useState5 = useState(
|
|
86
|
+
var _useState5 = useState(false),
|
|
87
87
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
88
88
|
isShowMore = _useState6[0],
|
|
89
89
|
setIsShowMore = _useState6[1];
|
|
90
90
|
var ref = useRef(null);
|
|
91
|
+
console.log('isShowMore', isShowMore);
|
|
91
92
|
var onHasMore = function onHasMore() {
|
|
92
93
|
var hasMain = formItems.filter(function (f) {
|
|
93
94
|
return f.isMain;
|
|
@@ -224,7 +225,8 @@ function SearchComponent(_ref) {
|
|
|
224
225
|
className: "".concat(classPrefix, "-header-buttons"),
|
|
225
226
|
children: [onHasMore() && !expandForm && /*#__PURE__*/_jsx(Button, {
|
|
226
227
|
onClick: function onClick() {
|
|
227
|
-
|
|
228
|
+
console.log(123);
|
|
229
|
+
setIsShowMore(!isShowMore);
|
|
228
230
|
},
|
|
229
231
|
icon: isShowMore ? /*#__PURE__*/_jsx(UpOutlined, {
|
|
230
232
|
className: "".concat(classPrefix, "-icon")
|
|
@@ -408,14 +410,19 @@ function SearchComponent(_ref) {
|
|
|
408
410
|
children: itemContent
|
|
409
411
|
}, item.name);
|
|
410
412
|
});
|
|
413
|
+
var style = {
|
|
414
|
+
overflow: 'hidden'
|
|
415
|
+
};
|
|
416
|
+
if (isShowMore || expandForm) {
|
|
417
|
+
style.marginBottom = 10;
|
|
418
|
+
} else {
|
|
419
|
+
style.maxHeight = 0;
|
|
420
|
+
style.marginBottom = 0;
|
|
421
|
+
}
|
|
411
422
|
return /*#__PURE__*/_jsx("div", {
|
|
412
423
|
className: "".concat(classPrefix, "-high-form"),
|
|
413
424
|
ref: ref,
|
|
414
|
-
style:
|
|
415
|
-
maxHeight: isShowMore ? 500 : 0,
|
|
416
|
-
overflow: 'hidden',
|
|
417
|
-
marginBottom: isShowMore ? 10 : 0
|
|
418
|
-
},
|
|
425
|
+
style: style,
|
|
419
426
|
children: /*#__PURE__*/_jsx(Form, {
|
|
420
427
|
initialValues: formInitValues,
|
|
421
428
|
form: form,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccs-ui/rc-pro",
|
|
3
|
-
"version": "1.1.22-beta-
|
|
4
|
-
"description": "CcsDatePicker.RangePicker参数bug;CcsProTable删除disableCollapseForm参数;CcsProTable添加formItemLayout,formItemCol
|
|
3
|
+
"version": "1.1.22-beta-5",
|
|
4
|
+
"description": "CcsDatePicker.RangePicker参数bug;CcsProTable删除disableCollapseForm参数;CcsProTable添加formItemLayout,formItemCol参数适应自定义布局;table column支持多行省略显示",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hong",
|