@para-ui/core 3.0.0 → 3.0.2
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 +180 -68
- package/AutoBox/protal.d.ts +17 -0
- package/AutoTips/index.js +4 -3
- package/Breadcrumbs/index.js +10 -7
- package/Button/index.d.ts +8 -0
- package/Button/index.js +77 -37
- package/ButtonGroup/index.js +3 -2
- package/Carousel/index.js +7 -5
- package/Cascader/index.d.ts +3 -1
- package/Cascader/index.js +13 -5
- package/Checkbox/index.js +27 -8
- package/CheckboxGroup/index.d.ts +2 -5
- package/CheckboxGroup/index.js +13 -10
- package/Collapse/index.js +11 -10
- package/CollapseBox/index.js +7 -6
- package/ComboSelect/index.js +266 -93
- package/ComboSelect/interface.d.ts +12 -9
- package/ComboSelect/lang/en_US.d.ts +1 -0
- package/ComboSelect/lang/index.d.ts +2 -0
- package/ComboSelect/lang/zh_CN.d.ts +1 -0
- package/Container/index.js +27 -31
- package/DatePicker/index.js +12 -17
- package/DatePicker/util.d.ts +0 -1
- package/Desktop/index.js +6 -5
- package/Drawer/index.js +10 -9
- package/Dropdown/index.js +59 -6
- package/Empty/index.js +7 -6
- package/Form/index.js +6 -5
- package/FormItem/compoments/formFile/index.d.ts +16 -16
- package/FormItem/index.d.ts +19 -19
- package/FormItem/index.js +3 -2
- package/FunctionModal/index.js +3 -2
- package/GlobalContext/componentsProps.d.ts +2 -0
- package/GlobalContext/constant.d.ts +8 -0
- package/Help/index.js +3 -2
- package/HelperText/index.d.ts +9 -5
- package/HelperText/index.js +9 -4
- package/InputLang/index.d.ts +2 -5
- package/InputLang/index.js +13 -7
- package/InputNumber/index.d.ts +2 -5
- package/InputNumber/index.js +15 -12
- package/Label/index.d.ts +2 -0
- package/Label/index.js +12 -8
- package/Loading/index.js +5 -4
- package/Menu/index.js +18 -17
- package/Message/index.js +5 -4
- package/Modal/index.js +28 -26
- package/MultiBox/index.d.ts +2 -5
- package/MultiBox/index.js +13 -6
- package/Notification/index.js +3 -2
- package/OperateBtn/index.js +15 -12
- package/PageHeader/index.js +22 -23
- package/Pagination/index.js +10 -4
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.d.ts +2 -0
- package/PopConfirm/index.js +3 -2
- package/Popover/index.js +7 -4
- package/Progress/index.d.ts +2 -0
- package/Progress/index.js +13 -9
- package/Querying/index.js +6 -5
- package/README.md +32 -1
- package/Radio/index.js +22 -8
- package/RadioGroup/index.d.ts +2 -5
- package/RadioGroup/index.js +10 -7
- package/Search/index.js +13 -8
- package/Select/index.d.ts +4 -5
- package/Select/index.js +27 -22
- package/SelectInput/index.js +3 -2
- package/Selector/index.d.ts +3 -19
- package/Selector/index.js +2102 -213
- package/Selector/interface.d.ts +365 -0
- package/Selector/lang/en_US.d.ts +9 -0
- package/Selector/lang/index.d.ts +17 -0
- package/Selector/lang/zh_CN.d.ts +9 -0
- package/Selector/selectorData/index.d.ts +10 -0
- package/Selector/selectorMain/index.d.ts +2 -9
- package/Selector/selectorNode/index.d.ts +10 -0
- package/Selector/util.d.ts +15 -0
- package/SelectorPicker/index.d.ts +46 -0
- package/SelectorPicker/index.js +319 -0
- package/SingleBox/index.d.ts +2 -5
- package/SingleBox/index.js +11 -6
- package/Slider/index.d.ts +4 -4
- package/Slider/index.js +9 -4
- package/Split/index.js +8 -7
- package/Stepper/index.js +7 -3
- package/Switch/index.js +10 -12
- package/Table/index.js +542 -313
- package/Table/interface.d.ts +43 -1
- package/Table/tableElement/index.d.ts +2 -2
- package/Table/util.d.ts +13 -1
- package/Tabs/index.js +7 -6
- package/Tag/index.js +12 -14
- package/TextField/index.d.ts +4 -5
- package/TextField/index.js +23 -20
- package/TimePicker/index.js +1 -0
- package/Timeline/index.js +13 -12
- package/Title/index.d.ts +30 -0
- package/Title/index.js +49 -0
- package/ToggleButton/index.js +13 -13
- package/Tooltip/index.js +51 -11
- package/Tooltip/interface.d.ts +2 -0
- package/Transfer/index.d.ts +6 -2
- package/Transfer/index.js +8 -4
- package/Tree/index.js +3 -2
- package/Tree/interface.d.ts +0 -2
- package/Tree/utils/tools.d.ts +0 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/ImgCrop/constants.d.ts +1 -1
- package/Upload/ImgCrop/interface.d.ts +5 -0
- package/Upload/index.js +56 -45
- package/_verture/constant-bf34e6fa.js +11 -0
- package/_verture/{index-3d26f6a5.js → index-cc4c83b8.js} +63 -31
- package/_verture/{index-ce3860a0.js → index-cf5bf211.js} +30 -21
- package/_verture/{modalContext-fc19f4ae.js → modalContext-95c3fc87.js} +0 -0
- package/index.d.ts +4 -0
- package/index.js +10 -6
- package/package.json +8 -5
- package/Selector/branchNode/index.d.ts +0 -32
- package/Selector/leafNode/index.d.ts +0 -34
- package/Selector/selectorRight/index.d.ts +0 -16
- package/Selector/selectorTop/index.d.ts +0 -16
package/Search/index.js
CHANGED
|
@@ -4,6 +4,7 @@ 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-bf34e6fa.js';
|
|
7
8
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
9
|
import '../_verture/typeof-498dd2b1.js';
|
|
9
10
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -30,7 +31,7 @@ import '@para-ui/icons/Forbid';
|
|
|
30
31
|
import '@para-ui/icons/Down';
|
|
31
32
|
import '../_verture/useFormatMessage-ac9d6acf.js';
|
|
32
33
|
|
|
33
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-search {\n display: flex;\n width: 100%;\n}\n.paraui-search > .
|
|
34
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\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-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}";
|
|
34
35
|
styleInject(css_248z);
|
|
35
36
|
|
|
36
37
|
var Search = function Search(props) {
|
|
@@ -150,6 +151,7 @@ var Search = function Search(props) {
|
|
|
150
151
|
var buttonDom = function buttonDom() {
|
|
151
152
|
if (showBtn && btnType === 'inside') {
|
|
152
153
|
return jsx(Button, Object.assign({
|
|
154
|
+
className: 'search-button',
|
|
153
155
|
size: size,
|
|
154
156
|
startIcon: searchBtnIcon(),
|
|
155
157
|
variant: 'outlined',
|
|
@@ -168,14 +170,14 @@ var Search = function Search(props) {
|
|
|
168
170
|
|
|
169
171
|
|
|
170
172
|
var handClass = function handClass() {
|
|
171
|
-
var str =
|
|
173
|
+
var str = "".concat($prefixCls, "-search");
|
|
172
174
|
if (className) str += ' ' + className;
|
|
173
|
-
if (size) str +=
|
|
174
|
-
if (btnType) str +=
|
|
175
|
-
if (showBtn) str +=
|
|
176
|
-
if (btnText) str +=
|
|
177
|
-
if (valueCom) str +=
|
|
178
|
-
if (rightIconExist) str +=
|
|
175
|
+
if (size) str += " ".concat($prefixCls, "-search-").concat(size);
|
|
176
|
+
if (btnType) str += " ".concat($prefixCls, "-search-").concat(btnType);
|
|
177
|
+
if (showBtn) str += " ".concat($prefixCls, "-search-showbtn");
|
|
178
|
+
if (btnText) str += " ".concat($prefixCls, "-search-btntext");else str += " ".concat($prefixCls, "-search-no-btntext");
|
|
179
|
+
if (valueCom) str += " ".concat($prefixCls, "-search-value");
|
|
180
|
+
if (rightIconExist) str += " ".concat($prefixCls, "-search-right-icon-exist");
|
|
179
181
|
return str;
|
|
180
182
|
};
|
|
181
183
|
|
|
@@ -192,10 +194,12 @@ var Search = function Search(props) {
|
|
|
192
194
|
style: style
|
|
193
195
|
}, {
|
|
194
196
|
children: [jsx(TextField, {
|
|
197
|
+
className: 'search-text-field',
|
|
195
198
|
size: size,
|
|
196
199
|
placeholder: placeholder,
|
|
197
200
|
value: handValue(),
|
|
198
201
|
rightIcon: clearIcon(),
|
|
202
|
+
hideErrorDom: true,
|
|
199
203
|
onClickIcon: clickRightIcon,
|
|
200
204
|
onChange: changeInput,
|
|
201
205
|
onBlur: onBlur,
|
|
@@ -207,6 +211,7 @@ var Search = function Search(props) {
|
|
|
207
211
|
allowClear: allowClear,
|
|
208
212
|
onClear: onClear
|
|
209
213
|
}), showBtn && btnType === 'outside' && jsx(Button, Object.assign({
|
|
214
|
+
className: 'search-button',
|
|
210
215
|
size: size,
|
|
211
216
|
startIcon: searchBtnIcon(),
|
|
212
217
|
variant: 'contained',
|
package/Select/index.d.ts
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { EmptyProps } from "../Empty";
|
|
8
8
|
import { LabelTooltipProps } from "../Label";
|
|
9
|
+
import { HelperTextDetailProps } from "../HelperText";
|
|
9
10
|
import './index.scss';
|
|
10
|
-
export interface SelectProps {
|
|
11
|
+
export interface SelectProps extends HelperTextDetailProps {
|
|
11
12
|
/** 样式class */
|
|
12
13
|
className?: string;
|
|
13
14
|
/** style */
|
|
@@ -38,10 +39,6 @@ export interface SelectProps {
|
|
|
38
39
|
multiple?: boolean;
|
|
39
40
|
/** 是否必填 */
|
|
40
41
|
required?: boolean;
|
|
41
|
-
/** 是否错误模式 */
|
|
42
|
-
error?: boolean;
|
|
43
|
-
/** 错误文本 */
|
|
44
|
-
helperText?: ReactNode;
|
|
45
42
|
/** 下拉选项 {label: ReactNode, value: any, children: any[]}*/
|
|
46
43
|
list: any[];
|
|
47
44
|
/** 显示名字段 */
|
|
@@ -80,6 +77,8 @@ export interface SelectProps {
|
|
|
80
77
|
onEnterInput?: (val: string) => void;
|
|
81
78
|
/** 点击清空内容回调 */
|
|
82
79
|
onClear?: () => void;
|
|
80
|
+
/** 浮层渲染容器,默认body */
|
|
81
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
83
82
|
[name: string]: any;
|
|
84
83
|
}
|
|
85
84
|
declare const Select: FunctionComponent<SelectProps>;
|
package/Select/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import { Loading } from '../Loading/index.js';
|
|
|
20
20
|
import { Popover } from '../Popover/index.js';
|
|
21
21
|
import HelperText from '../HelperText/index.js';
|
|
22
22
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-af9a2af6.js';
|
|
23
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
23
24
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
24
25
|
import 'clsx';
|
|
25
26
|
import '../Help/index.js';
|
|
@@ -46,7 +47,7 @@ var localeJson = {
|
|
|
46
47
|
en: en
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-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-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-select > .select-content:hover {\n border-color: rgb(54, 102, 214);\n}\n.paraui-select > .select-content:hover > .select-svg > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-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-select > .select-content > .select-label-placeholder > .select-required {\n margin-left: 2px;\n color: rgb(235, 96, 84);\n}\n.paraui-select > .select-content > .select-svg {\n position: absolute;\n right: 12px;\n top: 0;\n z-index: 2;\n}\n.paraui-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-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-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-select > .select-content > .select-svg > .clean-up-icon:hover > svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-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-select > .select-content > .radio-search-outside {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\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-select > .select-content > .check-select-content {\n padding-left: 12px;\n height: 100%;\n overflow: hidden;\n}\n.paraui-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-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-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-more > span {\n max-width: none;\n}\n.paraui-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-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}\n.paraui-select > .select-content > .check-select-content > .check-select-content-item > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-select > .select-content > .check-select-content > .check-select-content-item.check-select-content-item-noclose > span {\n max-width: none;\n}\n.paraui-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-select.paraui-select-allow-clear > .select-content {\n padding-right: 40px;\n}\n.paraui-select.paraui-select-allow-clear.paraui-select-value > .select-content:hover > .select-svg > svg {\n opacity: 0;\n transition: all 0s;\n}\n.paraui-select.paraui-select-allow-clear.paraui-select-value > .select-content:hover > .select-svg > .clean-up-icon {\n opacity: 1;\n transition: all 0.3s;\n}\n.paraui-select.select-over-line.select-small > .select-content {\n height: inherit;\n min-height: 28px;\n}\n.paraui-select.select-over-line.select-medium > .select-content {\n height: inherit;\n min-height: 32px;\n}\n.paraui-select.select-over-line.select-large > .select-content {\n height: inherit;\n min-height: 36px;\n}\n.paraui-select.select-show-select > .select-content {\n padding-right: 40px;\n}\n.paraui-select.select-show-select > .select-content > .select-svg > svg {\n opacity: 1;\n}\n.paraui-select.select-disabled > .select-content {\n background-color: rgba(171, 176, 185, 0.12);\n cursor: not-allowed;\n}\n.paraui-select.select-disabled > .select-content:hover {\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-select.select-disabled > .select-content:hover > .select-svg > svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-select.select-disabled > .select-content > .check-select-content > .check-select-content-item > span {\n max-width: 100%;\n}\n.paraui-select.select-error > .select-content {\n border-color: rgb(235, 96, 84) !important;\n}\n.paraui-select.select-open > .select-content {\n border-color: rgb(54, 102, 214);\n}\n.paraui-select.select-open > .select-content > .select-svg > svg {\n transform: rotate(180deg);\n color: rgb(54, 102, 214);\n}\n.paraui-select.select-open > .select-content > .check-select-content > .check-search-outside {\n display: inline-block;\n}\n.paraui-select.select-small > .select-content {\n height: 28px;\n}\n.paraui-select.select-small > .select-content > .select-label-placeholder {\n line-height: 26px;\n}\n.paraui-select.select-small > .select-content > .select-svg {\n top: 3px;\n}\n.paraui-select.select-small > .select-content > .radio-select-content {\n padding-bottom: 3px;\n padding-top: 3px;\n}\n.paraui-select.select-small > .select-content > .check-select-content {\n padding-bottom: 3px;\n}\n.paraui-select.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-select.select-small > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 2px;\n}\n.paraui-select.select-small > .select-content > .check-select-content > .check-search-outside {\n margin-top: 3px;\n height: 20px;\n}\n.paraui-select.select-medium > .select-content {\n height: 32px;\n}\n.paraui-select.select-medium > .select-content > .select-label-placeholder {\n line-height: 30px;\n}\n.paraui-select.select-medium > .select-content > .select-svg {\n top: 6px;\n}\n.paraui-select.select-medium > .select-content > .radio-select-content {\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.paraui-select.select-medium > .select-content > .check-select-content {\n padding-bottom: 4px;\n}\n.paraui-select.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-select.select-medium > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 3px;\n}\n.paraui-select.select-medium > .select-content > .check-select-content > .check-search-outside {\n margin-top: 4px;\n height: 22px;\n}\n.paraui-select.select-large > .select-content {\n height: 36px;\n}\n.paraui-select.select-large > .select-content > .select-label-placeholder {\n line-height: 34px;\n}\n.paraui-select.select-large > .select-content > .select-svg {\n top: 8px;\n}\n.paraui-select.select-large > .select-content > .radio-select-content {\n padding-bottom: 7px;\n padding-top: 7px;\n}\n.paraui-select.select-large > .select-content > .check-select-content {\n padding-bottom: 5px;\n}\n.paraui-select.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-select.select-large > .select-content > .check-select-content > .check-select-content-item > svg {\n top: 3px;\n}\n.paraui-select.select-large > .select-content > .check-select-content > .check-search-outside {\n margin-top: 5px;\n height: 24px;\n}\n\n.paraui-select-popover.paraui-dropdown .select-popover-content.select-popover-content-search > .select-popover-list {\n padding-top: 0px;\n}\n.paraui-select-popover.paraui-dropdown .select-popover-content.select-popover-content-search > .select-popover-list > .select-nodata {\n margin-top: 58px;\n}\n.paraui-select-popover.paraui-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-select-popover.paraui-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}\n.paraui-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-dropdown .select-popover-content > .select-popover-list {\n padding: 8px 0;\n max-height: 300px;\n overflow: auto;\n}\n.paraui-select-popover.paraui-dropdown .select-popover-content > .select-popover-list.select-popover-list-loading {\n height: 100px;\n}\n.paraui-select-popover.paraui-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-select-popover.paraui-dropdown .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-label {\n width: calc(100% - 25px);\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-dropdown .select-popover-content > .select-popover-list .select-popover-list-item.select-popover-list-item-disabled {\n cursor: not-allowed;\n}\n.paraui-select-popover.paraui-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-select-popover.paraui-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-select-popover.paraui-dropdown .select-popover-content > .select-popover-list > .select-popover-list-group .select-popover-list-item {\n padding-left: 20px;\n}\n.paraui-select-popover.paraui-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-select-popover.paraui-dropdown.paraui-select-popover-radio > .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-label {\n width: 100%;\n}\n.paraui-select-popover.paraui-dropdown.paraui-select-popover-small > .select-popover-content > .select-popover-search {\n height: 28px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-select-popover-small > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 28px;\n line-height: 28px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-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-select-popover.paraui-dropdown.paraui-select-popover-medium > .select-popover-content > .select-popover-search {\n height: 32px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-select-popover-medium > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 32px;\n line-height: 32px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-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-select-popover.paraui-dropdown.paraui-select-popover-large > .select-popover-content > .select-popover-search {\n height: 36px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-select-popover-large > .select-popover-content > .select-popover-list .select-popover-list-item {\n height: 36px;\n line-height: 36px;\n}\n.paraui-select-popover.paraui-dropdown.paraui-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-select-more-popover {\n padding-left: 16px;\n}\n.paraui-select-more-popover .select-more {\n width: 300px;\n}\n.paraui-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-select-more-popover .select-more > .select-more-content {\n max-height: 300px;\n overflow: auto;\n}\n.paraui-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-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-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-select-more-popover .select-more > .select-more-content > .select-more-content-item > svg:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-select-more-popover.paraui-select-more-popover-small .select-more > .select-more-title {\n line-height: 28px;\n}\n.paraui-select-more-popover.paraui-select-more-popover-small .select-more > .select-more-content > .select-more-content-item {\n line-height: 28px;\n}\n.paraui-select-more-popover.paraui-select-more-popover-medium .select-more > .select-more-title {\n line-height: 32px;\n}\n.paraui-select-more-popover.paraui-select-more-popover-medium .select-more > .select-more-content > .select-more-content-item {\n line-height: 32px;\n}\n.paraui-select-more-popover.paraui-select-more-popover-large .select-more > .select-more-title {\n line-height: 36px;\n}\n.paraui-select-more-popover.paraui-select-more-popover-large .select-more > .select-more-content > .select-more-content-item {\n line-height: 36px;\n}";
|
|
50
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\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 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 height: 100%;\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}\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-medium > .select-content {\n height: inherit;\n min-height: 32px;\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-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}\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}\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}\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}\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 > 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 width: calc(100% - 25px);\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-radio > .select-popover-content > .select-popover-list .select-popover-list-item > .select-popover-list-item-label {\n width: 100%;\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}";
|
|
50
51
|
styleInject(css_248z);
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -116,6 +117,7 @@ var Select = function Select(props) {
|
|
|
116
117
|
labelSign = _useGlobalProps.labelSign,
|
|
117
118
|
_useGlobalProps$error = _useGlobalProps.error,
|
|
118
119
|
error = _useGlobalProps$error === void 0 ? false : _useGlobalProps$error,
|
|
120
|
+
hideErrorDom = _useGlobalProps.hideErrorDom,
|
|
119
121
|
_useGlobalProps$helpe = _useGlobalProps.helperText,
|
|
120
122
|
helperText = _useGlobalProps$helpe === void 0 ? '' : _useGlobalProps$helpe,
|
|
121
123
|
list = _useGlobalProps.list,
|
|
@@ -139,11 +141,12 @@ var Select = function Select(props) {
|
|
|
139
141
|
var searchInputProps = _useGlobalProps.searchInputProps,
|
|
140
142
|
onEnter = _useGlobalProps.onEnter,
|
|
141
143
|
onEnterInput = _useGlobalProps.onEnterInput,
|
|
142
|
-
onClear = _useGlobalProps.onClear
|
|
144
|
+
onClear = _useGlobalProps.onClear,
|
|
145
|
+
getPopupContainer = _useGlobalProps.getPopupContainer;
|
|
143
146
|
|
|
144
147
|
var posDom = useRef(null);
|
|
145
148
|
|
|
146
|
-
var _useState = useState('select-' + UUID()),
|
|
149
|
+
var _useState = useState($prefixCls + '-select-' + UUID()),
|
|
147
150
|
_useState2 = _slicedToArray(_useState, 1),
|
|
148
151
|
classOne = _useState2[0]; // 唯一class
|
|
149
152
|
|
|
@@ -609,32 +612,32 @@ var Select = function Select(props) {
|
|
|
609
612
|
|
|
610
613
|
|
|
611
614
|
var handClass = function handClass() {
|
|
612
|
-
var str =
|
|
615
|
+
var str = "".concat($prefixCls, "-select");
|
|
613
616
|
if (multiple && !overLineCom) str += ' ' + classOne; // 多选 超出不换行
|
|
614
617
|
|
|
615
618
|
if (className) str += ' ' + className;
|
|
616
|
-
if (size) str +=
|
|
617
|
-
if (error) str +=
|
|
618
|
-
if (disabled === true) str +=
|
|
619
|
-
if (open) str +=
|
|
620
|
-
if (multiple) str +=
|
|
621
|
-
if (overLineCom) str +=
|
|
622
|
-
|
|
623
|
-
if (showSelect) str +=
|
|
624
|
-
if (valueCom.length > 0) str +=
|
|
625
|
-
if (allowClear) str +=
|
|
619
|
+
if (size) str += " ".concat($prefixCls, "-select-").concat(size);
|
|
620
|
+
if (error) str += " ".concat($prefixCls, "-select-error");
|
|
621
|
+
if (disabled === true) str += " ".concat($prefixCls, "-select-disabled");
|
|
622
|
+
if (open) str += " ".concat($prefixCls, "-select-open");
|
|
623
|
+
if (multiple) str += " ".concat($prefixCls, "-select-multiple");
|
|
624
|
+
if (overLineCom) str += " ".concat($prefixCls, "-select-over-line"); // 可输入,换行
|
|
625
|
+
|
|
626
|
+
if (showSelect) str += " ".concat($prefixCls, "-select-show-select");
|
|
627
|
+
if (valueCom.length > 0) str += " ".concat($prefixCls, "-select-value");
|
|
628
|
+
if (allowClear) str += " ".concat($prefixCls, "-select-allow-clear");
|
|
626
629
|
return str;
|
|
627
630
|
}; // 处理下拉弹框class
|
|
628
631
|
|
|
629
632
|
|
|
630
633
|
var handleClassPopover = function handleClassPopover() {
|
|
631
|
-
var str =
|
|
632
|
-
if (size) str +=
|
|
634
|
+
var str = "".concat($prefixCls, "-select-popover ").concat($prefixCls, "-scrollbar-small");
|
|
635
|
+
if (size) str += " ".concat($prefixCls, "-select-popover-").concat(size);
|
|
633
636
|
|
|
634
637
|
if (multiple) {
|
|
635
|
-
str +=
|
|
638
|
+
str += " ".concat($prefixCls, "-select-popover-multiple");
|
|
636
639
|
} else {
|
|
637
|
-
str +=
|
|
640
|
+
str += " ".concat($prefixCls, "-select-popover-radio");
|
|
638
641
|
}
|
|
639
642
|
|
|
640
643
|
if (selectPopoverClassName) str += ' ' + selectPopoverClassName;
|
|
@@ -643,8 +646,8 @@ var Select = function Select(props) {
|
|
|
643
646
|
|
|
644
647
|
|
|
645
648
|
var handleClassMorePopover = function handleClassMorePopover() {
|
|
646
|
-
var str =
|
|
647
|
-
if (size) str +=
|
|
649
|
+
var str = "".concat($prefixCls, "-select-more-popover ").concat($prefixCls, "-scrollbar-small");
|
|
650
|
+
if (size) str += " ".concat($prefixCls, "-select-more-popover-").concat(size);
|
|
648
651
|
if (morePopoverClassName) str += ' ' + morePopoverClassName;
|
|
649
652
|
return str;
|
|
650
653
|
};
|
|
@@ -1267,7 +1270,8 @@ var Select = function Select(props) {
|
|
|
1267
1270
|
overlay: jsx(Fragment, {
|
|
1268
1271
|
children: SelectPopoverMemo
|
|
1269
1272
|
}),
|
|
1270
|
-
overlayClassName: handleClassPopover()
|
|
1273
|
+
overlayClassName: handleClassPopover(),
|
|
1274
|
+
getPopupContainer: getPopupContainer
|
|
1271
1275
|
}, {
|
|
1272
1276
|
children: ContentMemo
|
|
1273
1277
|
}));
|
|
@@ -1280,7 +1284,8 @@ var Select = function Select(props) {
|
|
|
1280
1284
|
children: [OutLabelMemo, handDropdown(), jsx(HelperText, {
|
|
1281
1285
|
className: "select-error-text",
|
|
1282
1286
|
error: error,
|
|
1283
|
-
helperText: helperText
|
|
1287
|
+
helperText: helperText,
|
|
1288
|
+
hideErrorDom: hideErrorDom
|
|
1284
1289
|
})]
|
|
1285
1290
|
}));
|
|
1286
1291
|
};
|
package/SelectInput/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import Select from '../Select/index.js';
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
3
4
|
import '../_verture/defineProperty-0590dc61.js';
|
|
4
5
|
import '../_verture/toConsumableArray-f8047a75.js';
|
|
5
6
|
import '../_verture/slicedToArray-d7722f4b.js';
|
|
@@ -9,8 +10,8 @@ import '../Empty/index.js';
|
|
|
9
10
|
import 'clsx';
|
|
10
11
|
import '../_verture/useFormatMessage-ac9d6acf.js';
|
|
11
12
|
import '@para-ui/core/GlobalContext';
|
|
12
|
-
import '../_verture/style-inject.es-300983ab.js';
|
|
13
13
|
import '../_verture/useGlobalProps-af9a2af6.js';
|
|
14
|
+
import '../_verture/style-inject.es-300983ab.js';
|
|
14
15
|
import '../Label/index.js';
|
|
15
16
|
import '../Help/index.js';
|
|
16
17
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -34,7 +35,7 @@ import '../HelperText/index.js';
|
|
|
34
35
|
|
|
35
36
|
var SelectInput = function SelectInput(props) {
|
|
36
37
|
var handClass = function handClass() {
|
|
37
|
-
var str = '
|
|
38
|
+
var str = $prefixCls + '-select-input';
|
|
38
39
|
if (props.className) str += ' ' + props.className;
|
|
39
40
|
return str;
|
|
40
41
|
};
|
package/Selector/index.d.ts
CHANGED
|
@@ -3,25 +3,9 @@
|
|
|
3
3
|
* @date 2022/7/20 11:22 AM
|
|
4
4
|
* @description 选择器
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import { FunctionComponent } from 'react';
|
|
7
|
+
import { SelectorFieldConfigProps, SelectorProps } from './interface';
|
|
7
8
|
import './index.scss';
|
|
8
|
-
export
|
|
9
|
-
/** className */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** 样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 布局方式 左右 / 上下 / 无选中数据 */
|
|
14
|
-
layout?: 'lr' | 'tb';
|
|
15
|
-
/** 请求上下文 */
|
|
16
|
-
ctx?: string;
|
|
17
|
-
/** 请求地址 */
|
|
18
|
-
url?: string;
|
|
19
|
-
/** 本地数据源 */
|
|
20
|
-
data?: any;
|
|
21
|
-
/** 叶子节点是否可选,如用户,默认可选 */
|
|
22
|
-
leafNodeCheck?: boolean;
|
|
23
|
-
/** 分支/层级节点是否可选,如组织,默认可选 */
|
|
24
|
-
branchNodeCheck?: boolean;
|
|
25
|
-
}
|
|
9
|
+
export declare const handFieldConfig: (fieldConfig?: SelectorFieldConfigProps, rowKey?: string) => SelectorFieldConfigProps;
|
|
26
10
|
declare const Selector: FunctionComponent<SelectorProps>;
|
|
27
11
|
export default Selector;
|