@para-ui/core 3.0.86 → 4.0.0-alpha
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.js +18 -19
- package/AutoTips/index.js +5 -4
- package/Breadcrumbs/index.js +5 -4
- package/Button/SplitButton.d.ts +13 -0
- package/Button/index.d.ts +1 -1
- package/Button/index.js +54 -12
- package/ButtonGroup/index.js +6 -5
- package/Carousel/index.d.ts +5 -5
- package/Carousel/index.js +21 -9
- package/Cascader/Cascader.d.ts +99 -0
- package/Cascader/OptionList/CacheContent.d.ts +7 -0
- package/Cascader/OptionList/Column.d.ts +21 -0
- package/Cascader/OptionList/index.d.ts +4 -0
- package/Cascader/OptionList/useActive.d.ts +6 -0
- package/Cascader/context.d.ts +23 -0
- package/Cascader/hooks/useDisplayValues.d.ts +10 -0
- package/Cascader/hooks/useEntities.d.ts +10 -0
- package/Cascader/hooks/useMissingValues.d.ts +3 -0
- package/Cascader/index.d.ts +3 -58
- package/Cascader/index.js +28 -177
- package/Cascader/utils/commonUtil.d.ts +18 -0
- package/Cascader/utils/treeUtil.d.ts +55 -0
- package/Checkbox/index.d.ts +7 -0
- package/Checkbox/index.js +50 -29
- package/CheckboxGroup/index.d.ts +3 -1
- package/CheckboxGroup/index.js +48 -18
- package/Collapse/index.js +2 -2
- package/Collapse/motion.d.ts +0 -2
- package/CollapseBox/index.js +3 -3
- package/CollapseLayout/index.d.ts +5 -0
- package/CollapseLayout/index.js +144 -22
- package/ColorPicker/chromePicker/index.d.ts +9 -0
- package/ColorPicker/compactPicker/index.d.ts +9 -0
- package/ColorPicker/config.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -1
- package/ColorPicker/index.js +7 -3
- package/ColorPicker/sketchPicker/index.d.ts +11 -0
- package/ColorPicker/swatchesPicker/index.d.ts +9 -0
- package/ComboSelect/index.js +14 -12
- package/Container/index.js +2 -2
- package/CopyText/index.d.ts +33 -0
- package/CopyText/index.js +180 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +9 -2
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +8 -8
- package/DatePicker/generatePicker/index.d.ts +32 -26
- package/DatePicker/generatePicker/interface.d.ts +12 -0
- package/DatePicker/index.d.ts +12 -8
- package/DatePicker/index.js +367 -454
- package/DatePicker/util.d.ts +40 -4
- package/Desktop/index.d.ts +16 -3
- package/Desktop/index.js +177 -68
- package/Desktop/lang/en_US.d.ts +6 -0
- package/Desktop/lang/index.d.ts +13 -0
- package/Desktop/lang/zh_CN.d.ts +6 -0
- package/DragVerify/index.js +9 -100
- package/Drawer/index.js +8 -8
- package/Drawer/interface.d.ts +2 -2
- package/Dropdown/index.js +2 -2
- package/DynamicMultiBox/index.js +57 -41
- package/DynamicMultiBox/interface.d.ts +4 -4
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +20 -26
- package/Form/index.js +48 -69
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +11 -9
- package/GlobalContext/constant.d.ts +1 -1
- package/GlobalContext/index.js +2 -2
- package/Help/index.js +4 -3
- package/HelperText/index.js +2 -2
- package/InputLang/index.d.ts +5 -0
- package/InputLang/index.js +35 -29
- package/InputNumber/index.d.ts +5 -0
- package/InputNumber/index.js +95 -80
- package/Label/index.js +4 -3
- package/Loading/index.js +2 -2
- package/Menu/index.js +114 -39
- package/Menu/interface.d.ts +8 -0
- package/Message/index.d.ts +4 -4
- package/Message/index.js +13 -11
- package/Modal/index.js +29 -15
- package/MultiBox/index.js +9 -8
- package/Notification/index.d.ts +9 -1
- package/Notification/index.js +29 -15
- package/OperateBtn/index.js +28 -11
- package/PageHeader/index.js +270 -74
- package/PageHeader/interface.d.ts +17 -0
- package/Pagination/index.d.ts +4 -3
- package/Pagination/index.js +117 -95
- package/Pagination/lang/en_US.d.ts +3 -2
- package/Pagination/lang/index.d.ts +6 -4
- package/Pagination/lang/zh_CN.d.ts +3 -2
- package/ParauiProvider/index.js +4 -4
- package/PasswordRules/index.js +5 -5
- package/PopConfirm/index.d.ts +15 -5
- package/PopConfirm/index.js +62 -16
- package/Popover/index.js +4 -3
- package/Progress/index.js +10 -9
- package/Querying/index.js +7 -7
- package/README.md +40 -1120
- package/Radio/index.d.ts +7 -0
- package/Radio/index.js +49 -27
- package/RadioGroup/index.d.ts +3 -1
- package/RadioGroup/index.js +48 -21
- package/Search/index.d.ts +3 -15
- package/Search/index.js +21 -83
- package/Select/index.d.ts +7 -2
- package/Select/index.js +114 -91
- package/Select/lang/en_US.d.ts +1 -1
- package/Select/lang/index.d.ts +2 -2
- package/Select/lang/zh_CN.d.ts +1 -1
- package/SelectInput/index.js +8 -7
- package/Selector/index.js +30 -22
- package/SelectorPicker/index.d.ts +5 -0
- package/SelectorPicker/index.js +47 -32
- package/SelectorPicker/lang/en_US.d.ts +1 -0
- package/SelectorPicker/lang/index.d.ts +2 -0
- package/SelectorPicker/lang/zh_CN.d.ts +1 -0
- package/SingleBox/index.js +8 -7
- package/Slider/index.js +5 -5
- package/Status/index.d.ts +6 -5
- package/Status/index.js +27 -4
- package/Stepper/index.d.ts +9 -10
- package/Stepper/index.js +69 -29
- package/Styles/index.scss +4 -0
- package/Styles/scrollbar.scss +24 -24
- package/Styles/theme.scss +104 -57
- package/Switch/index.d.ts +34 -14
- package/Switch/index.js +97 -30
- package/Table/index.js +33 -27
- package/Table/interface.d.ts +3 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +5 -5
- package/Tabs/index.d.ts +11 -1
- package/Tabs/index.js +49 -16
- package/Tag/TagGroup.d.ts +11 -7
- package/Tag/index.d.ts +22 -7
- package/Tag/index.js +1382 -53
- package/TextEditor/index.js +4 -3
- package/TextField/index.d.ts +5 -0
- package/TextField/index.js +50 -32
- package/TimePicker/index.d.ts +5 -0
- package/TimePicker/index.js +39 -23
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +21 -18
- package/Title/index.d.ts +15 -3
- package/Title/index.js +95 -29
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/ToggleButton/index.d.ts +4 -0
- package/ToggleButton/index.js +14 -52
- package/Tooltip/index.js +28 -34
- package/Tooltip/interface.d.ts +4 -10
- package/Tooltip/utils.d.ts +1 -3
- package/Transfer/index.d.ts +3 -3
- package/Transfer/index.js +72 -68
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +10 -9
- package/Tree/utils/treeUtil.d.ts +0 -7
- package/Upload/index.js +16 -14
- package/_verture/{constant-66aa48a1.js → constant-0d9802f7.js} +1 -1
- package/_verture/{defineProperty-62acccfc.js → defineProperty-1d116156.js} +1 -1
- package/_verture/index-5c77417d.js +150 -0
- package/_verture/index-68db2bc3.js +10530 -0
- package/_verture/{index-9738004e.js → index-7ec72724.js} +44 -38
- package/_verture/index-d63bd287.js +327 -0
- package/_verture/{index-fa8a0124.js → index-e6f85fd5.js} +7 -8
- package/_verture/{index-77f9e0fb.js → index-e9007d6a.js} +6 -6
- package/_verture/{intl-4a9f1b44.js → intl-5c1ec055.js} +1 -1
- package/_verture/{modalContext-20780c9a.js → modalContext-c12ca3e8.js} +3 -3
- package/_verture/slicedToArray-a8206399.js +43 -0
- package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-8f4c9589.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/typeof-b240b062.js +16 -0
- package/_verture/{utils-c9b9a157.js → utils-f0e81540.js} +8 -8
- package/index.d.ts +2 -2
- package/index.js +32 -27
- package/locale/en-US.d.ts +10 -6
- package/locale/index.d.ts +20 -12
- package/locale/index.js +33 -25
- package/locale/zh-CN.d.ts +10 -6
- package/package.json +25 -11
- package/umd/AutoBox.js +20 -21
- package/umd/AutoTips.js +31 -4
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +7 -8
- package/umd/ButtonGroup.js +7 -8
- package/umd/Carousel.js +29 -1
- package/umd/Cascader.js +20 -21
- package/umd/Checkbox.js +7 -7
- package/umd/CheckboxGroup.js +7 -7
- package/umd/Collapse.js +19 -21
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +7 -7
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +42 -0
- package/umd/DatePicker.js +7 -7
- package/umd/Desktop.js +7 -7
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +7 -8
- package/umd/Dropdown.js +3 -3
- package/umd/DynamicMultiBox.js +7 -7
- package/umd/Empty.js +1 -1
- package/umd/Form.js +6 -6
- package/umd/FormItem.js +6 -6
- package/umd/FunctionModal.js +7 -7
- package/umd/Help.js +7 -7
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +7 -7
- package/umd/InputNumber.js +7 -7
- package/umd/Label.js +7 -7
- package/umd/Loading.js +4 -5
- package/umd/Menu.js +4 -4
- package/umd/Message.js +3 -4
- package/umd/Modal.js +7 -7
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +5 -6
- package/umd/OperateBtn.js +7 -7
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +7 -7
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -4
- package/umd/PopConfirm.js +7 -7
- package/umd/Popover.js +31 -4
- package/umd/Progress.js +4 -5
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +7 -7
- package/umd/RadioGroup.js +7 -7
- package/umd/Search.js +7 -7
- package/umd/Select.js +7 -7
- package/umd/SelectInput.js +7 -7
- package/umd/Selector.js +7 -7
- package/umd/SelectorPicker.js +7 -7
- package/umd/SingleBox.js +7 -7
- package/umd/Slider.js +3 -3
- package/umd/Status.js +29 -1
- package/umd/Stepper.js +20 -20
- package/umd/Switch.js +7 -7
- package/umd/Table.js +7 -7
- package/umd/Tabs.js +7 -7
- package/umd/Tag.js +7 -8
- package/umd/TextEditor.js +19 -19
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +7 -7
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +42 -1
- package/umd/ToggleButton.js +7 -8
- package/umd/Tooltip.js +31 -4
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +8 -8
- package/umd/locale.js +1 -1
- 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/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/typeof-498dd2b1.js +0 -11
- package/umd/Split.js +0 -1
package/Select/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-1d116156.js';
|
|
2
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
3
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-8f4c9589.js';
|
|
4
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
import React__default, { useRef, useState, useEffect, useMemo } from 'react';
|
|
7
7
|
import Empty from '../Empty/index.js';
|
|
8
8
|
import Label from '../Label/index.js';
|
|
9
|
-
import { D as Dropdown } from '../_verture/index-
|
|
9
|
+
import { D as Dropdown } from '../_verture/index-e9007d6a.js';
|
|
10
10
|
import { UUID, DeepClone } from '@paraview/lib';
|
|
11
11
|
import GlobalContext from '@para-ui/core/GlobalContext';
|
|
12
12
|
import CloseIcon from '@para-ui/icons/Close';
|
|
13
|
-
import
|
|
13
|
+
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
14
14
|
import Down from '@para-ui/icons/Down';
|
|
15
15
|
import Check from '@para-ui/icons/Check';
|
|
16
16
|
import SearchIcon from '@para-ui/icons/Search';
|
|
@@ -18,31 +18,32 @@ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js'
|
|
|
18
18
|
import AutoTips from '../AutoTips/index.js';
|
|
19
19
|
import { Loading } from '../Loading/index.js';
|
|
20
20
|
import { Popover } from '../Popover/index.js';
|
|
21
|
+
import { Tooltip } from '../Tooltip/index.js';
|
|
21
22
|
import HelperText from '../HelperText/index.js';
|
|
22
23
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-1b846a65.js';
|
|
23
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
24
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
24
25
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
26
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
26
27
|
import 'clsx';
|
|
27
28
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
28
29
|
import '../Help/index.js';
|
|
29
|
-
import '
|
|
30
|
+
import '@para-ui/icons/Help';
|
|
30
31
|
import 'rc-tooltip';
|
|
31
32
|
import 'rc-tooltip/lib/placements';
|
|
32
|
-
import '@para-ui/icons/
|
|
33
|
+
import '@para-ui/icons/Forbid';
|
|
33
34
|
import 'rc-dropdown';
|
|
34
35
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
35
36
|
import 'dayjs';
|
|
36
37
|
import '@para-ui/icons/LoadingF';
|
|
37
38
|
|
|
38
39
|
var en = {
|
|
39
|
-
searchPlaceholder: 'Please enter
|
|
40
|
-
|
|
40
|
+
searchPlaceholder: 'Please enter',
|
|
41
|
+
more: 'More'
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
var zh = {
|
|
44
|
-
searchPlaceholder: '
|
|
45
|
-
|
|
45
|
+
searchPlaceholder: '请输入',
|
|
46
|
+
more: '更多'
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
var localeJson = {
|
|
@@ -50,7 +51,7 @@ var localeJson = {
|
|
|
50
51
|
en: en
|
|
51
52
|
};
|
|
52
53
|
|
|
53
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-select {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n}\n.paraui-v3-select > .select-content {\n line-height: 0;\n border: 1px solid;\n border-radius: 4px;\n border-color: rgba(171, 176, 185, 0.4);\n padding-right: 12px;\n position: relative;\n cursor: pointer;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-select > .select-content:hover {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-select > .select-content:hover > .select-svg > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select > .select-content > .select-label-placeholder {\n width: 100%;\n height: 100%;\n padding: 0 12px;\n color: rgba(46, 55, 67, 0.4);\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n}\n.paraui-v3-select > .select-content > .select-label-placeholder > .select-required {\n margin-left: 2px;\n color: rgb(235, 96, 84);\n}\n.paraui-v3-select > .select-content > .select-svg {\n position: absolute;\n right: 12px;\n top: 0;\n z-index: 2;\n}\n.paraui-v3-select > .select-content > .select-svg > svg {\n font-size: 20px;\n transition: all 0.3s;\n color: rgba(46, 55, 67, 0.7);\n opacity: 0;\n}\n.paraui-v3-select > .select-content > .select-svg > .clean-up-icon {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n}\n.paraui-v3-select > .select-content > .select-svg > .clean-up-icon > svg {\n font-size: 16px;\n transition: all 0.3s;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-select > .select-content > .select-svg > .clean-up-icon:hover > svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-select > .select-content > .radio-select-content {\n padding-left: 12px;\n font-size: 14px;\n line-height: 1.43;\n color: rgb(46, 55, 67);\n word-break: break-all;\n}\n.paraui-v3-select > .select-content > .radio-search-outside {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n line-height: 1.43;\n padding: 0 30px 0 10px;\n font-size: 14px;\n cursor: pointer;\n color: rgb(46, 55, 67);\n border: 0;\n border-radius: 4px;\n background: transparent;\n}\n.paraui-v3-select > .select-content > .check-select-content {\n padding-left: 12px;\n overflow: hidden;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item {\n display: inline-block;\n background-color: rgba(171, 176, 185, 0.2);\n border-radius: 4px;\n padding: 0 12px 0 12px;\n color: rgb(46, 55, 67);\n margin-right: 8px;\n vertical-align: top;\n max-width: 100%;\n white-space: nowrap;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more {\n cursor: pointer;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more > span {\n max-width: none;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item > span {\n display: inline-block;\n height: 100%;\n vertical-align: top;\n max-width: calc(100% - 20px);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item > svg {\n cursor: pointer;\n margin-left: 8px;\n color: rgb(46, 55, 67);\n font-size: 16px;\n position: relative;\n z-index: 10;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-noclose > span {\n max-width: none;\n}\n.paraui-v3-select > .select-content > .check-select-content > .check-search-outside {\n width: 10px;\n max-width: 100% !important;\n display: none;\n border: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n cursor: pointer;\n}\n.paraui-v3-select.paraui-v3-select-allow-clear > .select-content {\n padding-right: 40px;\n}\n.paraui-v3-select.paraui-v3-select-allow-clear.paraui-v3-select-value > .select-content:hover > .select-svg > svg {\n opacity: 0;\n transition: all 0s;\n}\n.paraui-v3-select.paraui-v3-select-allow-clear.paraui-v3-select-value > .select-content:hover > .select-svg > .clean-up-icon {\n opacity: 1;\n transition: all 0.3s;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-small > .select-content {\n height: inherit;\n min-height: 28px;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-small > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-medium > .select-content {\n height: inherit;\n min-height: 32px;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-medium > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-large > .select-content {\n height: inherit;\n min-height: 36px;\n}\n.paraui-v3-select.paraui-v3-select-over-line.paraui-v3-select-large > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v3-select.paraui-v3-select-show-select > .select-content {\n padding-right: 40px;\n}\n.paraui-v3-select.paraui-v3-select-show-select > .select-content > .select-svg > svg {\n opacity: 1;\n}\n.paraui-v3-select.paraui-v3-select-disabled > .select-content {\n background-color: rgba(171, 176, 185, 0.12);\n cursor: not-allowed;\n}\n.paraui-v3-select.paraui-v3-select-disabled > .select-content:hover {\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-select.paraui-v3-select-disabled > .select-content:hover > .select-svg > svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-select.paraui-v3-select-disabled > .select-content > .check-select-content > .check-select-content-item > span {\n max-width: 100%;\n}\n.paraui-v3-select.paraui-v3-select-error > .select-content {\n border-color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-select.paraui-v3-select-open > .select-content {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-select.paraui-v3-select-open > .select-content > .select-svg > svg {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select.paraui-v3-select-open > .select-content > .check-select-content > .check-search-outside {\n display: inline-block;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content {\n height: 28px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .select-label-placeholder {\n line-height: 26px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .select-svg {\n top: 3px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .radio-select-content {\n padding-bottom: 3px;\n padding-top: 3px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .check-select-content {\n padding-bottom: 3px;\n height: 26px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 3px;\n height: 20px;\n line-height: 20px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 2px;\n}\n.paraui-v3-select.paraui-v3-select-small > .select-content > .check-select-content > .check-search-outside {\n margin-top: 3px;\n height: 20px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content {\n height: 32px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .select-label-placeholder {\n line-height: 30px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .select-svg {\n top: 6px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .radio-select-content {\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .check-select-content {\n padding-bottom: 4px;\n height: 30px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 4px;\n height: 22px;\n line-height: 22px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 3px;\n}\n.paraui-v3-select.paraui-v3-select-medium > .select-content > .check-select-content > .check-search-outside {\n margin-top: 4px;\n height: 22px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content {\n height: 36px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .select-label-placeholder {\n line-height: 34px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .select-svg {\n top: 8px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .radio-select-content {\n padding-bottom: 7px;\n padding-top: 7px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .check-select-content {\n padding-bottom: 5px;\n height: 34px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 5px;\n height: 24px;\n line-height: 24px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 3px;\n}\n.paraui-v3-select.paraui-v3-select-large > .select-content > .check-select-content > .check-search-outside {\n margin-top: 5px;\n height: 24px;\n}\n\n.paraui-v3-select-popover.component-dropdown .select-popover-content.select-popover-content-search > .select-popover-list {\n padding-top: 0px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content.select-popover-content-search > .select-popover-list > .select-nodata {\n margin-top: 58px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search {\n display: flex;\n align-items: center;\n padding: 0 12px;\n border-bottom: 1px solid;\n border-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input {\n border: 0;\n outline: none;\n font-size: 14px;\n color: rgb(46, 55, 67);\n width: 100%;\n height: 100%;\n line-height: 1.43;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::placeholder {\n font-size: 14px;\n opacity: 1;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-clear {\n display: none;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-reveal {\n display: none;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input:-moz-placeholder {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-moz-placeholder {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input:-ms-input-placeholder { /* Internet Explorer 10-11 */\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-input-placeholder { /* Microsoft Edge */\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-search > svg {\n color: rgba(46, 55, 67, 0.4);\n font-size: 20px;\n cursor: pointer;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list {\n padding: 8px 0;\n max-height: 300px;\n overflow: auto;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list.select-popover-list-loading {\n height: 100px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item {\n display: flex;\n cursor: pointer;\n padding: 0 12px;\n align-items: center;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-label {\n flex: 1;\n overflow: hidden;\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-svg {\n line-height: 0;\n display: none;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-svg > svg {\n font-size: 20px;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-select > .select-popover-list-item-label {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-select > .select-popover-list-item-svg {\n display: inline-block;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-hover > .select-popover-list-item-label {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-keydown {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-keydown > .select-popover-list-item-label {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-disabled > .select-popover-list-item-label {\n color: rgba(46, 55, 67, 0.4) !important;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-group-label {\n display: inline-block;\n width: 100%;\n padding: 0 12px;\n color: rgba(46, 55, 67, 0.4);\n font-size: 14px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-item {\n padding-left: 20px;\n}\n.paraui-v3-select-popover.component-dropdown .select-popover-content > .select-popover-list > .select-nodata {\n text-align: center;\n font-size: 14px;\n color: rgb(46, 55, 67);\n margin-top: 50px;\n margin-bottom: 72px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-small > .select-popover-content > .select-popover-search {\n height: 28px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-small > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 28px;\n line-height: 28px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-small > .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-group-label {\n height: 28px;\n line-height: 28px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-medium > .select-popover-content > .select-popover-search {\n height: 32px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-medium > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 32px;\n line-height: 32px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-medium > .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-group-label {\n line-height: 32px;\n height: 32px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-large > .select-popover-content > .select-popover-search {\n height: 36px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-large > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 36px;\n line-height: 36px;\n}\n.paraui-v3-select-popover.component-dropdown.paraui-v3-select-popover-large > .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-group-label {\n height: 36px;\n line-height: 36px;\n}\n\n.paraui-v3-select-more-popover {\n padding-left: 16px;\n}\n.paraui-v3-select-more-popover .select-more {\n width: 300px;\n}\n.paraui-v3-select-more-popover .select-more > .select-more-title {\n font-size: 14px;\n padding: 0 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-select-more-popover .select-more > .select-more-content {\n max-height: 300px;\n overflow: auto;\n}\n.paraui-v3-select-more-popover .select-more > .select-more-content > .select-more-content-item {\n padding: 0 12px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n.paraui-v3-select-more-popover .select-more > .select-more-content > .select-more-content-item > span {\n width: calc(100% - 25px);\n display: inline-block;\n font-size: 14px;\n}\n.paraui-v3-select-more-popover .select-more > .select-more-content > .select-more-content-item > svg {\n font-size: 20px;\n position: relative;\n cursor: pointer;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-select-more-popover .select-more > .select-more-content > .select-more-content-item > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-small .select-more > .select-more-title {\n line-height: 28px;\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-small .select-more > .select-more-content > .select-more-content-item {\n line-height: 28px;\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-medium .select-more > .select-more-title {\n line-height: 32px;\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-medium .select-more > .select-more-content > .select-more-content-item {\n line-height: 32px;\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-large .select-more > .select-more-title {\n line-height: 36px;\n}\n.paraui-v3-select-more-popover.paraui-v3-select-more-popover-large .select-more > .select-more-content > .select-more-content-item {\n line-height: 36px;\n}";
|
|
54
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-select {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: inline-block;\n vertical-align: top;\n width: 100%;\n}\n.paraui-v4-select > .select-content {\n line-height: 0;\n border: 1px solid;\n border-radius: 4px;\n border-color: rgb(212, 218, 227);\n padding-right: 10px;\n position: relative;\n cursor: pointer;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-select > .select-content:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-select > .select-content:hover > .select-svg > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-select > .select-content > .select-label-placeholder {\n width: 100%;\n height: 100%;\n padding: 0 10px;\n color: rgb(161, 168, 179);\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n}\n.paraui-v4-select > .select-content > .select-label-placeholder > .select-required {\n margin-left: 2px;\n color: rgb(244, 66, 66);\n}\n.paraui-v4-select > .select-content > .select-svg {\n position: absolute;\n right: 10px;\n top: 0;\n z-index: 2;\n}\n.paraui-v4-select > .select-content > .select-svg > svg {\n font-size: 18px;\n transition: all 0.3s;\n color: rgb(92, 101, 115);\n opacity: 0;\n}\n.paraui-v4-select > .select-content > .select-svg > .clean-up-icon {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n}\n.paraui-v4-select > .select-content > .select-svg > .clean-up-icon > svg {\n font-size: 16px;\n transition: all 0.3s;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select > .select-content > .select-svg > .clean-up-icon:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-select > .select-content > .radio-select-content {\n padding-left: 10px;\n font-size: 14px;\n line-height: 1.43;\n color: rgb(29, 33, 38);\n word-break: break-all;\n}\n.paraui-v4-select > .select-content > .radio-search-outside {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n line-height: 1.43;\n padding: 0 30px 0 10px;\n font-size: 14px;\n cursor: pointer;\n color: rgb(29, 33, 38);\n border: 0;\n border-radius: 4px;\n background: transparent;\n}\n.paraui-v4-select > .select-content > .check-select-content {\n padding-left: 10px;\n overflow: hidden;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item {\n display: inline-block;\n background-color: rgb(234, 236, 241);\n border-radius: 4px;\n padding: 0 10px;\n color: rgb(29, 33, 38);\n margin-right: 4px;\n vertical-align: top;\n max-width: 100%;\n white-space: nowrap;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more {\n cursor: pointer;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more > span {\n max-width: none;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item > span {\n display: inline-block;\n height: 100%;\n vertical-align: top;\n max-width: calc(100% - 20px);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item > svg {\n cursor: pointer;\n margin-left: 4px;\n color: rgb(29, 33, 38);\n font-size: 16px;\n position: relative;\n z-index: 10;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item > svg:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-noclose > span {\n max-width: none;\n}\n.paraui-v4-select > .select-content > .check-select-content > .check-search-outside {\n width: 10px;\n max-width: 100% !important;\n display: none;\n border: 0;\n color: rgb(29, 33, 38);\n font-size: 14px;\n cursor: pointer;\n}\n.paraui-v4-select.paraui-v4-select-allow-clear > .select-content {\n padding-right: 38px;\n}\n.paraui-v4-select.paraui-v4-select-allow-clear.paraui-v4-select-value > .select-content:hover > .select-svg > svg {\n opacity: 0;\n transition: all 0s;\n}\n.paraui-v4-select.paraui-v4-select-allow-clear.paraui-v4-select-value > .select-content:hover > .select-svg > .clean-up-icon {\n opacity: 1;\n transition: all 0.3s;\n}\n.paraui-v4-select.paraui-v4-select-allow-clear.paraui-v4-select-value.paraui-v4-select-disabled > .select-content:hover > .select-svg > svg {\n opacity: 1;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-small > .select-content {\n height: inherit;\n min-height: 28px;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-small > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-medium > .select-content {\n height: inherit;\n min-height: 28px;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-medium > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-large > .select-content {\n height: inherit;\n min-height: 32px;\n}\n.paraui-v4-select.paraui-v4-select-over-line.paraui-v4-select-large > .select-content > .check-select-content {\n height: 100%;\n}\n.paraui-v4-select.paraui-v4-select-show-select > .select-content {\n padding-right: 38px;\n}\n.paraui-v4-select.paraui-v4-select-show-select > .select-content > .select-svg > svg {\n opacity: 1;\n}\n.paraui-v4-select.paraui-v4-select-disabled > .select-content {\n background-color: rgb(247, 248, 250);\n cursor: not-allowed;\n}\n.paraui-v4-select.paraui-v4-select-disabled > .select-content:hover {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-select.paraui-v4-select-disabled > .select-content:hover > .select-svg > svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-select.paraui-v4-select-disabled > .select-content > .check-select-content > .check-select-content-item > span {\n max-width: 100%;\n}\n.paraui-v4-select.paraui-v4-select-error > .select-content {\n border-color: rgb(244, 66, 66) !important;\n}\n.paraui-v4-select.paraui-v4-select-open > .select-content {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-select.paraui-v4-select-open > .select-content > .select-svg > svg {\n transform: rotate(180deg);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-select.paraui-v4-select-open > .select-content > .check-select-content > .check-search-outside {\n display: inline-block;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content {\n height: 28px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .select-label-placeholder {\n line-height: 26px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .select-svg {\n top: 4px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .radio-select-content {\n padding-bottom: 3px;\n padding-top: 3px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .check-select-content {\n padding-bottom: 3px;\n height: 26px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 3px;\n height: 20px;\n line-height: 20px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 2px;\n}\n.paraui-v4-select.paraui-v4-select-small > .select-content > .check-select-content > .check-search-outside {\n margin-top: 3px;\n height: 20px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content {\n height: 28px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .select-label-placeholder {\n line-height: 26px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .select-svg {\n top: 4px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .radio-select-content {\n padding-bottom: 3px;\n padding-top: 3px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .check-select-content {\n padding-bottom: 3px;\n height: 26px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 3px;\n height: 20px;\n line-height: 20px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 2px;\n}\n.paraui-v4-select.paraui-v4-select-medium > .select-content > .check-select-content > .check-search-outside {\n margin-top: 3px;\n height: 20px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content {\n height: 32px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .select-label-placeholder {\n line-height: 30px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .select-svg {\n top: 6px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .radio-select-content {\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .check-select-content {\n padding-bottom: 3px;\n height: 30px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .check-select-content > .check-select-content-item {\n margin-top: 3px;\n height: 24px;\n line-height: 24px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 3px;\n}\n.paraui-v4-select.paraui-v4-select-large > .select-content > .check-select-content > .check-search-outside {\n margin-top: 4px;\n height: 22px;\n}\n\n.paraui-v4-select-popover.component-dropdown {\n /*&.paraui-v4-select-popover-small {\n & > .select-popover-content {\n & > .select-popover-search {\n height: 30px;\n }\n\n & > .select-popover-list {\n & .select-popover-list-item {\n height: 30px;\n line-height: 30px;\n }\n\n & > .select-popover-list-group {\n & .select-popover-list-group-label {\n height: 30px;\n line-height: 30px;\n }\n }\n }\n }\n }\n\n // 中\n &.paraui-v4-select-popover-medium {\n & > .select-popover-content {\n & > .select-popover-search {\n height: 30px;\n }\n\n & > .select-popover-list {\n & .select-popover-list-item {\n height: 30px;\n line-height: 30px;\n }\n\n & > .select-popover-list-group {\n & .select-popover-list-group-label {\n height: 30px;\n line-height: 30px;\n }\n }\n }\n }\n }\n\n // 大\n &.paraui-v4-select-popover-large {\n & > .select-popover-content {\n & > .select-popover-search {\n height: 30px;\n }\n\n & > .select-popover-list {\n & .select-popover-list-item {\n height: 30px;\n line-height: 30px;\n }\n\n & > .select-popover-list-group {\n & .select-popover-list-group-label {\n height: 30px;\n line-height: 30px;\n }\n }\n }\n }\n }*/\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content.select-popover-content-search > .select-popover-list {\n padding-top: 0px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content.select-popover-content-search > .select-popover-list > .select-nodata {\n margin-top: 20px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search {\n display: flex;\n align-items: center;\n padding: 0 10px;\n border-bottom: 1px solid;\n border-color: rgb(234, 236, 241);\n height: 30px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input {\n border: 0;\n outline: none;\n font-size: 14px;\n color: rgb(29, 33, 38);\n width: 100%;\n height: 100%;\n line-height: 1.43;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::placeholder {\n font-size: 14px;\n opacity: 1;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-clear {\n display: none;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-reveal {\n display: none;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input:-moz-placeholder {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-moz-placeholder {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input:-ms-input-placeholder { /* Internet Explorer 10-11 */\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > input::-ms-input-placeholder { /* Microsoft Edge */\n color: rgb(161, 168, 179);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-search > svg {\n color: rgb(92, 101, 115);\n font-size: 18px;\n cursor: pointer;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list {\n padding: 4px 0;\n max-height: 320px;\n overflow: auto;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list.select-popover-list-loading {\n height: 100px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item {\n display: flex;\n cursor: pointer;\n padding: 0 10px;\n align-items: center;\n height: 30px;\n line-height: 30px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-label {\n flex: 1;\n overflow: hidden;\n color: rgb(29, 33, 38);\n font-size: 14px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-svg {\n line-height: 0;\n display: none;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-svg > svg {\n font-size: 18px;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-select > .select-popover-list-item-label {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-select > .select-popover-list-item-svg {\n display: inline-block;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-keydown {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-disabled {\n cursor: not-allowed;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-disabled > .select-popover-list-item-label {\n color: rgb(161, 168, 179) !important;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-group-label {\n display: inline-block;\n width: 100%;\n padding: 0 10px;\n color: rgb(161, 168, 179);\n font-size: 12px;\n height: 30px;\n line-height: 30px;\n}\n.paraui-v4-select-popover.component-dropdown .select-popover-content > .select-popover-list > .select-nodata {\n text-align: center;\n font-size: 14px;\n color: rgb(29, 33, 38);\n margin-top: 16px;\n margin-bottom: 29px;\n}\n.paraui-v4-select-more-popover {\n /*// 小\n &.paraui-v4-select-more-popover-small {\n & .select-more {\n & > .select-more-title {\n line-height: 28px;\n }\n\n & > .select-more-content {\n & > .select-more-content-item {\n line-height: 28px;\n }\n }\n }\n }\n\n // 中\n &.paraui-v4-select-more-popover-medium {\n & .select-more {\n & > .select-more-title {\n line-height: 32px;\n }\n\n & > .select-more-content {\n & > .select-more-content-item {\n line-height: 32px;\n }\n }\n }\n }\n\n // 大\n &.paraui-v4-select-more-popover-large {\n & .select-more {\n & > .select-more-title {\n line-height: 36px;\n }\n\n & > .select-more-content {\n & > .select-more-content-item {\n line-height: 36px;\n }\n }\n }\n }*/\n}\n.paraui-v4-select-more-popover .select-more {\n width: 290px;\n padding: 4px 0;\n}\n.paraui-v4-select-more-popover .select-more > .select-more-title {\n font-size: 12px;\n padding: 0 10px;\n color: rgb(161, 168, 179);\n line-height: 30px;\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content {\n max-height: 320px;\n overflow: auto;\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content > .select-more-content-item {\n padding: 0 10px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n line-height: 30px;\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content > .select-more-content-item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content > .select-more-content-item > span {\n flex: 1;\n overflow: hidden;\n display: inline-block;\n font-size: 14px;\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content > .select-more-content-item > svg {\n font-size: 18px;\n position: relative;\n cursor: pointer;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-select-more-popover .select-more > .select-more-content > .select-more-content-item > svg:hover {\n background-color: rgb(234, 236, 241);\n color: rgb(87, 131, 235);\n border-radius: 2px;\n}";
|
|
54
55
|
styleInject(css_248z);
|
|
55
56
|
|
|
56
57
|
/**
|
|
@@ -107,6 +108,7 @@ var Select = function Select(props) {
|
|
|
107
108
|
input = _useGlobalProps$input === void 0 ? false : _useGlobalProps$input,
|
|
108
109
|
_useGlobalProps$disab = _useGlobalProps.disabled,
|
|
109
110
|
disabled = _useGlobalProps$disab === void 0 ? false : _useGlobalProps$disab,
|
|
111
|
+
disabledTooltip = _useGlobalProps.disabledTooltip,
|
|
110
112
|
_useGlobalProps$multi = _useGlobalProps.multiple,
|
|
111
113
|
multiple = _useGlobalProps$multi === void 0 ? false : _useGlobalProps$multi,
|
|
112
114
|
_useGlobalProps$requi = _useGlobalProps.required,
|
|
@@ -190,17 +192,22 @@ var Select = function Select(props) {
|
|
|
190
192
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
191
193
|
loading = _useState24[0],
|
|
192
194
|
setLoading = _useState24[1]; // 下拉加载loading
|
|
193
|
-
|
|
195
|
+
var _useState25 = useState(false),
|
|
196
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
197
|
+
emptyBol = _useState26[0],
|
|
198
|
+
setEmptyBol = _useState26[1]; // 延迟显示空状态
|
|
194
199
|
var textDom = useRef(null);
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
constData =
|
|
200
|
+
var _useState27 = useState({}),
|
|
201
|
+
_useState28 = _slicedToArray(_useState27, 1),
|
|
202
|
+
constData = _useState28[0]; // 不变的常量 多行 不换行定时器 搜索定时器
|
|
198
203
|
var _React$useContext = React__default.useContext(GlobalContext),
|
|
199
204
|
language = _React$useContext.language,
|
|
200
205
|
locale = _React$useContext.locale;
|
|
201
206
|
var intl = useFormatMessage('Select', localeJson);
|
|
207
|
+
constData.valueCom = _toConsumableArray(valueCom);
|
|
202
208
|
constData.listCom = listCom;
|
|
203
209
|
constData.searchModel = searchModel;
|
|
210
|
+
constData.openMore = openMore;
|
|
204
211
|
useEffect(function () {
|
|
205
212
|
if (props.defaultValue !== undefined) {
|
|
206
213
|
if (props.multiple) {
|
|
@@ -229,11 +236,14 @@ var Select = function Select(props) {
|
|
|
229
236
|
}
|
|
230
237
|
}
|
|
231
238
|
}, [value, multiple]);
|
|
239
|
+
useEffect(function () {
|
|
240
|
+
changeSize();
|
|
241
|
+
}, [valueCom, value]);
|
|
232
242
|
// 判断组件超出是换行,还是不换行
|
|
233
243
|
useEffect(function () {
|
|
234
|
-
if (searchModel === 'outside'
|
|
244
|
+
if (searchModel === 'outside') {
|
|
235
245
|
if (multiple) return setOverLineCom(true); // 多选,输入框在框里面,超出必须换行
|
|
236
|
-
//
|
|
246
|
+
//return setOverLineCom(false); // 单选不换行
|
|
237
247
|
}
|
|
238
248
|
|
|
239
249
|
setOverLineCom(overLine);
|
|
@@ -258,29 +268,19 @@ var Select = function Select(props) {
|
|
|
258
268
|
}
|
|
259
269
|
setListJson(json);
|
|
260
270
|
}, [list]);
|
|
261
|
-
useEffect(function () {
|
|
262
|
-
if (multiple) {
|
|
263
|
-
if (!overLineCom) {
|
|
264
|
-
// 不换行
|
|
265
|
-
setMorePos(valueCom.length);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}, [overLineCom, multiple, valueCom]);
|
|
269
271
|
// 多行,不换行计算
|
|
270
272
|
useEffect(function () {
|
|
271
273
|
// 多行不换行计算
|
|
272
|
-
if (!overLineCom) {
|
|
273
|
-
setTimeout(function () {
|
|
274
|
-
handMultiline(valueCom.length);
|
|
275
|
-
});
|
|
274
|
+
if (!overLineCom && multiple) {
|
|
276
275
|
window.addEventListener("resize", changeSize);
|
|
277
276
|
} else {
|
|
278
|
-
setMorePos(valueCom.length)
|
|
277
|
+
//setMorePos(constData.valueCom.length)
|
|
278
|
+
window.removeEventListener("resize", changeSize);
|
|
279
279
|
}
|
|
280
280
|
return function () {
|
|
281
281
|
window.removeEventListener("resize", changeSize);
|
|
282
282
|
};
|
|
283
|
-
}, [
|
|
283
|
+
}, [overLineCom, multiple]);
|
|
284
284
|
// 计算是否显示label,placehold
|
|
285
285
|
useEffect(function () {
|
|
286
286
|
if (valueCom && valueCom.length > 0) {
|
|
@@ -308,10 +308,10 @@ var Select = function Select(props) {
|
|
|
308
308
|
setLoading(false);
|
|
309
309
|
}
|
|
310
310
|
}, [search, searchValue, list, open]);
|
|
311
|
-
// 搜索框自动得到焦点
|
|
312
311
|
useEffect(function () {
|
|
313
312
|
if (open) {
|
|
314
|
-
|
|
313
|
+
clearTimeout(constData.openTimer);
|
|
314
|
+
constData.openTimer = setTimeout(function () {
|
|
315
315
|
inputFocus();
|
|
316
316
|
window.addEventListener("click", clickCom);
|
|
317
317
|
window.addEventListener("keydown", keydownCom);
|
|
@@ -322,6 +322,7 @@ var Select = function Select(props) {
|
|
|
322
322
|
window.removeEventListener("keydown", keydownCom);
|
|
323
323
|
}
|
|
324
324
|
return function () {
|
|
325
|
+
clearTimeout(constData.openTimer);
|
|
325
326
|
window.removeEventListener("click", clickCom);
|
|
326
327
|
window.removeEventListener("keydown", keydownCom);
|
|
327
328
|
};
|
|
@@ -331,6 +332,34 @@ var Select = function Select(props) {
|
|
|
331
332
|
if (disabled === true) return;
|
|
332
333
|
if (multiple && searchModel === 'outside') handInputLength(searchValue);
|
|
333
334
|
}, [searchValue, multiple, disabled, searchModel, input]);
|
|
335
|
+
/**
|
|
336
|
+
* 多选 不换行 计算
|
|
337
|
+
* @param index 数组下标
|
|
338
|
+
*/
|
|
339
|
+
var handMultiline = function handMultiline(index) {
|
|
340
|
+
if (index === null || index === 0) return;
|
|
341
|
+
if (index === undefined) index = constData.valueCom.length;
|
|
342
|
+
var boxDom = document.querySelector('.' + classOne + ' > .select-content > .check-select-content');
|
|
343
|
+
if (!boxDom) return;
|
|
344
|
+
if (boxDom.scrollHeight > boxDom.clientHeight) {
|
|
345
|
+
var num = Number(index) - 1;
|
|
346
|
+
// 超出
|
|
347
|
+
setMorePos(num);
|
|
348
|
+
handMultiline(num);
|
|
349
|
+
} else {
|
|
350
|
+
// 一行
|
|
351
|
+
if (constData.valueCom.length <= index) handleCloseMore();
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
// 多选 不换行
|
|
355
|
+
var changeSize = function changeSize() {
|
|
356
|
+
if (constData.valueCom.length === 0) return setMorePos(null);
|
|
357
|
+
clearTimeout(constData.timer);
|
|
358
|
+
constData.timer = setTimeout(function () {
|
|
359
|
+
setMorePos(constData.valueCom.length);
|
|
360
|
+
handMultiline();
|
|
361
|
+
}, 50);
|
|
362
|
+
};
|
|
334
363
|
/**
|
|
335
364
|
* 处理初始化数据,让list支持传入字符串
|
|
336
365
|
* 把数组转换成,组件能接收的格式
|
|
@@ -388,6 +417,7 @@ var Select = function Select(props) {
|
|
|
388
417
|
}
|
|
389
418
|
setListCom(arr);
|
|
390
419
|
setLoading(false);
|
|
420
|
+
setEmptyBol(arr.length === 0);
|
|
391
421
|
};
|
|
392
422
|
// 输入框的到焦点
|
|
393
423
|
var inputFocus = function inputFocus() {
|
|
@@ -427,37 +457,18 @@ var Select = function Select(props) {
|
|
|
427
457
|
*/
|
|
428
458
|
var handShowItem = function handShowItem(item) {
|
|
429
459
|
var bol = true;
|
|
460
|
+
if (searchValue.trim() === '') return bol;
|
|
430
461
|
// 按显示名来
|
|
431
462
|
var name = item[showName];
|
|
432
|
-
if (name && typeof name === '
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
* @param index 数组下标
|
|
438
|
-
*/
|
|
439
|
-
var handMultiline = function handMultiline(index) {
|
|
440
|
-
if (index === null || index === 0) return;
|
|
441
|
-
if (index === undefined) index = valueCom.length;
|
|
442
|
-
var boxDom = document.querySelector('.' + classOne + ' > .select-content > .check-select-content');
|
|
443
|
-
if (!boxDom) return;
|
|
444
|
-
if (boxDom.scrollHeight > boxDom.clientHeight) {
|
|
445
|
-
var num = Number(index) - 1;
|
|
446
|
-
// 超出
|
|
447
|
-
setMorePos(num);
|
|
448
|
-
handMultiline(num);
|
|
463
|
+
if (name && (typeof name === 'number' || typeof name === 'string')) {
|
|
464
|
+
name = name.toString();
|
|
465
|
+
if (name.toLowerCase().indexOf(searchValue.trim().toLowerCase()) === -1) {
|
|
466
|
+
bol = false;
|
|
467
|
+
}
|
|
449
468
|
} else {
|
|
450
|
-
|
|
451
|
-
if (valueCom.length <= index) handleCloseMore();
|
|
469
|
+
bol = false;
|
|
452
470
|
}
|
|
453
|
-
|
|
454
|
-
// 多选 不换行
|
|
455
|
-
var changeSize = function changeSize() {
|
|
456
|
-
clearTimeout(constData.timer);
|
|
457
|
-
constData.timer = setTimeout(function () {
|
|
458
|
-
setMorePos(valueCom.length);
|
|
459
|
-
handMultiline();
|
|
460
|
-
}, 100);
|
|
471
|
+
return bol;
|
|
461
472
|
};
|
|
462
473
|
// 显示下拉框
|
|
463
474
|
var clickSelect = function clickSelect() {
|
|
@@ -479,7 +490,7 @@ var Select = function Select(props) {
|
|
|
479
490
|
};
|
|
480
491
|
// 关闭显示更多
|
|
481
492
|
var handleCloseMore = function handleCloseMore() {
|
|
482
|
-
setOpenMore(false);
|
|
493
|
+
if (constData.openMore) setOpenMore(false);
|
|
483
494
|
};
|
|
484
495
|
/**
|
|
485
496
|
* 点击选项
|
|
@@ -493,16 +504,16 @@ var Select = function Select(props) {
|
|
|
493
504
|
if (_typeof(disabled) === 'object' && disabled.indexOf(val) !== -1) return;
|
|
494
505
|
if (multiple) {
|
|
495
506
|
// 多选
|
|
496
|
-
var index = valueCom.indexOf(val);
|
|
507
|
+
var index = constData.valueCom.indexOf(val);
|
|
497
508
|
if (index !== -1) {
|
|
498
509
|
// 存在 去除
|
|
499
|
-
valueCom.splice(index, 1);
|
|
510
|
+
constData.valueCom.splice(index, 1);
|
|
500
511
|
} else {
|
|
501
|
-
valueCom.push(val);
|
|
512
|
+
constData.valueCom.push(val);
|
|
502
513
|
}
|
|
503
|
-
if (props.value === undefined) setValueCom(_toConsumableArray(valueCom));
|
|
504
|
-
onChange && onChange(_toConsumableArray(valueCom), e);
|
|
505
|
-
if (enter) onEnter && onEnter(_toConsumableArray(valueCom));
|
|
514
|
+
if (props.value === undefined) setValueCom(_toConsumableArray(constData.valueCom));
|
|
515
|
+
onChange && onChange(_toConsumableArray(constData.valueCom), e);
|
|
516
|
+
if (enter) onEnter && onEnter(_toConsumableArray(constData.valueCom));
|
|
506
517
|
inputFocus();
|
|
507
518
|
} else {
|
|
508
519
|
// 单选
|
|
@@ -831,9 +842,11 @@ var Select = function Select(props) {
|
|
|
831
842
|
var val = listJson[valueCom[0]] && listJson[valueCom[0]][showName] || valueCom[0];
|
|
832
843
|
var renderContentVal = renderContent && renderContent(listJson[valueCom[0]], false);
|
|
833
844
|
if (overLineCom) return renderContentVal || val;
|
|
834
|
-
return jsx(AutoTips, {
|
|
845
|
+
return jsx(AutoTips, Object.assign({
|
|
846
|
+
placement: "top-start"
|
|
847
|
+
}, {
|
|
835
848
|
children: renderContentVal || val
|
|
836
|
-
});
|
|
849
|
+
}));
|
|
837
850
|
};
|
|
838
851
|
return jsx(Fragment, {
|
|
839
852
|
children: !multiple && jsxs(Fragment, {
|
|
@@ -863,13 +876,17 @@ var Select = function Select(props) {
|
|
|
863
876
|
isClose = false; // 禁用不显示×
|
|
864
877
|
}
|
|
865
878
|
|
|
879
|
+
var str = 'check-select-content-item check-select-content-item-select';
|
|
880
|
+
if (!isClose) str += ' check-select-content-item-noclose';
|
|
866
881
|
return jsxs("div", Object.assign({
|
|
867
|
-
className:
|
|
882
|
+
className: str
|
|
868
883
|
}, {
|
|
869
884
|
children: [jsx("span", {
|
|
870
|
-
children: jsx(AutoTips, {
|
|
885
|
+
children: jsx(AutoTips, Object.assign({
|
|
886
|
+
placement: "top-start"
|
|
887
|
+
}, {
|
|
871
888
|
children: handContent(index)
|
|
872
|
-
})
|
|
889
|
+
}))
|
|
873
890
|
}), isClose && jsx(CloseIcon, {
|
|
874
891
|
onClick: delItem(listJson[valueCom[index]], valueCom[index])
|
|
875
892
|
})]
|
|
@@ -920,29 +937,27 @@ var Select = function Select(props) {
|
|
|
920
937
|
className: "clean-up-icon",
|
|
921
938
|
onClick: clickClean
|
|
922
939
|
}, {
|
|
923
|
-
children: jsx(
|
|
940
|
+
children: jsx(CloseCircleF, {})
|
|
924
941
|
}));
|
|
925
942
|
}
|
|
926
943
|
};
|
|
927
944
|
var morePopoverContent = function morePopoverContent() {
|
|
928
945
|
var handContent = function handContent(index) {
|
|
929
946
|
var val = listJson[valueCom[index]] && listJson[valueCom[index]][showName] || valueCom[index];
|
|
930
|
-
var renderContentVal = renderContent && renderContent(listJson[valueCom[index]],
|
|
947
|
+
var renderContentVal = renderContent && renderContent(listJson[valueCom[index]], 'more');
|
|
931
948
|
return renderContentVal || val;
|
|
932
949
|
};
|
|
933
950
|
return jsxs("div", Object.assign({
|
|
934
951
|
className: "select-more"
|
|
935
952
|
}, {
|
|
936
|
-
children: [
|
|
953
|
+
children: [jsx("div", Object.assign({
|
|
937
954
|
className: "select-more-title"
|
|
938
955
|
}, {
|
|
939
|
-
children:
|
|
956
|
+
children: jsx("span", {
|
|
940
957
|
children: intl({
|
|
941
|
-
id: '
|
|
958
|
+
id: 'more'
|
|
942
959
|
})
|
|
943
|
-
})
|
|
944
|
-
children: ["(", valueCom.length - Number(morePos), ")"]
|
|
945
|
-
})]
|
|
960
|
+
})
|
|
946
961
|
})), jsx("div", Object.assign({
|
|
947
962
|
className: "select-more-content"
|
|
948
963
|
}, {
|
|
@@ -957,9 +972,11 @@ var Select = function Select(props) {
|
|
|
957
972
|
className: "select-more-content-item"
|
|
958
973
|
}, {
|
|
959
974
|
children: [jsx("span", {
|
|
960
|
-
children: jsx(AutoTips, {
|
|
975
|
+
children: jsx(AutoTips, Object.assign({
|
|
976
|
+
placement: "top-start"
|
|
977
|
+
}, {
|
|
961
978
|
children: handContent(index)
|
|
962
|
-
})
|
|
979
|
+
}))
|
|
963
980
|
}), isClose && jsx(CloseIcon, {
|
|
964
981
|
onClick: delItem(listJson[valueCom[index]], valueCom[index])
|
|
965
982
|
})]
|
|
@@ -1004,9 +1021,11 @@ var Select = function Select(props) {
|
|
|
1004
1021
|
children: [jsx("span", Object.assign({
|
|
1005
1022
|
className: "select-popover-list-item-label"
|
|
1006
1023
|
}, {
|
|
1007
|
-
children: jsx(AutoTips, {
|
|
1024
|
+
children: jsx(AutoTips, Object.assign({
|
|
1025
|
+
placement: "top-start"
|
|
1026
|
+
}, {
|
|
1008
1027
|
children: renderContentVal || val
|
|
1009
|
-
})
|
|
1028
|
+
}))
|
|
1010
1029
|
})), multiple && selectCheckIcon && jsx("span", Object.assign({
|
|
1011
1030
|
className: "select-popover-list-item-svg"
|
|
1012
1031
|
}, {
|
|
@@ -1068,7 +1087,7 @@ var Select = function Select(props) {
|
|
|
1068
1087
|
children: handContent(item)
|
|
1069
1088
|
}), index);
|
|
1070
1089
|
})
|
|
1071
|
-
}) : !loading && jsx("div", Object.assign({
|
|
1090
|
+
}) : !loading && emptyBol && jsx("div", Object.assign({
|
|
1072
1091
|
className: "select-nodata"
|
|
1073
1092
|
}, {
|
|
1074
1093
|
children: jsx(Empty, Object.assign({}, emptyProps, {
|
|
@@ -1076,7 +1095,7 @@ var Select = function Select(props) {
|
|
|
1076
1095
|
}))
|
|
1077
1096
|
})), loading && jsx(Loading, {})]
|
|
1078
1097
|
}));
|
|
1079
|
-
}, [listCom, showName, showValue, valueCom, onChange, multiple, loading, language, locale, emptyProps, renderContent, selectCheckIcon]);
|
|
1098
|
+
}, [listCom, showName, showValue, valueCom, onChange, multiple, loading, language, locale, emptyProps, emptyBol, renderContent, selectCheckIcon]);
|
|
1080
1099
|
// 下拉框popover memo
|
|
1081
1100
|
var SelectPopoverMemo = useMemo(function () {
|
|
1082
1101
|
if (!showSelect) return '';
|
|
@@ -1105,7 +1124,7 @@ var Select = function Select(props) {
|
|
|
1105
1124
|
})), jsx(SearchIcon, {})]
|
|
1106
1125
|
})), SelectPopoverListMemo]
|
|
1107
1126
|
}));
|
|
1108
|
-
}, [open, posDom, listCom, childrenName, showValue, showName, valueCom, searchValue, search, classOneSelect, searchModel, multiple, searchPlaceholder, showSelect, loading, searchInputProps, language, locale, emptyProps, renderContent, selectCheckIcon]);
|
|
1127
|
+
}, [open, posDom, listCom, childrenName, showValue, showName, valueCom, searchValue, search, classOneSelect, searchModel, multiple, searchPlaceholder, showSelect, loading, searchInputProps, language, locale, emptyProps, emptyBol, renderContent, selectCheckIcon]);
|
|
1109
1128
|
/** 处理下拉内容 */
|
|
1110
1129
|
var handDropdown = function handDropdown() {
|
|
1111
1130
|
return jsx(Dropdown, Object.assign({
|
|
@@ -1118,7 +1137,11 @@ var Select = function Select(props) {
|
|
|
1118
1137
|
overlayClassName: handleClassPopover(),
|
|
1119
1138
|
getPopupContainer: getPopupContainer
|
|
1120
1139
|
}, {
|
|
1121
|
-
children:
|
|
1140
|
+
children: disabledTooltip ? jsx(Tooltip, Object.assign({
|
|
1141
|
+
disabled: true
|
|
1142
|
+
}, disabledTooltip, {
|
|
1143
|
+
children: ContentMemo
|
|
1144
|
+
})) : ContentMemo
|
|
1122
1145
|
}));
|
|
1123
1146
|
};
|
|
1124
1147
|
return jsxs("div", Object.assign({
|
package/Select/lang/en_US.d.ts
CHANGED
package/Select/lang/index.d.ts
CHANGED
package/Select/lang/zh_CN.d.ts
CHANGED
package/SelectInput/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Select from '../Select/index.js';
|
|
3
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
4
|
-
import '../_verture/defineProperty-
|
|
5
|
-
import '../_verture/typeof-
|
|
6
|
-
import '../_verture/toConsumableArray-
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
4
|
+
import '../_verture/defineProperty-1d116156.js';
|
|
5
|
+
import '../_verture/typeof-adeedc13.js';
|
|
6
|
+
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
7
7
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
|
-
import '../_verture/slicedToArray-
|
|
8
|
+
import '../_verture/slicedToArray-a8206399.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import '../Empty/index.js';
|
|
11
11
|
import 'clsx';
|
|
@@ -19,14 +19,15 @@ import '../Help/index.js';
|
|
|
19
19
|
import '../Tooltip/index.js';
|
|
20
20
|
import 'rc-tooltip';
|
|
21
21
|
import 'rc-tooltip/lib/placements';
|
|
22
|
+
import '@para-ui/icons/Forbid';
|
|
22
23
|
import '@para-ui/icons/Help';
|
|
23
|
-
import '../_verture/index-
|
|
24
|
+
import '../_verture/index-e9007d6a.js';
|
|
24
25
|
import 'rc-dropdown';
|
|
25
26
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
26
27
|
import 'dayjs';
|
|
27
28
|
import '@paraview/lib';
|
|
28
29
|
import '@para-ui/icons/Close';
|
|
29
|
-
import '@para-ui/icons/
|
|
30
|
+
import '@para-ui/icons/CloseCircleF';
|
|
30
31
|
import '@para-ui/icons/Down';
|
|
31
32
|
import '@para-ui/icons/Check';
|
|
32
33
|
import '@para-ui/icons/Search';
|