@ccs-ui/rc-pro 1.1.22-beta-4 → 1.1.22-beta-6

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.
@@ -88,6 +88,7 @@ function SearchComponent(_ref) {
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
- return setIsShowMore(!isShowMore);
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",
4
- "description": "CcsDatePicker.RangePicker参数bug;CcsProTable删除disableCollapseForm参数;CcsProTable添加formItemLayout,formItemCol参数适应自定义布局",
3
+ "version": "1.1.22-beta-6",
4
+ "description": "CcsDatePicker.RangePicker参数bug;CcsProTable删除disableCollapseForm参数;CcsProTable添加formItemLayout,formItemCol参数适应自定义布局;table column支持多行省略显示",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Hong",