@para-ui/core 2.2.4 → 2.2.5-beta
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/AutoBox/index.d.ts +12 -6
- package/AutoBox/index.js +203 -15
- package/AutoTips/index.d.ts +12 -6
- package/AutoTips/index.js +84 -15
- package/Breadcrumbs/index.d.ts +13 -7
- package/Breadcrumbs/index.js +227 -15
- package/Button/index.d.ts +92 -11
- package/Button/index.js +348 -14
- package/ButtonGroup/index.d.ts +21 -9
- package/ButtonGroup/index.js +128 -14
- package/Carousel/index.d.ts +17 -11
- package/Carousel/index.js +74 -15
- package/Cascader/index.d.ts +12 -7
- package/Cascader/index.js +166 -15
- package/Checkbox/index.d.ts +13 -7
- package/Checkbox/index.js +105 -14
- package/CheckboxGroup/index.d.ts +15 -9
- package/CheckboxGroup/index.js +138 -14
- package/Collapse/index.d.ts +49 -14
- package/Collapse/index.js +171 -15
- package/CollapseBox/index.d.ts +11 -5
- package/CollapseBox/index.js +164 -15
- package/ColorPicker/index.d.ts +4 -4
- package/ColorPicker/index.js +4 -1
- package/ComboSelect/index.d.ts +306 -6
- package/ComboSelect/index.js +1803 -14
- package/Container/index.d.ts +13 -8
- package/Container/index.js +239 -15
- package/DatePicker/index.d.ts +30 -17
- package/DatePicker/index.js +733 -14
- package/Desktop/index.d.ts +14 -6
- package/Desktop/index.js +853 -14
- package/Drawer/index.d.ts +92 -6
- package/Drawer/index.js +186 -14
- package/Dropdown/index.d.ts +29 -0
- package/Dropdown/index.js +67 -0
- package/Empty/index.d.ts +16 -10
- package/Empty/index.js +644 -14
- package/Form/index.d.ts +11 -9
- package/Form/index.js +384 -14
- package/FormItem/index.d.ts +5 -152
- package/FormItem/index.js +81 -14
- package/FunctionModal/index.d.ts +14 -3
- package/FunctionModal/index.js +39 -14
- package/GlobalContext/index.d.ts +38 -8
- package/GlobalContext/index.js +41 -16
- package/Help/index.d.ts +16 -10
- package/Help/index.js +39 -15
- package/HelperText/index.d.ts +11 -5
- package/HelperText/index.js +29 -15
- package/InputLang/index.d.ts +13 -7
- package/InputLang/index.js +270 -14
- package/InputNumber/index.d.ts +16 -10
- package/InputNumber/index.js +308 -14
- package/Label/index.d.ts +12 -6
- package/Label/index.js +81 -14
- package/Loading/index.d.ts +12 -6
- package/Loading/index.js +47 -15
- package/Menu/index.d.ts +123 -5
- package/Menu/index.js +1232 -14
- package/Message/index.d.ts +11 -5
- package/Message/index.js +222 -15
- package/Modal/index.d.ts +142 -40
- package/Modal/index.js +443 -14
- package/MultiBox/index.d.ts +13 -7
- package/MultiBox/index.js +231 -14
- package/Notification/index.d.ts +22 -16
- package/Notification/index.js +266 -15
- package/OperateBtn/index.d.ts +16 -10
- package/OperateBtn/index.js +260 -14
- package/PageHeader/index.d.ts +178 -5
- package/PageHeader/index.js +1171 -14
- package/Pagination/index.d.ts +12 -6
- package/Pagination/index.js +469 -14
- package/ParauiProvider/index.d.ts +9 -8
- package/ParauiProvider/index.js +53 -15
- package/PopConfirm/index.d.ts +23 -10
- package/PopConfirm/index.js +189 -14
- package/Popover/index.d.ts +18 -11
- package/Popover/index.js +66 -15
- package/Progress/index.d.ts +18 -12
- package/Progress/index.js +358 -20
- package/Querying/index.d.ts +15 -9
- package/Querying/index.js +762 -14
- package/Radio/index.d.ts +13 -7
- package/Radio/index.js +94 -14
- package/RadioGroup/index.d.ts +15 -9
- package/RadioGroup/index.js +128 -14
- package/Search/index.d.ts +18 -12
- package/Search/index.js +220 -14
- package/Select/index.d.ts +13 -7
- package/Select/index.js +1288 -14
- package/SelectInput/index.d.ts +11 -5
- package/SelectInput/index.js +51 -14
- package/SingleBox/index.d.ts +13 -7
- package/SingleBox/index.js +194 -14
- package/Slider/index.d.ts +104 -7
- package/Slider/index.js +125 -15
- package/Split/index.d.ts +8 -3
- package/Split/index.js +134 -15
- package/Stepper/index.d.ts +41 -25
- package/Stepper/index.js +99 -15
- package/Switch/index.d.ts +16 -10
- package/Switch/index.js +73 -14
- package/Table/index.d.ts +12 -4
- package/Table/index.js +2725 -14
- package/Tabs/index.d.ts +64 -29
- package/Tabs/index.js +218 -14
- package/Tag/index.d.ts +78 -12
- package/Tag/index.js +286 -14
- package/Test/index.d.ts +3 -2
- package/Test/index.js +9 -16
- package/TextField/index.d.ts +22 -16
- package/TextField/index.js +686 -14
- package/TimePicker/index.d.ts +20 -10
- package/TimePicker/index.js +77 -14
- package/Timeline/index.d.ts +49 -13
- package/Timeline/index.js +150 -15
- package/ToggleButton/index.d.ts +61 -10
- package/ToggleButton/index.js +200 -14
- package/Tooltip/index.d.ts +12 -10
- package/Tooltip/index.js +335 -15
- package/Transfer/index.d.ts +8 -3
- package/Transfer/index.js +343 -14
- package/Tree/index.d.ts +8 -5
- package/Tree/index.js +35 -14
- package/Upload/index.d.ts +179 -8
- package/Upload/index.js +1542 -14
- package/_verture/defineProperty-0590dc61.js +16 -0
- package/_verture/index-0d8e1d07.js +4 -0
- package/_verture/index-14a47097.js +4 -0
- package/_verture/index-342379c6.js +391 -0
- package/_verture/index-458032d7.js +10 -0
- package/_verture/index-46bfb2f0.js +778 -0
- package/_verture/index-50401de7.js +4 -0
- package/_verture/index-5b08df83.js +4 -0
- package/_verture/index-6190b129.js +4 -0
- package/_verture/index-7ef1e3b6.js +1553 -0
- package/_verture/index-a369ca3f.js +4 -0
- package/_verture/index-c60911dc.js +39 -0
- package/_verture/index-e2881a53.js +16 -0
- package/_verture/index-ff4c2a27.js +200 -0
- package/{Tree/interface.d.ts → _verture/interface-128abdd3.js} +15 -25
- package/_verture/interface-a77a851e.js +25 -0
- package/{Table/interface.d.ts → _verture/interface-a9b7c716.js} +20 -28
- package/_verture/intl-336570e4.js +65 -0
- package/_verture/modalContext-25890584.js +228 -0
- package/_verture/modalContext-639f2787.js +58 -0
- package/_verture/slicedToArray-d7722f4b.js +62 -0
- package/_verture/style-inject.es-300983ab.js +28 -0
- package/_verture/toConsumableArray-f8047a75.js +19 -0
- package/_verture/tslib.es6-55ed4bd2.js +38 -0
- package/_verture/typeof-498dd2b1.js +11 -0
- package/_verture/useFormatMessage-ac9d6acf.js +20 -0
- package/_verture/useGlobalProps-af9a2af6.js +12 -0
- package/index.d.ts +88 -128
- package/index.js +160 -19
- package/package.json +59 -22
- package/Button/SplitButton.d.ts +0 -61
- package/Button/lang/en_US.d.ts +0 -4
- package/Button/lang/index.d.ts +0 -9
- package/Button/lang/zh_CN.d.ts +0 -4
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Collapse/collapsePanel.d.ts +0 -30
- package/Collapse/motion.d.ts +0 -5
- package/Collapse/util.d.ts +0 -11
- package/CollapseBox/util.d.ts +0 -5
- package/ComboSelect/WithTabsCombo/index.d.ts +0 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +0 -141
- package/ComboSelect/interface.d.ts +0 -143
- package/ComboSelect/lang/en_US.d.ts +0 -8
- package/ComboSelect/lang/index.d.ts +0 -17
- package/ComboSelect/lang/zh_CN.d.ts +0 -8
- package/ComboSelect/utils.d.ts +0 -12
- package/DatePicker/PickerButton.d.ts +0 -3
- package/DatePicker/PickerTag.d.ts +0 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +0 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +0 -11
- package/DatePicker/generatePicker/index.d.ts +0 -77
- package/DatePicker/lang/en_US.d.ts +0 -3
- package/DatePicker/lang/index.d.ts +0 -7
- package/DatePicker/lang/zh_CN.d.ts +0 -3
- package/DatePicker/util.d.ts +0 -20
- package/Drawer/interface.d.ts +0 -83
- package/Drawer/lang/en_US.d.ts +0 -5
- package/Drawer/lang/index.d.ts +0 -11
- package/Drawer/lang/zh_CN.d.ts +0 -5
- package/Empty/images/index.d.ts +0 -2
- package/Empty/lang/en_US.d.ts +0 -6
- package/Empty/lang/index.d.ts +0 -13
- package/Empty/lang/zh_CN.d.ts +0 -6
- package/FormItem/compoments/defaultCompoments/index.d.ts +0 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +0 -8
- package/FormItem/compoments/formFile/index.d.ts +0 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +0 -8
- package/FormItem/compoments/formSelect/index.d.ts +0 -18
- package/FormItem/errorTips.d.ts +0 -12
- package/FormItem/itemType.d.ts +0 -42
- package/FormItem/validateFunction.d.ts +0 -15
- package/FunctionModal/dialog.d.ts +0 -58
- package/FunctionModal/modalContext.d.ts +0 -14
- package/GlobalContext/componentsProps.d.ts +0 -19
- package/GlobalContext/confirmLocale.d.ts +0 -7
- package/GlobalContext/intl.d.ts +0 -34
- package/GlobalContext/useFormatMessage.d.ts +0 -3
- package/Hooks/useGlobalProps.d.ts +0 -1
- package/Menu/footerExpansion.d.ts +0 -9
- package/Menu/interface.d.ts +0 -139
- package/Menu/logo.d.ts +0 -9
- package/Menu/verticalMenuList.d.ts +0 -14
- package/Modal/Confirm/index.d.ts +0 -66
- package/Modal/lang/en_US.d.ts +0 -5
- package/Modal/lang/index.d.ts +0 -11
- package/Modal/lang/zh_CN.d.ts +0 -5
- package/OperateBtn/lang/en_US.d.ts +0 -4
- package/OperateBtn/lang/index.d.ts +0 -9
- package/OperateBtn/lang/zh_CN.d.ts +0 -4
- package/PageHeader/horizontalMeun.d.ts +0 -9
- package/PageHeader/horizontalMeunRight.d.ts +0 -9
- package/PageHeader/interface.d.ts +0 -167
- package/Pagination/lang/en_US.d.ts +0 -8
- package/Pagination/lang/index.d.ts +0 -17
- package/Pagination/lang/zh_CN.d.ts +0 -8
- package/PopConfirm/lang/en_US.d.ts +0 -5
- package/PopConfirm/lang/index.d.ts +0 -11
- package/PopConfirm/lang/zh_CN.d.ts +0 -5
- package/Popper/index.d.ts +0 -13
- package/Popper/index.js +0 -16
- package/Progress/Line.d.ts +0 -47
- package/Progress/Steps.d.ts +0 -17
- package/Progress/utils.d.ts +0 -6
- package/Querying/images/index.d.ts +0 -2
- package/Querying/lang/en_US.d.ts +0 -4
- package/Querying/lang/index.d.ts +0 -9
- package/Querying/lang/zh_CN.d.ts +0 -4
- package/README.md +0 -489
- package/Select/lang/en_US.d.ts +0 -5
- package/Select/lang/index.d.ts +0 -11
- package/Select/lang/zh_CN.d.ts +0 -5
- package/Slider/interface.d.ts +0 -102
- package/Stepper/icons.d.ts +0 -5
- package/Table/lang/en_US.d.ts +0 -6
- package/Table/lang/index.d.ts +0 -13
- package/Table/lang/zh_CN.d.ts +0 -6
- package/Table/tableBody.d.ts +0 -9
- package/Table/tableBodyElement/index.d.ts +0 -15
- package/Table/tableBodyInterface.d.ts +0 -67
- package/Table/tableContainer/index.d.ts +0 -16
- package/Table/tableElement/index.d.ts +0 -17
- package/Table/tableHead.d.ts +0 -9
- package/Table/tableHeadElement/index.d.ts +0 -15
- package/Table/tableHeadInterface.d.ts +0 -30
- package/Table/tablePagination.d.ts +0 -9
- package/Table/tablePaginationInterFace.d.ts +0 -24
- package/Table/tdElement/index.d.ts +0 -15
- package/Table/thElement/index.d.ts +0 -15
- package/Table/trElement/index.d.ts +0 -15
- package/Table/util.d.ts +0 -16
- package/Tag/TagGroup.d.ts +0 -66
- package/TimePicker/locale/en_US.d.ts +0 -3
- package/TimePicker/locale/zh_CN.d.ts +0 -3
- package/TimePicker/style/index.d.ts +0 -1
- package/ToggleButton/ToggleButtonGroup.d.ts +0 -49
- package/Transfer/lang/en_US.d.ts +0 -6
- package/Transfer/lang/index.d.ts +0 -13
- package/Transfer/lang/zh_CN.d.ts +0 -6
- package/Tree/OperateBar/index.d.ts +0 -13
- package/Tree/Tree.d.ts +0 -4
- package/Tree/lang/en_US.d.ts +0 -8
- package/Tree/lang/index.d.ts +0 -17
- package/Tree/lang/zh_CN.d.ts +0 -8
- package/Tree/utils/closestPolyfill.d.ts +0 -0
- package/Tree/utils/tools.d.ts +0 -26
- package/Tree/utils/treeUtil.d.ts +0 -15
- package/Upload/Dragger/index.d.ts +0 -10
- package/Upload/ErroTip/index.d.ts +0 -13
- package/Upload/ImageUpload/index.d.ts +0 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +0 -17
- package/Upload/ImgCrop/constants.d.ts +0 -7
- package/Upload/ImgCrop/index.d.ts +0 -6
- package/Upload/ImgCrop/interface.d.ts +0 -24
- package/Upload/UploadList/index.d.ts +0 -5
- package/Upload/interface.d.ts +0 -134
- package/Upload/lang/en_US.d.ts +0 -12
- package/Upload/lang/index.d.ts +0 -25
- package/Upload/lang/zh_CN.d.ts +0 -12
- package/cdn/AutoBox/index.js +0 -29
- package/cdn/AutoTips/index.js +0 -40
- package/cdn/Breadcrumbs/index.js +0 -53
- package/cdn/Button/index.js +0 -79
- package/cdn/ButtonGroup/index.js +0 -79
- package/cdn/Carousel/index.js +0 -6
- package/cdn/Cascader/index.js +0 -42
- package/cdn/Checkbox/index.js +0 -53
- package/cdn/CheckboxGroup/index.js +0 -53
- package/cdn/Collapse/index.js +0 -27
- package/cdn/CollapseBox/index.js +0 -1
- package/cdn/ColorPicker/index.js +0 -1
- package/cdn/ComboSelect/index.js +0 -438
- package/cdn/Container/index.js +0 -1
- package/cdn/DatePicker/index.js +0 -185
- package/cdn/Desktop/index.js +0 -24
- package/cdn/Drawer/index.js +0 -84
- package/cdn/Empty/index.js +0 -1
- package/cdn/Form/index.js +0 -477
- package/cdn/FormItem/index.js +0 -477
- package/cdn/FunctionModal/index.js +0 -144
- package/cdn/GlobalContext/index.js +0 -1
- package/cdn/Help/index.js +0 -53
- package/cdn/HelperText/index.js +0 -1
- package/cdn/InputLang/index.js +0 -144
- package/cdn/InputNumber/index.js +0 -118
- package/cdn/Label/index.js +0 -53
- package/cdn/Loading/index.js +0 -14
- package/cdn/Menu/index.js +0 -40
- package/cdn/Message/index.js +0 -53
- package/cdn/Modal/index.js +0 -144
- package/cdn/MultiBox/index.js +0 -131
- package/cdn/Notification/index.js +0 -66
- package/cdn/OperateBtn/index.js +0 -92
- package/cdn/PageHeader/index.js +0 -92
- package/cdn/Pagination/index.js +0 -214
- package/cdn/ParauiProvider/index.js +0 -9
- package/cdn/PopConfirm/index.js +0 -131
- package/cdn/Popover/index.js +0 -16
- package/cdn/Popper/index.js +0 -26
- package/cdn/Progress/index.js +0 -58
- package/cdn/Querying/index.js +0 -1
- package/cdn/Radio/index.js +0 -53
- package/cdn/RadioGroup/index.js +0 -53
- package/cdn/Search/index.js +0 -144
- package/cdn/Select/index.js +0 -131
- package/cdn/SelectInput/index.js +0 -131
- package/cdn/SingleBox/index.js +0 -131
- package/cdn/Slider/index.js +0 -16
- package/cdn/Split/index.js +0 -1
- package/cdn/Stepper/index.js +0 -154
- package/cdn/Switch/index.js +0 -71
- package/cdn/Table/index.js +0 -292
- package/cdn/Tabs/index.js +0 -165
- package/cdn/Tag/index.js +0 -27
- package/cdn/Test/index.js +0 -1
- package/cdn/TextField/index.js +0 -105
- package/cdn/TimePicker/index.js +0 -185
- package/cdn/Timeline/index.js +0 -16
- package/cdn/ToggleButton/index.js +0 -79
- package/cdn/Tooltip/index.js +0 -40
- package/cdn/Transfer/index.js +0 -170
- package/cdn/Tree/index.js +0 -170
- package/cdn/Upload/index.js +0 -252
- package/style.css +0 -72
package/CollapseBox/index.js
CHANGED
|
@@ -1,15 +1,164 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useEffect } from 'react';
|
|
3
|
+
import { Transition } from 'react-transition-group';
|
|
4
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
5
|
+
|
|
6
|
+
function getTransitionProps(props, options) {
|
|
7
|
+
var timeout = props.timeout,
|
|
8
|
+
_props$style = props.style,
|
|
9
|
+
style = _props$style === void 0 ? {} : _props$style;
|
|
10
|
+
return {
|
|
11
|
+
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
|
|
12
|
+
delay: style.transitionDelay
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function getAutoHeightDuration(height) {
|
|
16
|
+
if (!height) {
|
|
17
|
+
return 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var constant = height / 36;
|
|
21
|
+
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var css_248z = ".paraui-collapse-box {\n transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n width: 100%;\n overflow: hidden;\n height: 0;\n}\n.paraui-collapse-box > .paraui-collapse-box-wrapper {\n display: flex;\n width: 100%;\n}\n.paraui-collapse-box > .paraui-collapse-box-wrapper > .paraui-collapse-box-wrapper-inner {\n width: 100%;\n}\n.paraui-collapse-box.paraui-collapse-box-entered {\n overflow: visible;\n}\n.paraui-collapse-box.paraui-collapse-box-hidden {\n visibility: hidden;\n}";
|
|
25
|
+
styleInject(css_248z);
|
|
26
|
+
|
|
27
|
+
var CollapseBox = function CollapseBox(props) {
|
|
28
|
+
var className = props.className,
|
|
29
|
+
style = props.style,
|
|
30
|
+
inProp = props.in,
|
|
31
|
+
_props$collapsedHeigh = props.collapsedHeight,
|
|
32
|
+
collapsedHeightProp = _props$collapsedHeigh === void 0 ? '0px' : _props$collapsedHeigh,
|
|
33
|
+
_props$timeout = props.timeout,
|
|
34
|
+
timeout = _props$timeout === void 0 ? 'auto' : _props$timeout,
|
|
35
|
+
unmountOnExit = props.unmountOnExit,
|
|
36
|
+
_children = props.children; // timer
|
|
37
|
+
|
|
38
|
+
var timer = useRef(null); // 动画节点
|
|
39
|
+
|
|
40
|
+
var nodeRef = useRef(null); // 内置容器
|
|
41
|
+
|
|
42
|
+
var wrapperRef = useRef(null); // 存储动画时间变量
|
|
43
|
+
|
|
44
|
+
var autoTransitionDuration = useRef(null); // 下拉收起的高度
|
|
45
|
+
|
|
46
|
+
var collapsedHeight = typeof collapsedHeightProp === 'number' ? "".concat(collapsedHeightProp, "px") : collapsedHeightProp;
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
return function () {
|
|
49
|
+
clearTimeout(timer.current);
|
|
50
|
+
};
|
|
51
|
+
}, []); // 处理节点
|
|
52
|
+
|
|
53
|
+
var normalizedTransitionCallback = function normalizedTransitionCallback(callback) {
|
|
54
|
+
return function (nodeOrAppearing) {
|
|
55
|
+
if (callback) {
|
|
56
|
+
callback(nodeOrAppearing);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}; // 下拉
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var handleEnter = normalizedTransitionCallback(function (node) {
|
|
63
|
+
node.style.height = collapsedHeight;
|
|
64
|
+
});
|
|
65
|
+
var handleEntering = normalizedTransitionCallback(function (node) {
|
|
66
|
+
var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
|
|
67
|
+
|
|
68
|
+
var _getTransitionProps = getTransitionProps({
|
|
69
|
+
style: style,
|
|
70
|
+
timeout: timeout
|
|
71
|
+
}, {
|
|
72
|
+
mode: 'enter'
|
|
73
|
+
}),
|
|
74
|
+
transitionDuration = _getTransitionProps.duration;
|
|
75
|
+
|
|
76
|
+
if (timeout === 'auto') {
|
|
77
|
+
var duration2 = getAutoHeightDuration(wrapperHeight);
|
|
78
|
+
node.style.transitionDuration = "".concat(duration2, "ms");
|
|
79
|
+
autoTransitionDuration.current = duration2;
|
|
80
|
+
} else {
|
|
81
|
+
node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms");
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
node.style.height = "".concat(wrapperHeight, "px");
|
|
85
|
+
});
|
|
86
|
+
var handleEntered = normalizedTransitionCallback(function (node) {
|
|
87
|
+
node.style.height = 'auto';
|
|
88
|
+
}); // 收起
|
|
89
|
+
|
|
90
|
+
var handleExit = normalizedTransitionCallback(function (node) {
|
|
91
|
+
var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
|
|
92
|
+
node.style.height = "".concat(wrapperHeight, "px");
|
|
93
|
+
});
|
|
94
|
+
var handleExiting = normalizedTransitionCallback(function (node) {
|
|
95
|
+
var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
|
|
96
|
+
|
|
97
|
+
var _getTransitionProps2 = getTransitionProps({
|
|
98
|
+
style: style,
|
|
99
|
+
timeout: timeout
|
|
100
|
+
}, {
|
|
101
|
+
mode: 'exit'
|
|
102
|
+
}),
|
|
103
|
+
transitionDuration = _getTransitionProps2.duration;
|
|
104
|
+
|
|
105
|
+
if (timeout === 'auto') {
|
|
106
|
+
var duration2 = getAutoHeightDuration(wrapperHeight);
|
|
107
|
+
node.style.transitionDuration = "".concat(duration2, "ms");
|
|
108
|
+
autoTransitionDuration.current = duration2;
|
|
109
|
+
} else {
|
|
110
|
+
node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
node.style.height = collapsedHeight;
|
|
114
|
+
}); // 完成下拉/收起回调
|
|
115
|
+
|
|
116
|
+
var addEndListener = function addEndListener(nodeOrNext, maybeNext) {
|
|
117
|
+
timer.current = setTimeout(maybeNext, autoTransitionDuration.current || 0);
|
|
118
|
+
}; // 处理className
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
var handClass = function handClass(state) {
|
|
122
|
+
var str = 'paraui-collapse-box';
|
|
123
|
+
if (className) str += ' ' + className;
|
|
124
|
+
if (state === 'entered') str += ' paraui-collapse-box-entered';
|
|
125
|
+
if (state === 'exited' && !inProp && collapsedHeight === '0px') str += ' paraui-collapse-box-hidden';
|
|
126
|
+
return str;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
return jsx(Transition, Object.assign({
|
|
130
|
+
in: inProp,
|
|
131
|
+
unmountOnExit: unmountOnExit,
|
|
132
|
+
onEnter: handleEnter,
|
|
133
|
+
onEntered: handleEntered,
|
|
134
|
+
onEntering: handleEntering,
|
|
135
|
+
onExit: handleExit,
|
|
136
|
+
onExiting: handleExiting,
|
|
137
|
+
//nodeRef={nodeRef}
|
|
138
|
+
timeout: timeout === 'auto' ? undefined : timeout,
|
|
139
|
+
addEndListener: addEndListener
|
|
140
|
+
}, {
|
|
141
|
+
children: function children(state, childProps) {
|
|
142
|
+
return jsx("div", Object.assign({
|
|
143
|
+
className: handClass(state),
|
|
144
|
+
style: Object.assign({
|
|
145
|
+
minHeight: collapsedHeight
|
|
146
|
+
}, style),
|
|
147
|
+
ref: nodeRef
|
|
148
|
+
}, childProps, {
|
|
149
|
+
children: jsx("div", Object.assign({
|
|
150
|
+
className: 'paraui-collapse-box-wrapper',
|
|
151
|
+
ref: wrapperRef
|
|
152
|
+
}, {
|
|
153
|
+
children: jsx("div", Object.assign({
|
|
154
|
+
className: 'paraui-collapse-box-wrapper-inner'
|
|
155
|
+
}, {
|
|
156
|
+
children: _children
|
|
157
|
+
}))
|
|
158
|
+
}))
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
}));
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
export { CollapseBox as default };
|
package/ColorPicker/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SketchPicker
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SketchPicker } from 'react-color';
|
|
2
|
+
export { ChromePicker, CompactPicker, SwatchesPicker, SketchPicker as default } from 'react-color';
|
|
3
|
+
import '../_verture/index-50401de7.js';
|
|
4
|
+
import './node_modules/style-inject/dist/style-inject.es.js';
|
package/ColorPicker/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { SketchPicker } from 'react-color';
|
|
2
|
+
export { ChromePicker, CompactPicker, SwatchesPicker, SketchPicker as default } from 'react-color';
|
|
3
|
+
import '../_verture/index-a369ca3f.js';
|
|
4
|
+
import '../_verture/style-inject.es-300983ab.js';
|
package/ComboSelect/index.d.ts
CHANGED
|
@@ -1,11 +1,311 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import '
|
|
1
|
+
import React__default, { ReactNode, FunctionComponent } from 'react';
|
|
2
|
+
import { T as TableProps$2 } from '../_verture/interface-a9b7c716.js';
|
|
3
|
+
import { a as TreeNodeProps, T as TreeProps } from '../_verture/interface-128abdd3.js';
|
|
4
|
+
import { LabelTooltipProps } from '../Label/index.js';
|
|
5
|
+
import { EmptyProps } from '../Empty/index.js';
|
|
6
|
+
import { TabsProps } from '../Tabs/index.js';
|
|
7
|
+
import styleInject from './node_modules/style-inject/dist/style-inject.es.js';
|
|
8
|
+
import '../OperateBtn/index.js';
|
|
9
|
+
import 'rc-tree';
|
|
10
|
+
import 'rc-tree/lib/interface';
|
|
11
|
+
import 'rc-tabs';
|
|
12
|
+
import '../PopConfirm/index.js';
|
|
13
|
+
import '../Button/index.js';
|
|
14
|
+
import '../_verture/interface-a77a851e.js';
|
|
15
|
+
import 'rc-tooltip/lib/Tooltip';
|
|
16
|
+
import '../_verture/index-6190b129.js';
|
|
17
|
+
import '../_verture/index-5b08df83.js';
|
|
18
|
+
import '../Dropdown/index.js';
|
|
19
|
+
import '../_verture/index-0d8e1d07.js';
|
|
20
|
+
import '../Help/index.js';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @author Hanz
|
|
24
|
+
* @date 2021/8/19 下午1:47
|
|
25
|
+
* @description 接口
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
declare type TableProps$1 = TableProps$2 & {
|
|
29
|
+
/** table 参数 */
|
|
30
|
+
params?: Object;
|
|
31
|
+
/** 替换显示字段 */
|
|
32
|
+
replaceFields?: {
|
|
33
|
+
key?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
declare type SelectOpt = {
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
closable?: boolean;
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
declare type SelectedOptions = Array<SelectOpt>;
|
|
44
|
+
|
|
45
|
+
interface ComboSelectProps {
|
|
46
|
+
/**选择器模式*/
|
|
47
|
+
mode?: 'table' | 'tree' | 'list';
|
|
48
|
+
/**占位符*/
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
/**search 占位符*/
|
|
51
|
+
searchPlaceholder?: string;
|
|
52
|
+
/**最大显示数*/
|
|
53
|
+
maxCount?: number;
|
|
54
|
+
/**禁用选择器*/
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/** 支持清除 */
|
|
57
|
+
allowClear?: boolean;
|
|
58
|
+
/**cls*/
|
|
59
|
+
className?: string;
|
|
60
|
+
/**样式*/
|
|
61
|
+
style?: React__default.CSSProperties;
|
|
62
|
+
/**弹出层className*/
|
|
63
|
+
popoverClassName?: string;
|
|
64
|
+
/**容器最大高度*/
|
|
65
|
+
maxHeight?: number;
|
|
66
|
+
/**容器高度*/
|
|
67
|
+
height?: number;
|
|
68
|
+
/**大小*/
|
|
69
|
+
size?: 'large' | 'medium' | 'small';
|
|
70
|
+
/**选择器footer actions*/
|
|
71
|
+
popoverActions?: React__default.ReactNode;
|
|
72
|
+
/**是否显示footer actions*/
|
|
73
|
+
showPopoverActions?: boolean;
|
|
74
|
+
/**是否默认打开*/
|
|
75
|
+
defaultOpen?: boolean;
|
|
76
|
+
/**默认值 checkable为true SelectOpt[],为false SelectOpt */
|
|
77
|
+
defaultValue?: SelectOpt[] | SelectOpt;
|
|
78
|
+
/**替换显示字段 {key: 'key', title: 'title', children: 'children'} */
|
|
79
|
+
replaceFields?: {
|
|
80
|
+
key?: string;
|
|
81
|
+
title?: string;
|
|
82
|
+
children?: string;
|
|
83
|
+
};
|
|
84
|
+
/**出参字段 {outputKey: 'key', outputTitle: 'label'} */
|
|
85
|
+
outputFields?: {
|
|
86
|
+
outputKey?: string;
|
|
87
|
+
outputTitle?: string;
|
|
88
|
+
};
|
|
89
|
+
/**当前选中值 checkable为true SelectOpt[],为false SelectOpt*/
|
|
90
|
+
value?: SelectOpt[] | SelectOpt;
|
|
91
|
+
/**刷新标识*/
|
|
92
|
+
refresh?: number;
|
|
93
|
+
/**搜索回调*/
|
|
94
|
+
onSearch?: (searchKey: string) => void;
|
|
95
|
+
/**footer actions 取消回调*/
|
|
96
|
+
onCancel?: () => void;
|
|
97
|
+
/**footer actions 确定回调*/
|
|
98
|
+
onOk?: (options: SelectedOptions) => void;
|
|
99
|
+
/** 关闭选择器回调 */
|
|
100
|
+
onClose?: () => void;
|
|
101
|
+
/**value发生变化时回调*/
|
|
102
|
+
onChange?: (options: SelectOpt[] | SelectOpt, prevOptions?: SelectOpt[] | SelectOpt, originData?: TreeNodeProps[] | TreeNodeProps) => void;
|
|
103
|
+
/**table组件属性*/
|
|
104
|
+
TableProps?: TableProps$1;
|
|
105
|
+
/**tree组件属性*/
|
|
106
|
+
TreeProps?: TreeProps;
|
|
107
|
+
/**请求url*/
|
|
108
|
+
url?: string;
|
|
109
|
+
/**请求上下文*/
|
|
110
|
+
ctx?: string;
|
|
111
|
+
/**请求参数*/
|
|
112
|
+
params?: Object;
|
|
113
|
+
/**请求方法*/
|
|
114
|
+
method?: 'Get' | 'Post';
|
|
115
|
+
/**单选或多选*/
|
|
116
|
+
checkable?: boolean;
|
|
117
|
+
/**是否显示搜索*/
|
|
118
|
+
showSearch?: boolean;
|
|
119
|
+
/**错误状态*/
|
|
120
|
+
error?: boolean;
|
|
121
|
+
/**辅助文本*/
|
|
122
|
+
helperText?: React__default.ReactNode;
|
|
123
|
+
/**参数处理回调*/
|
|
124
|
+
paramsCallback?: (params: {
|
|
125
|
+
[name: string]: any;
|
|
126
|
+
}) => any;
|
|
127
|
+
/**路径字段*/
|
|
128
|
+
fullPathKey?: string;
|
|
129
|
+
/** 自定义路径节点 */
|
|
130
|
+
fullPathRender?: (node: TreeNodeProps) => React__default.ReactNode;
|
|
131
|
+
/** 禁用弹框模式 */
|
|
132
|
+
disablePopup?: boolean;
|
|
133
|
+
/** 自定义渲染tag */
|
|
134
|
+
tagRender?: (option: SelectOpt) => React__default.ReactNode;
|
|
135
|
+
/** tag 删除回调*/
|
|
136
|
+
onTagRemove?: (currentOpt?: SelectOpt) => void;
|
|
137
|
+
/** 暴露给外部的行为,可扩展*/
|
|
138
|
+
action?: React__default.Ref<{
|
|
139
|
+
closePopup(): void;
|
|
140
|
+
}>;
|
|
141
|
+
/** 标题 */
|
|
142
|
+
label?: ReactNode;
|
|
143
|
+
/** 帮助提示信息 */
|
|
144
|
+
labelTooltip?: LabelTooltipProps;
|
|
145
|
+
/** 是否必填 */
|
|
146
|
+
required?: boolean;
|
|
147
|
+
/** 空状态属性 */
|
|
148
|
+
emptyProps?: EmptyProps;
|
|
149
|
+
/** 单选时可切换选中值 checkable 为 false 时有效 */
|
|
150
|
+
toggleSelectedOnSingle?: boolean;
|
|
151
|
+
/** 自定义渲染列表option */
|
|
152
|
+
optionRender?: (nodeData: TreeNodeProps) => React__default.ReactNode;
|
|
153
|
+
/** 获得option label */
|
|
154
|
+
getOptionLabel?: (nodeData: TreeNodeProps) => string;
|
|
155
|
+
/** 下拉匹配选择框宽度 */
|
|
156
|
+
dropdownMatchSelectWidth?: boolean | number;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @author Hanz
|
|
161
|
+
* @date 2021/8/30 下午2:31
|
|
162
|
+
* @description 接口
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
declare type TableProps = TableProps$2 & {
|
|
166
|
+
/** 表格参数 */
|
|
167
|
+
params?: Object;
|
|
168
|
+
/** 表格替换字段*/
|
|
169
|
+
replaceFields?: {
|
|
170
|
+
key?: string;
|
|
171
|
+
title?: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
interface TabsList {
|
|
175
|
+
/** 唯一key ,与TabsPanel一致 */
|
|
176
|
+
value?: string;
|
|
177
|
+
/** tab 显示名 */
|
|
178
|
+
label?: string;
|
|
179
|
+
/** 选中当前tab*/
|
|
180
|
+
selected?: boolean;
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
}
|
|
183
|
+
interface TabsPanel {
|
|
184
|
+
/** 唯一key ,与TabsList 一致 */
|
|
185
|
+
value?: string;
|
|
186
|
+
/** 组件类型 */
|
|
187
|
+
mode?: 'tree' | 'table' | 'customize';
|
|
188
|
+
/** mode: table 表格属性 */
|
|
189
|
+
tableProps?: TableProps;
|
|
190
|
+
/** mode: tree 树属性 */
|
|
191
|
+
treeProps?: TreeProps;
|
|
192
|
+
/** mode: customize 自定义组件 */
|
|
193
|
+
customizeComponent?: React__default.ReactNode;
|
|
194
|
+
/** mode: customize 通过回调渲染自定义组件 */
|
|
195
|
+
customizeRender?: (value: SelectedOption[]) => React__default.ReactNode;
|
|
196
|
+
}
|
|
197
|
+
interface TagFields {
|
|
198
|
+
/** 唯一key , 与TabsList一致 */
|
|
199
|
+
[value: string]: {
|
|
200
|
+
/** tag key */
|
|
201
|
+
key: string;
|
|
202
|
+
/** tag title */
|
|
203
|
+
title: string;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
declare type SelectedOption = {
|
|
207
|
+
key: string;
|
|
208
|
+
label: string;
|
|
209
|
+
tabKey: string;
|
|
210
|
+
};
|
|
211
|
+
interface TabsComboSelectProps {
|
|
212
|
+
/**占位符*/
|
|
213
|
+
placeholder?: string;
|
|
214
|
+
/**search 占位符*/
|
|
215
|
+
searchPlaceholder?: string;
|
|
216
|
+
/**最大显示数*/
|
|
217
|
+
maxCount?: number;
|
|
218
|
+
/**禁用选择器*/
|
|
219
|
+
disabled?: boolean;
|
|
220
|
+
/** 支持清除 */
|
|
221
|
+
allowClear?: boolean;
|
|
222
|
+
/**cls*/
|
|
223
|
+
className?: string;
|
|
224
|
+
/**弹出层className*/
|
|
225
|
+
popoverClassName?: string;
|
|
226
|
+
/**大小*/
|
|
227
|
+
size?: 'large' | 'medium' | 'small';
|
|
228
|
+
/**选择器footer actions*/
|
|
229
|
+
popoverActions?: React__default.ReactNode;
|
|
230
|
+
/**是否显示footer actions*/
|
|
231
|
+
showPopoverActions?: boolean;
|
|
232
|
+
/**是否默认打开*/
|
|
233
|
+
defaultOpen?: boolean;
|
|
234
|
+
/**默认值*/
|
|
235
|
+
defaultValue?: SelectedOption[];
|
|
236
|
+
/**当前选中值*/
|
|
237
|
+
value?: SelectedOption[];
|
|
238
|
+
/**位置*/
|
|
239
|
+
anchorOrigin?: 'lt' | 'lc' | 'lb' | 'ct' | 'cc' | 'cb' | 'rt' | 'rc' | 'rb';
|
|
240
|
+
/**搜索回调*/
|
|
241
|
+
onSearch?: (searchValue: {
|
|
242
|
+
tabKey: string;
|
|
243
|
+
searchKey: string | null;
|
|
244
|
+
}) => void;
|
|
245
|
+
/**footer actions 取消回调*/
|
|
246
|
+
onCancel?: () => void;
|
|
247
|
+
/**footer actions 确定回调*/
|
|
248
|
+
onOk?: (options: SelectedOption[]) => void;
|
|
249
|
+
/** 关闭选择器回调 */
|
|
250
|
+
onClose?: () => void;
|
|
251
|
+
/**value发生变化时回调*/
|
|
252
|
+
onChange?: (options: SelectedOption[], originData?: any) => void;
|
|
253
|
+
/**table组件属性*/
|
|
254
|
+
TableProps?: Omit<TableProps, 'check' | 'radio' | 'rowKey' | 'setCheck' | 'setRadio' | 'checkDefaultValue' | 'radioDefaultValue' | 'autoSize' | 'search' | 'paramsCallback'>;
|
|
255
|
+
/**tree组件属性*/
|
|
256
|
+
TreeProps?: Omit<TreeProps, 'checkable' | 'radioable' | 'selectable' | 'checkedKeys' | 'onCheck' | 'onSelect' | 'paramsCallback' | 'params'>;
|
|
257
|
+
/**单选或多选*/
|
|
258
|
+
checkable?: boolean;
|
|
259
|
+
/**是否显示搜索*/
|
|
260
|
+
showSearch?: boolean;
|
|
261
|
+
/**错误状态*/
|
|
262
|
+
error?: boolean;
|
|
263
|
+
/**辅助文本*/
|
|
264
|
+
helperText?: string;
|
|
265
|
+
/**参数处理回调*/
|
|
266
|
+
paramsCallback?: (params: any) => any;
|
|
267
|
+
/** 搜索参数 */
|
|
268
|
+
searchParams?: {
|
|
269
|
+
tabKey: string;
|
|
270
|
+
searchKey: string | null;
|
|
271
|
+
};
|
|
272
|
+
/** tabs列表 */
|
|
273
|
+
tabsList: TabsList[];
|
|
274
|
+
/** tabs 面板 */
|
|
275
|
+
tabsPanel: TabsPanel[];
|
|
276
|
+
/** tag 显示字段*/
|
|
277
|
+
tagFields: TagFields;
|
|
278
|
+
/** 路径字段 */
|
|
279
|
+
fullPathKey?: string;
|
|
280
|
+
/** 自定义路径节点 */
|
|
281
|
+
fullPathRender?: (node: TreeNodeProps) => React__default.ReactNode;
|
|
282
|
+
/** 路径节点 */
|
|
283
|
+
fullPathNode?: React__default.ReactNode;
|
|
284
|
+
/** tabs change回调 */
|
|
285
|
+
onTabsChange?: TabsProps['onChange'];
|
|
286
|
+
/** 自动计算下拉框宽度 */
|
|
287
|
+
autoWidth?: boolean;
|
|
288
|
+
/** 自定义渲染tag */
|
|
289
|
+
tagRender?: (option: SelectedOption) => React__default.ReactNode;
|
|
290
|
+
/** tag 点击回调 */
|
|
291
|
+
onTagClick?: (option: SelectedOption, originData: any) => void;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/18 上午10:16\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-comboselect .paraui-comboselect-wrapper {\n position: relative;\n display: flex;\n width: 100%;\n min-height: 36px;\n padding: 0 12px;\n border: 1px solid rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-comboselect .paraui-comboselect-wrapper:hover {\n border-color: rgba(54, 102, 214, 0.8);\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-placeholder {\n position: absolute;\n top: 50%;\n left: 12px;\n right: 12px;\n transform: translateY(-50%);\n font-size: 14px;\n color: rgba(46, 55, 67, 0.4);\n white-space: nowrap;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-arrow {\n position: absolute;\n top: 7px;\n right: 12px;\n line-height: 0;\n transition: 0.3s;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-arrow svg {\n color: rgba(46, 55, 67, 0.7);\n font-size: 20px;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-clear {\n position: absolute;\n top: 9px;\n right: 12px;\n opacity: 0;\n line-height: 0;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-clear svg {\n color: rgba(46, 55, 67, 0.7);\n font-size: 16px;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow {\n position: relative;\n display: flex;\n width: 100%;\n flex: auto;\n flex-wrap: wrap;\n padding: 5px 30px 0 0;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-single {\n padding: 0 30px 0 0;\n align-items: center;\n overflow: hidden;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-single .paraui-comboselect-single-content {\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item {\n flex: none;\n max-width: 100%;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item {\n display: inline-flex;\n align-items: center;\n padding: 0 12px;\n height: 24px;\n margin: 0 8px 5px 0;\n max-width: 100%;\n color: rgb(46, 55, 67);\n background-color: rgba(171, 176, 185, 0.2);\n border-radius: 4px;\n user-select: none;\n transition: 0.3s;\n cursor: default;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item .paraui-comboselect-item-content {\n display: inline-block;\n margin-right: 4px;\n overflow: hidden;\n font-size: 12px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item .paraui-comboselect-item-remove {\n display: inline-flex;\n cursor: pointer;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item .paraui-comboselect-item-remove svg {\n font-size: 16px;\n color: inherit;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item--disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.4);\n cursor: not-allowed;\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item--disabled .paraui-comboselect-item-remove {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-comboselect .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .paraui-comboselect-item--unclosable .paraui-comboselect-item-content {\n margin-right: 0;\n}\n.paraui-comboselect-focused .paraui-comboselect-wrapper {\n border-color: rgb(54, 102, 214);\n}\n.paraui-comboselect-focused .paraui-comboselect-wrapper .paraui-comboselect-arrow {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-comboselect-disabled {\n cursor: not-allowed;\n}\n.paraui-comboselect-disabled .paraui-comboselect-wrapper {\n background-color: rgba(171, 176, 185, 0.12);\n border-color: rgba(171, 176, 185, 0.4);\n pointer-events: none;\n}\n.paraui-comboselect-large .paraui-comboselect-wrapper {\n min-height: 40px;\n}\n.paraui-comboselect-large .paraui-comboselect-wrapper .paraui-comboselect-overflow-item .parui-comboselect-item {\n min-height: 28px;\n}\n.paraui-comboselect-large .paraui-comboselect-wrapper .paraui-comboselect-arrow {\n top: 19px;\n}\n.paraui-comboselect-large.paraui-comboselect-focused .paraui-select-arrow {\n top: 4px;\n}\n.paraui-comboselect-error .paraui-comboselect-wrapper {\n border-color: rgb(235, 96, 84);\n}\n.paraui-comboselect-error .paraui-comboselect-wrapper:hover {\n border-color: rgb(235, 96, 84);\n}\n.paraui-comboselect-clear .paraui-comboselect-wrapper:hover .paraui-comboselect-arrow {\n opacity: 0;\n}\n.paraui-comboselect-clear .paraui-comboselect-wrapper:hover .paraui-comboselect-clear {\n opacity: 1;\n}\n.paraui-comboselect-disable-popup {\n border: 1px solid rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-comboselect-disable-popup .paraui-comboselect-wrapper {\n border: none;\n border-bottom: 1px solid rgba(171, 176, 185, 0.4);\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n cursor: default;\n}\n.paraui-comboselect-disable-popup .paraui-comboselect-wrapper:hover {\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-comboselect-disable-popup .paraui-comboselect-disable-popover {\n position: relative;\n}\n.paraui-comboselect-popover .paraui-comboselect-popover-wrapper, .paraui-comboselect-disable-popover .paraui-comboselect-popover-wrapper {\n position: relative;\n color: initial;\n overflow: hidden;\n}\n.paraui-comboselect-popover .paraui-comboselect-search, .paraui-comboselect-disable-popover .paraui-comboselect-search {\n display: flex;\n align-items: center;\n height: 40px;\n padding: 0 18px;\n border-bottom: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-comboselect-popover .paraui-comboselect-search-icon, .paraui-comboselect-disable-popover .paraui-comboselect-search-icon {\n line-height: 0;\n cursor: pointer;\n}\n.paraui-comboselect-popover .paraui-comboselect-search-icon svg, .paraui-comboselect-disable-popover .paraui-comboselect-search-icon svg {\n color: rgb(54, 102, 214);\n}\n.paraui-comboselect-popover .paraui-comboselect-search-input, .paraui-comboselect-disable-popover .paraui-comboselect-search-input {\n flex: auto;\n margin-left: 10px;\n border: none;\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-comboselect-popover .paraui-comboselect-search-input::placeholder, .paraui-comboselect-disable-popover .paraui-comboselect-search-input::placeholder {\n color: rgba(46, 55, 67, 0.4);\n font-size: 14px;\n}\n.paraui-comboselect-popover .paraui-comboselect-table, .paraui-comboselect-disable-popover .paraui-comboselect-table {\n height: 100%;\n padding-bottom: 10px;\n}\n.paraui-comboselect-popover .paraui-comboselect-table .paraui-table, .paraui-comboselect-disable-popover .paraui-comboselect-table .paraui-table {\n box-shadow: none;\n}\n.paraui-comboselect-popover .paraui-comboselect-tree, .paraui-comboselect-disable-popover .paraui-comboselect-tree {\n height: 100%;\n padding: 6px 7px;\n}\n.paraui-comboselect-popover .paraui-comboselect-tree .paraui-tree-empty, .paraui-comboselect-disable-popover .paraui-comboselect-tree .paraui-tree-empty {\n height: 100%;\n padding: 52px 0 73px 0;\n}\n.paraui-comboselect-popover .paraui-comboselect-actions, .paraui-comboselect-disable-popover .paraui-comboselect-actions {\n display: flex;\n align-items: center;\n padding: 8px 20px 8px 0;\n justify-content: flex-end;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-comboselect-popover .paraui-comboselect-actions button + button, .paraui-comboselect-disable-popover .paraui-comboselect-actions button + button {\n margin-left: 10px;\n}\n.paraui-comboselect-popover .paraui-comboselect-fullPath, .paraui-comboselect-disable-popover .paraui-comboselect-fullPath {\n height: 34px;\n line-height: 34px;\n padding: 0 12px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-comboselect-popover .paraui-comboselect-fullPath span, .paraui-comboselect-disable-popover .paraui-comboselect-fullPath span {\n display: inline-block;\n height: 100%;\n padding-right: 10px;\n border-right: 1px solid rgba(171, 176, 185, 0.2);\n}\n.paraui-comboselect-popover .paraui-comboselect-list, .paraui-comboselect-disable-popover .paraui-comboselect-list {\n padding: 8px 0;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-empty, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-empty {\n padding: 50px 0 72px 0;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode {\n width: 100%;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-switcher, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-switcher {\n display: none;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-checkbox, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-checkbox {\n display: none;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-node-content-wrapper, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-node-content-wrapper {\n width: 100%;\n margin: 0;\n padding: 6px 28px 6px 12px;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-node-content-wrapper:hover, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode .paraui-tree-node-content-wrapper:hover {\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 0;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper {\n position: relative;\n color: rgb(54, 102, 214);\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper::after, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper::after {\n position: absolute;\n content: \" \";\n width: 5px;\n height: 10px;\n right: 12px;\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n border: 2px solid rgb(54, 102, 214);\n border-top: 0;\n border-left: 0;\n border-bottom-right-radius: 2px;\n}\n.paraui-comboselect-popover .paraui-comboselect-list .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper:hover, .paraui-comboselect-disable-popover .paraui-comboselect-list .paraui-tree-treenode-disabled .paraui-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-comboselect-popover .paraui-comboselect-list-single .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper::after, .paraui-comboselect-disable-popover .paraui-comboselect-list-single .paraui-tree-treenode-checkbox-checked .paraui-tree-node-content-wrapper::after {\n display: none;\n}";
|
|
295
|
+
styleInject(css_248z);
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @author Hanz
|
|
299
|
+
* @date 2021/8/30 下午2:32
|
|
300
|
+
* @description WithTabsCombo
|
|
301
|
+
*/
|
|
302
|
+
|
|
303
|
+
declare const TabsComboSelect: FunctionComponent<TabsComboSelectProps>;
|
|
304
|
+
|
|
5
305
|
declare const InternalComboSelect: FunctionComponent<ComboSelectProps>;
|
|
6
306
|
declare type MergedType = typeof InternalComboSelect & {
|
|
7
307
|
TabsComboSelect: typeof TabsComboSelect;
|
|
8
308
|
};
|
|
9
309
|
declare const ComboSelect: MergedType;
|
|
10
|
-
|
|
11
|
-
export default
|
|
310
|
+
|
|
311
|
+
export { ComboSelectProps, TabsComboSelectProps, ComboSelect as default };
|