@para-ui/core 3.0.34 → 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.
- 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 +853 -838
- package/Selector/index.js +8 -4
- package/Selector/interface.d.ts +4 -0
- package/Styles/form.scss +5 -5
- package/Styles/index.scss +37 -37
- package/Styles/normalize.scss +348 -348
- package/Styles/scrollbar.scss +223 -223
- package/Styles/theme.scss +74 -74
- 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 +2 -4
- package/index.js +3 -4
- package/package.json +168 -168
- package/umd/ButtonGroup.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/CollapseLayout.js +1 -1
- package/umd/ComboSelect.js +3 -3
- package/umd/Form.js +3 -3
- package/umd/FormItem.js +3 -3
- package/umd/Pagination.js +1 -1
- package/umd/RadioGroup.js +2 -2
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +3 -3
- package/umd/Table.js +3 -3
- 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';
|