@para-ui/core 3.0.35 → 3.0.37

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';
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 版本: 3.0.37
2
+
3
+ para-ui/core@3.0.37 发布
4
+ 【下拉选择器-SelectorPicker】下拉选择器重构,保留原有参数(去除maxCount,新增overLine参数),交互与下拉框一致
5
+ 【选择器-Selector】修复选择器自定义分组类型字段,显示不正常问题
6
+
7
+ ## 版本: 3.0.36
8
+
9
+ para-ui/core@3.0.36 发布
10
+ 【分栏收缩容器-CollapseLayout】增加按钮点击回调onClickBtn
11
+ 【穿梭款-Transfer】修复穿梭框上下移动bug
12
+ 【表格-Table】增加自定义过滤filterRender
13
+ 【表格-Table】渲染操作列按钮,抛出index参数
14
+ 【表格-Table】修改过滤弹窗对齐方式,向表格头对齐
15
+ 【树形控件-Tree】修改树形控件,点击节点编辑按钮消失的问题
16
+
1
17
  ## 版本: 3.0.35
2
18
 
3
19
  para-ui/core@3.0.35 发布
@@ -78,7 +94,7 @@
78
94
  组合选择器-ComboSelect
79
95
  气泡确认框-PopConfirm
80
96
  弹出框-Popover
81
- 】默认挂载容器须同时满足overflow属性和出现滚动条,否则挂载到body
97
+ 】默认挂载容器须同时满足overflow属性和出现滚动条,否则挂载到body
82
98
 
83
99
  ## 版本: 3.0.24
84
100
 
@@ -419,8 +435,8 @@
419
435
 
420
436
  para-ui/core@2.1.39 发布
421
437
  【Table】修改分页页数显示,从接口获取
422
- 【Form】表单组件新增 comboSelect 输入类型
423
- 【Form】表单组件新增通用组件类型引用方法
438
+ 【Form】表单组件新增 comboSelect 输入类型
439
+ 【Form】表单组件新增通用组件类型引用方法
424
440
  【Form】表单配置项新增 itemType配置项 和 InputType,功能相同
425
441
  【Form】表单对象新增reset方法,重置表单为最初状态
426
442
  【Help】修复placement无效
package/Selector/index.js CHANGED
@@ -389,7 +389,7 @@ var SelectorMainContent = function SelectorMainContent(props) {
389
389
  var json = {};
390
390
  for (var i = 0, l = list.length; i < l; i++) {
391
391
  var item = list[i];
392
- var type = item[constData.current.fieldConfig.type || ''];
392
+ var type = item.type;
393
393
  if (!json[type]) json[type] = [];
394
394
  json[type].push(item);
395
395
  }
@@ -27,8 +27,8 @@ export interface SelectorPickerProps extends HelperTextDetailProps {
27
27
  placeholder?: string;
28
28
  /** 是否多选 */
29
29
  multiple?: boolean;
30
- /*** 最大tag显示数 */
31
- maxCount?: number;
30
+ /** 超出换行 */
31
+ overLine?: boolean;
32
32
  /** 支持清除 */
33
33
  allowClear?: boolean;
34
34
  /** 值 */
@@ -45,6 +45,9 @@ export interface SelectorPickerProps extends HelperTextDetailProps {
45
45
  selectorProps?: Omit<SelectorProps, 'layout' | 'disabled' | 'value' | 'defaultValue' | 'disabled' | 'onChange' | 'selectMode'>;
46
46
  /** 浮层渲染容器 */
47
47
  getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
48
+ /** 更多className */
49
+ morePopoverClassName?: string;
50
+ [name: string]: any;
48
51
  }
49
52
  declare const SelectorPicker: React.FC<SelectorPickerProps>;
50
53
  export default SelectorPicker;