@para-ui/core 4.0.0-rc → 4.0.0-rc.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.d.ts +1 -1
- package/AutoBox/index.js +12 -12
- package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +15 -21
- package/Badge/index.d.ts +23 -0
- package/Badge/index.js +54 -0
- package/Breadcrumbs/index.js +8 -8
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +8 -38
- package/Carousel/index.d.ts +6 -6
- package/Carousel/index.js +5 -5
- package/Cascader/Cascader.d.ts +10 -10
- package/Cascader/OptionList/Column.d.ts +3 -3
- package/Cascader/OptionList/index.d.ts +2 -2
- package/Cascader/index.d.ts +1 -1
- package/Cascader/index.js +4 -2
- package/Cascader/lang/en_US.d.ts +5 -0
- package/Cascader/lang/index.d.ts +11 -0
- package/Cascader/lang/zh_CN.d.ts +5 -0
- package/Cascader/utils/treeUtil.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +5 -5
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +4 -4
- package/Collapse/index.js +5 -5
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +21 -21
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +43 -52
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/CopyText/index.js +3 -3
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -9
- package/DatePicker/util.d.ts +1 -1
- package/Descriptions/index.d.ts +38 -0
- package/Descriptions/index.js +23 -0
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +18 -13
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +13 -13
- package/Drawer/index.js +40 -38
- package/Drawer/interface.d.ts +4 -6
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +1 -1
- package/DynamicMultiBox/index.js +38 -35
- package/DynamicMultiBox/interface.d.ts +8 -8
- package/DynamicMultiBox/rowForm.d.ts +3 -1
- package/Empty/index.d.ts +1 -1
- package/Empty/index.js +3 -3
- package/Form/index.d.ts +12 -13
- package/Form/index.js +10 -8
- package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
- package/FormItem/compoments/formFile/index.d.ts +2 -2
- package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/FormItem/compoments/formSelect/index.d.ts +7 -7
- package/FormItem/errorTips.d.ts +3 -3
- package/FormItem/index.d.ts +5 -5
- package/FormItem/index.js +3 -2
- package/FormItem/lang/en_US.d.ts +10 -0
- package/FormItem/lang/index.d.ts +21 -0
- package/FormItem/lang/zh_CN.d.ts +10 -0
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/dialog.d.ts +26 -26
- package/FunctionModal/index.d.ts +6 -6
- package/FunctionModal/index.js +9 -10
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/confirmLocale.d.ts +1 -2
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +3 -2
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +2 -2
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +4 -2
- package/InputNumber/index.js +27 -15
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +17 -17
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +13 -13
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +20 -17
- package/Modal/lang/index.d.ts +8 -0
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +4 -4
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +49 -49
- package/PageHeader/index.js +45 -34
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +19 -19
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +8 -7
- package/Progress/Line.d.ts +10 -10
- package/Progress/Steps.d.ts +2 -2
- package/Progress/index.d.ts +12 -12
- package/Progress/index.js +43 -42
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +3 -3
- package/README.md +7 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +5 -5
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +4 -4
- package/Search/index.js +1 -1
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +26 -34
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +10 -10
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +4 -4
- package/Slider/index.js +1 -1
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +4 -4
- package/Status/index.js +6 -7
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +23 -23
- package/Styles/theme.scss +1 -0
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +38 -21
- package/Switch/lang/en_US.d.ts +4 -0
- package/Switch/lang/index.d.ts +9 -0
- package/Switch/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +35 -35
- package/Table/interface.d.ts +4 -4
- package/Table/tableBodyElement/index.d.ts +1 -1
- package/Table/tableBodyInterface.d.ts +2 -2
- package/Table/tableContainer/index.d.ts +1 -1
- package/Table/tableElement/index.d.ts +1 -1
- package/Table/tableHeadElement/index.d.ts +1 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +6 -6
- package/Table/tdElement/index.d.ts +1 -1
- package/Table/thElement/index.d.ts +2 -2
- package/Table/trElement/index.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +27 -19
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +25 -25
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +45 -27
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.d.ts +1 -1
- package/TextField/index.js +19 -16
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -2
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +14 -14
- package/Title/index.d.ts +4 -4
- package/Title/index.js +3 -3
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +18 -11
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +22 -25
- package/Tree/OperateBar/index.d.ts +4 -4
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +2 -2
- package/Tree/interface.d.ts +4 -4
- package/Tree/utils/tools.d.ts +1 -1
- package/Upload/Dragger/index.d.ts +2 -2
- package/Upload/ErroTip/index.d.ts +1 -1
- package/Upload/index.d.ts +2 -2
- package/Upload/index.js +10 -11
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-8469865e.js → index-024bbc9b.js} +3 -3
- package/_verture/{index-19947788.js → index-05f7bf11.js} +3 -1
- package/_verture/{index-e1b800aa.js → index-50f56891.js} +49 -25
- package/_verture/{index-1c8d3e94.js → index-649b450f.js} +102 -48
- package/_verture/{index-47297a40.js → index-692e29c1.js} +53 -46
- package/_verture/{modalContext-670eab09.js → modalContext-11c51a45.js} +25 -25
- package/index.d.ts +4 -0
- package/index.js +14 -11
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +40 -2
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +4 -2
- package/umd/AutoBox.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +2 -2
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/Collapse.js +5 -5
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Descriptions.js +1 -0
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +2 -2
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Empty.js +1 -1
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +4 -4
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +2 -2
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +2 -2
- package/umd/Modal.js +4 -4
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +2 -2
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +2 -2
- package/umd/Progress.js +3 -3
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +7 -7
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Slider.js +1 -1
- package/umd/Status.js +2 -2
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +6 -6
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +7 -7
- package/umd/ToggleButton.js +4 -4
- package/umd/Transfer.js +3 -3
- package/umd/Tree.js +2 -2
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
package/Switch/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-0d9802f7.js';
|
|
8
8
|
import Label from '../Label/index.js';
|
|
9
9
|
import { Tooltip } from '../Tooltip/index.js';
|
|
10
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
10
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
12
|
import '../_verture/typeof-adeedc13.js';
|
|
12
13
|
import '../Help/index.js';
|
|
@@ -17,12 +18,28 @@ import 'react';
|
|
|
17
18
|
import 'rc-tooltip';
|
|
18
19
|
import 'rc-tooltip/lib/placements';
|
|
19
20
|
import '@para-ui/icons/Forbid';
|
|
21
|
+
import '@para-ui/core/GlobalContext';
|
|
20
22
|
|
|
21
|
-
var
|
|
23
|
+
var en = {
|
|
24
|
+
ing: 'In Progress'
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var zh = {
|
|
28
|
+
ing: '正在进行中'
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var localeJson = {
|
|
32
|
+
zh: zh,
|
|
33
|
+
en: en
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/3 下午5:58\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-switch {\n position: relative;\n display: inline-block;\n width: 32px;\n height: 16px;\n vertical-align: middle;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.paraui-v4-switch .component-switch {\n border: none;\n cursor: pointer;\n}\n.paraui-v4-switch:before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n border-radius: 8px;\n background-color: rgb(212, 218, 227);\n content: \"\";\n transition: all 0.2s;\n}\na .paraui-v4-switch:focus {\n outline: 0;\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:focus {\n box-shadow: none;\n}\n.paraui-v4-switch:focus:hover {\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:before {\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-loading *, .paraui-v4-switch.component-switch-disabled * {\n box-shadow: none;\n}\n.paraui-v4-switch-loading .component-switch-inner::before, .paraui-v4-switch.component-switch-disabled .component-switch-inner::before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n background-color: rgba(255, 255, 255, 0.5);\n content: \"\";\n z-index: 100;\n}\n.paraui-v4-switch .component-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n font-size: 14px;\n transition: margin 0.2s;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-inner {\n margin: 0 25px 0 7px;\n}\n.paraui-v4-switch .component-switch-handle {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n transition: all 0.2s ease-in-out;\n}\n.paraui-v4-switch .component-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgb(255, 255, 255);\n border-radius: 9px;\n box-shadow: none;\n transition: all 0.2s ease-in-out;\n content: \"\";\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle {\n left: calc(100% - 14px);\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle::before {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active .component-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active.component-switch-checked .component-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.paraui-v4-switch .component-switch-loading-icon {\n position: relative;\n top: 1px;\n color: rgb(46, 101, 230);\n font-size: 10px;\n vertical-align: top;\n animation: switchLoadingCircle 1s infinite linear;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-loading-icon {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-small {\n min-width: 28px;\n height: 14px;\n line-height: 14px;\n}\n.paraui-v4-switch-small .component-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 14px;\n}\n.paraui-v4-switch-small .component-switch-handle {\n width: 12px;\n height: 12px;\n top: 3px;\n left: 2px;\n}\n.paraui-v4-switch-small .component-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-inner {\n margin: 0 18px 0 5px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n@keyframes switchLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.paraui-v4-switch-disabled::before {\n background-color: rgb(225, 229, 236);\n}\n.paraui-v4-switch-disabled.component-switch-checked::before {\n background-color: rgb(151, 178, 242);\n}\n\n.component-label-box {\n display: flex;\n align-items: center;\n}\n.component-label-box .sup-text {\n color: rgb(92, 101, 115);\n font-size: 14px;\n margin-left: 10px;\n line-height: 16px;\n}\n.component-label-box .sup-text > a {\n text-decoration: none;\n cursor: pointer;\n color: rgb(46, 101, 230);\n}\n.component-label-box .sup-text > a:hover {\n color: rgb(87, 131, 235);\n}\n\n.paraui-v4-switch-label {\n display: inline-flex;\n align-items: flex-end;\n}\n.paraui-v4-switch-label .component-disabled-text {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-switch-label .component-desc-text {\n margin-bottom: 0;\n margin-right: 10px;\n line-height: 16px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help {\n line-height: 1;\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help svg {\n top: 0;\n}\n.paraui-v4-switch-label .paraui-v4-label-text-container {\n display: flex;\n flex-direction: column;\n}\n\n.paraui-v4-switch-desc-end {\n flex-direction: row-reverse;\n}\n.paraui-v4-switch-desc-end .component-desc-text {\n margin-right: 0;\n}\n\n.component-switch-disabled > div:nth-child(1)::before {\n transition: all 2s ease-in-out;\n}";
|
|
22
37
|
styleInject(css_248z);
|
|
23
38
|
|
|
24
39
|
//Switch 开关
|
|
25
40
|
var Switch = function Switch(props) {
|
|
41
|
+
var _clsx;
|
|
42
|
+
var intl = useFormatMessage('Switch', localeJson);
|
|
26
43
|
props.size;
|
|
27
44
|
var loading = props.loading,
|
|
28
45
|
disabled = props.disabled,
|
|
@@ -35,15 +52,17 @@ var Switch = function Switch(props) {
|
|
|
35
52
|
descTooltip = props.descTooltip,
|
|
36
53
|
disabledTooltip = props.disabledTooltip,
|
|
37
54
|
_props$loadingTitle = props.loadingTitle,
|
|
38
|
-
loadingTitle = _props$loadingTitle === void 0 ?
|
|
55
|
+
loadingTitle = _props$loadingTitle === void 0 ? intl({
|
|
56
|
+
id: 'ing'
|
|
57
|
+
}) : _props$loadingTitle,
|
|
39
58
|
_props$labelPlacement = props.labelPlacement,
|
|
40
|
-
labelPlacement = _props$labelPlacement === void 0 ?
|
|
59
|
+
labelPlacement = _props$labelPlacement === void 0 ? 'top' : _props$labelPlacement,
|
|
41
60
|
_props$descPlacement = props.descPlacement,
|
|
42
|
-
descPlacement = _props$descPlacement === void 0 ?
|
|
61
|
+
descPlacement = _props$descPlacement === void 0 ? 'start' : _props$descPlacement,
|
|
43
62
|
supText = props.supText,
|
|
44
63
|
restProps = __rest(props, ["size", "loading", "disabled", "className", "label", "required", "desc", "labelTooltip", "descTooltip", "disabledTooltip", "loadingTitle", "labelPlacement", "descPlacement", "supText"]);
|
|
45
64
|
//cls
|
|
46
|
-
var classes = clsx("".concat($prefixCls, "-switch"),
|
|
65
|
+
var classes = clsx("".concat($prefixCls, "-switch"), (_clsx = {}, _defineProperty(_clsx, "".concat($prefixCls, "-switch-loading"), loading), _defineProperty(_clsx, "".concat($prefixCls, "-switch-disabled"), disabled), _clsx), className);
|
|
47
66
|
//label cls
|
|
48
67
|
var labelClasses = clsx("".concat($prefixCls, "-switch-label"), "".concat($prefixCls, "-switch-label-").concat(labelPlacement), "".concat($prefixCls, "-switch-desc-").concat(descPlacement));
|
|
49
68
|
//loading circle
|
|
@@ -59,22 +78,20 @@ var Switch = function Switch(props) {
|
|
|
59
78
|
return disabled && disabledTooltip ? jsx(Tooltip, Object.assign({
|
|
60
79
|
disabled: true
|
|
61
80
|
}, disabledTooltip, {
|
|
62
|
-
children:
|
|
63
|
-
className:
|
|
81
|
+
children: jsxs("div", Object.assign({
|
|
82
|
+
className: "".concat($rcPrefixCls, "-label-box")
|
|
64
83
|
}, {
|
|
65
|
-
children:
|
|
66
|
-
className:
|
|
84
|
+
children: [jsx(RcSwitch, Object.assign({
|
|
85
|
+
className: classes
|
|
86
|
+
}, restProps, {
|
|
87
|
+
prefixCls: "".concat($rcPrefixCls, "-switch"),
|
|
88
|
+
disabled: disabled || loading,
|
|
89
|
+
loadingIcon: loadingIcon
|
|
90
|
+
})), jsx("span", Object.assign({
|
|
91
|
+
className: "sup-text"
|
|
67
92
|
}, {
|
|
68
|
-
children:
|
|
69
|
-
|
|
70
|
-
disabled: disabled || loading,
|
|
71
|
-
loadingIcon: loadingIcon
|
|
72
|
-
})), jsx("span", Object.assign({
|
|
73
|
-
className: "sup-text"
|
|
74
|
-
}, {
|
|
75
|
-
children: supText && supText
|
|
76
|
-
}))]
|
|
77
|
-
}))
|
|
93
|
+
children: supText && supText
|
|
94
|
+
}))]
|
|
78
95
|
}))
|
|
79
96
|
})) : jsx(Fragment, {
|
|
80
97
|
children: loadingTitle && loading ? jsx(Tooltip, Object.assign({
|
|
@@ -119,7 +136,7 @@ var Switch = function Switch(props) {
|
|
|
119
136
|
label: desc,
|
|
120
137
|
required: required
|
|
121
138
|
}, descTooltip, {
|
|
122
|
-
className: "".concat($rcPrefixCls, "-desc-text ").concat(disabled ? "".concat($rcPrefixCls, "-disabled-text") :
|
|
139
|
+
className: "".concat($rcPrefixCls, "-desc-text ").concat(disabled ? "".concat($rcPrefixCls, "-disabled-text") : '')
|
|
123
140
|
})), jsxs("span", Object.assign({
|
|
124
141
|
className: "".concat($prefixCls, "-label-text-container")
|
|
125
142
|
}, {
|
|
@@ -127,7 +144,7 @@ var Switch = function Switch(props) {
|
|
|
127
144
|
label: label,
|
|
128
145
|
required: required
|
|
129
146
|
}, labelTooltip, {
|
|
130
|
-
className: "".concat($rcPrefixCls, "-switch-text ").concat(disabled ? "".concat($rcPrefixCls, "-disabled-text") :
|
|
147
|
+
className: "".concat($rcPrefixCls, "-switch-text ").concat(disabled ? "".concat($rcPrefixCls, "-disabled-text") : '')
|
|
131
148
|
})), renderSwitch()]
|
|
132
149
|
}))]
|
|
133
150
|
}));
|
package/Table/index.js
CHANGED
|
@@ -100,14 +100,14 @@ var handGetReqParams = function handGetReqParams(obj) {
|
|
|
100
100
|
} else {
|
|
101
101
|
val = encodeURIComponent(val);
|
|
102
102
|
}
|
|
103
|
-
paramsArr.push(key
|
|
103
|
+
paramsArr.push("".concat(key, "=").concat(val));
|
|
104
104
|
}
|
|
105
105
|
var paramsStr = paramsArr.join('&');
|
|
106
106
|
var pos = str.indexOf('?');
|
|
107
107
|
if (pos !== -1) {
|
|
108
108
|
str += (pos === str.length - 1 ? '' : '&') + paramsStr;
|
|
109
109
|
} else {
|
|
110
|
-
str +=
|
|
110
|
+
str += "?".concat(paramsStr);
|
|
111
111
|
}
|
|
112
112
|
return str;
|
|
113
113
|
};
|
|
@@ -116,7 +116,7 @@ var handGetReqParams = function handGetReqParams(obj) {
|
|
|
116
116
|
* */
|
|
117
117
|
var getStringInNumber = function getStringInNumber(str) {
|
|
118
118
|
if (typeof str === 'number') return str;
|
|
119
|
-
var strHand = str.replace(/[^0-9$]/
|
|
119
|
+
var strHand = str.replace(/[^0-9$]/gi, '');
|
|
120
120
|
return Number(strHand);
|
|
121
121
|
};
|
|
122
122
|
/**
|
|
@@ -185,7 +185,7 @@ var TableHeadElement = function TableHeadElement(props) {
|
|
|
185
185
|
otherProps = __rest(props, ["className", "style", "children"]);
|
|
186
186
|
var handClass = function handClass() {
|
|
187
187
|
var str = 'table-head-element';
|
|
188
|
-
if (className) str +=
|
|
188
|
+
if (className) str += " ".concat(className);
|
|
189
189
|
return str;
|
|
190
190
|
};
|
|
191
191
|
return jsx("thead", Object.assign({
|
|
@@ -206,7 +206,7 @@ var TrElement = function TrElement(props) {
|
|
|
206
206
|
otherProps = __rest(props, ["className", "style", "children"]);
|
|
207
207
|
var handClass = function handClass() {
|
|
208
208
|
var str = 'tr-element';
|
|
209
|
-
if (className) str +=
|
|
209
|
+
if (className) str += " ".concat(className);
|
|
210
210
|
return str;
|
|
211
211
|
};
|
|
212
212
|
return jsx("tr", Object.assign({
|
|
@@ -266,14 +266,14 @@ var ThElement = function ThElement(props) {
|
|
|
266
266
|
// 鼠标移动事件
|
|
267
267
|
var mousemove = function mousemove(e) {
|
|
268
268
|
var result = handMinWidth(e);
|
|
269
|
-
constData.current.lineDom.style.left = result.left
|
|
269
|
+
constData.current.lineDom.style.left = "".concat(result.left, "px");
|
|
270
270
|
};
|
|
271
271
|
// 鼠标抬起
|
|
272
272
|
var mouseup = function mouseup(e) {
|
|
273
273
|
var _a, _b;
|
|
274
274
|
var dom = domRef.current;
|
|
275
275
|
var result = handMinWidth(e);
|
|
276
|
-
dom.style.width = result.width
|
|
276
|
+
dom.style.width = "".concat(result.width, "px");
|
|
277
277
|
(_a = constData.current.tableContainer) === null || _a === void 0 ? void 0 : _a.removeChild(constData.current.lineDom);
|
|
278
278
|
(_b = constData.current.table) === null || _b === void 0 ? void 0 : _b.classList.remove("".concat($prefixCls, "-table-draggable"));
|
|
279
279
|
onDragDown && onDragDown(result);
|
|
@@ -301,9 +301,9 @@ var ThElement = function ThElement(props) {
|
|
|
301
301
|
var div = document.createElement('div');
|
|
302
302
|
div.setAttribute('class', 'table-pos-line');
|
|
303
303
|
// 定位线高度
|
|
304
|
-
div.style.height = (tableDomHeight > tableContainerHeight ? tableContainerHeight : tableDomHeight
|
|
304
|
+
div.style.height = "".concat(tableDomHeight > tableContainerHeight ? tableContainerHeight : tableDomHeight, "px");
|
|
305
305
|
// 定位线的居左距离
|
|
306
|
-
div.style.left = constData.current.th.offsetLeft + constData.current.th.offsetWidth
|
|
306
|
+
div.style.left = "".concat(constData.current.th.offsetLeft + constData.current.th.offsetWidth, "px");
|
|
307
307
|
constData.current.lineDom = div;
|
|
308
308
|
constData.current.tableContainer.appendChild(div);
|
|
309
309
|
};
|
|
@@ -319,7 +319,7 @@ var ThElement = function ThElement(props) {
|
|
|
319
319
|
var handClass = function handClass() {
|
|
320
320
|
var str = 'th-element';
|
|
321
321
|
if (draggable) str += ' th-element-draggable';
|
|
322
|
-
if (className) str +=
|
|
322
|
+
if (className) str += " ".concat(className);
|
|
323
323
|
return str;
|
|
324
324
|
};
|
|
325
325
|
return jsxs("th", Object.assign({
|
|
@@ -765,7 +765,7 @@ var TableHead$1 = function TableHead(props) {
|
|
|
765
765
|
var w = item.width || '';
|
|
766
766
|
var name = item.name || '';
|
|
767
767
|
var wDrag = headDataConfig[name] && headDataConfig[name].width;
|
|
768
|
-
if (wDrag) w = wDrag
|
|
768
|
+
if (wDrag) w = "".concat(wDrag, "px");
|
|
769
769
|
return w;
|
|
770
770
|
};
|
|
771
771
|
// 内容列memo
|
|
@@ -781,7 +781,7 @@ var TableHead$1 = function TableHead(props) {
|
|
|
781
781
|
var str = '';
|
|
782
782
|
if (item.className) str += item.className;
|
|
783
783
|
if (fixedColumn && item.fixed) {
|
|
784
|
-
str +=
|
|
784
|
+
str += " table-fixed-dom-".concat(item.fixed);
|
|
785
785
|
// 固定左边,判断是否是最后一个
|
|
786
786
|
if (item.fixed === 'left' && item.paraui_fixed_left_last) {
|
|
787
787
|
str += ' table-fixed-dom-left-last';
|
|
@@ -799,10 +799,10 @@ var TableHead$1 = function TableHead(props) {
|
|
|
799
799
|
};
|
|
800
800
|
if (fixedColumn && item.fixed && item.width) {
|
|
801
801
|
if (item.fixed === 'left') {
|
|
802
|
-
json.left = item.paraui_left_width
|
|
802
|
+
json.left = "".concat(item.paraui_left_width, "px");
|
|
803
803
|
}
|
|
804
804
|
if (item.fixed === 'right') {
|
|
805
|
-
json.right = item.paraui_right_width
|
|
805
|
+
json.right = "".concat(item.paraui_right_width, "px");
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
return Object.assign(Object.assign({}, json), item.style);
|
|
@@ -896,7 +896,7 @@ var TableHead$1 = function TableHead(props) {
|
|
|
896
896
|
width: operate.width
|
|
897
897
|
};
|
|
898
898
|
if (fixedColumn) {
|
|
899
|
-
json.right = showColumns ===
|
|
899
|
+
json.right = showColumns === 'inside' ? '53px' : '0px';
|
|
900
900
|
}
|
|
901
901
|
return Object.assign(Object.assign({}, json), operate.style);
|
|
902
902
|
};
|
|
@@ -1032,7 +1032,7 @@ var TableBodyElement = function TableBodyElement(props) {
|
|
|
1032
1032
|
otherProps = __rest(props, ["className", "style", "children"]);
|
|
1033
1033
|
var handClass = function handClass() {
|
|
1034
1034
|
var str = 'table-body-element';
|
|
1035
|
-
if (className) str +=
|
|
1035
|
+
if (className) str += " ".concat(className);
|
|
1036
1036
|
return str;
|
|
1037
1037
|
};
|
|
1038
1038
|
return jsx("tbody", Object.assign({
|
|
@@ -1053,7 +1053,7 @@ var TdElement = function TdElement(props) {
|
|
|
1053
1053
|
otherProps = __rest(props, ["className", "style", "children"]);
|
|
1054
1054
|
var handClass = function handClass() {
|
|
1055
1055
|
var str = 'td-element';
|
|
1056
|
-
if (className) str +=
|
|
1056
|
+
if (className) str += " ".concat(className);
|
|
1057
1057
|
return str;
|
|
1058
1058
|
};
|
|
1059
1059
|
return jsx("td", Object.assign({
|
|
@@ -1260,7 +1260,7 @@ var TableBody = function TableBody(props) {
|
|
|
1260
1260
|
// 处理className
|
|
1261
1261
|
var handClassNoData = function handClassNoData() {
|
|
1262
1262
|
var str = 'table-no-data';
|
|
1263
|
-
if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.size) str +=
|
|
1263
|
+
if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.size) str += " table-no-data-".concat(emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.size);
|
|
1264
1264
|
return str;
|
|
1265
1265
|
};
|
|
1266
1266
|
return jsx(TrElement, Object.assign({
|
|
@@ -1412,7 +1412,7 @@ var TableBody = function TableBody(props) {
|
|
|
1412
1412
|
};
|
|
1413
1413
|
var handContentClass = function handContentClass(item) {
|
|
1414
1414
|
var str = 'table-content-columms';
|
|
1415
|
-
if (item.className) str +=
|
|
1415
|
+
if (item.className) str += " ".concat(item.className);
|
|
1416
1416
|
// 排序
|
|
1417
1417
|
if (sortTable && item.name && item.sort !== false) {
|
|
1418
1418
|
var index = orderFieldArr.indexOf(item.name);
|
|
@@ -1428,7 +1428,7 @@ var TableBody = function TableBody(props) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
if (item.fixed && fixedColumn) {
|
|
1431
|
-
str +=
|
|
1431
|
+
str += " table-fixed-dom-".concat(item.fixed);
|
|
1432
1432
|
// 固定左边,判断是否是最后一个
|
|
1433
1433
|
if (item.fixed === 'left' && item.paraui_fixed_left_last) {
|
|
1434
1434
|
str += ' table-fixed-dom-left-last';
|
|
@@ -1444,10 +1444,10 @@ var TableBody = function TableBody(props) {
|
|
|
1444
1444
|
var json = {};
|
|
1445
1445
|
if (fixedColumn && item.fixed && item.width) {
|
|
1446
1446
|
if (item.fixed === 'left') {
|
|
1447
|
-
json.left = item.paraui_left_width
|
|
1447
|
+
json.left = "".concat(item.paraui_left_width, "px");
|
|
1448
1448
|
}
|
|
1449
1449
|
if (item.fixed === 'right') {
|
|
1450
|
-
json.right = item.paraui_right_width
|
|
1450
|
+
json.right = "".concat(item.paraui_right_width, "px");
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
1453
|
return json;
|
|
@@ -1480,7 +1480,7 @@ var TableBody = function TableBody(props) {
|
|
|
1480
1480
|
var TableOperateUseCallback = useCallback(function (row, rowIndex) {
|
|
1481
1481
|
if (operate) {
|
|
1482
1482
|
var colSpan = 1;
|
|
1483
|
-
if (showColumns ===
|
|
1483
|
+
if (showColumns === 'inside') colSpan = 2;
|
|
1484
1484
|
var handOperate = function handOperate() {
|
|
1485
1485
|
if (operate.render) return operate.render(row);
|
|
1486
1486
|
if (operate.operateBtnRender) {
|
|
@@ -1539,7 +1539,7 @@ var TableBody = function TableBody(props) {
|
|
|
1539
1539
|
return jsx(TrElement, Object.assign({
|
|
1540
1540
|
className: "more-table-row",
|
|
1541
1541
|
style: {
|
|
1542
|
-
height: lineHeight
|
|
1542
|
+
height: "".concat(lineHeight, "px")
|
|
1543
1543
|
},
|
|
1544
1544
|
onClick: clickMore
|
|
1545
1545
|
}, {
|
|
@@ -1562,13 +1562,13 @@ var TableBody = function TableBody(props) {
|
|
|
1562
1562
|
children: rowData.map(function (row, index) {
|
|
1563
1563
|
var str = 'table-body-row';
|
|
1564
1564
|
if (rowClassMapping && rowClassMapping[row[rowKey]]) {
|
|
1565
|
-
str +=
|
|
1565
|
+
str += " ".concat(rowClassMapping[row[rowKey]]);
|
|
1566
1566
|
}
|
|
1567
1567
|
return jsxs(Fragment$1, {
|
|
1568
1568
|
children: [jsxs(TrElement, Object.assign({
|
|
1569
1569
|
className: str,
|
|
1570
1570
|
style: {
|
|
1571
|
-
height: lineHeight
|
|
1571
|
+
height: "".concat(lineHeight, "px")
|
|
1572
1572
|
},
|
|
1573
1573
|
onClick: function onClick(e) {
|
|
1574
1574
|
onClickRow && onClickRow(row, e);
|
|
@@ -1730,7 +1730,7 @@ var TableContainer = function TableContainer(props) {
|
|
|
1730
1730
|
otherProps = __rest(props, ["cRef", "className", "style", "children"]);
|
|
1731
1731
|
var handClass = function handClass() {
|
|
1732
1732
|
var str = 'table-container';
|
|
1733
|
-
if (className) str +=
|
|
1733
|
+
if (className) str += " ".concat(className);
|
|
1734
1734
|
return str;
|
|
1735
1735
|
};
|
|
1736
1736
|
return jsx("div", Object.assign({
|
|
@@ -1754,7 +1754,7 @@ var TableElement = function TableElement(props) {
|
|
|
1754
1754
|
var handClass = function handClass() {
|
|
1755
1755
|
var str = 'table-element';
|
|
1756
1756
|
if (fixedColumn) str += ' table-element-fixed-column';
|
|
1757
|
-
if (className) str +=
|
|
1757
|
+
if (className) str += " ".concat(className);
|
|
1758
1758
|
return str;
|
|
1759
1759
|
};
|
|
1760
1760
|
return jsx("table", Object.assign({
|
|
@@ -1765,7 +1765,7 @@ var TableElement = function TableElement(props) {
|
|
|
1765
1765
|
}));
|
|
1766
1766
|
};
|
|
1767
1767
|
|
|
1768
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\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 position: relative;\n}\n.paraui-v4-table.paraui-v4-table-draggable * {\n user-select: none !important;\n}\n.paraui-v4-table.paraui-v4-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-radio.paraui-v4-table-check .table-radio {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check.paraui-v4-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table .paraui-v4-empty {\n overflow: hidden;\n}\n.paraui-v4-table.paraui-v4-table-load.paraui-v4-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v4-table.paraui-v4-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v4-table.paraui-v4-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-load-more.paraui-v4-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v4-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v4-table > .table-contain > table {\n height: auto;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v4-table > .table-contain > table > .table-head > tr th {\n height: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box {\n height: 47px;\n line-height: 47px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgb(92, 101, 115);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(244, 66, 66);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums {\n width: 53px;\n cursor: pointer;\n border-left: 1px solid rgb(234, 236, 241);\n right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 16px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 18px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(180deg);\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgb(234, 236, 241);\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 16px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v4-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(87, 131, 235);\n z-index: 1000;\n}\n.paraui-v4-table > .table-pagination {\n width: 100%;\n height: 60px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgb(92, 101, 115);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgb(212, 218, 227);\n margin: 0 12px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v4-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v4-table > .table-pagination .refresh-btn {\n margin-left: 16px;\n}\n\n.paraui-v4-table-show-colums-popover > .component-popover-content {\n width: 290px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled {\n cursor: inherit;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled > span {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled:hover {\n background: transparent;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n}\n\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 4px;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n width: 32px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 32px);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item.filter-select-item-select > span {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select.filter-select-none {\n text-align: center;\n padding: 20px 0;\n}\n.paraui-v4-filter-popover.paraui-v4-filter-popover-default > .component-popover-content {\n width: 290px;\n}";
|
|
1768
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-table {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: white;\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 position: relative;\n}\n.paraui-v4-table.paraui-v4-table-draggable * {\n user-select: none !important;\n}\n.paraui-v4-table.paraui-v4-table-fixed-table > .table-contain > table {\n table-layout: fixed;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-checkbox {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-radio {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn > .table-contain > table .table-expandable {\n left: 0;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-radio.paraui-v4-table-check .table-radio {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check .table-expandable {\n left: 48px;\n}\n.paraui-v4-table.paraui-v4-table-fixed-cloumn.paraui-v4-table-expandable.paraui-v4-table-check.paraui-v4-table-radio .table-expandable {\n left: 80px;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-no-data > .table-container > table .paraui-v4-empty {\n overflow: hidden;\n}\n.paraui-v4-table.paraui-v4-table-load.paraui-v4-table-no-data > .table-container > table {\n height: auto;\n}\n.paraui-v4-table.paraui-v4-table-pagination > .table-contain {\n height: calc(100% - 60px);\n}\n.paraui-v4-table.paraui-v4-table-pagination.table-load-more > .table-contain {\n height: 100%;\n}\n.paraui-v4-table.paraui-v4-table-load-more.paraui-v4-table-pagination > .table-contain {\n height: 100%;\n}\n.paraui-v4-table > .table-contain {\n height: 100%;\n position: relative;\n}\n.paraui-v4-table > .table-contain > table {\n height: auto;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox > label {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table .table-checkbox .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-radio > label {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table .table-radio .table-header-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table > .table-contain > table .table-expandable > svg {\n vertical-align: middle;\n}\n.paraui-v4-table > .table-contain > table > .table-head {\n width: 100%;\n white-space: nowrap;\n}\n.paraui-v4-table > .table-contain > table > .table-head > tr th {\n height: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-scroll tr th {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-serial-number .table-header-box .table-header-title {\n padding-right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box {\n height: 47px;\n line-height: 47px;\n position: relative;\n padding: 0 8px;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title {\n max-width: 100%;\n display: flex;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-title > .table-header-title-label {\n width: 100%;\n color: rgb(92, 101, 115);\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span {\n width: 20px;\n height: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > svg {\n font-size: 12px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .up-svg {\n position: relative;\n top: 3px;\n transform: scale(0.8);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-sort-svg > span > .down-svg {\n position: relative;\n top: -3px;\n transform: scale(0.8);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span {\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n cursor: pointer;\n border-radius: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter > span > svg {\n font-size: 14px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-show > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box > .table-header-filter.table-header-filter-select > span:after {\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: rgb(244, 66, 66);\n content: \"\";\n right: 3px;\n top: 2px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-filter > .table-header-title {\n padding-right: 8px;\n max-width: calc(100% - 20px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort.table-header-box-filter > .table-header-title {\n max-width: calc(100% - 40px);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-asc > .table-sort-svg > span > .up-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-header-box.table-header-box-sort-desc > .table-sort-svg > span > .down-svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums {\n width: 53px;\n cursor: pointer;\n border-left: 1px solid rgb(234, 236, 241);\n right: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box > svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-table > .table-contain > table > .table-head .show-colums .table-header-box:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-head.table-head-no-btn tr th:first-child .table-header-box {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn > .table-header-box {\n width: 32px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-head .table-head-btn:first-child > .table-header-box {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body {\n width: 100%;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-scroll tr td {\n max-width: 240px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td {\n background-color: white;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr td.table-operate {\n padding-right: 16px;\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:nth-of-type(2n) td {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr:hover td {\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg {\n transition: all 0.3s;\n cursor: pointer;\n font-size: 18px;\n color: rgb(92, 101, 115);\n transform: rotate(270deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > svg:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table > .table-contain > table > .table-body tr .table-expandable > .expand {\n transform: rotate(360deg);\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row {\n cursor: pointer;\n position: sticky;\n bottom: 0;\n z-index: 10;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row .more-btn {\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-table > .table-contain > table > .table-body .more-table-row > .td-element {\n position: relative;\n background: white;\n box-shadow: 4px -4px 8px 0px rgb(234, 236, 241);\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr td:first-child {\n padding-left: 20px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn tr.more-table-row td:first-child {\n padding-left: 8px;\n}\n.paraui-v4-table > .table-contain > table > .table-body.table-body-no-btn > .table-no-data > td:first-child {\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn {\n width: 32px;\n padding: 0;\n}\n.paraui-v4-table > .table-contain > table > .table-body .table-body-btn:first-child {\n width: 48px;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data {\n height: calc(100% - 50px);\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data:hover td {\n background-color: white;\n}\n.paraui-v4-table > .table-contain > table > .table-body > .table-no-data > td {\n padding: 56px 0 0 0;\n}\n.paraui-v4-table > .table-contain > .table-pos-line {\n position: absolute;\n top: 0;\n width: 1px;\n background-color: rgb(46, 101, 230);\n z-index: 1000;\n}\n.paraui-v4-table > .table-pagination {\n width: 100%;\n height: 60px;\n display: flex;\n align-items: flex-end;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right {\n display: flex;\n height: 32px;\n align-items: center;\n color: rgb(29, 33, 38);\n line-height: 32px;\n padding-left: 16px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .all-select {\n margin-left: 12px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .line {\n width: 1px;\n height: 12px;\n background-color: rgb(212, 218, 227);\n margin: 0 10px;\n}\n.paraui-v4-table > .table-pagination .table-pagination-right .check-number {\n width: 65px;\n display: inline-block;\n}\n.paraui-v4-table > .table-pagination .table-pagination-com {\n flex: 1;\n justify-content: flex-end;\n}\n.paraui-v4-table > .table-pagination .refresh-btn {\n margin-left: 20px;\n}\n\n.paraui-v4-table-show-colums-popover > .component-popover-content {\n min-width: 200px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-select > span {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled {\n cursor: inherit;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled > span {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-box > .show-colums-select-item.show-colums-select-item-disabled:hover {\n background: transparent;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-table-show-colums-popover > .component-popover-content .show-colums-select > .show-colums-select-footer > button {\n width: 100%;\n height: 100%;\n margin: 0;\n}\n\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box {\n padding-top: 4px;\n max-height: 320px;\n overflow-y: auto;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item {\n height: 30px;\n line-height: 30px;\n cursor: pointer;\n display: flex;\n padding: 0 10px;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > label {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item > span {\n padding-left: 8px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n display: inline-block;\n width: calc(100% - 14px);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-box > .filter-select-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer {\n height: 36px;\n border-top: 1px solid rgb(247, 248, 250);\n text-align: center;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select > .filter-select-footer > button {\n width: 50%;\n height: 100%;\n margin: 0;\n}\n.paraui-v4-filter-popover > .component-popover-content .filter-select.filter-select-none {\n text-align: center;\n padding: 20px 0;\n}\n.paraui-v4-filter-popover.paraui-v4-filter-popover-default > .component-popover-content {\n min-width: 200px;\n}";
|
|
1769
1769
|
styleInject(css_248z);
|
|
1770
1770
|
|
|
1771
1771
|
var Table = function Table(propsInit) {
|
|
@@ -2278,7 +2278,7 @@ var Table = function Table(propsInit) {
|
|
|
2278
2278
|
/** 处理本地搜索, 返回true满足搜索条件 */
|
|
2279
2279
|
var handLocalSearch = function handLocalSearch(item) {
|
|
2280
2280
|
var searchKey;
|
|
2281
|
-
if (constData.current.search && typeof constData.current.search !==
|
|
2281
|
+
if (constData.current.search && typeof constData.current.search !== 'string' && constData.current.search.searchKey) {
|
|
2282
2282
|
searchKey = constData.current.search.searchKey;
|
|
2283
2283
|
}
|
|
2284
2284
|
if (searchKey !== undefined && constData.current.searchKeyName && constData.current.searchKeyName.length > 0) {
|
|
@@ -2307,7 +2307,7 @@ var Table = function Table(propsInit) {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
// url
|
|
2309
2309
|
if (props.url) {
|
|
2310
|
-
return props.url
|
|
2310
|
+
return "".concat(props.url, "_").concat(props.method || 'Get');
|
|
2311
2311
|
}
|
|
2312
2312
|
return '';
|
|
2313
2313
|
};
|
|
@@ -2417,7 +2417,7 @@ var Table = function Table(propsInit) {
|
|
|
2417
2417
|
for (var i = 0, l = arr.length; i < l; i++) {
|
|
2418
2418
|
var item = arr[i];
|
|
2419
2419
|
var name = item.name || '';
|
|
2420
|
-
if (typeof item.width === 'number') item.width = item.width
|
|
2420
|
+
if (typeof item.width === 'number') item.width = "".concat(item.width, "px");
|
|
2421
2421
|
if (!bol) item.orderNum = i;
|
|
2422
2422
|
handHeadShow(item, headShowArr, localHead);
|
|
2423
2423
|
headArr.push(item);
|
|
@@ -3083,7 +3083,7 @@ var Table = function Table(propsInit) {
|
|
|
3083
3083
|
};
|
|
3084
3084
|
// 处理class
|
|
3085
3085
|
var handClass = function handClass() {
|
|
3086
|
-
var str = $prefixCls
|
|
3086
|
+
var str = "".concat($prefixCls, "-table");
|
|
3087
3087
|
if (showColumns === 'inside') str += " ".concat($prefixCls, "-table-columns-inside");
|
|
3088
3088
|
if (pagination) str += " ".concat($prefixCls, "-table-pagination");
|
|
3089
3089
|
if (loadMore) str += " ".concat($prefixCls, "-table-load-more");
|
|
@@ -3095,7 +3095,7 @@ var Table = function Table(propsInit) {
|
|
|
3095
3095
|
if (expandable) str += " ".concat($prefixCls, "-table-expandable");
|
|
3096
3096
|
if (rowData.length === 0) str += " ".concat($prefixCls, "-table-no-data");
|
|
3097
3097
|
if (loadState) str += " ".concat($prefixCls, "-table-load");
|
|
3098
|
-
if (className) str +=
|
|
3098
|
+
if (className) str += " ".concat(className);
|
|
3099
3099
|
return str;
|
|
3100
3100
|
};
|
|
3101
3101
|
// 改变屏幕大小
|
|
@@ -3117,7 +3117,7 @@ var Table = function Table(propsInit) {
|
|
|
3117
3117
|
children: jsxs(TableElement, Object.assign({
|
|
3118
3118
|
fixedColumn: fixedColumn,
|
|
3119
3119
|
style: {
|
|
3120
|
-
minWidth: tableMinWidth
|
|
3120
|
+
minWidth: "".concat(tableMinWidth, "px")
|
|
3121
3121
|
}
|
|
3122
3122
|
}, {
|
|
3123
3123
|
children: [TableHeadMemo, TableBodyMemo]
|
package/Table/interface.d.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @description 表格
|
|
5
5
|
*/
|
|
6
6
|
import React, { ReactNode } from 'react';
|
|
7
|
-
import { EmptyProps } from
|
|
8
|
-
import { OperateBtnProps } from
|
|
9
|
-
import { PaginationFlippingArrow, PaginationLayout } from
|
|
7
|
+
import { EmptyProps } from '../Empty';
|
|
8
|
+
import { OperateBtnProps } from '../OperateBtn';
|
|
9
|
+
import { PaginationFlippingArrow, PaginationLayout } from '../Pagination';
|
|
10
10
|
/** 任意类型 */
|
|
11
11
|
export interface Anyjson {
|
|
12
12
|
[name: string]: any;
|
|
@@ -290,7 +290,7 @@ export interface TableProps extends TableHeadBodyPublicProps {
|
|
|
290
290
|
* 返回true,走组件内部错误处理
|
|
291
291
|
* 不返回或者返回false,走外部逻辑
|
|
292
292
|
* */
|
|
293
|
-
onError?: (err: any) =>
|
|
293
|
+
onError?: (err: any) => Promise<boolean | void> | (boolean | void);
|
|
294
294
|
[key: string]: any;
|
|
295
295
|
}
|
|
296
296
|
export interface ExpandableRowItem {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @date 2021/8/6 11:06
|
|
4
4
|
* @description 表格内容参数
|
|
5
5
|
*/
|
|
6
|
-
import React, { ReactNode } from
|
|
6
|
+
import React, { ReactNode } from 'react';
|
|
7
7
|
import { TableHeadBodyPublicProps, Anyjson, ExpandableStatus } from './interface';
|
|
8
|
-
import { EmptyProps } from
|
|
8
|
+
import { EmptyProps } from '../Empty';
|
|
9
9
|
/** 表格头部参数 */
|
|
10
10
|
export interface TableBodyProps extends TableHeadBodyPublicProps {
|
|
11
11
|
/** 请求地址 */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { TableHeadBodyPublicProps, SelectStatus, HeadDataProps } from './interface';
|
|
8
|
-
import { DragResultProps } from
|
|
8
|
+
import { DragResultProps } from './thElement';
|
|
9
9
|
/** 表格头部参数 */
|
|
10
10
|
export interface TableHeadProps extends TableHeadBodyPublicProps {
|
|
11
11
|
/** 是否拖动列 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/**
|
|
3
|
-
* @author linhd
|
|
4
|
-
* @date 2021/8/6 11:07
|
|
5
|
-
* @description 表格分页参数
|
|
6
|
-
*/
|
|
7
|
-
import { PaginationFlippingArrow, PaginationLayout } from
|
|
8
|
-
import { SelectStatus } from
|
|
3
|
+
* @author linhd
|
|
4
|
+
* @date 2021/8/6 11:07
|
|
5
|
+
* @description 表格分页参数
|
|
6
|
+
*/
|
|
7
|
+
import { PaginationFlippingArrow, PaginationLayout } from '../Pagination';
|
|
8
|
+
import { SelectStatus } from './interface';
|
|
9
9
|
/** 表格分页参数 */
|
|
10
10
|
export interface TablePaginationProps {
|
|
11
11
|
/** 内置刷新 */
|