assui 2.3.4 → 2.3.6
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/es/a-select/index.d.ts +11 -0
- package/es/a-select/style/index.d.ts +2 -0
- package/es/area-text/index.d.ts +7 -0
- package/es/area-text/style/index.d.ts +1 -0
- package/es/beautiful-dnd/index.d.ts +2 -0
- package/es/beautiful-dnd/style/index.d.ts +1 -0
- package/es/button-drawer/index.d.ts +14 -0
- package/es/button-drawer/index.js +1 -1
- package/es/button-drawer/style/index.d.ts +1 -0
- package/es/button-modal/index.d.ts +14 -0
- package/es/button-modal/index.js +1 -1
- package/es/button-modal/style/index.d.ts +1 -0
- package/es/color-select/index.d.ts +23 -0
- package/es/color-select/style/index.d.ts +2 -0
- package/es/condition-input/index.d.ts +17 -0
- package/es/condition-input/parse2RegexOption.d.ts +13 -0
- package/es/condition-input/style/index.d.ts +1 -0
- package/es/config-provider/context.d.ts +4 -0
- package/es/config-provider/index.d.ts +8 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/copy-to-clipboard/index.d.ts +22 -0
- package/es/copy-to-clipboard/index.js +1 -1
- package/es/copy-to-clipboard/style/index.d.ts +1 -0
- package/es/highlight-textarea/HighlighedContents.d.ts +7 -0
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
- package/es/highlight-textarea/getRanges.d.ts +2 -0
- package/es/highlight-textarea/getType.d.ts +2 -0
- package/es/highlight-textarea/index.d.ts +12 -0
- package/es/highlight-textarea/style/index.css +3 -7
- package/es/highlight-textarea/style/index.d.ts +1 -0
- package/es/highlight-textarea/types.d.ts +16 -0
- package/es/highlight-words/index.d.ts +3 -0
- package/es/highlight-words/style/index.d.ts +1 -0
- package/es/img-crop/EasyCrop.d.ts +6 -0
- package/es/img-crop/getCroppedImg.d.ts +6 -0
- package/es/img-crop/index.d.ts +53 -0
- package/es/img-crop/index.js +1 -1
- package/es/img-crop/style/index.d.ts +3 -0
- package/es/index.d.ts +72 -0
- package/es/json-editor/index.d.ts +10 -0
- package/es/json-editor/style/index.d.ts +2 -0
- package/es/keep-tab/index.d.ts +29 -0
- package/es/keep-tab/index.js +26 -25
- package/es/keep-tab/style/index.css +6 -29
- package/es/keep-tab/style/index.d.ts +2 -0
- package/es/label-auto-complete/index.d.ts +8 -0
- package/es/label-auto-complete/style/index.d.ts +2 -0
- package/es/label-condition-input/index.d.ts +16 -0
- package/es/label-condition-input/style/index.d.ts +1 -0
- package/es/label-customize-range-picker/defaultRadioList.d.ts +25 -0
- package/es/label-customize-range-picker/index.d.ts +20 -0
- package/es/label-customize-range-picker/style/index.d.ts +5 -0
- package/es/label-customize-range-picker/utils/index.d.ts +2 -0
- package/es/label-date-picker/index.d.ts +7 -0
- package/es/label-date-picker/style/index.d.ts +2 -0
- package/es/label-input/index.d.ts +29 -0
- package/es/label-input/style/index.d.ts +1 -0
- package/es/label-number-input/index.d.ts +12 -0
- package/es/label-number-input/style/index.d.ts +1 -0
- package/es/label-range-picker/index.d.ts +8 -0
- package/es/label-range-picker/style/index.d.ts +2 -0
- package/es/label-select/index.d.ts +12 -0
- package/es/label-select/style/index.d.ts +2 -0
- package/es/label-text-area/index.d.ts +21 -0
- package/es/label-text-area/style/index.d.ts +1 -0
- package/es/label-tree-select/index.d.ts +11 -0
- package/es/label-tree-select/style/index.d.ts +2 -0
- package/es/messages/ar_EG.d.ts +26 -0
- package/es/messages/bg_BG.d.ts +26 -0
- package/es/messages/cs_CZ.d.ts +26 -0
- package/es/messages/de_DE.d.ts +26 -0
- package/es/messages/en_US.d.ts +26 -0
- package/es/messages/es_ES.d.ts +26 -0
- package/es/messages/fi_FI.d.ts +26 -0
- package/es/messages/fr_FR.d.ts +26 -0
- package/es/messages/id_ID.d.ts +26 -0
- package/es/messages/index.d.ts +27 -0
- package/es/messages/it_IT.d.ts +26 -0
- package/es/messages/ja_JP.d.ts +26 -0
- package/es/messages/ko_KR.d.ts +26 -0
- package/es/messages/nb_NO.d.ts +26 -0
- package/es/messages/nl_NL.d.ts +26 -0
- package/es/messages/pt_PT.d.ts +26 -0
- package/es/messages/ro_RO.d.ts +26 -0
- package/es/messages/ru_RU.d.ts +26 -0
- package/es/messages/sv_SE.d.ts +26 -0
- package/es/messages/th_TH.d.ts +26 -0
- package/es/messages/vi_VN.d.ts +26 -0
- package/es/messages/zh_CN.d.ts +26 -0
- package/es/messages/zh_TW.d.ts +26 -0
- package/es/number-format-input/index.d.ts +5 -0
- package/es/number-format-input/style/index.d.ts +1 -0
- package/es/number-input/const/dataTypeEnum.d.ts +3 -0
- package/es/number-input/const/numberType.d.ts +2 -0
- package/es/number-input/index.d.ts +42 -0
- package/es/number-input/style/index.d.ts +1 -0
- package/es/number-input/utils.d.ts +10 -0
- package/es/rc-echart/core.d.ts +29 -0
- package/es/rc-echart/index.d.ts +19 -0
- package/es/rc-echart/style/index.d.ts +1 -0
- package/es/rc-motion/index.d.ts +4 -0
- package/es/rc-motion/style/index.d.ts +1 -0
- package/es/rc-qrcode/index.d.ts +21 -0
- package/es/rc-qrcode/style/index.d.ts +1 -0
- package/es/rc-qrcode/useQrcode.d.ts +4 -0
- package/es/rc-transition-group/index.d.ts +2 -0
- package/es/rc-transition-group/style/index.d.ts +1 -0
- package/es/resizable/index.d.ts +4 -0
- package/es/resizable/style/index.d.ts +1 -0
- package/es/rich-text-editor/index.d.ts +37 -0
- package/es/rich-text-editor/lang/zh_CN.d.ts +407 -0
- package/es/rich-text-editor/plugins/code/index.d.ts +2 -0
- package/es/rich-text-editor/style/index.d.ts +1 -0
- package/es/single-img-upload/index.d.ts +22 -0
- package/es/single-img-upload/style/index.d.ts +3 -0
- package/es/sortable-hoc/index.d.ts +2 -0
- package/es/sortable-hoc/style/index.d.ts +1 -0
- package/es/split-pane/index.d.ts +59 -0
- package/es/split-pane/style/index.d.ts +1 -0
- package/es/step-number-input/const/countType.d.ts +2 -0
- package/es/step-number-input/const/numberType.d.ts +2 -0
- package/es/step-number-input/index.d.ts +43 -0
- package/es/step-number-input/style/index.d.ts +2 -0
- package/es/table-col/index.d.ts +8 -0
- package/es/table-col/style/index.d.ts +1 -0
- package/es/text-area/index.d.ts +12 -0
- package/es/text-area/style/index.d.ts +1 -0
- package/es/text-input/index.d.ts +5 -0
- package/es/text-input/style/index.css +3 -7
- package/es/text-input/style/index.d.ts +1 -0
- package/lib/a-select/index.d.ts +11 -0
- package/lib/a-select/style/index.d.ts +2 -0
- package/lib/area-text/index.d.ts +7 -0
- package/lib/area-text/style/index.d.ts +1 -0
- package/lib/beautiful-dnd/index.d.ts +2 -0
- package/lib/beautiful-dnd/style/index.d.ts +1 -0
- package/lib/button-drawer/index.d.ts +14 -0
- package/lib/button-drawer/index.js +1 -1
- package/lib/button-drawer/style/index.d.ts +1 -0
- package/lib/button-modal/index.d.ts +14 -0
- package/lib/button-modal/index.js +1 -1
- package/lib/button-modal/style/index.d.ts +1 -0
- package/lib/color-select/index.d.ts +23 -0
- package/lib/color-select/style/index.d.ts +2 -0
- package/lib/condition-input/index.d.ts +17 -0
- package/lib/condition-input/parse2RegexOption.d.ts +13 -0
- package/lib/condition-input/style/index.d.ts +1 -0
- package/lib/config-provider/context.d.ts +4 -0
- package/lib/config-provider/index.d.ts +8 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/copy-to-clipboard/index.d.ts +22 -0
- package/lib/copy-to-clipboard/index.js +1 -1
- package/lib/copy-to-clipboard/style/index.d.ts +1 -0
- package/lib/highlight-textarea/HighlighedContents.d.ts +7 -0
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +15 -0
- package/lib/highlight-textarea/getRanges.d.ts +2 -0
- package/lib/highlight-textarea/getType.d.ts +2 -0
- package/lib/highlight-textarea/index.d.ts +12 -0
- package/lib/highlight-textarea/style/index.css +3 -7
- package/lib/highlight-textarea/style/index.d.ts +1 -0
- package/lib/highlight-textarea/types.d.ts +16 -0
- package/lib/highlight-words/index.d.ts +3 -0
- package/lib/highlight-words/style/index.d.ts +1 -0
- package/lib/img-crop/EasyCrop.d.ts +6 -0
- package/lib/img-crop/getCroppedImg.d.ts +6 -0
- package/lib/img-crop/index.d.ts +53 -0
- package/lib/img-crop/index.js +1 -1
- package/lib/img-crop/style/index.d.ts +3 -0
- package/lib/index.d.ts +72 -0
- package/lib/json-editor/index.d.ts +10 -0
- package/lib/json-editor/style/index.d.ts +2 -0
- package/lib/keep-tab/index.d.ts +29 -0
- package/lib/keep-tab/index.js +27 -25
- package/lib/keep-tab/style/index.css +6 -29
- package/lib/keep-tab/style/index.d.ts +2 -0
- package/lib/label-auto-complete/index.d.ts +8 -0
- package/lib/label-auto-complete/style/index.d.ts +2 -0
- package/lib/label-condition-input/index.d.ts +16 -0
- package/lib/label-condition-input/style/index.d.ts +1 -0
- package/lib/label-customize-range-picker/defaultRadioList.d.ts +25 -0
- package/lib/label-customize-range-picker/index.d.ts +20 -0
- package/lib/label-customize-range-picker/style/index.d.ts +5 -0
- package/lib/label-customize-range-picker/utils/index.d.ts +2 -0
- package/lib/label-date-picker/index.d.ts +7 -0
- package/lib/label-date-picker/style/index.d.ts +2 -0
- package/lib/label-input/index.d.ts +29 -0
- package/lib/label-input/style/index.d.ts +1 -0
- package/lib/label-number-input/index.d.ts +12 -0
- package/lib/label-number-input/style/index.d.ts +1 -0
- package/lib/label-range-picker/index.d.ts +8 -0
- package/lib/label-range-picker/style/index.d.ts +2 -0
- package/lib/label-select/index.d.ts +12 -0
- package/lib/label-select/style/index.d.ts +2 -0
- package/lib/label-text-area/index.d.ts +21 -0
- package/lib/label-text-area/style/index.d.ts +1 -0
- package/lib/label-tree-select/index.d.ts +11 -0
- package/lib/label-tree-select/style/index.d.ts +2 -0
- package/lib/messages/ar_EG.d.ts +26 -0
- package/lib/messages/bg_BG.d.ts +26 -0
- package/lib/messages/cs_CZ.d.ts +26 -0
- package/lib/messages/de_DE.d.ts +26 -0
- package/lib/messages/en_US.d.ts +26 -0
- package/lib/messages/es_ES.d.ts +26 -0
- package/lib/messages/fi_FI.d.ts +26 -0
- package/lib/messages/fr_FR.d.ts +26 -0
- package/lib/messages/id_ID.d.ts +26 -0
- package/lib/messages/index.d.ts +27 -0
- package/lib/messages/it_IT.d.ts +26 -0
- package/lib/messages/ja_JP.d.ts +26 -0
- package/lib/messages/ko_KR.d.ts +26 -0
- package/lib/messages/nb_NO.d.ts +26 -0
- package/lib/messages/nl_NL.d.ts +26 -0
- package/lib/messages/pt_PT.d.ts +26 -0
- package/lib/messages/ro_RO.d.ts +26 -0
- package/lib/messages/ru_RU.d.ts +26 -0
- package/lib/messages/sv_SE.d.ts +26 -0
- package/lib/messages/th_TH.d.ts +26 -0
- package/lib/messages/vi_VN.d.ts +26 -0
- package/lib/messages/zh_CN.d.ts +26 -0
- package/lib/messages/zh_TW.d.ts +26 -0
- package/lib/number-format-input/index.d.ts +5 -0
- package/lib/number-format-input/style/index.d.ts +1 -0
- package/lib/number-input/const/dataTypeEnum.d.ts +3 -0
- package/lib/number-input/const/numberType.d.ts +2 -0
- package/lib/number-input/index.d.ts +42 -0
- package/lib/number-input/style/index.d.ts +1 -0
- package/lib/number-input/utils.d.ts +10 -0
- package/lib/rc-echart/core.d.ts +29 -0
- package/lib/rc-echart/index.d.ts +19 -0
- package/lib/rc-echart/style/index.d.ts +1 -0
- package/lib/rc-motion/index.d.ts +4 -0
- package/lib/rc-motion/style/index.d.ts +1 -0
- package/lib/rc-qrcode/index.d.ts +21 -0
- package/lib/rc-qrcode/style/index.d.ts +1 -0
- package/lib/rc-qrcode/useQrcode.d.ts +4 -0
- package/lib/rc-transition-group/index.d.ts +2 -0
- package/lib/rc-transition-group/style/index.d.ts +1 -0
- package/lib/resizable/index.d.ts +4 -0
- package/lib/resizable/style/index.d.ts +1 -0
- package/lib/rich-text-editor/index.d.ts +37 -0
- package/lib/rich-text-editor/lang/zh_CN.d.ts +407 -0
- package/lib/rich-text-editor/plugins/code/index.d.ts +2 -0
- package/lib/rich-text-editor/style/index.d.ts +1 -0
- package/lib/single-img-upload/index.d.ts +22 -0
- package/lib/single-img-upload/style/index.d.ts +3 -0
- package/lib/sortable-hoc/index.d.ts +2 -0
- package/lib/sortable-hoc/style/index.d.ts +1 -0
- package/lib/split-pane/index.d.ts +59 -0
- package/lib/split-pane/style/index.d.ts +1 -0
- package/lib/step-number-input/const/countType.d.ts +2 -0
- package/lib/step-number-input/const/numberType.d.ts +2 -0
- package/lib/step-number-input/index.d.ts +43 -0
- package/lib/step-number-input/style/index.d.ts +2 -0
- package/lib/table-col/index.d.ts +8 -0
- package/lib/table-col/style/index.d.ts +1 -0
- package/lib/text-area/index.d.ts +12 -0
- package/lib/text-area/style/index.d.ts +1 -0
- package/lib/text-input/index.d.ts +5 -0
- package/lib/text-input/style/index.css +3 -7
- package/lib/text-input/style/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DrawerProps } from 'antd/lib/drawer';
|
|
3
|
+
export declare type DrawerAction = {
|
|
4
|
+
close: () => void;
|
|
5
|
+
open: () => void;
|
|
6
|
+
};
|
|
7
|
+
export interface ButtonDrawerProps extends Omit<DrawerProps, 'children'> {
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
onOpen?: () => void;
|
|
10
|
+
trigger: React.ReactElement;
|
|
11
|
+
children: ((v: DrawerAction) => React.ReactElement) | React.ReactElement;
|
|
12
|
+
}
|
|
13
|
+
declare const ForwardRefButtonDrawer: React.ForwardRefExoticComponent<ButtonDrawerProps & React.RefAttributes<unknown>>;
|
|
14
|
+
export default ForwardRefButtonDrawer;
|
|
@@ -162,7 +162,7 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
|
|
|
162
162
|
className: (0, classnames_1["default"])('button-drawer', className),
|
|
163
163
|
title: title,
|
|
164
164
|
onClose: closeDrawer,
|
|
165
|
-
|
|
165
|
+
visible: drawerVisible
|
|
166
166
|
}, restProps), (0, isFunction_1["default"])(children) ? children(actionRef.current) : react_1["default"].cloneElement(children, {
|
|
167
167
|
drawerAction: actionRef.current
|
|
168
168
|
})));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'antd/lib/drawer/style';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ModalProps } from 'antd/lib/modal';
|
|
3
|
+
export interface ModalAction {
|
|
4
|
+
open: () => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ButtonModalProps extends Omit<ModalProps, 'children'> {
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
onOpen?: () => void;
|
|
10
|
+
trigger?: React.ReactElement;
|
|
11
|
+
children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
|
|
12
|
+
}
|
|
13
|
+
declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
|
|
14
|
+
export default ForwardRefButtonModal;
|
|
@@ -164,7 +164,7 @@ var ButtonModal = function ButtonModal(props, ref) {
|
|
|
164
164
|
onClick: openModal
|
|
165
165
|
});
|
|
166
166
|
return React.createElement(React.Fragment, null, buttonNode, React.createElement(modal_1["default"], __assign({
|
|
167
|
-
|
|
167
|
+
visible: visible,
|
|
168
168
|
onOk: handleModalOk,
|
|
169
169
|
onCancel: handleModalCancel,
|
|
170
170
|
centered: true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'antd/lib/modal/style';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { SketchPickerProps } from 'react-color';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { TriggerProps } from 'rc-trigger';
|
|
4
|
+
export declare type ColorSelectProps = {
|
|
5
|
+
value?: {
|
|
6
|
+
hex?: string;
|
|
7
|
+
rgb?: string;
|
|
8
|
+
};
|
|
9
|
+
/** 自定义总容器 class */
|
|
10
|
+
classNameWrap?: string;
|
|
11
|
+
/** 自定义其余描述展示 */
|
|
12
|
+
renderExtra?: (value: ColorSelectProps['value']) => React.ReactElement;
|
|
13
|
+
/** 自定义value class */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** 组件react-color的props */
|
|
16
|
+
reactColorProps?: Omit<SketchPickerProps, 'onChange'>;
|
|
17
|
+
/** 组件rc-trigger */
|
|
18
|
+
RcTriggerProps?: Omit<TriggerProps, 'popup'>;
|
|
19
|
+
/** 自定义value的展示 */
|
|
20
|
+
renderValueNode?: (value: ColorSelectProps['value']) => React.ReactElement;
|
|
21
|
+
};
|
|
22
|
+
declare const ColorSelect: React.FC<ColorSelectProps>;
|
|
23
|
+
export default ColorSelect;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { InputProps } from 'antd/lib/input';
|
|
3
|
+
export interface ConditionInputProps extends Omit<InputProps, 'onChange'> {
|
|
4
|
+
/** 过滤的正则条件 */
|
|
5
|
+
regexp?: RegExp | (RegExp | string | {
|
|
6
|
+
pattern: RegExp;
|
|
7
|
+
replacement?: string;
|
|
8
|
+
})[];
|
|
9
|
+
/** 指定输入框展示值的格式 */
|
|
10
|
+
formatter?: (value: string) => string;
|
|
11
|
+
/** 变化回调 */
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
/** 输入框内容 */
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const ConditionInput: React.ForwardRefExoticComponent<ConditionInputProps & React.RefAttributes<unknown>>;
|
|
17
|
+
export default ConditionInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RegexOptionType {
|
|
2
|
+
isValid: boolean;
|
|
3
|
+
replacement: string;
|
|
4
|
+
}
|
|
5
|
+
declare type regexParamsType = RegExp | string | {
|
|
6
|
+
pattern: RegExp;
|
|
7
|
+
replacement?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface ResultType extends RegexOptionType {
|
|
10
|
+
pattern: RegExp;
|
|
11
|
+
}
|
|
12
|
+
declare const parse2RegexOption: (regex: regexParamsType) => ResultType;
|
|
13
|
+
export default parse2RegexOption;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'antd/lib/input/style';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type LocaleType = 'en-US' | 'zh-CN' | 'zh-TW' | 'bg' | 'cs' | 'de' | 'es' | 'fr' | 'fi' | 'it' | 'id' | 'ja' | 'ko' | 'nl' | 'nb-NO' | 'ru' | 'sv' | 'pt' | 'ar' | 'th' | 'ro' | 'vi';
|
|
3
|
+
export interface ConfigProviderProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
locale: LocaleType;
|
|
6
|
+
}
|
|
7
|
+
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
8
|
+
export default ConfigProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
3
|
+
export interface CopyToClipboardProps {
|
|
4
|
+
/** 需要复制的字符串 */
|
|
5
|
+
text: string;
|
|
6
|
+
/** 触发复制事件的元素 */
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
/** 文本被复制时候的回调 */
|
|
9
|
+
onCopy?: (text: string, result: boolean) => void;
|
|
10
|
+
/** ant design Tooltip props */
|
|
11
|
+
tooltipProps?: Omit<TooltipProps, 'title'>;
|
|
12
|
+
/** 复制成功的Tooltip提示文案 */
|
|
13
|
+
tooltipTitle?: React.ReactNode;
|
|
14
|
+
/** 依赖底层组件 https://github.com/sudodoki/copy-to-clipboard 的 options */
|
|
15
|
+
options?: {
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
message?: string;
|
|
18
|
+
format?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(props: CopyToClipboardProps) => JSX.Element>;
|
|
22
|
+
export default _default;
|
|
@@ -137,7 +137,7 @@ var CopyToClipboard = function CopyToClipboard(props) {
|
|
|
137
137
|
|
|
138
138
|
return tooltipTitle ? react_1["default"].createElement(tooltip_1["default"], __assign({
|
|
139
139
|
placement: "topLeft",
|
|
140
|
-
|
|
140
|
+
visible: tooltipVisible,
|
|
141
141
|
title: tooltipTitle
|
|
142
142
|
}, tooltipProps), react_1["default"].cloneElement(children, {
|
|
143
143
|
onClick: onClick
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HighlightType } from './types';
|
|
2
|
+
export interface HighlighedContentsProps {
|
|
3
|
+
value: string;
|
|
4
|
+
highlight: HighlightType;
|
|
5
|
+
}
|
|
6
|
+
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
7
|
+
export default HighlighedContents;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RangesType } from './types';
|
|
2
|
+
declare class Span {
|
|
3
|
+
beginIndex: number;
|
|
4
|
+
endIndex: number;
|
|
5
|
+
markClasses: Set<string>;
|
|
6
|
+
isMark: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
constructor(text: string, beginIndex: number);
|
|
9
|
+
setMark(className: string): void;
|
|
10
|
+
carve(beginIndex2: number): Span;
|
|
11
|
+
get className(): string;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default function extractSpansOfClasses(value: string, ranges: RangesType): Span[];
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { HighlighedContentsProps } from './HighlighedContents';
|
|
3
|
+
import type { HighlightType } from './types';
|
|
4
|
+
export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
textAreaClassName?: string;
|
|
8
|
+
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
highlight: HighlightType;
|
|
10
|
+
}
|
|
11
|
+
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
12
|
+
export default HighlightWithinTextarea;
|
|
@@ -137,7 +137,6 @@ textarea.ant-input-affix-wrapper {
|
|
|
137
137
|
}
|
|
138
138
|
.ant-input-affix-wrapper > input.ant-input {
|
|
139
139
|
padding: 0;
|
|
140
|
-
font-size: inherit;
|
|
141
140
|
border: none;
|
|
142
141
|
outline: none;
|
|
143
142
|
}
|
|
@@ -836,21 +835,18 @@ textarea.ant-input {
|
|
|
836
835
|
}
|
|
837
836
|
.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary),
|
|
838
837
|
.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary) {
|
|
838
|
+
border-right-color: #40a9ff;
|
|
839
839
|
border-left-color: #d9d9d9;
|
|
840
840
|
}
|
|
841
|
-
.ant-input-search-rtl .ant-input:hover + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover,
|
|
842
|
-
.ant-input-search-rtl .ant-input:focus + .ant-input-group-addon .ant-input-search-button:not(.ant-btn-primary):hover {
|
|
843
|
-
border-left-color: #40a9ff;
|
|
844
|
-
}
|
|
845
841
|
.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper:hover,
|
|
846
842
|
.ant-input-search-rtl > .ant-input-group > .ant-input-affix-wrapper-focused {
|
|
847
843
|
border-right-color: #40a9ff;
|
|
848
844
|
}
|
|
849
|
-
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon
|
|
845
|
+
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon {
|
|
850
846
|
right: -1px;
|
|
851
847
|
left: auto;
|
|
852
848
|
}
|
|
853
|
-
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon
|
|
849
|
+
.ant-input-search-rtl > .ant-input-group > .ant-input-group-addon .ant-input-search-button {
|
|
854
850
|
border-radius: 2px 0 0 2px;
|
|
855
851
|
}
|
|
856
852
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type StringType = string;
|
|
2
|
+
export declare type NumberArrayType = number[];
|
|
3
|
+
export declare type RegExpType = RegExp;
|
|
4
|
+
export declare type FuncType = (input: string) => string;
|
|
5
|
+
export declare type HighlightInstanceType = StringType | NumberArrayType | RegExpType | FuncType;
|
|
6
|
+
export declare type AdmixArrayType = HighlightInstanceType[];
|
|
7
|
+
export declare type ObjectType = {
|
|
8
|
+
highlight: HighlightInstanceType;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type CustomArrayArrayType = ObjectType[];
|
|
12
|
+
export declare type RangesType = (number | {
|
|
13
|
+
className?: string;
|
|
14
|
+
})[][];
|
|
15
|
+
export declare type HighlightType = StringType | NumberArrayType | RegExpType | FuncType | HighlightInstanceType | AdmixArrayType | ObjectType | CustomArrayArrayType;
|
|
16
|
+
export declare type TypeList = 'falsely' | 'range' | 'array' | 'regexp' | 'custom' | 'other' | 'function' | 'string';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CropperProps } from 'react-easy-crop';
|
|
2
|
+
export interface EasyCropProps extends Omit<CropperProps, 'onCropChange' | 'mediaProps' | 'crop' | 'zoomSpeed' | 'restrictPosition' | 'style'> {
|
|
3
|
+
onComplete: (value: any) => void;
|
|
4
|
+
}
|
|
5
|
+
declare const EasyCrop: (props: EasyCropProps) => JSX.Element;
|
|
6
|
+
export default EasyCrop;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { CropperProps } from 'react-easy-crop';
|
|
3
|
+
import getCroppedImg from './getCroppedImg';
|
|
4
|
+
import './style/index.less';
|
|
5
|
+
export interface RcFile extends File {
|
|
6
|
+
uid: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ImgCropProps {
|
|
9
|
+
prefix: string;
|
|
10
|
+
aspect: number;
|
|
11
|
+
shape: 'rect' | 'round';
|
|
12
|
+
grid?: boolean;
|
|
13
|
+
quality?: number;
|
|
14
|
+
zoom?: boolean;
|
|
15
|
+
rotate?: boolean;
|
|
16
|
+
minZoom: number;
|
|
17
|
+
maxZoom: number;
|
|
18
|
+
fillColor: string;
|
|
19
|
+
modalTitle: string;
|
|
20
|
+
modalWidth?: string | number;
|
|
21
|
+
modalCancel?: string;
|
|
22
|
+
modalOk?: string;
|
|
23
|
+
zipImg?: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
27
|
+
beforeCrop?: (file: RcFile, fileList: RcFile[]) => boolean;
|
|
28
|
+
cropperProps?: CropperProps;
|
|
29
|
+
children?: React.ReactElement;
|
|
30
|
+
}
|
|
31
|
+
export declare type Area = {
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
declare const ImgCrop: {
|
|
38
|
+
(props: ImgCropProps): JSX.Element;
|
|
39
|
+
defaultProps: {
|
|
40
|
+
prefix: string;
|
|
41
|
+
aspect: number;
|
|
42
|
+
shape: string;
|
|
43
|
+
grid: boolean;
|
|
44
|
+
quality: number;
|
|
45
|
+
zoom: boolean;
|
|
46
|
+
rotate: boolean;
|
|
47
|
+
minZoom: number;
|
|
48
|
+
maxZoom: number;
|
|
49
|
+
fillColor: string;
|
|
50
|
+
};
|
|
51
|
+
getCroppedImg: typeof getCroppedImg;
|
|
52
|
+
};
|
|
53
|
+
export default ImgCrop;
|
package/lib/img-crop/index.js
CHANGED
|
@@ -510,7 +510,7 @@ var ImgCrop = function ImgCrop(props) {
|
|
|
510
510
|
|
|
511
511
|
var renderComponent = function renderComponent(titleOfModal) {
|
|
512
512
|
return React.createElement(React.Fragment, null, renderUpload(), src && React.createElement(modal_1["default"], __assign({
|
|
513
|
-
|
|
513
|
+
visible: true,
|
|
514
514
|
wrapClassName: "".concat(pkg, "-modal"),
|
|
515
515
|
title: titleOfModal,
|
|
516
516
|
onOk: onOk,
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export type { ButtonDrawerProps } from './button-drawer';
|
|
2
|
+
export { default as ButtonDrawer } from './button-drawer';
|
|
3
|
+
export type { ButtonModalProps } from './button-modal';
|
|
4
|
+
export { default as ButtonModal } from './button-modal';
|
|
5
|
+
export type { ConditionInputProps } from './condition-input';
|
|
6
|
+
export { default as ConditionInput } from './condition-input';
|
|
7
|
+
export type { ConfigProviderProps } from './config-provider';
|
|
8
|
+
export { default as ConfigProvider } from './config-provider';
|
|
9
|
+
export { default as NumberFormatInput } from './number-format-input';
|
|
10
|
+
export type { NumberFormatInputProps } from './number-format-input';
|
|
11
|
+
export type { CopyToClipboardProps } from './copy-to-clipboard';
|
|
12
|
+
export { default as CopyToClipboard } from './copy-to-clipboard';
|
|
13
|
+
export type { HighlightTextareaProps } from './highlight-textarea';
|
|
14
|
+
export { default as HighlightTextarea } from './highlight-textarea';
|
|
15
|
+
export type { FindChunks, Chunk, HighlighterProps } from './highlight-words';
|
|
16
|
+
export { default as HighlightWords } from './highlight-words';
|
|
17
|
+
export type { ImgCropProps } from './img-crop';
|
|
18
|
+
export { default as ImgCrop } from './img-crop';
|
|
19
|
+
export type { KeepTabProps } from './keep-tab';
|
|
20
|
+
export { default as KeepTab } from './keep-tab';
|
|
21
|
+
export type { CSSMotionProps, CSSMotionList, CSSMotionListProps, MotionEventHandler, MotionEndEventHandler, } from './rc-motion';
|
|
22
|
+
export { default as RcMotion } from './rc-motion';
|
|
23
|
+
export type { NumberInputProps } from './number-input';
|
|
24
|
+
export { default as NumberInput } from './number-input';
|
|
25
|
+
export type { StepNumberInputProps } from './step-number-input';
|
|
26
|
+
export { default as StepNumberInput } from './step-number-input';
|
|
27
|
+
export type { RcEchartPropsType } from './rc-echart';
|
|
28
|
+
export { default as RcEcharts } from './rc-echart';
|
|
29
|
+
export type { RcQrcodeProps } from './rc-qrcode';
|
|
30
|
+
export { default as RcQRcode } from './rc-qrcode';
|
|
31
|
+
export { default as RcTransitionGroup } from './rc-transition-group';
|
|
32
|
+
export type { SingleImgUploadProps } from './single-img-upload';
|
|
33
|
+
export { default as SingleImgUpload } from './single-img-upload';
|
|
34
|
+
export { default as sortableHoc } from './sortable-hoc';
|
|
35
|
+
export type { SplitPaneProps } from './split-pane';
|
|
36
|
+
export { default as SplitPane } from './split-pane';
|
|
37
|
+
export type { TAreaProps } from './text-area';
|
|
38
|
+
export { default as TextArea } from './text-area';
|
|
39
|
+
export type { TextInputProps } from './text-input';
|
|
40
|
+
export { default as TextInput } from './text-input';
|
|
41
|
+
export type { LabelInputProps } from './label-input';
|
|
42
|
+
export { default as LabelInput } from './label-input';
|
|
43
|
+
export type { ColorSelectProps } from './color-select';
|
|
44
|
+
export { default as ColorSelect } from './color-select';
|
|
45
|
+
export type { LabelSelectProps } from './label-select';
|
|
46
|
+
export { default as LabelSelect } from './label-select';
|
|
47
|
+
export type { ASelectProps } from './a-select';
|
|
48
|
+
export { default as ASelect } from './a-select';
|
|
49
|
+
export type { LabelTextAreaProps } from './label-text-area';
|
|
50
|
+
export { default as LabelTextArea } from './label-text-area';
|
|
51
|
+
export type { AreaTextProps } from './area-text';
|
|
52
|
+
export { default as AreaText } from './area-text';
|
|
53
|
+
export type { JSONEditorProps } from './json-editor';
|
|
54
|
+
export { default as JsonEditor } from './json-editor';
|
|
55
|
+
export type { LabelRangePickerProps } from './label-range-picker';
|
|
56
|
+
export { default as LabelRangePicker } from './label-range-picker';
|
|
57
|
+
export type { LabelDatePickerProps } from './label-date-picker';
|
|
58
|
+
export { default as LabelDatePicker } from './label-date-picker';
|
|
59
|
+
export type { LabelAutoCompleteProps } from './label-auto-complete';
|
|
60
|
+
export { default as LabelAutoComplete } from './label-auto-complete';
|
|
61
|
+
export type { LabelNumberInputProps } from './label-number-input';
|
|
62
|
+
export { default as LabelNumberInput } from './label-number-input';
|
|
63
|
+
export type { LabelConditionInputProps } from './label-condition-input';
|
|
64
|
+
export { default as LabelConditionInput } from './label-condition-input';
|
|
65
|
+
export type { LabelTreeSelectProps } from './label-tree-select';
|
|
66
|
+
export { default as LabelTreeSelect } from './label-tree-select';
|
|
67
|
+
export type { LabelCustomizeRangePickerProps } from './label-customize-range-picker';
|
|
68
|
+
export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
|
|
69
|
+
export type { RichTextEditorProps } from './rich-text-editor';
|
|
70
|
+
export { default as RichTextEditor } from './rich-text-editor';
|
|
71
|
+
export { default as BeautifulDnd } from './beautiful-dnd';
|
|
72
|
+
export { default as Resizable } from './resizable';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { JSONEditorOptions } from 'jsoneditor';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type JSONEditorProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
options?: JSONEditorOptions;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
value?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ForwardRefJsonEditor: React.ForwardRefExoticComponent<JSONEditorProps & React.RefAttributes<unknown>>;
|
|
10
|
+
export default ForwardRefJsonEditor;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BadgeProps } from 'antd/lib/badge';
|
|
3
|
+
import type { TabPaneProps, TabsProps } from 'antd/lib/tabs';
|
|
4
|
+
export interface KeepTabProps extends TabsProps {
|
|
5
|
+
/** 由TabPane组成的children */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** 初始化选中面板的 key,如果没有设置 activeKey */
|
|
8
|
+
defaultActiveKey?: string;
|
|
9
|
+
/** 保存激活 tab 面板的的key名 */
|
|
10
|
+
saveActiveKeyName: string;
|
|
11
|
+
/** 当前激活 tab 面板的 key */
|
|
12
|
+
activeKey?: string;
|
|
13
|
+
/** 切换面板的回调 */
|
|
14
|
+
onChange?: (activeKey: string) => void;
|
|
15
|
+
/** antd Badge组件除count意外的所有props */
|
|
16
|
+
badgeProps?: Omit<BadgeProps, 'count'>;
|
|
17
|
+
}
|
|
18
|
+
export interface SelfTabPaneProps extends TabPaneProps {
|
|
19
|
+
count: Pick<BadgeProps, 'count'>;
|
|
20
|
+
}
|
|
21
|
+
declare const KeepTab: {
|
|
22
|
+
(props: KeepTabProps): JSX.Element;
|
|
23
|
+
defaultProps: {
|
|
24
|
+
saveActiveKeyName: string;
|
|
25
|
+
};
|
|
26
|
+
displayName: string;
|
|
27
|
+
TabPane: typeof import("rc-tabs").TabPane;
|
|
28
|
+
};
|
|
29
|
+
export default KeepTab;
|
package/lib/keep-tab/index.js
CHANGED
|
@@ -120,45 +120,47 @@ var use_url_state_1 = __importDefault(require("@ahooksjs/use-url-state"));
|
|
|
120
120
|
|
|
121
121
|
var useControllableValue_1 = __importDefault(require("ahooks/lib/useControllableValue"));
|
|
122
122
|
|
|
123
|
+
var toArray_1 = __importDefault(require("rc-util/lib/Children/toArray"));
|
|
124
|
+
|
|
123
125
|
var TabPane = tabs_1["default"].TabPane;
|
|
124
126
|
var defaultBadgeProps = {};
|
|
125
127
|
|
|
126
128
|
var KeepTab = function KeepTab(props) {
|
|
127
129
|
var _a;
|
|
128
130
|
|
|
129
|
-
var
|
|
130
|
-
items = _b === void 0 ? [] : _b,
|
|
131
|
+
var children = props.children,
|
|
131
132
|
defaultActiveKey = props.defaultActiveKey,
|
|
132
133
|
saveActiveKeyName = props.saveActiveKeyName,
|
|
133
134
|
onChange = props.onChange,
|
|
134
|
-
|
|
135
|
-
badgeProps =
|
|
136
|
-
restProps = __rest(props, ["
|
|
135
|
+
_b = props.badgeProps,
|
|
136
|
+
badgeProps = _b === void 0 ? defaultBadgeProps : _b,
|
|
137
|
+
restProps = __rest(props, ["children", "defaultActiveKey", "saveActiveKeyName", "onChange", "badgeProps"]);
|
|
137
138
|
|
|
138
139
|
var defaultUrlParams = qsHelp_1["default"].getQueryObject();
|
|
139
140
|
|
|
140
|
-
var
|
|
141
|
-
urlParams =
|
|
142
|
-
setUrlParams =
|
|
141
|
+
var _c = __read((0, use_url_state_1["default"])((_a = {}, _a[saveActiveKeyName] = defaultUrlParams[saveActiveKeyName] || defaultActiveKey, _a)), 2),
|
|
142
|
+
urlParams = _c[0],
|
|
143
|
+
setUrlParams = _c[1];
|
|
143
144
|
|
|
144
|
-
var
|
|
145
|
+
var _d = __read((0, useControllableValue_1["default"])(props, {
|
|
145
146
|
valuePropName: 'activeKey',
|
|
146
147
|
defaultValue: defaultUrlParams[saveActiveKeyName] || defaultActiveKey
|
|
147
148
|
}), 2),
|
|
148
|
-
tabActiveKey =
|
|
149
|
-
setTabActiveKey =
|
|
149
|
+
tabActiveKey = _d[0],
|
|
150
|
+
setTabActiveKey = _d[1];
|
|
150
151
|
|
|
152
|
+
var arrayChildren = (0, toArray_1["default"])(children);
|
|
151
153
|
React.useEffect(function () {
|
|
152
154
|
var _a;
|
|
153
155
|
|
|
154
|
-
if (!('activeKey' in props)
|
|
155
|
-
var resultActiveTab = (0, find_1["default"])(
|
|
156
|
+
if (!('activeKey' in props)) {
|
|
157
|
+
var resultActiveTab = (0, find_1["default"])(arrayChildren, {
|
|
156
158
|
key: urlParams[saveActiveKeyName]
|
|
157
159
|
});
|
|
158
160
|
|
|
159
|
-
if (!resultActiveTab || resultActiveTab.disabled) {
|
|
160
|
-
setUrlParams((_a = {}, _a[saveActiveKeyName] =
|
|
161
|
-
setTabActiveKey(
|
|
161
|
+
if (!resultActiveTab || resultActiveTab.props.disabled) {
|
|
162
|
+
setUrlParams((_a = {}, _a[saveActiveKeyName] = arrayChildren[0].key, _a));
|
|
163
|
+
setTabActiveKey(arrayChildren[0].key);
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
}, [tabActiveKey]);
|
|
@@ -170,29 +172,29 @@ var KeepTab = function KeepTab(props) {
|
|
|
170
172
|
setTabActiveKey(nextActiveKey);
|
|
171
173
|
};
|
|
172
174
|
|
|
173
|
-
var
|
|
174
|
-
var
|
|
175
|
+
var resultChildren = arrayChildren.map(function (childItem) {
|
|
176
|
+
var _a;
|
|
177
|
+
|
|
178
|
+
var count = (_a = childItem === null || childItem === void 0 ? void 0 : childItem.props) === null || _a === void 0 ? void 0 : _a.count;
|
|
175
179
|
|
|
176
180
|
if (count) {
|
|
177
|
-
return
|
|
178
|
-
|
|
181
|
+
return React.cloneElement(childItem, {
|
|
182
|
+
tab: React.createElement(badge_1["default"], __assign({
|
|
179
183
|
className: "tab-badge",
|
|
180
184
|
count: count,
|
|
181
185
|
offset: [16, -9]
|
|
182
|
-
}, badgeProps), React.createElement("span", null,
|
|
186
|
+
}, badgeProps), React.createElement("span", null, childItem.props.tab))
|
|
183
187
|
});
|
|
184
188
|
}
|
|
185
189
|
|
|
186
|
-
return
|
|
190
|
+
return childItem;
|
|
187
191
|
});
|
|
188
192
|
return React.createElement(tabs_1["default"], __assign({
|
|
189
193
|
animated: false,
|
|
190
194
|
onChange: handleTabChange,
|
|
191
195
|
destroyInactiveTabPane: true,
|
|
192
196
|
activeKey: tabActiveKey
|
|
193
|
-
}, restProps,
|
|
194
|
-
items: resultItems
|
|
195
|
-
}));
|
|
197
|
+
}, restProps), resultChildren);
|
|
196
198
|
};
|
|
197
199
|
|
|
198
200
|
KeepTab.defaultProps = {
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
margin: 0 0 0 32px;
|
|
590
590
|
}
|
|
591
591
|
.ant-tabs-content {
|
|
592
|
-
|
|
592
|
+
display: flex;
|
|
593
593
|
width: 100%;
|
|
594
594
|
}
|
|
595
595
|
.ant-tabs-content-holder {
|
|
@@ -597,37 +597,14 @@
|
|
|
597
597
|
min-width: 0;
|
|
598
598
|
min-height: 0;
|
|
599
599
|
}
|
|
600
|
+
.ant-tabs-content-animated {
|
|
601
|
+
transition: margin 0.3s;
|
|
602
|
+
}
|
|
600
603
|
.ant-tabs-tabpane {
|
|
604
|
+
flex: none;
|
|
605
|
+
width: 100%;
|
|
601
606
|
outline: none;
|
|
602
607
|
}
|
|
603
|
-
.ant-tabs-tabpane-hidden {
|
|
604
|
-
display: none;
|
|
605
|
-
}
|
|
606
|
-
.ant-tabs-switch-appear,
|
|
607
|
-
.ant-tabs-switch-enter {
|
|
608
|
-
transition: none;
|
|
609
|
-
}
|
|
610
|
-
.ant-tabs-switch-appear-start,
|
|
611
|
-
.ant-tabs-switch-enter-start {
|
|
612
|
-
opacity: 0;
|
|
613
|
-
}
|
|
614
|
-
.ant-tabs-switch-appear-active,
|
|
615
|
-
.ant-tabs-switch-enter-active {
|
|
616
|
-
opacity: 1;
|
|
617
|
-
transition: opacity 0.3s;
|
|
618
|
-
}
|
|
619
|
-
.ant-tabs-switch-leave {
|
|
620
|
-
position: absolute;
|
|
621
|
-
transition: none;
|
|
622
|
-
inset: 0;
|
|
623
|
-
}
|
|
624
|
-
.ant-tabs-switch-leave-start {
|
|
625
|
-
opacity: 1;
|
|
626
|
-
}
|
|
627
|
-
.ant-tabs-switch-leave-active {
|
|
628
|
-
opacity: 0;
|
|
629
|
-
transition: opacity 0.3s;
|
|
630
|
-
}
|
|
631
608
|
.ant-badge {
|
|
632
609
|
box-sizing: border-box;
|
|
633
610
|
margin: 0;
|