@para-ui/core 3.0.93-rc → 3.0.94
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 +9 -5
- package/AutoTips/index.js +11 -4
- package/Breadcrumbs/index.js +11 -7
- package/Button/index.js +12 -8
- package/ButtonGroup/index.js +12 -8
- package/Carousel/index.js +8 -4
- package/Cascader/index.js +11 -7
- package/Checkbox/index.js +8 -4
- package/CheckboxGroup/index.js +8 -4
- package/Collapse/index.js +5 -1
- package/CollapseBox/index.js +8 -4
- package/CollapseLayout/index.js +10 -6
- package/ColorPicker/index.js +2 -0
- package/ComboSelect/index.js +18 -14
- package/Container/index.js +5 -1
- package/DatePicker/index.js +14 -10
- package/Desktop/index.js +14 -10
- package/DragVerify/index.js +10 -6
- package/Drawer/index.js +12 -8
- package/Dropdown/index.js +4 -3
- package/DynamicMultiBox/index.js +19 -15
- package/Empty/index.js +7 -3
- package/Form/index.js +16 -15
- package/FormItem/index.js +16 -15
- package/FunctionModal/index.js +15 -14
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +8 -4
- package/HelperText/index.js +5 -1
- package/InputLang/index.js +15 -11
- package/InputNumber/index.js +8 -4
- package/Label/index.js +8 -4
- package/Loading/index.js +5 -1
- package/Menu/index.js +9 -5
- package/Message/index.js +8 -4
- package/Modal/index.js +17 -10
- package/MultiBox/index.js +14 -10
- package/Notification/index.js +7 -3
- package/OperateBtn/index.js +13 -9
- package/PageHeader/index.js +13 -9
- package/Pagination/index.js +15 -11
- package/ParauiProvider/index.d.ts +0 -1
- package/ParauiProvider/index.js +7 -3
- package/PasswordRules/index.js +7 -3
- package/PopConfirm/index.js +12 -8
- package/Popover/index.js +9 -5
- package/Progress/index.js +6 -2
- package/Querying/index.js +7 -3
- package/README.md +11 -7
- package/Radio/index.js +8 -4
- package/RadioGroup/index.js +8 -4
- package/Search/index.js +13 -9
- package/Select/index.js +94 -72
- package/SelectInput/index.js +12 -11
- package/Selector/index.js +24 -11
- package/SelectorPicker/index.js +16 -12
- package/SingleBox/index.js +14 -10
- package/Slider/index.js +10 -6
- package/Split/index.js +8 -4
- package/Status/index.js +5 -1
- package/Stepper/index.js +7 -3
- package/Styles/theme.scss +69 -1
- package/Switch/index.js +10 -6
- package/Table/index.js +44 -15
- package/Tabs/index.js +13 -9
- package/Tag/index.js +11 -7
- package/TextEditor/index.js +12 -5
- package/TextField/index.js +12 -8
- package/TimePicker/index.js +11 -10
- package/Timeline/index.js +8 -4
- package/Title/index.js +5 -1
- package/ToggleButton/index.js +13 -9
- package/Tooltip/index.js +8 -4
- package/Transfer/index.js +17 -13
- package/Tree/index.js +13 -12
- package/Upload/index.js +28 -12
- package/_verture/{defineProperty-3a625b1f.js → defineProperty-62acccfc.js} +1 -1
- package/_verture/{index-9767ca77.js → index-77f9e0fb.js} +6 -2
- package/_verture/{index-c3595f35.js → index-7aa7f54c.js} +11 -4
- package/_verture/index-a369ca3f.js +4 -0
- package/_verture/{closestPolyfill-50b1fbfb.js → index-be25b2bc.js} +16 -9
- package/_verture/{intl-081765b8.js → intl-4a9f1b44.js} +1 -1
- package/_verture/{modalContext-02593581.js → modalContext-630bdb73.js} +8 -4
- package/_verture/{slicedToArray-87f371da.js → slicedToArray-76060636.js} +1 -1
- package/_verture/style-inject.es-300983ab.js +28 -0
- package/_verture/{toConsumableArray-6f1e9329.js → toConsumableArray-81040c9e.js} +1 -1
- package/_verture/{utils-28afbe4d.js → utils-c9b9a157.js} +1 -1
- package/index.js +22 -20
- package/package.json +1 -4
- package/umd/ComboSelect.js +2 -2
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +2 -2
- package/umd/Pagination.js +5 -5
- package/umd/ParauiProvider.js +1 -1
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Table.js +3 -3
- package/umd/Tree.js +1 -1
- package/Styles/theme/theme-api.scss +0 -75
- package/Styles/theme/theme-default.scss +0 -74
- package/_verture/closestPolyfill-760bc7f1.js +0 -1354
- package/_verture/constant-591a4a05.js +0 -10
- package/_verture/defineProperty-9e9c3d85.js +0 -34
- package/_verture/index-184c6521.js +0 -757
- package/_verture/index-28f5d4d7.js +0 -340
- package/_verture/index-3360fdb3.js +0 -232
- package/_verture/index-a69ede5b.js +0 -18
- package/_verture/intl-8394d212.js +0 -81
- package/_verture/modalContext-2ae14dd7.js +0 -197
- package/_verture/slicedToArray-47930427.js +0 -43
- package/_verture/sortable.esm-ce34dbdf.js +0 -3791
- package/_verture/toConsumableArray-834634f1.js +0 -19
- package/_verture/tslib.es6-766e08d0.js +0 -38
- package/_verture/typeof-a6704816.js +0 -11
- package/_verture/unsupportedIterableToArray-be82f676.js +0 -16
- package/_verture/useFormatMessage-ecee1902.js +0 -20
- package/_verture/useGlobalProps-e22b2339.js +0 -11
- package/_verture/usePopupContainer-a0111f32.js +0 -68
- package/_verture/util-77b6bd23.js +0 -18
- package/_verture/utils-b4a74c08.js +0 -77
- package/theme/theme-api.css +0 -14167
- package/theme/theme.css +0 -14563
- /package/_verture/{constant-1c53016f.js → constant-66aa48a1.js} +0 -0
- /package/_verture/{index-11d51c68.js → index-65bbd1e4.js} +0 -0
- /package/_verture/{index-08346c3c.js → index-beef914f.js} +0 -0
- /package/_verture/{sortable.esm-a0f51b1e.js → sortable.esm-49896035.js} +0 -0
- /package/_verture/{tslib.es6-47f0be4a.js → tslib.es6-55ed4bd2.js} +0 -0
- /package/_verture/{typeof-2b3590f3.js → typeof-498dd2b1.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-6b499e19.js → unsupportedIterableToArray-cb478f24.js} +0 -0
- /package/_verture/{useFormatMessage-3d9242ba.js → useFormatMessage-703f8b20.js} +0 -0
- /package/_verture/{useGlobalProps-70e18de6.js → useGlobalProps-1b846a65.js} +0 -0
- /package/_verture/{usePopupContainer-72af32ec.js → usePopupContainer-87febeb9.js} +0 -0
- /package/_verture/{util-3210b2c1.js → util-7e1fb1e2.js} +0 -0
package/RadioGroup/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { useState, useEffect, createElement } from 'react';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { Radio } from '../Radio/index.js';
|
|
5
5
|
import Label from '../Label/index.js';
|
|
6
6
|
import HelperText from '../HelperText/index.js';
|
|
7
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
8
|
-
import '../_verture/
|
|
9
|
-
import '../_verture/
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
8
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
|
+
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
10
11
|
import '../Help/index.js';
|
|
11
12
|
import '../Tooltip/index.js';
|
|
12
13
|
import 'rc-tooltip';
|
|
@@ -14,6 +15,9 @@ import 'rc-tooltip/lib/placements';
|
|
|
14
15
|
import 'clsx';
|
|
15
16
|
import '@para-ui/icons/Help';
|
|
16
17
|
|
|
18
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-radio-group {\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 width: 100%;\n}\n.paraui-v3-radio-group > .radio-group-label {\n margin-bottom: 4px;\n}\n.paraui-v3-radio-group > .radio-group-content {\n line-height: 0;\n}\n.paraui-v3-radio-group > .radio-group-content > .paraui-v3-radio {\n margin-top: 8px;\n margin-bottom: 4px;\n}\n.paraui-v3-radio-group.paraui-v3-radio-group-column > .radio-group-content {\n display: flex;\n flex-direction: column;\n}";
|
|
19
|
+
styleInject(css_248z);
|
|
20
|
+
|
|
17
21
|
var RadioGroup = function RadioGroup(props) {
|
|
18
22
|
var _props$className = props.className,
|
|
19
23
|
className = _props$className === void 0 ? '' : _props$className,
|
package/Search/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import { TextField } from '../TextField/index.js';
|
|
5
5
|
import { Button } from '../Button/index.js';
|
|
6
6
|
import SearchIcon from '@para-ui/icons/Search';
|
|
7
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
8
|
-
import '../_verture/
|
|
9
|
-
import '../_verture/
|
|
10
|
-
import '../_verture/
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
8
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
|
+
import '../_verture/typeof-498dd2b1.js';
|
|
11
|
+
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
11
12
|
import '../Label/index.js';
|
|
12
13
|
import '../Help/index.js';
|
|
13
14
|
import '../Tooltip/index.js';
|
|
@@ -23,15 +24,18 @@ import '../AutoTips/index.js';
|
|
|
23
24
|
import '../Loading/index.js';
|
|
24
25
|
import '@para-ui/icons/LoadingF';
|
|
25
26
|
import '../HelperText/index.js';
|
|
26
|
-
import '../_verture/useGlobalProps-
|
|
27
|
+
import '../_verture/useGlobalProps-1b846a65.js';
|
|
27
28
|
import '@para-ui/core/GlobalContext';
|
|
28
|
-
import '../_verture/index-
|
|
29
|
+
import '../_verture/index-77f9e0fb.js';
|
|
29
30
|
import 'rc-dropdown';
|
|
30
|
-
import '../_verture/usePopupContainer-
|
|
31
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
31
32
|
import 'dayjs';
|
|
32
33
|
import '@para-ui/icons/Forbid';
|
|
33
34
|
import '@para-ui/icons/Down';
|
|
34
|
-
import '../_verture/useFormatMessage-
|
|
35
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
36
|
+
|
|
37
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-search {\n display: flex;\n width: 100%;\n}\n.paraui-v3-search > .search-text-field {\n padding: 0;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: none;\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon:hover > svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after {\n padding: 0;\n background-color: white;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n border: 0;\n}\n.paraui-v3-search.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search.paraui-v3-search-value > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon {\n margin-right: 0;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-label {\n margin-left: 4px;\n}\n.paraui-v3-search.paraui-v3-search-outside > .search-button {\n margin-left: 16px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button {\n padding: 0 8px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-inside.paraui-v3-search-no-btntext .search-button > span {\n margin-right: 0;\n}\n.paraui-v3-search.paraui-v3-search-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 26px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-inside.paraui-v3-search-no-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 4px;\n}\n.paraui-v3-search.paraui-v3-search-medium > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 30px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 6px;\n}\n.paraui-v3-search.paraui-v3-search-large > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 34px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}";
|
|
38
|
+
styleInject(css_248z);
|
|
35
39
|
|
|
36
40
|
var Search = function Search(props) {
|
|
37
41
|
var _props$className = props.className,
|
package/Select/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
2
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
3
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
4
|
+
import { _ as _typeof } from '../_verture/typeof-498dd2b1.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-77f9e0fb.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';
|
|
@@ -14,23 +14,24 @@ import CloseCircle from '@para-ui/icons/CloseCircle';
|
|
|
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';
|
|
17
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-
|
|
17
|
+
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
21
|
import HelperText from '../HelperText/index.js';
|
|
22
|
-
import { u as useGlobalProps } from '../_verture/useGlobalProps-
|
|
23
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
24
|
-
import '../_verture/
|
|
22
|
+
import { u as useGlobalProps } from '../_verture/useGlobalProps-1b846a65.js';
|
|
23
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
24
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
25
26
|
import 'clsx';
|
|
26
|
-
import '../_verture/tslib.es6-
|
|
27
|
+
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
27
28
|
import '../Help/index.js';
|
|
28
29
|
import '../Tooltip/index.js';
|
|
29
30
|
import 'rc-tooltip';
|
|
30
31
|
import 'rc-tooltip/lib/placements';
|
|
31
32
|
import '@para-ui/icons/Help';
|
|
32
33
|
import 'rc-dropdown';
|
|
33
|
-
import '../_verture/usePopupContainer-
|
|
34
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
34
35
|
import 'dayjs';
|
|
35
36
|
import '@para-ui/icons/LoadingF';
|
|
36
37
|
|
|
@@ -49,6 +50,9 @@ var localeJson = {
|
|
|
49
50
|
en: en
|
|
50
51
|
};
|
|
51
52
|
|
|
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 > .select-content .select-label-placeholder {\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-label-placeholder {\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
|
+
styleInject(css_248z);
|
|
55
|
+
|
|
52
56
|
/**
|
|
53
57
|
* 计算文本长度
|
|
54
58
|
* @param fontSize 字体大小
|
|
@@ -80,6 +84,13 @@ var textSize = function textSize(fontSize, fontFamily, text) {
|
|
|
80
84
|
document.body.removeChild(span);
|
|
81
85
|
return result;
|
|
82
86
|
};
|
|
87
|
+
var useDidMountEffect = function useDidMountEffect(func, deps) {
|
|
88
|
+
var didMount = React__default.useRef(false);
|
|
89
|
+
React__default.useEffect(function () {
|
|
90
|
+
if (didMount.current) func();else didMount.current = true;
|
|
91
|
+
// eslint-disable-next-line
|
|
92
|
+
}, deps);
|
|
93
|
+
};
|
|
83
94
|
var Select = function Select(props) {
|
|
84
95
|
var _useGlobalProps = useGlobalProps(props, 'Select'),
|
|
85
96
|
className = _useGlobalProps.className,
|
|
@@ -139,6 +150,66 @@ var Select = function Select(props) {
|
|
|
139
150
|
renderContent = _useGlobalProps.renderContent,
|
|
140
151
|
_useGlobalProps$selec = _useGlobalProps.selectCheckIcon,
|
|
141
152
|
selectCheckIcon = _useGlobalProps$selec === void 0 ? true : _useGlobalProps$selec;
|
|
153
|
+
/**
|
|
154
|
+
* 处理初始化数据,让list支持传入字符串
|
|
155
|
+
* 把数组转换成,组件能接收的格式
|
|
156
|
+
* */
|
|
157
|
+
var handList = function handList(arr) {
|
|
158
|
+
var handArr = [];
|
|
159
|
+
for (var i = 0, l = arr.length; i < l; i++) {
|
|
160
|
+
var item = arr[i];
|
|
161
|
+
if (_typeof(item) === 'object' && item !== null) {
|
|
162
|
+
handArr.push(item);
|
|
163
|
+
} else {
|
|
164
|
+
var obj = {};
|
|
165
|
+
obj[showName] = item;
|
|
166
|
+
obj[showValue] = item;
|
|
167
|
+
handArr.push(obj);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return handArr;
|
|
171
|
+
};
|
|
172
|
+
var handleInitValue = function handleInitValue() {
|
|
173
|
+
var valArr = [];
|
|
174
|
+
if (props.defaultValue !== undefined) {
|
|
175
|
+
if (props.multiple) {
|
|
176
|
+
// 多选
|
|
177
|
+
valArr = DeepClone(props.defaultValue || []);
|
|
178
|
+
} else {
|
|
179
|
+
// 单选
|
|
180
|
+
valArr = props.defaultValue === '' ? [] : [props.defaultValue];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (value !== undefined) {
|
|
184
|
+
if (multiple) {
|
|
185
|
+
// 多选
|
|
186
|
+
valArr = DeepClone(value || []);
|
|
187
|
+
} else {
|
|
188
|
+
// 单选
|
|
189
|
+
valArr = value === '' ? [] : [value];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return valArr;
|
|
193
|
+
};
|
|
194
|
+
var handleIntlList = function handleIntlList() {
|
|
195
|
+
var listHand = handList(list);
|
|
196
|
+
var json = {};
|
|
197
|
+
for (var i = 0, l = listHand.length; i < l; i++) {
|
|
198
|
+
var item = listHand[i];
|
|
199
|
+
if (item[childrenName] && item[childrenName].length > 0) {
|
|
200
|
+
var childArr = item[childrenName];
|
|
201
|
+
for (var j = 0, k = childArr.length; j < k; j++) {
|
|
202
|
+
var childItem = childArr[j];
|
|
203
|
+
var key = childItem[showValue];
|
|
204
|
+
json[key] = childItem;
|
|
205
|
+
}
|
|
206
|
+
} else {
|
|
207
|
+
var _key = item[showValue];
|
|
208
|
+
json[_key] = item;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return json;
|
|
212
|
+
};
|
|
142
213
|
var posDom = useRef(null);
|
|
143
214
|
var _useState = useState($prefixCls + '-select-' + UUID()),
|
|
144
215
|
_useState2 = _slicedToArray(_useState, 1),
|
|
@@ -154,7 +225,7 @@ var Select = function Select(props) {
|
|
|
154
225
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
155
226
|
showText = _useState8[0],
|
|
156
227
|
setShowText = _useState8[1]; // 是否显示lable,placeholder, true不显示
|
|
157
|
-
var _useState9 = useState(
|
|
228
|
+
var _useState9 = useState(handleInitValue()),
|
|
158
229
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
159
230
|
valueCom = _useState10[0],
|
|
160
231
|
setValueCom = _useState10[1]; // 值
|
|
@@ -162,7 +233,7 @@ var Select = function Select(props) {
|
|
|
162
233
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
163
234
|
listCom = _useState12[0],
|
|
164
235
|
setListCom = _useState12[1]; // 下拉框渲染
|
|
165
|
-
var _useState13 = useState(
|
|
236
|
+
var _useState13 = useState(handleIntlList()),
|
|
166
237
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
167
238
|
listJson = _useState14[0],
|
|
168
239
|
setListJson = _useState14[1]; // 下拉选项对象
|
|
@@ -198,15 +269,6 @@ var Select = function Select(props) {
|
|
|
198
269
|
constData.listCom = listCom;
|
|
199
270
|
constData.searchModel = searchModel;
|
|
200
271
|
useEffect(function () {
|
|
201
|
-
if (props.defaultValue !== undefined) {
|
|
202
|
-
if (props.multiple) {
|
|
203
|
-
// 多选
|
|
204
|
-
setValueCom(DeepClone(props.defaultValue || []));
|
|
205
|
-
} else {
|
|
206
|
-
// 单选
|
|
207
|
-
setValueCom(props.defaultValue === '' ? [] : [props.defaultValue]);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
272
|
return function () {
|
|
211
273
|
clearTimeout(constData.searchTimer);
|
|
212
274
|
clearTimeout(constData.timer);
|
|
@@ -214,7 +276,7 @@ var Select = function Select(props) {
|
|
|
214
276
|
};
|
|
215
277
|
}, []);
|
|
216
278
|
// 赋值value
|
|
217
|
-
|
|
279
|
+
useDidMountEffect(function () {
|
|
218
280
|
if (value !== undefined) {
|
|
219
281
|
if (multiple) {
|
|
220
282
|
// 多选
|
|
@@ -235,24 +297,8 @@ var Select = function Select(props) {
|
|
|
235
297
|
setOverLineCom(overLine);
|
|
236
298
|
}, [overLine, searchModel, multiple, input]);
|
|
237
299
|
// 计算下拉选项,处理下拉选项json
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
var json = {};
|
|
241
|
-
for (var i = 0, l = listHand.length; i < l; i++) {
|
|
242
|
-
var item = listHand[i];
|
|
243
|
-
if (item[childrenName] && item[childrenName].length > 0) {
|
|
244
|
-
var childArr = item[childrenName];
|
|
245
|
-
for (var j = 0, k = childArr.length; j < k; j++) {
|
|
246
|
-
var childItem = childArr[j];
|
|
247
|
-
var key = childItem[showValue];
|
|
248
|
-
json[key] = childItem;
|
|
249
|
-
}
|
|
250
|
-
} else {
|
|
251
|
-
var _key = item[showValue];
|
|
252
|
-
json[_key] = item;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
setListJson(json);
|
|
300
|
+
useDidMountEffect(function () {
|
|
301
|
+
setListJson(handleIntlList());
|
|
256
302
|
}, [list]);
|
|
257
303
|
useEffect(function () {
|
|
258
304
|
if (multiple) {
|
|
@@ -309,16 +355,16 @@ var Select = function Select(props) {
|
|
|
309
355
|
if (open) {
|
|
310
356
|
setTimeout(function () {
|
|
311
357
|
inputFocus();
|
|
312
|
-
window.addEventListener("click", clickCom);
|
|
358
|
+
//window.addEventListener("click", clickCom);
|
|
313
359
|
window.addEventListener("keydown", keydownCom);
|
|
314
360
|
});
|
|
315
361
|
} else {
|
|
316
362
|
setSearchValue('');
|
|
317
|
-
window.removeEventListener("click", clickCom);
|
|
363
|
+
//window.removeEventListener("click", clickCom);
|
|
318
364
|
window.removeEventListener("keydown", keydownCom);
|
|
319
365
|
}
|
|
320
366
|
return function () {
|
|
321
|
-
window.removeEventListener("click", clickCom);
|
|
367
|
+
//window.removeEventListener("click", clickCom);
|
|
322
368
|
window.removeEventListener("keydown", keydownCom);
|
|
323
369
|
};
|
|
324
370
|
}, [open]);
|
|
@@ -327,25 +373,6 @@ var Select = function Select(props) {
|
|
|
327
373
|
if (disabled === true) return;
|
|
328
374
|
if (multiple && searchModel === 'outside') handInputLength(searchValue);
|
|
329
375
|
}, [searchValue, multiple, disabled, searchModel, input]);
|
|
330
|
-
/**
|
|
331
|
-
* 处理初始化数据,让list支持传入字符串
|
|
332
|
-
* 把数组转换成,组件能接收的格式
|
|
333
|
-
* */
|
|
334
|
-
var handList = function handList(arr) {
|
|
335
|
-
var handArr = [];
|
|
336
|
-
for (var i = 0, l = arr.length; i < l; i++) {
|
|
337
|
-
var item = arr[i];
|
|
338
|
-
if (_typeof(item) === 'object' && item !== null) {
|
|
339
|
-
handArr.push(item);
|
|
340
|
-
} else {
|
|
341
|
-
var obj = {};
|
|
342
|
-
obj[showName] = item;
|
|
343
|
-
obj[showValue] = item;
|
|
344
|
-
handArr.push(obj);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
return handArr;
|
|
348
|
-
};
|
|
349
376
|
/**
|
|
350
377
|
* 处理下拉内容
|
|
351
378
|
* @param listData 数据源
|
|
@@ -408,14 +435,6 @@ var Select = function Select(props) {
|
|
|
408
435
|
}
|
|
409
436
|
return el;
|
|
410
437
|
};
|
|
411
|
-
/**
|
|
412
|
-
* 全局点击判断是否需要关闭
|
|
413
|
-
* @param e 当前点击元素
|
|
414
|
-
*/
|
|
415
|
-
var clickCom = function clickCom(e) {
|
|
416
|
-
var bol = closest(e.target, '.' + classOneSelect); // 是否存在下拉当中
|
|
417
|
-
if (!bol) setOpen(false);
|
|
418
|
-
};
|
|
419
438
|
/**
|
|
420
439
|
* 判断是否显示
|
|
421
440
|
* @param item 详细信息
|
|
@@ -1112,7 +1131,10 @@ var Select = function Select(props) {
|
|
|
1112
1131
|
children: SelectPopoverMemo
|
|
1113
1132
|
}),
|
|
1114
1133
|
overlayClassName: handleClassPopover(),
|
|
1115
|
-
getPopupContainer: getPopupContainer
|
|
1134
|
+
getPopupContainer: getPopupContainer,
|
|
1135
|
+
onVisibleChange: function onVisibleChange(bol) {
|
|
1136
|
+
if (!bol) setOpen(false);
|
|
1137
|
+
}
|
|
1116
1138
|
}, {
|
|
1117
1139
|
children: ContentMemo
|
|
1118
1140
|
}));
|
package/SelectInput/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
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-
|
|
7
|
-
import '../_verture/unsupportedIterableToArray-
|
|
8
|
-
import '../_verture/slicedToArray-
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
4
|
+
import '../_verture/defineProperty-62acccfc.js';
|
|
5
|
+
import '../_verture/typeof-498dd2b1.js';
|
|
6
|
+
import '../_verture/toConsumableArray-81040c9e.js';
|
|
7
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
|
+
import '../_verture/slicedToArray-76060636.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import '../Empty/index.js';
|
|
11
11
|
import 'clsx';
|
|
12
|
-
import '../_verture/useFormatMessage-
|
|
12
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
13
13
|
import '@para-ui/core/GlobalContext';
|
|
14
|
-
import '../_verture/useGlobalProps-
|
|
14
|
+
import '../_verture/useGlobalProps-1b846a65.js';
|
|
15
|
+
import '../_verture/style-inject.es-300983ab.js';
|
|
15
16
|
import '../Label/index.js';
|
|
16
|
-
import '../_verture/tslib.es6-
|
|
17
|
+
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
17
18
|
import '../Help/index.js';
|
|
18
19
|
import '../Tooltip/index.js';
|
|
19
20
|
import 'rc-tooltip';
|
|
20
21
|
import 'rc-tooltip/lib/placements';
|
|
21
22
|
import '@para-ui/icons/Help';
|
|
22
|
-
import '../_verture/index-
|
|
23
|
+
import '../_verture/index-77f9e0fb.js';
|
|
23
24
|
import 'rc-dropdown';
|
|
24
|
-
import '../_verture/usePopupContainer-
|
|
25
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
25
26
|
import 'dayjs';
|
|
26
27
|
import '@paraview/lib';
|
|
27
28
|
import '@para-ui/icons/Close';
|
package/Selector/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
3
|
-
import { r as regenerator } from '../_verture/index-
|
|
4
|
-
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-
|
|
1
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
|
+
import { r as regenerator } from '../_verture/index-beef914f.js';
|
|
4
|
+
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
7
7
|
import { Radio } from '../Radio/index.js';
|
|
@@ -10,16 +10,17 @@ import { Popover } from '../Popover/index.js';
|
|
|
10
10
|
import AutoTips from '../AutoTips/index.js';
|
|
11
11
|
import { Loading } from '../Loading/index.js';
|
|
12
12
|
import CloseIcon from '@para-ui/icons/Close';
|
|
13
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
14
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-
|
|
13
|
+
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
14
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
15
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
15
16
|
import { Search } from '../Search/index.js';
|
|
16
17
|
import { Breadcrumbs } from '../Breadcrumbs/index.js';
|
|
17
18
|
import Empty from '../Empty/index.js';
|
|
18
19
|
import SearchIcon from '@para-ui/icons/Search';
|
|
19
20
|
import Refresh from '@para-ui/icons/Refresh';
|
|
20
21
|
import { ArrayToObject, Get, Post, Cancel } from '@paraview/lib';
|
|
21
|
-
import { u as useGlobalProps } from '../_verture/useGlobalProps-
|
|
22
|
-
import '../_verture/unsupportedIterableToArray-
|
|
22
|
+
import { u as useGlobalProps } from '../_verture/useGlobalProps-1b846a65.js';
|
|
23
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
23
24
|
import '../Label/index.js';
|
|
24
25
|
import '../Help/index.js';
|
|
25
26
|
import '../Tooltip/index.js';
|
|
@@ -27,16 +28,16 @@ import 'rc-tooltip';
|
|
|
27
28
|
import 'rc-tooltip/lib/placements';
|
|
28
29
|
import 'clsx';
|
|
29
30
|
import '@para-ui/icons/Help';
|
|
30
|
-
import '../_verture/usePopupContainer-
|
|
31
|
+
import '../_verture/usePopupContainer-87febeb9.js';
|
|
31
32
|
import '@para-ui/icons/LoadingF';
|
|
32
33
|
import '@para-ui/core/GlobalContext';
|
|
33
34
|
import '../TextField/index.js';
|
|
34
|
-
import '../_verture/typeof-
|
|
35
|
+
import '../_verture/typeof-498dd2b1.js';
|
|
35
36
|
import '@para-ui/icons/PreviewClose';
|
|
36
37
|
import '@para-ui/icons/PreviewOpen';
|
|
37
38
|
import '@para-ui/icons/CloseCircle';
|
|
38
39
|
import '../HelperText/index.js';
|
|
39
|
-
import '../_verture/index-
|
|
40
|
+
import '../_verture/index-77f9e0fb.js';
|
|
40
41
|
import 'rc-dropdown';
|
|
41
42
|
import 'dayjs';
|
|
42
43
|
import '../Button/index.js';
|
|
@@ -72,6 +73,9 @@ var localeJson = {
|
|
|
72
73
|
en: en
|
|
73
74
|
};
|
|
74
75
|
|
|
76
|
+
var css_248z$3 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-selector-node {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n}\n.paraui-v3-selector-node:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-selector-node > .selector-node-left {\n display: flex;\n align-items: center;\n flex: 1;\n overflow: hidden;\n padding-right: 16px;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-radio {\n margin-right: 8px;\n display: flex;\n align-items: center;\n padding: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-radio .radio-box {\n top: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-check {\n margin-right: 8px;\n display: flex;\n align-items: center;\n padding: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-check .checkbox-box {\n top: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .node-img {\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-right: 8px;\n}\n.paraui-v3-selector-node > .selector-node-left > .node-img img {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch {\n height: 36px;\n padding: 0 16px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .main-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n white-space: nowrap;\n height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .sub-title {\n margin-left: 8px;\n font-size: 14px;\n color: rgba(46, 55, 67, 0.4);\n white-space: nowrap;\n height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .tag {\n margin-left: 8px;\n background-color: rgba(54, 102, 214, 0.05);\n color: rgb(54, 102, 214);\n border-radius: 2px;\n font-size: 12px;\n padding: 0px 6px;\n white-space: nowrap;\n height: 17px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf {\n padding: 6px 16px;\n height: 48px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box {\n flex: 1;\n overflow: hidden;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box {\n display: flex;\n white-space: nowrap;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .main-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .tag {\n margin-left: 8px;\n background-color: rgba(54, 102, 214, 0.05);\n color: rgb(54, 102, 214);\n border-radius: 2px;\n font-size: 12px;\n padding: 1px 6px;\n white-space: nowrap;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .sub-title {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.4);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node > .selector-node-right {\n display: flex;\n align-items: center;\n height: 100%;\n}\n.paraui-v3-selector-node > .selector-node-right > .detail {\n font-size: 14px;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .detail:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .line {\n border-left: 1px solid rgba(171, 176, 185, 0.2);\n margin: 0 8px;\n content: \"\";\n display: inline-block;\n height: 12px;\n}\n.paraui-v3-selector-node > .selector-node-right > .lower-child {\n font-size: 14px;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .lower-child:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .close {\n display: flex;\n align-items: center;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .close:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .close:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-selector-node > .selector-node-right > .close > svg {\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .detail, .paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .lower-child {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .detail:hover, .paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .lower-child:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled.paraui-v3-selector-node-branch > .selector-node-left > .main-title {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .main-title {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled > .selector-node-right > .lower-child {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled-child > .selector-node-right > .lower-child {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-selector-detail .selector-detail-popover-content.selector-detail-popover-content-loading {\n min-width: 100px;\n min-height: 50px;\n}";
|
|
77
|
+
styleInject(css_248z$3);
|
|
78
|
+
|
|
75
79
|
var SelectorNode = function SelectorNode(props) {
|
|
76
80
|
var className = props.className,
|
|
77
81
|
style = props.style,
|
|
@@ -325,6 +329,9 @@ var SelectorNode = function SelectorNode(props) {
|
|
|
325
329
|
}));
|
|
326
330
|
};
|
|
327
331
|
|
|
332
|
+
var css_248z$2 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-selector-main {\n padding: 16px 0 0 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n.paraui-v3-selector-main > .selectot-main-search {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n.paraui-v3-selector-main > .selector-main-box {\n position: relative;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .nav-box {\n padding: 0 16px;\n margin-bottom: 12px;\n line-height: 0;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list-no-data {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list {\n overflow-y: hidden;\n padding-bottom: 16px;\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-all-check {\n position: relative;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-all-check + .selector-group-title.selector-group-title-first {\n margin-top: 4px;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content {\n overflow-y: hidden;\n position: relative;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content:before {\n content: \"\";\n position: absolute;\n height: 36px;\n width: 100%;\n pointer-events: none;\n top: 0;\n left: 0;\n z-index: 1;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content:after {\n content: \"\";\n position: absolute;\n height: 36px;\n width: 100%;\n pointer-events: none;\n bottom: 0;\n left: 0;\n z-index: 1;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content.selector-main-list-scroll-top:after {\n box-shadow: inset 0px -10px 10px -8px rgba(0, 0, 0, 0.05);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content.selector-main-list-scroll-middle:before {\n box-shadow: inset 0px 10px 10px -8px rgba(0, 0, 0, 0.05);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content.selector-main-list-scroll-middle:after {\n box-shadow: inset 0px -10px 10px -8px rgba(0, 0, 0, 0.05);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content.selector-main-list-scroll-bottom:before {\n box-shadow: inset 0px 10px 10px -8px rgba(0, 0, 0, 0.05);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content > .selector-main-list-content-box {\n height: 100%;\n overflow-y: auto;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content > .selector-main-list-content-box > .selector-group-title {\n padding: 0 12px;\n margin-top: 24px;\n margin-bottom: 12px;\n font-size: 14px;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-content > .selector-main-list-content-box > .selector-group-title.selector-group-title-first {\n margin-top: 0;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-more {\n padding: 0 16px;\n cursor: pointer;\n font-size: 14px;\n color: rgb(54, 102, 214);\n line-height: 36px;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-more:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content.selector-main-search-content {\n /*position: absolute;\n left: 0;\n top: 0;*/\n width: 100%;\n height: 100%;\n background-color: white;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content.selector-main-search-content > .selector-main-list {\n padding-bottom: 16px;\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content.selector-main-content-all-check > .selector-main-list > .selector-main-list-content {\n max-height: calc(100% - 36px);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content.selector-main-content-load-more > .selector-main-list > .selector-main-list-content {\n max-height: calc(100% - 36px);\n}\n.paraui-v3-selector-main > .selector-main-box > .selector-main-content.selector-main-content-all-check.selector-main-content-load-more > .selector-main-list > .selector-main-list-content {\n max-height: calc(100% - 36px - 36px);\n}\n.paraui-v3-selector-main.paraui-v3-selector-main-select > .selector-main-box > .selector-main-content > .selector-main-list > .selector-main-list-more {\n padding-left: 38px;\n}\n.paraui-v3-selector-main.paraui-v3-selector-main-show-search > .selector-main-box {\n height: calc(100% - 52px);\n}\n.paraui-v3-selector-main.paraui-v3-selector-main-show-search > .selector-main-box > .selector-main-content.selector-main-list-box {\n display: none;\n}\n.paraui-v3-selector-main.paraui-v3-selector-main-search > .selector-main-box {\n height: calc(100% - 52px);\n}";
|
|
333
|
+
styleInject(css_248z$2);
|
|
334
|
+
|
|
328
335
|
var SelectorMainContent = function SelectorMainContent(props) {
|
|
329
336
|
var className = props.className,
|
|
330
337
|
value = props.value;
|
|
@@ -902,6 +909,9 @@ var SelectorMain = function SelectorMain(props) {
|
|
|
902
909
|
}));
|
|
903
910
|
};
|
|
904
911
|
|
|
912
|
+
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-selector-data.paraui-v3-selector-data-node > .selector-data-node-box {\n padding: 24px 0 16px 0;\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-node > .selector-data-node-box > .title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n padding: 0 16px;\n margin-bottom: 16px;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-node > .selector-data-node-box > .title > .title-content {\n margin-left: 8px;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-node > .selector-data-node-box > .content {\n overflow-y: auto;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box {\n padding-top: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box > .title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n padding: 0 16px;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box > .content {\n padding: 0 16px 12px 16px;\n overflow: auto;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box > .content > .content-tag {\n display: inline-flex;\n height: 24px;\n align-items: center;\n padding: 0 8px;\n border-radius: 2px;\n background-color: rgba(171, 176, 185, 0.2);\n margin-right: 8px;\n margin-top: 6px;\n max-width: calc(100% - 8px);\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box > .content > .content-tag > span {\n font-size: 12px;\n color: rgb(46, 55, 67);\n overflow: hidden;\n}\n.paraui-v3-selector-data.paraui-v3-selector-data-tag > .selector-data-tag-box > .content > .content-tag > svg {\n font-size: 16px;\n margin-left: 4px;\n color: rgba(46, 55, 67, 0.7);\n cursor: pointer;\n}";
|
|
913
|
+
styleInject(css_248z$1);
|
|
914
|
+
|
|
905
915
|
var SelectorData = function SelectorData(props) {
|
|
906
916
|
var className = props.className,
|
|
907
917
|
_props$layout = props.layout,
|
|
@@ -1137,6 +1147,9 @@ var reqFunc = function reqFunc(obj) {
|
|
|
1137
1147
|
}
|
|
1138
1148
|
};
|
|
1139
1149
|
|
|
1150
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-selector {\n border: 1px solid rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n display: flex;\n height: 100%;\n width: 100%;\n}\n.paraui-v3-selector svg {\n overflow: hidden;\n}\n.paraui-v3-selector.paraui-v3-selector-lr > .paraui-v3-selector-main {\n width: 50%;\n}\n.paraui-v3-selector.paraui-v3-selector-lr > .paraui-v3-selector-data {\n width: 50%;\n border-left: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-selector.paraui-v3-selector-tb {\n flex-direction: column;\n}\n.paraui-v3-selector.paraui-v3-selector-tb > .paraui-v3-selector-data {\n border-bottom: 1px solid rgba(171, 176, 185, 0.4);\n max-height: 106px;\n}\n.paraui-v3-selector.paraui-v3-selector-tb > .paraui-v3-selector-main {\n overflow-y: auto;\n height: auto;\n flex: 1;\n}";
|
|
1151
|
+
styleInject(css_248z);
|
|
1152
|
+
|
|
1140
1153
|
var handFieldConfig = function handFieldConfig(fieldConfig, rowKey) {
|
|
1141
1154
|
var json = Object.assign({
|
|
1142
1155
|
mainTitle: 'label',
|