@para-ui/core 3.0.35 → 3.0.36

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.
@@ -42,6 +42,8 @@ export interface CollapseLayoutProps {
42
42
  * 默认20
43
43
  */
44
44
  spacing?: number;
45
+ /** 点击回调 bol 显示/展开 */
46
+ onClickBtn?: (bol?: boolean) => void;
45
47
  }
46
48
  /**
47
49
  * @author zhanzl
@@ -32,7 +32,8 @@ var CollapseLayout = function CollapseLayout(props) {
32
32
  unit = _props$unit === void 0 ? 'px' : _props$unit,
33
33
  style = props.style,
34
34
  _props$className = props.className,
35
- className = _props$className === void 0 ? '' : _props$className;
35
+ className = _props$className === void 0 ? '' : _props$className,
36
+ onClickBtn = props.onClickBtn;
36
37
  var displayRef = useRef(null);
37
38
  /**
38
39
  * 处理动画时间
@@ -132,6 +133,11 @@ var CollapseLayout = function CollapseLayout(props) {
132
133
  }
133
134
  });
134
135
  };
136
+ /** 点击切换按钮 */
137
+ var clickBtn = function clickBtn() {
138
+ setShowBox(!showBox);
139
+ onClickBtn && onClickBtn(!showBox);
140
+ };
135
141
  /**
136
142
  * 展开收起按钮
137
143
  * */
@@ -144,9 +150,7 @@ var CollapseLayout = function CollapseLayout(props) {
144
150
  return jsxs("div", Object.assign({
145
151
  className: "collapse-layout-click collapse-layout-click-label-".concat(!!computeLabel),
146
152
  style: (_style = {}, _defineProperty(_style, type, "".concat(showBox ? zoomLength : 0).concat(unit)), _defineProperty(_style, "transitionDuration", duration + 'ms'), _style),
147
- onClick: function onClick() {
148
- return setShowBox(!showBox);
149
- }
153
+ onClick: clickBtn
150
154
  }, {
151
155
  children: [computeLabel && jsx("span", {
152
156
  children: computeLabel
@@ -8,7 +8,7 @@ import SearchIcon from '@para-ui/icons/Search';
8
8
  import CloseIcon from '@para-ui/icons/Close';
9
9
  import CloseCircle from '@para-ui/icons/CloseCircle';
10
10
  import Table from '../Table/index.js';
11
- import { T as Tree } from '../_verture/index-c50e7727.js';
11
+ import { T as Tree } from '../_verture/index-257f53f9.js';
12
12
  import { Button } from '../Button/index.js';
13
13
  import { D as Dropdown } from '../_verture/index-be4faaee.js';
14
14
  import { Popover } from '../Popover/index.js';
package/Form/index.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-291a16a8.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-c62ad493.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
8
  import '../TextField/index.js';
9
9
  import '../_verture/typeof-498dd2b1.js';
@@ -68,7 +68,7 @@ import '@para-ui/icons/Left';
68
68
  import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleRight';
71
- import '../_verture/index-c50e7727.js';
71
+ import '../_verture/index-257f53f9.js';
72
72
  import 'rc-tree';
73
73
  import '@para-ui/icons/Document';
74
74
  import 'react-dom';
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-291a16a8.js';
3
+ export { F as default } from '../_verture/index-c62ad493.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-66aa48a1.js';
@@ -68,7 +68,7 @@ import '@para-ui/icons/Left';
68
68
  import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleRight';
71
- import '../_verture/index-c50e7727.js';
71
+ import '../_verture/index-257f53f9.js';
72
72
  import 'rc-tree';
73
73
  import '@para-ui/icons/Document';
74
74
  import 'react-dom';