@para-ui/core 3.0.86 → 4.0.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +18 -19
- package/AutoTips/index.js +5 -4
- package/Breadcrumbs/index.js +5 -4
- package/Button/SplitButton.d.ts +13 -0
- package/Button/index.d.ts +1 -1
- package/Button/index.js +54 -12
- package/ButtonGroup/index.js +6 -5
- package/Carousel/index.d.ts +5 -5
- package/Carousel/index.js +21 -9
- package/Cascader/Cascader.d.ts +99 -0
- package/Cascader/OptionList/CacheContent.d.ts +7 -0
- package/Cascader/OptionList/Column.d.ts +21 -0
- package/Cascader/OptionList/index.d.ts +4 -0
- package/Cascader/OptionList/useActive.d.ts +6 -0
- package/Cascader/context.d.ts +23 -0
- package/Cascader/hooks/useDisplayValues.d.ts +10 -0
- package/Cascader/hooks/useEntities.d.ts +10 -0
- package/Cascader/hooks/useMissingValues.d.ts +3 -0
- package/Cascader/index.d.ts +3 -58
- package/Cascader/index.js +28 -177
- package/Cascader/utils/commonUtil.d.ts +18 -0
- package/Cascader/utils/treeUtil.d.ts +55 -0
- package/Checkbox/index.d.ts +7 -0
- package/Checkbox/index.js +50 -29
- package/CheckboxGroup/index.d.ts +3 -1
- package/CheckboxGroup/index.js +48 -18
- package/Collapse/index.js +2 -2
- package/Collapse/motion.d.ts +0 -2
- package/CollapseBox/index.js +3 -3
- package/CollapseLayout/index.d.ts +5 -0
- package/CollapseLayout/index.js +144 -22
- package/ColorPicker/chromePicker/index.d.ts +9 -0
- package/ColorPicker/compactPicker/index.d.ts +9 -0
- package/ColorPicker/config.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -1
- package/ColorPicker/index.js +7 -3
- package/ColorPicker/sketchPicker/index.d.ts +11 -0
- package/ColorPicker/swatchesPicker/index.d.ts +9 -0
- package/ComboSelect/index.js +14 -12
- package/Container/index.js +2 -2
- package/CopyText/index.d.ts +33 -0
- package/CopyText/index.js +180 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +9 -2
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +8 -8
- package/DatePicker/generatePicker/index.d.ts +32 -26
- package/DatePicker/generatePicker/interface.d.ts +12 -0
- package/DatePicker/index.d.ts +12 -8
- package/DatePicker/index.js +367 -454
- package/DatePicker/util.d.ts +40 -4
- package/Desktop/index.d.ts +16 -3
- package/Desktop/index.js +177 -68
- package/Desktop/lang/en_US.d.ts +6 -0
- package/Desktop/lang/index.d.ts +13 -0
- package/Desktop/lang/zh_CN.d.ts +6 -0
- package/DragVerify/index.js +9 -100
- package/Drawer/index.js +8 -8
- package/Drawer/interface.d.ts +2 -2
- package/Dropdown/index.js +2 -2
- package/DynamicMultiBox/index.js +57 -41
- package/DynamicMultiBox/interface.d.ts +4 -4
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +20 -26
- package/Form/index.js +48 -69
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +11 -9
- package/GlobalContext/constant.d.ts +1 -1
- package/GlobalContext/index.js +2 -2
- package/Help/index.js +4 -3
- package/HelperText/index.js +2 -2
- package/InputLang/index.d.ts +5 -0
- package/InputLang/index.js +35 -29
- package/InputNumber/index.d.ts +5 -0
- package/InputNumber/index.js +95 -80
- package/Label/index.js +4 -3
- package/Loading/index.js +2 -2
- package/Menu/index.js +114 -39
- package/Menu/interface.d.ts +8 -0
- package/Message/index.d.ts +4 -4
- package/Message/index.js +13 -11
- package/Modal/index.js +29 -15
- package/MultiBox/index.js +9 -8
- package/Notification/index.d.ts +9 -1
- package/Notification/index.js +29 -15
- package/OperateBtn/index.js +28 -11
- package/PageHeader/index.js +270 -74
- package/PageHeader/interface.d.ts +17 -0
- package/Pagination/index.d.ts +4 -3
- package/Pagination/index.js +117 -95
- package/Pagination/lang/en_US.d.ts +3 -2
- package/Pagination/lang/index.d.ts +6 -4
- package/Pagination/lang/zh_CN.d.ts +3 -2
- package/ParauiProvider/index.js +4 -4
- package/PasswordRules/index.js +5 -5
- package/PopConfirm/index.d.ts +15 -5
- package/PopConfirm/index.js +62 -16
- package/Popover/index.js +4 -3
- package/Progress/index.js +10 -9
- package/Querying/index.js +7 -7
- package/README.md +40 -1120
- package/Radio/index.d.ts +7 -0
- package/Radio/index.js +49 -27
- package/RadioGroup/index.d.ts +3 -1
- package/RadioGroup/index.js +48 -21
- package/Search/index.d.ts +3 -15
- package/Search/index.js +21 -83
- package/Select/index.d.ts +7 -2
- package/Select/index.js +114 -91
- package/Select/lang/en_US.d.ts +1 -1
- package/Select/lang/index.d.ts +2 -2
- package/Select/lang/zh_CN.d.ts +1 -1
- package/SelectInput/index.js +8 -7
- package/Selector/index.js +30 -22
- package/SelectorPicker/index.d.ts +5 -0
- package/SelectorPicker/index.js +47 -32
- package/SelectorPicker/lang/en_US.d.ts +1 -0
- package/SelectorPicker/lang/index.d.ts +2 -0
- package/SelectorPicker/lang/zh_CN.d.ts +1 -0
- package/SingleBox/index.js +8 -7
- package/Slider/index.js +5 -5
- package/Status/index.d.ts +6 -5
- package/Status/index.js +27 -4
- package/Stepper/index.d.ts +9 -10
- package/Stepper/index.js +69 -29
- package/Styles/index.scss +4 -0
- package/Styles/scrollbar.scss +24 -24
- package/Styles/theme.scss +104 -57
- package/Switch/index.d.ts +34 -14
- package/Switch/index.js +97 -30
- package/Table/index.js +33 -27
- package/Table/interface.d.ts +3 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +5 -5
- package/Tabs/index.d.ts +11 -1
- package/Tabs/index.js +49 -16
- package/Tag/TagGroup.d.ts +11 -7
- package/Tag/index.d.ts +22 -7
- package/Tag/index.js +1382 -53
- package/TextEditor/index.js +4 -3
- package/TextField/index.d.ts +5 -0
- package/TextField/index.js +50 -32
- package/TimePicker/index.d.ts +5 -0
- package/TimePicker/index.js +39 -23
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +21 -18
- package/Title/index.d.ts +15 -3
- package/Title/index.js +95 -29
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/ToggleButton/index.d.ts +4 -0
- package/ToggleButton/index.js +14 -52
- package/Tooltip/index.js +28 -34
- package/Tooltip/interface.d.ts +4 -10
- package/Tooltip/utils.d.ts +1 -3
- package/Transfer/index.d.ts +3 -3
- package/Transfer/index.js +72 -68
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +10 -9
- package/Tree/utils/treeUtil.d.ts +0 -7
- package/Upload/index.js +16 -14
- package/_verture/{constant-66aa48a1.js → constant-0d9802f7.js} +1 -1
- package/_verture/{defineProperty-62acccfc.js → defineProperty-1d116156.js} +1 -1
- package/_verture/index-5c77417d.js +150 -0
- package/_verture/index-68db2bc3.js +10530 -0
- package/_verture/{index-9738004e.js → index-7ec72724.js} +44 -38
- package/_verture/index-d63bd287.js +327 -0
- package/_verture/{index-fa8a0124.js → index-e6f85fd5.js} +7 -8
- package/_verture/{index-77f9e0fb.js → index-e9007d6a.js} +6 -6
- package/_verture/{intl-4a9f1b44.js → intl-5c1ec055.js} +1 -1
- package/_verture/{modalContext-20780c9a.js → modalContext-c12ca3e8.js} +3 -3
- package/_verture/slicedToArray-a8206399.js +43 -0
- package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-8f4c9589.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/typeof-b240b062.js +16 -0
- package/_verture/{utils-c9b9a157.js → utils-f0e81540.js} +8 -8
- package/index.d.ts +2 -2
- package/index.js +32 -27
- package/locale/en-US.d.ts +10 -6
- package/locale/index.d.ts +20 -12
- package/locale/index.js +33 -25
- package/locale/zh-CN.d.ts +10 -6
- package/package.json +25 -11
- package/umd/AutoBox.js +20 -21
- package/umd/AutoTips.js +31 -4
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +7 -8
- package/umd/ButtonGroup.js +7 -8
- package/umd/Carousel.js +29 -1
- package/umd/Cascader.js +20 -21
- package/umd/Checkbox.js +7 -7
- package/umd/CheckboxGroup.js +7 -7
- package/umd/Collapse.js +19 -21
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +7 -7
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +42 -0
- package/umd/DatePicker.js +7 -7
- package/umd/Desktop.js +7 -7
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +7 -8
- package/umd/Dropdown.js +3 -3
- package/umd/DynamicMultiBox.js +7 -7
- package/umd/Empty.js +1 -1
- package/umd/Form.js +6 -6
- package/umd/FormItem.js +6 -6
- package/umd/FunctionModal.js +7 -7
- package/umd/Help.js +7 -7
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +7 -7
- package/umd/InputNumber.js +7 -7
- package/umd/Label.js +7 -7
- package/umd/Loading.js +4 -5
- package/umd/Menu.js +4 -4
- package/umd/Message.js +3 -4
- package/umd/Modal.js +7 -7
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +5 -6
- package/umd/OperateBtn.js +7 -7
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +7 -7
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -4
- package/umd/PopConfirm.js +7 -7
- package/umd/Popover.js +31 -4
- package/umd/Progress.js +4 -5
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +7 -7
- package/umd/RadioGroup.js +7 -7
- package/umd/Search.js +7 -7
- package/umd/Select.js +7 -7
- package/umd/SelectInput.js +7 -7
- package/umd/Selector.js +7 -7
- package/umd/SelectorPicker.js +7 -7
- package/umd/SingleBox.js +7 -7
- package/umd/Slider.js +3 -3
- package/umd/Status.js +29 -1
- package/umd/Stepper.js +20 -20
- package/umd/Switch.js +7 -7
- package/umd/Table.js +7 -7
- package/umd/Tabs.js +7 -7
- package/umd/Tag.js +7 -8
- package/umd/TextEditor.js +19 -19
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +7 -7
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +42 -1
- package/umd/ToggleButton.js +7 -8
- package/umd/Tooltip.js +31 -4
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +8 -8
- package/umd/locale.js +1 -1
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/typeof-498dd2b1.js +0 -11
- package/umd/Split.js +0 -1
package/TextEditor/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useState, useEffect, useImperativeHandle, useMemo } from 'react';
|
|
4
4
|
import Label from '../Label/index.js';
|
|
5
5
|
import { Toolbar, Editor } from '@wangeditor/editor-for-react';
|
|
6
6
|
import { i18nChangeLanguage } from '@wangeditor/editor';
|
|
7
7
|
import HelperText from '../HelperText/index.js';
|
|
8
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
8
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
9
9
|
import { UUID } from '@paraview/lib';
|
|
10
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
11
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
@@ -15,6 +15,7 @@ import '../Tooltip/index.js';
|
|
|
15
15
|
import 'rc-tooltip';
|
|
16
16
|
import 'rc-tooltip/lib/placements';
|
|
17
17
|
import 'clsx';
|
|
18
|
+
import '@para-ui/icons/Forbid';
|
|
18
19
|
import '@para-ui/icons/Help';
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -49,7 +50,7 @@ var TOOL_BAR_CONFIG = ["headerSelect", "blockquote", "|", "bold", "underline", "
|
|
|
49
50
|
menuKeys: ["insertVideo", "uploadVideo"]
|
|
50
51
|
}, "insertTable", "codeBlock", "divider", "|", "undo", "redo", "|", "fullScreen"];
|
|
51
52
|
|
|
52
|
-
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author
|
|
53
|
+
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-text-editor .w-e-max-length-info {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-editor .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item {\n padding-left: 0;\n padding-right: 0;\n display: flex;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button {\n flex: 1;\n display: flex;\n justify-content: flex-start;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-full-screen-container {\n z-index: 1000;\n}\n.paraui-v4-text-editor .text-editor-content {\n border: 1px solid rgb(212, 218, 227);\n border-radius: 4px;\n padding: 1px 0;\n background-color: #fff;\n}\n.paraui-v4-text-editor .text-editor-content > div:nth-child(1) {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false] {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false]:hover {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-text-editor .preview-mode > div:nth-child(1) {\n border-bottom: none;\n}";
|
|
53
54
|
styleInject(css_248z$1);
|
|
54
55
|
|
|
55
56
|
var css_248z = ":root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n\n.w-e-text-container *,.w-e-toolbar *{box-sizing:border-box;margin:0;outline:none;padding:0}.w-e-text-container blockquote,.w-e-text-container li,.w-e-text-container p,.w-e-text-container td,.w-e-text-container th,.w-e-toolbar *{line-height:1.5}.w-e-text-container{background-color:var(--w-e-textarea-bg-color);color:var(--w-e-textarea-color);height:100%;position:relative}.w-e-text-container .w-e-scroll{-webkit-overflow-scrolling:touch;height:100%}.w-e-text-container [data-slate-editor]{word-wrap:break-word;border-top:1px solid transparent;min-height:100%;outline:0;padding:0 10px;white-space:pre-wrap}.w-e-text-container [data-slate-editor] p{margin:15px 0}.w-e-text-container [data-slate-editor] h1,.w-e-text-container [data-slate-editor] h2,.w-e-text-container [data-slate-editor] h3,.w-e-text-container [data-slate-editor] h4,.w-e-text-container [data-slate-editor] h5{margin:20px 0}.w-e-text-container [data-slate-editor] img{cursor:default;display:inline!important;max-width:100%;min-height:20px;min-width:20px}.w-e-text-container [data-slate-editor] span{text-indent:0}.w-e-text-container [data-slate-editor] [data-selected=true]{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-placeholder{font-style:italic;left:10px;top:17px;width:90%}.w-e-max-length-info,.w-e-text-placeholder{color:var(--w-e-textarea-slight-color);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.w-e-max-length-info{bottom:.5em;right:1em}.w-e-bar{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-color);font-size:14px;padding:0 5px}.w-e-bar svg{fill:var(--w-e-toolbar-color);height:14px;width:14px}.w-e-bar-show{display:flex}.w-e-bar-hidden{display:none}.w-e-hover-bar{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 5px #0000001f;position:absolute}.w-e-toolbar{flex-wrap:wrap;position:relative}.w-e-bar-divider{background-color:var(--w-e-toolbar-border-color);display:inline-flex;height:40px;margin:0 5px;width:1px}.w-e-bar-item{display:flex;height:40px;padding:4px;position:relative;text-align:center}.w-e-bar-item,.w-e-bar-item button{align-items:center;justify-content:center}.w-e-bar-item button{background:transparent;border:none;color:var(--w-e-toolbar-color);cursor:pointer;display:inline-flex;height:32px;overflow:hidden;padding:0 8px;white-space:nowrap}.w-e-bar-item button:hover{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item button .title{margin-left:5px}.w-e-bar-item .active{background-color:var(--w-e-toolbar-active-bg-color);color:var(--w-e-toolbar-active-color)}.w-e-bar-item .disabled{color:var(--w-e-toolbar-disabled-color);cursor:not-allowed}.w-e-bar-item .disabled svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover{background-color:var(--w-e-toolbar-bg-color);color:var(--w-e-toolbar-disabled-color)}.w-e-bar-item .disabled:hover svg{fill:var(--w-e-toolbar-disabled-color)}.w-e-menu-tooltip-v5:before{background-color:var(--w-e-toolbar-active-color);border-radius:5px;color:var(--w-e-toolbar-bg-color);content:attr(data-tooltip);font-size:.75em;opacity:0;padding:5px 10px;position:absolute;text-align:center;top:40px;transition:opacity .6s;visibility:hidden;white-space:pre;z-index:1}.w-e-menu-tooltip-v5:after{border:5px solid transparent;border-bottom:5px solid var(--w-e-toolbar-active-color);content:\"\";opacity:0;position:absolute;top:30px;transition:opacity .6s;visibility:hidden}.w-e-menu-tooltip-v5:hover:after,.w-e-menu-tooltip-v5:hover:before{opacity:1;visibility:visible}.w-e-menu-tooltip-v5.tooltip-right:before{left:100%;top:10px}.w-e-menu-tooltip-v5.tooltip-right:after{border-bottom-color:transparent;border-left-color:transparent;border-right-color:var(--w-e-toolbar-active-color);border-top-color:transparent;left:100%;margin-left:-10px;top:16px}.w-e-bar-item-group .w-e-bar-item-menus-container{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;display:none;left:0;margin-top:40px;position:absolute;top:0;z-index:1}.w-e-bar-item-group:hover .w-e-bar-item-menus-container{display:block}.w-e-select-list{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;left:0;margin-top:40px;max-height:350px;min-width:100px;overflow-y:auto;position:absolute;top:0;z-index:1}.w-e-select-list ul{line-height:1;list-style:none}.w-e-select-list ul .selected{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li{cursor:pointer;padding:7px 0 7px 25px;position:relative;text-align:left;white-space:nowrap}.w-e-select-list ul li:hover{background-color:var(--w-e-toolbar-active-bg-color)}.w-e-select-list ul li svg{left:0;margin-left:5px;margin-top:-7px;position:absolute;top:50%}.w-e-bar-bottom .w-e-select-list{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-drop-panel{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;margin-top:40px;min-width:200px;padding:10px;position:absolute;top:0;z-index:1}.w-e-bar-bottom .w-e-drop-panel{bottom:0;margin-bottom:40px;margin-top:0;top:inherit}.w-e-modal{background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-toolbar-border-color);border-radius:3px;box-shadow:0 2px 10px #0000001f;color:var(--w-e-toolbar-color);font-size:14px;min-height:40px;min-width:100px;padding:20px 15px 0;position:absolute;text-align:left;z-index:1}.w-e-modal .btn-close{cursor:pointer;line-height:1;padding:5px;position:absolute;right:8px;top:7px}.w-e-modal .btn-close svg{fill:var(--w-e-toolbar-color);height:10px;width:10px}.w-e-modal .babel-container{display:block;margin-bottom:15px}.w-e-modal .babel-container span{display:block;margin-bottom:10px}.w-e-modal .button-container{margin-bottom:15px}.w-e-modal button{background-color:var(--w-e-modal-button-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);cursor:pointer;font-weight:400;height:32px;padding:4.5px 15px;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.w-e-modal input[type=number],.w-e-modal input[type=text],.w-e-modal textarea{font-feature-settings:\"tnum\";background-color:var(--w-e-toolbar-bg-color);border:1px solid var(--w-e-modal-button-border-color);border-radius:4px;color:var(--w-e-toolbar-color);font-variant:tabular-nums;padding:4.5px 11px;transition:all .3s;width:100%}.w-e-modal textarea{min-height:60px}body .w-e-modal,body .w-e-modal *{box-sizing:border-box}.w-e-progress-bar{background-color:var(--w-e-textarea-handler-bg-color);height:1px;position:absolute;transition:width .3s;width:0}.w-e-full-screen-container{bottom:0!important;display:flex!important;flex-direction:column!important;height:100%!important;left:0!important;margin:0!important;padding:0!important;position:fixed;right:0!important;top:0!important;width:100%!important}.w-e-full-screen-container [data-w-e-textarea=true]{flex:1!important}\n.w-e-text-container [data-slate-editor] code{background-color:var(--w-e-textarea-slight-bg-color);border-radius:3px;font-family:monospace;padding:3px}.w-e-panel-content-color{list-style:none;text-align:left;width:230px}.w-e-panel-content-color li{border:1px solid var(--w-e-toolbar-bg-color);border-radius:3px 3px;cursor:pointer;display:inline-block;padding:2px}.w-e-panel-content-color li:hover{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color li .color-block{border:1px solid var(--w-e-toolbar-border-color);border-radius:3px 3px;height:17px;width:17px}.w-e-panel-content-color .active{border-color:var(--w-e-toolbar-color)}.w-e-panel-content-color .clear{line-height:1.5;margin-bottom:5px;width:100%}.w-e-panel-content-color .clear svg{height:16px;margin-bottom:-4px;width:16px}.w-e-text-container [data-slate-editor] blockquote{background-color:var(--w-e-textarea-slight-bg-color);border-left:8px solid var(--w-e-textarea-selected-border-color);display:block;font-size:100%;line-height:1.5;margin:10px 0;padding:10px}.w-e-panel-content-emotion{font-size:20px;list-style:none;text-align:left;width:300px}.w-e-panel-content-emotion li{border-radius:3px 3px;cursor:pointer;display:inline-block;padding:0 5px}.w-e-panel-content-emotion li:hover{background-color:var(--w-e-textarea-slight-bg-color)}.w-e-textarea-divider{border-radius:3px;margin:20px auto;padding:20px}.w-e-textarea-divider hr{background-color:var(--w-e-textarea-border-color);border:0;display:block;height:1px}.w-e-text-container [data-slate-editor] pre>code{background-color:var(--w-e-textarea-slight-bg-color);border:1px solid var(--w-e-textarea-slight-border-color);border-radius:4px 4px;display:block;font-size:14px;padding:10px;text-indent:0}.w-e-text-container [data-slate-editor] .w-e-image-container{display:inline-block;margin:0 3px}.w-e-text-container [data-slate-editor] .w-e-image-container:hover{box-shadow:0 0 0 2px var(--w-e-textarea-selected-border-color)}.w-e-text-container [data-slate-editor] .w-e-selected-image-container{overflow:hidden;position:relative}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger{background-color:var(--w-e-textarea-handler-bg-color);height:7px;position:absolute;width:7px}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top{cursor:nwse-resize;left:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top{cursor:nesw-resize;right:0;top:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom{bottom:0;cursor:nesw-resize;left:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom{bottom:0;cursor:nwse-resize;right:0}.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover{box-shadow:none}.w-e-text-container [contenteditable=false] .w-e-image-container:hover{box-shadow:none}\n\n.w-e-text-container [data-slate-editor] .table-container{border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin-top:10px;overflow-x:auto;padding:10px;width:100%}.w-e-text-container [data-slate-editor] table{border-collapse:collapse}.w-e-text-container [data-slate-editor] table td,.w-e-text-container [data-slate-editor] table th{border:1px solid var(--w-e-textarea-border-color);line-height:1.5;min-width:30px;padding:3px 5px;text-align:left}.w-e-text-container [data-slate-editor] table th{background-color:var(--w-e-textarea-slight-bg-color);font-weight:700;text-align:center}.w-e-panel-content-table{background-color:var(--w-e-toolbar-bg-color)}.w-e-panel-content-table table{border-collapse:collapse}.w-e-panel-content-table td{border:1px solid var(--w-e-toolbar-border-color);cursor:pointer;height:15px;padding:3px 5px;width:20px}.w-e-panel-content-table td.active{background-color:var(--w-e-toolbar-active-bg-color)}\n.w-e-textarea-video-container{background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee);background-position:0 0,10px 10px;background-size:20px 20px;border:1px dashed var(--w-e-textarea-border-color);border-radius:5px;margin:10px auto 0;padding:10px 0;text-align:center}\n\n.w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}";
|
package/TextField/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { LabelTooltipProps } from '../Label';
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
8
9
|
import { HelperTextDetailProps } from "../HelperText";
|
|
9
10
|
import './index.scss';
|
|
10
11
|
export interface TextFieldProps extends HelperTextDetailProps {
|
|
@@ -28,6 +29,10 @@ export interface TextFieldProps extends HelperTextDetailProps {
|
|
|
28
29
|
placeholder?: ReactNode;
|
|
29
30
|
/** 是否禁用 */
|
|
30
31
|
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 禁用提示
|
|
34
|
+
*/
|
|
35
|
+
disabledTooltip?: TooltipProps;
|
|
31
36
|
/** 多行 */
|
|
32
37
|
multiline?: boolean;
|
|
33
38
|
/** 前缀 */
|
package/TextField/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _typeof } from '../_verture/typeof-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
3
3
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
@@ -7,28 +7,29 @@ import Label from '../Label/index.js';
|
|
|
7
7
|
import { UUID } from '@paraview/lib';
|
|
8
8
|
import VisibilityOff from '@para-ui/icons/PreviewClose';
|
|
9
9
|
import Visibility from '@para-ui/icons/PreviewOpen';
|
|
10
|
-
import
|
|
10
|
+
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
11
11
|
import AutoTips from '../AutoTips/index.js';
|
|
12
12
|
import { Loading } from '../Loading/index.js';
|
|
13
|
+
import { Tooltip } from '../Tooltip/index.js';
|
|
13
14
|
import HelperText from '../HelperText/index.js';
|
|
14
15
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-1b846a65.js';
|
|
15
|
-
import { D as Dropdown } from '../_verture/index-
|
|
16
|
-
import { $ as $prefixCls } from '../_verture/constant-
|
|
16
|
+
import { D as Dropdown } from '../_verture/index-e9007d6a.js';
|
|
17
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
17
18
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
18
19
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
19
20
|
import '../Help/index.js';
|
|
20
|
-
import '
|
|
21
|
+
import '@para-ui/icons/Help';
|
|
22
|
+
import 'clsx';
|
|
21
23
|
import 'rc-tooltip';
|
|
22
24
|
import 'rc-tooltip/lib/placements';
|
|
23
|
-
import '
|
|
24
|
-
import '@para-ui/icons/Help';
|
|
25
|
+
import '@para-ui/icons/Forbid';
|
|
25
26
|
import '@para-ui/icons/LoadingF';
|
|
26
27
|
import '@para-ui/core/GlobalContext';
|
|
27
28
|
import 'rc-dropdown';
|
|
28
29
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
29
30
|
import 'dayjs';
|
|
30
31
|
|
|
31
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-text-field {\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 width: 100%;\n}\n.paraui-v3-text-field > .text-field-content {\n border: 1px solid;\n border-radius: 4px;\n border-color: rgba(171, 176, 185, 0.4);\n display: flex;\n width: 100%;\n position: relative;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-text-field > .text-field-content:hover {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-before {\n color: rgb(46, 55, 67);\n padding: 0 12px;\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n white-space: nowrap;\n display: flex;\n align-items: center;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-before svg {\n font-size: 20px;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within {\n position: relative;\n display: flex;\n flex-grow: 1;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n display: flex;\n height: 100%;\n align-items: center;\n margin-right: 12px;\n cursor: pointer;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .clean-up-icon svg {\n color: rgba(46, 55, 67, 0.7);\n font-size: 16px;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .clean-up-icon:hover svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n height: 100%;\n align-items: center;\n margin-right: 12px;\n cursor: pointer;\n color: rgba(46, 55, 67, 0.7);\n position: relative;\n z-index: 1;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .right-icon.right-icon-password:hover svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .right-icon svg {\n color: rgba(46, 55, 67, 0.7);\n font-size: 20px;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .length-limit {\n display: flex;\n height: 100%;\n align-items: center;\n margin-right: 12px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n width: 100%;\n line-height: 0;\n position: relative;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input::-webkit-outer-spin-button,\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input[type=number] {\n -moz-appearance: textfield;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n width: 100%;\n height: 100%;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n width: 100% !important;\n padding: 12px;\n resize: none;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input, .paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n font-size: 14px;\n color: rgb(46, 55, 67);\n border: 0;\n border-radius: 4px;\n background: transparent;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input::-ms-clear, .paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea::-ms-clear {\n display: none;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input::-ms-reveal, .paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea::-ms-reveal {\n display: none;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input:disabled, .paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea:disabled {\n background-color: transparent;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n width: 100%;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n padding: 0 12px;\n color: rgba(46, 55, 67, 0.4);\n cursor: text;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n pointer-events: none;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder > .text-field-required {\n margin-left: 2px;\n color: rgb(235, 96, 84);\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-after {\n color: rgb(46, 55, 67);\n padding: 0 12px;\n border-left: 1px solid rgba(171, 176, 185, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n white-space: nowrap;\n display: flex;\n align-items: center;\n}\n.paraui-v3-text-field > .text-field-content > .text-field-content-after svg {\n font-size: 20px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-multiline > .text-field-content .text-field-content-within > .clean-up-icon {\n display: none;\n}\n.paraui-v3-text-field.paraui-v3-text-field-multiline > .text-field-content .text-field-content-within > .length-limit {\n position: absolute;\n height: 22px;\n bottom: 0;\n border-radius: 4px;\n width: calc(100% - 12px);\n background: white;\n justify-content: flex-end;\n padding-bottom: 8px;\n margin-right: 0;\n left: 0;\n}\n.paraui-v3-text-field.paraui-v3-text-field-multiline > .text-field-content .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n padding-top: 12px;\n line-height: 1;\n height: calc(100% - 24px);\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content:hover {\n border-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content > .text-field-content-before {\n background-color: transparent;\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n cursor: not-allowed;\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > input, .paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n cursor: not-allowed;\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled > .text-field-content > .text-field-content-after {\n background-color: transparent;\n}\n.paraui-v3-text-field.paraui-v3-text-field-disabled.paraui-v3-text-field-multiline > .text-field-content .text-field-content-within > .length-limit {\n background-color: transparent;\n}\n.paraui-v3-text-field.paraui-v3-text-field-error > .text-field-content {\n border-color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-text-field.paraui-v3-text-field-error > .text-field-content:hover {\n border-color: rgb(235, 96, 84);\n}\n.paraui-v3-text-field.paraui-v3-text-field-limit > .text-field-content {\n border-color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-text-field.paraui-v3-text-field-limit > .text-field-content:hover {\n border-color: rgb(235, 96, 84) !important;\n}\n.paraui-v3-text-field.paraui-v3-text-field-limit-length > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n padding-bottom: 25px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-focus > .text-field-content {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content {\n height: 28px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content > .text-field-content-before {\n line-height: 26px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 26px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 6px 12px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 26px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-small > .text-field-content .text-field-content-after {\n line-height: 26px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content {\n height: 32px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content > .text-field-content-before {\n line-height: 30px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 30px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 8px 12px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 30px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-medium > .text-field-content .text-field-content-after {\n line-height: 30px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content {\n height: 36px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content > .text-field-content-before {\n line-height: 34px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 34px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 10px 12px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 34px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-large > .text-field-content .text-field-content-after {\n line-height: 34px;\n}\n.paraui-v3-text-field.paraui-v3-text-field-resize > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n resize: both;\n}\n\n.paraui-v3-text-field-select.component-dropdown > .text-field-select-content {\n max-height: 300px;\n overflow: auto;\n}\n.paraui-v3-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item {\n display: flex;\n cursor: pointer;\n color: rgb(46, 55, 67);\n padding: 0 12px;\n}\n.paraui-v3-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item:hover {\n background-color: rgba(171, 176, 185, 0.12);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item.text-field-select-content-item-keydown {\n background-color: rgba(171, 176, 185, 0.12);\n color: rgb(54, 102, 214);\n}\n.paraui-v3-text-field-select.component-dropdown > .text-field-select-content.text-field-select-content-loading {\n height: 100px;\n position: relative;\n overflow: hidden;\n}\n.paraui-v3-text-field-select.component-dropdown.paraui-v3-text-field-select-small > .text-field-select-content > .text-field-select-content-item {\n line-height: 28px;\n}\n.paraui-v3-text-field-select.component-dropdown.paraui-v3-text-field-select-medium > .text-field-select-content > .text-field-select-content-item {\n line-height: 32px;\n}\n.paraui-v3-text-field-select.component-dropdown.paraui-v3-text-field-select-large > .text-field-select-content > .text-field-select-content-item {\n line-height: 36px;\n}\n.paraui-v3-text-field-select.paraui-v3-text-field-select-data.component-tooltip {\n padding: 8px 0;\n}";
|
|
32
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-text-field {\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 width: 100%;\n}\n.paraui-v4-text-field > .text-field-content {\n border: 1px solid;\n border-radius: 4px;\n border-color: rgb(212, 218, 227);\n display: flex;\n width: 100%;\n position: relative;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-text-field > .text-field-content:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-before {\n color: rgb(92, 101, 115);\n padding: 0 10px;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n white-space: nowrap;\n display: flex;\n align-items: center;\n position: relative;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-before:after {\n position: absolute;\n content: \"\";\n right: 0;\n width: 1px;\n background-color: rgb(212, 218, 227);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-before svg {\n font-size: 18px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within {\n position: relative;\n display: flex;\n flex-grow: 1;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within:hover > .clean-up-icon {\n display: flex;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n height: 100%;\n align-items: center;\n margin-right: 10px;\n cursor: pointer;\n display: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .clean-up-icon svg {\n color: rgb(161, 168, 179);\n font-size: 16px;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .clean-up-icon:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n height: 100%;\n align-items: center;\n margin-right: 10px;\n cursor: pointer;\n color: rgb(29, 33, 38);\n position: relative;\n z-index: 1;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .right-icon.right-icon-password:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .right-icon svg {\n color: rgb(92, 101, 115);\n font-size: 18px;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .length-limit {\n display: flex;\n height: 100%;\n align-items: center;\n margin-right: 10px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n width: 100%;\n line-height: 0;\n position: relative;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input::-webkit-outer-spin-button,\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input input[type=number] {\n -moz-appearance: textfield;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n width: 100%;\n height: 100%;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n width: 100% !important;\n padding: 10px;\n resize: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input, .paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n font-size: 14px;\n color: rgb(29, 33, 38);\n border: 0;\n border-radius: 4px;\n background: transparent;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input::-ms-clear, .paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea::-ms-clear {\n display: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input::-ms-reveal, .paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea::-ms-reveal {\n display: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > input:disabled, .paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea:disabled {\n background-color: transparent;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n width: 100%;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n padding: 0 10px;\n color: rgb(161, 168, 179);\n cursor: text;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n pointer-events: none;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder > .text-field-required {\n margin-left: 2px;\n color: rgb(244, 66, 66);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-after {\n color: rgb(92, 101, 115);\n padding: 0 10px;\n border-bottom-right-radius: 4px;\n border-top-right-radius: 4px;\n white-space: nowrap;\n display: flex;\n align-items: center;\n position: relative;\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-after:after {\n position: absolute;\n content: \"\";\n left: 0;\n width: 1px;\n background-color: rgb(212, 218, 227);\n}\n.paraui-v4-text-field > .text-field-content > .text-field-content-after svg {\n font-size: 18px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-field.paraui-v4-text-field-multiline > .text-field-content .text-field-content-within > .clean-up-icon {\n display: none;\n}\n.paraui-v4-text-field.paraui-v4-text-field-multiline > .text-field-content .text-field-content-within > .length-limit {\n position: absolute;\n height: 22px;\n bottom: 0;\n border-radius: 4px;\n width: calc(100% - 10px);\n background: white;\n justify-content: flex-end;\n padding-bottom: 2px;\n margin-right: 0;\n left: 0;\n}\n.paraui-v4-text-field.paraui-v4-text-field-multiline > .text-field-content .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n padding-top: 10px;\n line-height: 1;\n height: calc(100% - 24px);\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content:hover {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content > .text-field-content-before {\n background-color: transparent;\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n cursor: not-allowed;\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > input, .paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n cursor: not-allowed;\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled > .text-field-content > .text-field-content-after {\n background-color: transparent;\n}\n.paraui-v4-text-field.paraui-v4-text-field-disabled.paraui-v4-text-field-multiline > .text-field-content .text-field-content-within > .length-limit {\n background-color: transparent;\n}\n.paraui-v4-text-field.paraui-v4-text-field-error > .text-field-content {\n border-color: rgb(244, 66, 66) !important;\n}\n.paraui-v4-text-field.paraui-v4-text-field-error > .text-field-content:hover {\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-text-field.paraui-v4-text-field-limit > .text-field-content {\n border-color: rgb(244, 66, 66) !important;\n}\n.paraui-v4-text-field.paraui-v4-text-field-limit > .text-field-content:hover {\n border-color: rgb(244, 66, 66) !important;\n}\n.paraui-v4-text-field.paraui-v4-text-field-limit-length > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n padding-bottom: 25px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-focus > .text-field-content {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content {\n height: 28px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content > .text-field-content-before {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content > .text-field-content-before:after {\n top: 5px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 6px 10px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content .text-field-content-after {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-small > .text-field-content .text-field-content-after:after {\n top: 5px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content {\n height: 28px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content > .text-field-content-before {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content > .text-field-content-before:after {\n top: 5px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 6px 10px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content .text-field-content-after {\n line-height: 26px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-medium > .text-field-content .text-field-content-after:after {\n top: 5px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content {\n height: 32px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content > .text-field-content-before {\n line-height: 30px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content > .text-field-content-before:after {\n top: 7px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input {\n height: 30px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input > input {\n padding: 6px 10px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content > .text-field-content-within > .text-field-content-within-input > .text-field-label-placeholder {\n line-height: 30px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content .text-field-content-after {\n line-height: 30px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-large > .text-field-content .text-field-content-after:after {\n top: 7px;\n height: 16px;\n}\n.paraui-v4-text-field.paraui-v4-text-field-resize > .text-field-content > .text-field-content-within > .text-field-content-within-input > textarea {\n resize: both;\n}\n\n.paraui-v4-text-field-select.component-dropdown {\n /*// 小\n &.paraui-v4-text-field-select-small {\n & > .text-field-select-content {\n & > .text-field-select-content-item {\n line-height: 28px;\n }\n }\n }\n\n // 中\n &.paraui-v4-text-field-select-medium {\n & > .text-field-select-content {\n & > .text-field-select-content-item {\n line-height: 32px;\n }\n }\n }\n\n // 大\n &.paraui-v4-text-field-select-large {\n & > .text-field-select-content {\n & > .text-field-select-content-item {\n line-height: 36px;\n }\n }\n }*/\n}\n.paraui-v4-text-field-select.component-dropdown > .text-field-select-content {\n max-height: 320px;\n overflow: auto;\n}\n.paraui-v4-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item {\n display: flex;\n cursor: pointer;\n color: rgb(29, 33, 38);\n padding: 0 10px;\n line-height: 30px;\n}\n.paraui-v4-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-field-select.component-dropdown > .text-field-select-content > .text-field-select-content-item.text-field-select-content-item-keydown {\n background-color: rgb(247, 248, 250);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-text-field-select.component-dropdown > .text-field-select-content.text-field-select-content-loading {\n height: 100px;\n position: relative;\n overflow: hidden;\n}\n.paraui-v4-text-field-select.paraui-v4-text-field-select-data.component-tooltip {\n padding: 8px 0;\n}";
|
|
32
33
|
styleInject(css_248z);
|
|
33
34
|
|
|
34
35
|
// true:数值型的,false:非数值型
|
|
@@ -50,13 +51,14 @@ var TextField = function TextField(props) {
|
|
|
50
51
|
labelTooltip = _a.labelTooltip,
|
|
51
52
|
_a$disabled = _a.disabled,
|
|
52
53
|
disabled = _a$disabled === void 0 ? false : _a$disabled,
|
|
54
|
+
disabledTooltip = _a.disabledTooltip,
|
|
53
55
|
_a$multiline = _a.multiline,
|
|
54
56
|
multiline = _a$multiline === void 0 ? false : _a$multiline,
|
|
55
57
|
_a$required = _a.required,
|
|
56
58
|
required = _a$required === void 0 ? false : _a$required,
|
|
57
59
|
labelSign = _a.labelSign,
|
|
58
60
|
_a$rows = _a.rows,
|
|
59
|
-
rows = _a$rows === void 0 ?
|
|
61
|
+
rows = _a$rows === void 0 ? 4 : _a$rows,
|
|
60
62
|
_a$error = _a.error,
|
|
61
63
|
error = _a$error === void 0 ? false : _a$error,
|
|
62
64
|
hideErrorDom = _a.hideErrorDom,
|
|
@@ -95,7 +97,7 @@ var TextField = function TextField(props) {
|
|
|
95
97
|
onClickAddonAfter = _a.onClickAddonAfter,
|
|
96
98
|
onSelect = _a.onSelect,
|
|
97
99
|
onClear = _a.onClear,
|
|
98
|
-
otherProps = __rest(_a, ["className", "style", "size", "labelMode", "placeholder", "label", "labelTooltip", "disabled", "multiline", "required", "labelSign", "rows", "error", "hideErrorDom", "helperText", "addonBefore", "addonAfter", "defaultValue", "value", "type", "onClickIcon", "rightIcon", "showRightIcon", "allowClear", "limitLength", "fetchSuggestions", "selectPopoverClass", "renderSelectItem", "showSelectName", "resize", "searchEmpty", "onBlur", "onFocus", "onChange", "onKeydown", "onKeyUp", "onEnter", "onClickAddonBefore", "onClickAddonAfter", "onSelect", "onClear"]);
|
|
100
|
+
otherProps = __rest(_a, ["className", "style", "size", "labelMode", "placeholder", "label", "labelTooltip", "disabled", "disabledTooltip", "multiline", "required", "labelSign", "rows", "error", "hideErrorDom", "helperText", "addonBefore", "addonAfter", "defaultValue", "value", "type", "onClickIcon", "rightIcon", "showRightIcon", "allowClear", "limitLength", "fetchSuggestions", "selectPopoverClass", "renderSelectItem", "showSelectName", "resize", "searchEmpty", "onBlur", "onFocus", "onChange", "onKeydown", "onKeyUp", "onEnter", "onClickAddonBefore", "onClickAddonAfter", "onSelect", "onClear"]);
|
|
99
101
|
var _useState = useState('text-field-select-content-' + UUID()),
|
|
100
102
|
_useState2 = _slicedToArray(_useState, 1),
|
|
101
103
|
classSearchOne = _useState2[0]; // 唯一class
|
|
@@ -192,7 +194,7 @@ var TextField = function TextField(props) {
|
|
|
192
194
|
};
|
|
193
195
|
// 点击内标题 / placeholder
|
|
194
196
|
/*const clickPlaceholder = () => {
|
|
195
|
-
if (disabled) return;
|
|
197
|
+
if (disabled || isFocus) return;
|
|
196
198
|
setShowText(false);
|
|
197
199
|
const dom: any = inputDom && inputDom.current;
|
|
198
200
|
dom.focus();
|
|
@@ -455,7 +457,7 @@ var TextField = function TextField(props) {
|
|
|
455
457
|
className: "clean-up-icon",
|
|
456
458
|
onClick: clickClean
|
|
457
459
|
}, {
|
|
458
|
-
children: jsx(
|
|
460
|
+
children: jsx(CloseCircleF, {})
|
|
459
461
|
}));
|
|
460
462
|
}
|
|
461
463
|
};
|
|
@@ -473,20 +475,23 @@ var TextField = function TextField(props) {
|
|
|
473
475
|
})]
|
|
474
476
|
});
|
|
475
477
|
};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
children: [jsxs("div", Object.assign({
|
|
481
|
-
className: "text-field-content-within-input"
|
|
478
|
+
var contentRender = function contentRender() {
|
|
479
|
+
return jsxs("div", Object.assign({
|
|
480
|
+
className: "text-field-content-within",
|
|
481
|
+
ref: selectPosDom
|
|
482
482
|
}, {
|
|
483
|
-
children: [
|
|
484
|
-
className: "text-field-
|
|
483
|
+
children: [jsxs("div", Object.assign({
|
|
484
|
+
className: "text-field-content-within-input"
|
|
485
485
|
}, {
|
|
486
|
-
children:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
486
|
+
children: [renderInputDom(), !handValue() && jsx("span", Object.assign({
|
|
487
|
+
className: "text-field-label-placeholder" /*onClick={clickPlaceholder}*/
|
|
488
|
+
}, {
|
|
489
|
+
children: handPlaceholderCon()
|
|
490
|
+
}))]
|
|
491
|
+
})), clearRender(), limitMemo, rightIconMemo]
|
|
492
|
+
}));
|
|
493
|
+
};
|
|
494
|
+
return contentRender();
|
|
490
495
|
}, [showText, isFocus, typeCom, valueCom, limitMemo, rightIconMemo, labelMode, placeholder, label, disabled, multiline, rows, otherProps, onChange, fetchSuggestions, onClickIcon, allowClear, onClear]);
|
|
491
496
|
// 搜索下拉内容
|
|
492
497
|
var selectContentMemo = useMemo(function () {
|
|
@@ -580,11 +585,8 @@ var TextField = function TextField(props) {
|
|
|
580
585
|
var clickAfter = function clickAfter(event) {
|
|
581
586
|
onClickAddonAfter && onClickAddonAfter(event);
|
|
582
587
|
};
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
style: style
|
|
586
|
-
}, {
|
|
587
|
-
children: [outSideMemo, jsxs("div", Object.assign({
|
|
588
|
+
var contentRender = function contentRender() {
|
|
589
|
+
return jsxs("div", Object.assign({
|
|
588
590
|
className: "text-field-content"
|
|
589
591
|
}, {
|
|
590
592
|
children: [addonBefore && jsx("div", Object.assign({
|
|
@@ -592,13 +594,29 @@ var TextField = function TextField(props) {
|
|
|
592
594
|
onClick: clickBefore
|
|
593
595
|
}, {
|
|
594
596
|
children: addonBefore
|
|
595
|
-
})), fetchSuggestions ? searchContentMemo : contentMemo, addonAfter && jsx("div", Object.assign({
|
|
597
|
+
})), fetchSuggestions && !disabled ? searchContentMemo : contentMemo, addonAfter && jsx("div", Object.assign({
|
|
596
598
|
className: "text-field-content-after",
|
|
597
599
|
onClick: clickAfter
|
|
598
600
|
}, {
|
|
599
601
|
children: addonAfter
|
|
600
602
|
}))]
|
|
601
|
-
}))
|
|
603
|
+
}));
|
|
604
|
+
};
|
|
605
|
+
var handleContentRender = function handleContentRender() {
|
|
606
|
+
if (disabledTooltip) {
|
|
607
|
+
return jsx(Tooltip, Object.assign({
|
|
608
|
+
disabled: true
|
|
609
|
+
}, disabledTooltip, {
|
|
610
|
+
children: contentRender()
|
|
611
|
+
}));
|
|
612
|
+
}
|
|
613
|
+
return contentRender();
|
|
614
|
+
};
|
|
615
|
+
return jsxs("div", Object.assign({
|
|
616
|
+
className: handClass(),
|
|
617
|
+
style: style
|
|
618
|
+
}, {
|
|
619
|
+
children: [outSideMemo, handleContentRender(), jsx(HelperText, {
|
|
602
620
|
className: "text-field-error-text",
|
|
603
621
|
error: error,
|
|
604
622
|
helperText: helperText,
|
package/TimePicker/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
3
|
import { PickerTimeProps, RangePickerTimeProps } from '../DatePicker/generatePicker';
|
|
4
|
+
import { TooltipProps } from "../Tooltip";
|
|
4
5
|
export interface TimePickerLocale {
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
rangePlaceholder?: [string, string];
|
|
@@ -12,6 +13,10 @@ declare const RangePicker: React.ForwardRefExoticComponent<TimeRangePickerProps
|
|
|
12
13
|
export interface TimePickerProps extends Omit<PickerTimeProps<Dayjs>, 'picker'> {
|
|
13
14
|
addon?: () => React.ReactNode;
|
|
14
15
|
popupClassName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 禁用提示
|
|
18
|
+
*/
|
|
19
|
+
disabledTooltip?: TooltipProps;
|
|
15
20
|
}
|
|
16
21
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<any>>;
|
|
17
22
|
type MergedTimePicker = typeof TimePicker & {
|
package/TimePicker/index.js
CHANGED
|
@@ -2,35 +2,36 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import DatePicker from '../DatePicker/index.js';
|
|
5
|
+
import { Tooltip } from '../Tooltip/index.js';
|
|
5
6
|
import 'rc-picker/es/generate/dayjs';
|
|
6
7
|
import '../Button/index.js';
|
|
7
|
-
import '../_verture/typeof-
|
|
8
|
-
import '../_verture/slicedToArray-
|
|
8
|
+
import '../_verture/typeof-adeedc13.js';
|
|
9
|
+
import '../_verture/slicedToArray-a8206399.js';
|
|
9
10
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
11
|
import 'clsx';
|
|
11
12
|
import '@para-ui/icons/LoadingF';
|
|
12
13
|
import '@para-ui/icons/Forbid';
|
|
13
|
-
import '../Tooltip/index.js';
|
|
14
|
-
import 'rc-tooltip';
|
|
15
|
-
import 'rc-tooltip/lib/placements';
|
|
16
|
-
import '../_verture/constant-66aa48a1.js';
|
|
17
|
-
import '../_verture/style-inject.es-300983ab.js';
|
|
18
14
|
import '@para-ui/icons/Down';
|
|
19
|
-
import '../_verture/
|
|
15
|
+
import '../_verture/constant-0d9802f7.js';
|
|
16
|
+
import '../_verture/style-inject.es-300983ab.js';
|
|
17
|
+
import '../_verture/index-e9007d6a.js';
|
|
20
18
|
import 'rc-dropdown';
|
|
21
19
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
22
20
|
import 'dayjs';
|
|
23
21
|
import '@paraview/lib';
|
|
24
22
|
import '../_verture/useFormatMessage-703f8b20.js';
|
|
25
23
|
import '@para-ui/core/GlobalContext';
|
|
24
|
+
import '../AutoTips/index.js';
|
|
25
|
+
import 'rc-tooltip';
|
|
26
|
+
import 'rc-tooltip/lib/placements';
|
|
26
27
|
import '../Tag/index.js';
|
|
27
|
-
import '../_verture/defineProperty-
|
|
28
|
+
import '../_verture/defineProperty-1d116156.js';
|
|
28
29
|
import '@para-ui/icons/Close';
|
|
29
|
-
import '
|
|
30
|
-
import '../
|
|
30
|
+
import '@para-ui/icons/EditOutline';
|
|
31
|
+
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
31
32
|
import '@para-ui/icons/Plus';
|
|
32
33
|
import 'rc-picker';
|
|
33
|
-
import '@para-ui/icons/
|
|
34
|
+
import '@para-ui/icons/CloseCircleF';
|
|
34
35
|
import '@para-ui/icons/Calendar';
|
|
35
36
|
import '@para-ui/icons/Time';
|
|
36
37
|
import 'rc-picker/lib/locale/en_US';
|
|
@@ -52,11 +53,13 @@ var RangePicker = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
52
53
|
ref: ref
|
|
53
54
|
}));
|
|
54
55
|
});
|
|
55
|
-
var TimePicker = /*#__PURE__*/React__default.forwardRef(function (
|
|
56
|
-
var addon =
|
|
57
|
-
renderExtraFooter =
|
|
58
|
-
popupClassName =
|
|
59
|
-
|
|
56
|
+
var TimePicker = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
57
|
+
var addon = props.addon,
|
|
58
|
+
renderExtraFooter = props.renderExtraFooter,
|
|
59
|
+
popupClassName = props.popupClassName,
|
|
60
|
+
disabled = props.disabled,
|
|
61
|
+
disabledTooltip = props.disabledTooltip,
|
|
62
|
+
restProps = __rest(props, ["addon", "renderExtraFooter", "popupClassName", "disabled", "disabledTooltip"]);
|
|
60
63
|
var internalRenderExtraFooter = React__default.useMemo(function () {
|
|
61
64
|
if (renderExtraFooter) {
|
|
62
65
|
return renderExtraFooter;
|
|
@@ -66,12 +69,25 @@ var TimePicker = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
66
69
|
}
|
|
67
70
|
return undefined;
|
|
68
71
|
}, [addon, renderExtraFooter]);
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
var renderPicker = function renderPicker() {
|
|
73
|
+
var component = jsx(InternalTimePicker, Object.assign({}, restProps, {
|
|
74
|
+
disabled: disabled,
|
|
75
|
+
picker: 'time',
|
|
76
|
+
dropdownClassName: popupClassName,
|
|
77
|
+
mode: undefined,
|
|
78
|
+
ref: ref,
|
|
79
|
+
renderExtraFooter: internalRenderExtraFooter
|
|
80
|
+
}));
|
|
81
|
+
if (disabled && disabledTooltip) {
|
|
82
|
+
return jsx(Tooltip, Object.assign({
|
|
83
|
+
disabled: true
|
|
84
|
+
}, disabledTooltip, {
|
|
85
|
+
children: component
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
return component;
|
|
89
|
+
};
|
|
90
|
+
return renderPicker();
|
|
75
91
|
});
|
|
76
92
|
TimePicker.displayName = 'TimePicker';
|
|
77
93
|
TimePicker.TimeRangePicker = RangePicker;
|
package/Timeline/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @date 2022/6/9 下午7:21
|
|
4
4
|
* @description Timeline
|
|
5
5
|
*/
|
|
6
|
-
import React from
|
|
7
|
-
import { TimelineItemProps } from
|
|
8
|
-
import
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { TimelineItemProps } from "./TimelineItem";
|
|
8
|
+
import "./index.scss";
|
|
9
9
|
export interface TimelineProps {
|
|
10
10
|
/** cls */
|
|
11
11
|
className?: string;
|
|
@@ -18,8 +18,8 @@ export interface TimelineProps {
|
|
|
18
18
|
/** 节点排序 */
|
|
19
19
|
reverse?: boolean;
|
|
20
20
|
/** 改变时间轴和内容的相对位置 */
|
|
21
|
-
mode?:
|
|
22
|
-
align?:
|
|
21
|
+
mode?: "left" | "alternate" | "right" | "double";
|
|
22
|
+
align?: "left" | "alternate" | "right" | "double";
|
|
23
23
|
/** timeline item */
|
|
24
24
|
data?: TimelineItemProps[];
|
|
25
25
|
[name: string]: any;
|
package/Timeline/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-1d116156.js';
|
|
2
2
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-
|
|
6
|
+
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import '../_verture/typeof-
|
|
8
|
+
import '../_verture/typeof-adeedc13.js';
|
|
9
9
|
|
|
10
10
|
//TimelineItem
|
|
11
11
|
var TimelineItem = function TimelineItem(props) {
|
|
@@ -49,7 +49,7 @@ var TimelineItem = function TimelineItem(props) {
|
|
|
49
49
|
}));
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/9 下午8:00\n* @description\n*/\n/**\n* @author
|
|
52
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/9 下午8:00\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-timeline {\n color: rgb(29, 33, 38);\n font-size: 14px;\n line-height: 1.5715;\n list-style: none;\n}\n.paraui-v4-timeline .component-timeline-item {\n position: relative;\n margin: 0;\n min-height: 70px;\n padding-bottom: 20px;\n font-size: 14px;\n list-style: none;\n}\n.paraui-v4-timeline .component-timeline-item-disabled .component-timeline-item-head:not(.component-timeline-item-head-custom) {\n background-color: rgb(161, 168, 179);\n}\n.paraui-v4-timeline .component-timeline-item-disabled .component-timeline-item-head svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-timeline .component-timeline-item-disabled .component-timeline-item-content {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-timeline .component-timeline-item-tail {\n position: absolute;\n top: 16px;\n bottom: 8px;\n left: 3.5px;\n border-left: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-timeline .component-timeline-item-pending .component-timeline-item-head {\n font-size: 12px;\n background-color: transparent;\n}\n.paraui-v4-timeline .component-timeline-item-pending .component-timeline-item-tail {\n display: none;\n}\n.paraui-v4-timeline .component-timeline-item-head {\n position: absolute;\n width: 8px;\n height: 8px;\n background-color: rgb(46, 101, 230);\n border-radius: 100px;\n}\n.paraui-v4-timeline .component-timeline-item-head-custom {\n position: absolute;\n top: 5.5px;\n left: 5px;\n width: auto;\n height: auto;\n margin-top: 0;\n padding: 3px 1px;\n line-height: 1;\n text-align: center;\n border: 0;\n border-radius: 0;\n background-color: transparent;\n transform: translate(-50%, -50%);\n}\n.paraui-v4-timeline .component-timeline-item-content {\n position: relative;\n top: -7px;\n margin: 0 0 0 20px;\n word-break: break-word;\n}\n.paraui-v4-timeline .component-timeline-item-last > .component-timeline-item-tail {\n display: none;\n}\n.paraui-v4-timeline .component-timeline-item-last > .component-timeline-item-content {\n min-height: 48px;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head-custom {\n left: 50%;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head {\n margin-left: -4px;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head-custom {\n margin-left: 1px;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-left .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-left .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-left .component-timeline-item-content {\n left: calc(50% - 4px);\n width: calc(50% - 14px);\n text-align: left;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-double .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-double .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-double .component-timeline-item-content {\n left: calc(50% - 4px);\n width: calc(50% - 14px);\n text-align: left;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-right .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-right .component-timeline-item-content,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-right .component-timeline-item-content {\n width: calc(50% - 12px);\n margin: 0;\n text-align: right;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-right .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-right .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-right .component-timeline-item-head-custom {\n left: calc(100% - 4px - 2px);\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-right .component-timeline-item-content {\n width: calc(100% - 18px);\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-pending .component-timeline-item-last .component-timeline-item-tail {\n display: block;\n height: calc(100% - 14px);\n border-left: 2px dotted #f0f0f0;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-reverse .component-timeline-item-last .component-timeline-item-tail {\n display: none;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-reverse .component-timeline-item-pending .component-timeline-item-tail {\n top: 15px;\n display: block;\n height: calc(100% - 15px);\n border-left: 2px dotted #f0f0f0;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-reverse .component-timeline-item-pending .component-timeline-item-content {\n min-height: 48px;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-label {\n position: absolute;\n top: -7.001px;\n width: calc(50% - 12px);\n text-align: right;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-right .component-timeline-item-label {\n left: calc(50% + 14px);\n width: calc(50% - 14px);\n text-align: left;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-tail,\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head,\n.paraui-v4-timeline.paraui-v4-timeline-alternate .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-right .component-timeline-item-head-custom,\n.paraui-v4-timeline.paraui-v4-timeline-label .component-timeline-item-head-custom {\n left: 50%;\n}\n\n.paraui-v4-timeline.paraui-v4-timeline-double .component-timeline-item-label {\n position: absolute;\n inset-block-start: -6px;\n width: calc(50% - 14px);\n text-align: end;\n}";
|
|
53
53
|
styleInject(css_248z);
|
|
54
54
|
|
|
55
55
|
//Timeline
|
|
@@ -63,13 +63,13 @@ var Timeline = function Timeline(props) {
|
|
|
63
63
|
_props$reverse = props.reverse,
|
|
64
64
|
reverse = _props$reverse === void 0 ? false : _props$reverse,
|
|
65
65
|
_props$mode = props.mode,
|
|
66
|
-
mode = _props$mode === void 0 ?
|
|
66
|
+
mode = _props$mode === void 0 ? "left" : _props$mode,
|
|
67
67
|
align = props.align,
|
|
68
68
|
data = props.data,
|
|
69
69
|
restProps = __rest(props, ["pending", "pendingDot", "children", "className", "reverse", "mode", "align", "data"]);
|
|
70
70
|
var prefixCls = "".concat($prefixCls, "-timeline");
|
|
71
71
|
var innerMode = align !== null && align !== void 0 ? align : mode; //时间轴和内容相对位置
|
|
72
|
-
var pendingNode = typeof pending ===
|
|
72
|
+
var pendingNode = typeof pending === "boolean" ? null : pending; //是否有幽灵节点
|
|
73
73
|
//pending节点项
|
|
74
74
|
var pendingItem = pending ? jsx(TimelineItem, Object.assign({
|
|
75
75
|
pending: !!pending,
|
|
@@ -86,15 +86,16 @@ var Timeline = function Timeline(props) {
|
|
|
86
86
|
//position cls
|
|
87
87
|
var getPositionCls = function getPositionCls(ele, idx) {
|
|
88
88
|
var _a, _b, _c;
|
|
89
|
-
if (innerMode ===
|
|
90
|
-
if (((_a = ele === null || ele === void 0 ? void 0 : ele.props) === null || _a === void 0 ? void 0 : _a.position) ===
|
|
91
|
-
if (((_b = ele === null || ele === void 0 ? void 0 : ele.props) === null || _b === void 0 ? void 0 : _b.position) ===
|
|
89
|
+
if (innerMode === "alternate") {
|
|
90
|
+
if (((_a = ele === null || ele === void 0 ? void 0 : ele.props) === null || _a === void 0 ? void 0 : _a.position) === "right") return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
91
|
+
if (((_b = ele === null || ele === void 0 ? void 0 : ele.props) === null || _b === void 0 ? void 0 : _b.position) === "left") return "".concat($rcPrefixCls, "-timeline-item-left");
|
|
92
92
|
return idx % 2 === 0 ? "".concat($rcPrefixCls, "-timeline-item-left") : "".concat($rcPrefixCls, "-timeline-item-right");
|
|
93
93
|
}
|
|
94
|
-
if (innerMode ===
|
|
95
|
-
if (innerMode ===
|
|
96
|
-
if (
|
|
97
|
-
return
|
|
94
|
+
if (innerMode === "left") return "".concat($rcPrefixCls, "-timeline-item-left");
|
|
95
|
+
if (innerMode === "right") return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
96
|
+
if (innerMode === "double") return "".concat($rcPrefixCls, "-timeline-item-double");
|
|
97
|
+
if (((_c = ele === null || ele === void 0 ? void 0 : ele.props) === null || _c === void 0 ? void 0 : _c.position) === "right") return "".concat($rcPrefixCls, "-timeline-item-right");
|
|
98
|
+
return "";
|
|
98
99
|
};
|
|
99
100
|
//实际渲染项
|
|
100
101
|
var truthyItems = timeLineItems.filter(function (item) {
|
|
@@ -103,8 +104,8 @@ var Timeline = function Timeline(props) {
|
|
|
103
104
|
var itemsCount = React__default.Children.count(truthyItems);
|
|
104
105
|
var lastCls = "".concat($rcPrefixCls, "-timeline-item-last");
|
|
105
106
|
var items = React__default.Children.map(truthyItems, function (ele, idx) {
|
|
106
|
-
var pendingClass = idx === itemsCount - 2 ? lastCls :
|
|
107
|
-
var readyClass = idx === itemsCount - 1 ? lastCls :
|
|
107
|
+
var pendingClass = idx === itemsCount - 2 ? lastCls : "";
|
|
108
|
+
var readyClass = idx === itemsCount - 1 ? lastCls : "";
|
|
108
109
|
return /*#__PURE__*/React__default.cloneElement(ele, {
|
|
109
110
|
className: clsx([ele.props.className, !reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
|
|
110
111
|
});
|
|
@@ -126,10 +127,12 @@ var Timeline = function Timeline(props) {
|
|
|
126
127
|
content = item.content,
|
|
127
128
|
_item$disabled = item.disabled,
|
|
128
129
|
disabled = _item$disabled === void 0 ? false : _item$disabled,
|
|
129
|
-
className = item.className
|
|
130
|
-
|
|
131
|
-
var
|
|
130
|
+
className = item.className,
|
|
131
|
+
label = item.label;
|
|
132
|
+
var pendingClass = idx === itemsCount - 2 ? lastCls : "";
|
|
133
|
+
var readyClass = idx === itemsCount - 1 ? lastCls : "";
|
|
132
134
|
return jsx(TimelineItem, Object.assign({
|
|
135
|
+
label: innerMode === 'double' && label,
|
|
133
136
|
dot: dotIcon,
|
|
134
137
|
className: clsx([className, _defineProperty({}, "".concat($rcPrefixCls, "-timeline-item-disabled"), disabled), !reverse && !!pending ? pendingClass : readyClass, getPositionCls(null, idx)])
|
|
135
138
|
}, {
|