@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.
- package/CollapseLayout/index.d.ts +2 -0
- package/CollapseLayout/index.js +8 -4
- package/ComboSelect/index.js +1 -1
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/README.md +19 -3
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.d.ts +5 -2
- package/SelectorPicker/index.js +285 -150
- package/SelectorPicker/lang/en_US.d.ts +4 -0
- package/SelectorPicker/lang/index.d.ts +9 -0
- package/SelectorPicker/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +64 -47
- package/Table/interface.d.ts +19 -2
- package/Transfer/index.js +1 -1
- package/Tree/index.js +2 -2
- package/_verture/{index-c50e7727.js → index-257f53f9.js} +15 -0
- package/_verture/{index-291a16a8.js → index-c62ad493.js} +0 -0
- package/index.d.ts +0 -2
- package/index.js +2 -3
- package/package.json +1 -1
- package/umd/CollapseLayout.js +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +2 -2
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +7 -7
- package/umd/Table.js +2 -2
- package/umd/Transfer.js +1 -1
- package/umd/Tree.js +1 -1
- package/Test/index.d.ts +0 -3
- package/Test/index.js +0 -9
- package/umd/Test.js +0 -1
package/CollapseLayout/index.js
CHANGED
|
@@ -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:
|
|
148
|
-
return setShowBox(!showBox);
|
|
149
|
-
}
|
|
153
|
+
onClick: clickBtn
|
|
150
154
|
}, {
|
|
151
155
|
children: [computeLabel && jsx("span", {
|
|
152
156
|
children: computeLabel
|
package/ComboSelect/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
-
|
|
31
|
-
|
|
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;
|