doui-react 1.0.2 → 2.0.1
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/api/component/common.d.ts +2 -2
- package/es/api/component/common.js +3 -0
- package/es/api/component/global-style.d.ts +0 -1
- package/es/api/component/global-style.js +2 -3
- package/es/api/component/react-dom.js +9 -21
- package/es/button/component/index.js +8 -9
- package/es/button/type/index.d.ts +3 -7
- package/es/checkbox/type/index.d.ts +1 -1
- package/es/date-picker/component/index.js +13 -17
- package/es/date-picker/type/index.d.ts +5 -14
- package/es/form/component/constant.js +2 -2
- package/es/form/component/form-item-map.d.ts +2 -1
- package/es/form/component/form-item-map.js +2 -1
- package/es/form/component/form-item.js +1 -3
- package/es/form/component/form-list.d.ts +2 -2
- package/es/form/component/utils.d.ts +35 -25
- package/es/form/component/utils.js +2 -2
- package/es/form/style/form-item.d.ts +1 -1
- package/es/form/style/form-item.js +4 -11
- package/es/form/style/index.js +2 -2
- package/es/form/type/form-item.d.ts +5 -6
- package/es/form/type/form-list.d.ts +2 -2
- package/es/form/type/index.d.ts +3 -3
- package/es/grid/component/pagination.d.ts +72 -15
- package/es/hooks/hook/use-fetch.js +5 -12
- package/es/icon/hook/index.d.ts +195 -190
- package/es/input/component/number.d.ts +1 -1
- package/es/input/component/number.js +8 -30
- package/es/input/component/utils.d.ts +0 -1
- package/es/input/component/utils.js +0 -3
- package/es/input/type/index.d.ts +3 -3
- package/es/modal-prompt/component/utils.js +2 -1
- package/es/modal-prompt/type/index.d.ts +2 -2
- package/es/open-modal/component/footer.d.ts +1 -1
- package/es/open-modal/component/footer.js +2 -4
- package/es/open-modal/component/index.js +16 -1
- package/es/open-modal/component/modal.js +14 -6
- package/es/open-modal/component/utils.js +2 -6
- package/es/open-modal/hook/use-modal.js +1 -1
- package/es/open-modal/style/index.js +1 -2
- package/es/open-modal/style/wrap.js +1 -1
- package/es/open-modal/type/index.d.ts +6 -1
- package/es/radio/component/abstract-box.d.ts +72 -100
- package/es/radio/component/abstract-box.js +1 -5
- package/es/radio/component/use-radio.d.ts +7 -5
- package/es/radio/component/utils.js +1 -1
- package/es/radio/type/index.d.ts +2 -2
- package/es/select/component/use-select-options.d.ts +1 -1
- package/es/select/component/use-select-options.js +5 -2
- package/es/select/component/use-select.js +4 -7
- package/es/select/component/utils.d.ts +1 -2
- package/es/select/type/index.d.ts +3 -2
- package/es/stack/style/index.d.ts +2 -1
- package/es/switch/type/index.d.ts +2 -2
- package/es/table/component/action-button.js +0 -1
- package/es/table/component/filter.d.ts +1 -1
- package/es/table/component/filter.js +1 -1
- package/es/table/component/sort.d.ts +1 -1
- package/es/table/component/time.js +2 -2
- package/es/table/component/utils.d.ts +3 -77
- package/es/table/component/utils.js +1 -3
- package/es/table/hook/search.d.ts +1 -1
- package/es/table/hook/search.js +8 -6
- package/es/table/type/action.d.ts +2 -7
- package/es/table/type/column.d.ts +3 -3
- package/es/tabs/component/utils.d.ts +8 -8
- package/es/tabs/type/index.d.ts +1 -1
- package/es/text/component/index.js +15 -16
- package/es/text/component/use-text.d.ts +3 -2
- package/es/text/component/use-text.js +12 -19
- package/es/text/component/utils.d.ts +1 -1
- package/es/text/style/index.js +1 -1
- package/es/text/type/index.d.ts +2 -2
- package/es/tooltip/component/index.d.ts +30 -20
- package/es/tooltip/component/index.js +6 -2
- package/es/tooltip/type/index.d.ts +1 -1
- package/es/tree/component/index.d.ts +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree-select/component/use-tree-select.js +4 -4
- package/es/tree-select/style/index.js +1 -1
- package/es/virtual-list/type/index.d.ts +1 -1
- package/lib/api/component/common.d.ts +2 -2
- package/lib/api/component/common.js +3 -0
- package/lib/api/component/global-style.d.ts +0 -1
- package/lib/api/component/global-style.js +3 -4
- package/lib/api/component/react-dom.js +9 -21
- package/lib/button/component/index.js +8 -9
- package/lib/button/type/index.d.ts +3 -7
- package/lib/checkbox/type/index.d.ts +1 -1
- package/lib/date-picker/component/index.js +13 -17
- package/lib/date-picker/type/index.d.ts +5 -14
- package/lib/form/component/constant.js +2 -2
- package/lib/form/component/form-item-map.d.ts +2 -1
- package/lib/form/component/form-item-map.js +2 -1
- package/lib/form/component/form-item.js +1 -3
- package/lib/form/component/form-list.d.ts +2 -2
- package/lib/form/component/utils.d.ts +35 -25
- package/lib/form/component/utils.js +2 -2
- package/lib/form/style/form-item.d.ts +1 -1
- package/lib/form/style/form-item.js +4 -11
- package/lib/form/style/index.js +1 -1
- package/lib/form/type/form-item.d.ts +5 -6
- package/lib/form/type/form-list.d.ts +2 -2
- package/lib/form/type/index.d.ts +3 -3
- package/lib/grid/component/pagination.d.ts +72 -15
- package/lib/hooks/hook/use-fetch.js +5 -12
- package/lib/icon/hook/index.d.ts +195 -190
- package/lib/input/component/number.d.ts +1 -1
- package/lib/input/component/number.js +7 -28
- package/lib/input/component/utils.d.ts +0 -1
- package/lib/input/component/utils.js +0 -4
- package/lib/input/type/index.d.ts +3 -3
- package/lib/modal-prompt/component/utils.js +2 -1
- package/lib/modal-prompt/type/index.d.ts +2 -2
- package/lib/open-modal/component/footer.d.ts +1 -1
- package/lib/open-modal/component/footer.js +2 -4
- package/lib/open-modal/component/index.js +17 -1
- package/lib/open-modal/component/modal.js +12 -4
- package/lib/open-modal/component/utils.js +2 -6
- package/lib/open-modal/hook/use-modal.js +1 -1
- package/lib/open-modal/style/index.js +1 -2
- package/lib/open-modal/style/wrap.js +1 -1
- package/lib/open-modal/type/index.d.ts +6 -1
- package/lib/radio/component/abstract-box.d.ts +72 -100
- package/lib/radio/component/abstract-box.js +1 -5
- package/lib/radio/component/use-radio.d.ts +7 -5
- package/lib/radio/component/utils.js +1 -1
- package/lib/radio/type/index.d.ts +2 -2
- package/lib/select/component/use-select-options.d.ts +1 -1
- package/lib/select/component/use-select-options.js +5 -2
- package/lib/select/component/use-select.js +4 -7
- package/lib/select/component/utils.d.ts +1 -2
- package/lib/select/type/index.d.ts +3 -2
- package/lib/stack/style/index.d.ts +2 -1
- package/lib/switch/type/index.d.ts +2 -2
- package/lib/table/component/action-button.js +0 -1
- package/lib/table/component/filter.d.ts +1 -1
- package/lib/table/component/filter.js +1 -1
- package/lib/table/component/sort.d.ts +1 -1
- package/lib/table/component/time.js +2 -2
- package/lib/table/component/utils.d.ts +3 -77
- package/lib/table/component/utils.js +1 -3
- package/lib/table/hook/search.d.ts +1 -1
- package/lib/table/hook/search.js +8 -6
- package/lib/table/type/action.d.ts +2 -7
- package/lib/table/type/column.d.ts +3 -3
- package/lib/tabs/component/utils.d.ts +8 -8
- package/lib/tabs/type/index.d.ts +1 -1
- package/lib/text/component/index.js +15 -16
- package/lib/text/component/use-text.d.ts +3 -2
- package/lib/text/component/use-text.js +11 -18
- package/lib/text/component/utils.d.ts +1 -1
- package/lib/text/style/index.js +1 -1
- package/lib/text/type/index.d.ts +2 -2
- package/lib/tooltip/component/index.d.ts +30 -20
- package/lib/tooltip/component/index.js +6 -2
- package/lib/tooltip/type/index.d.ts +1 -1
- package/lib/tree/component/index.d.ts +1 -1
- package/lib/tree/style/index.js +1 -1
- package/lib/tree-select/component/use-tree-select.js +4 -4
- package/lib/tree-select/style/index.js +1 -1
- package/lib/virtual-list/type/index.d.ts +1 -1
- package/package.json +10 -13
|
@@ -3,43 +3,21 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
var _excluded = ["validate", "onBlur", "refs", "allowResetOnEmpty"];
|
|
4
4
|
import { mergeFunction } from "../../api";
|
|
5
5
|
import { InputNumber } from 'antd';
|
|
6
|
-
import _ from 'lodash';
|
|
7
|
-
import { usePrevious } from 'react-use';
|
|
8
6
|
import style from "../style";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 前提条件: 1. 输入的内容为 1.1.1 2. precision 为 0 时
|
|
13
|
-
* Bug: Blur 后 Antd 会自动将显示的值 format 为 1,但 value 还是 1.1,导致真实值和显示的值不同
|
|
14
|
-
*/
|
|
7
|
+
import { useResetOnEmpty } from "./utils";
|
|
15
8
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
16
|
-
function
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (prevValue === value || _.isNil(value) || _.isNil(precision)) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
var numberValue = formatNumber(+value, precision);
|
|
26
|
-
onChange === null || onChange === void 0 || onChange(numberValue);
|
|
27
|
-
}
|
|
28
|
-
return onBlur;
|
|
29
|
-
}
|
|
30
|
-
export function useNumber(_ref2) {
|
|
31
|
-
var validate = _ref2.validate,
|
|
32
|
-
onBlur = _ref2.onBlur,
|
|
33
|
-
refs = _ref2.refs,
|
|
34
|
-
allowResetOnEmpty = _ref2.allowResetOnEmpty,
|
|
35
|
-
props = _objectWithoutProperties(_ref2, _excluded);
|
|
36
|
-
var changeOnBlur = useChangeWhenHasPrecision(props);
|
|
9
|
+
export function useNumber(_ref) {
|
|
10
|
+
var validate = _ref.validate,
|
|
11
|
+
onBlur = _ref.onBlur,
|
|
12
|
+
refs = _ref.refs,
|
|
13
|
+
allowResetOnEmpty = _ref.allowResetOnEmpty,
|
|
14
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
15
|
var resetOnEmpty = useResetOnEmpty(_objectSpread(_objectSpread({}, props), {}, {
|
|
38
16
|
allowResetOnEmpty: allowResetOnEmpty
|
|
39
17
|
}));
|
|
40
18
|
return _objectSpread({
|
|
41
19
|
ref: refs,
|
|
42
|
-
onBlur: mergeFunction(
|
|
20
|
+
onBlur: mergeFunction(onBlur, resetOnEmpty)
|
|
43
21
|
}, props);
|
|
44
22
|
}
|
|
45
23
|
export function Number(props) {
|
|
@@ -8,7 +8,6 @@ export declare const validateTypeMap: {
|
|
|
8
8
|
export declare function validateInput(value: string, validate?: InputProps['validate']): boolean;
|
|
9
9
|
export declare function validateEnter(value: any, allowEnter: boolean): boolean;
|
|
10
10
|
export declare function useInputValidate({ value, onChange, onBlur, validate, refs, allowEnter, allowResetOnEmpty, allowTrim, ...props }: InputProps): any;
|
|
11
|
-
export declare function formatNumber(value: number, precision: number): number;
|
|
12
11
|
interface ResetOnEmptyProps extends InputProps {
|
|
13
12
|
validate?: (value: string | number) => boolean;
|
|
14
13
|
}
|
|
@@ -64,9 +64,6 @@ export function useInputValidate(_ref) {
|
|
|
64
64
|
onBlur: mergeFunction(trim, resetOnEmpty, onBlur)
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
export function formatNumber(value, precision) {
|
|
68
|
-
return +value.toFixed(precision);
|
|
69
|
-
}
|
|
70
67
|
export function useResetOnEmpty(_ref2) {
|
|
71
68
|
var name = _ref2.name,
|
|
72
69
|
allowResetOnEmpty = _ref2.allowResetOnEmpty,
|
package/es/input/type/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { BaseComponentProps } from "../../api";
|
|
|
2
2
|
import { inputMap } from "../component";
|
|
3
3
|
import { validateTypeMap } from "../component/utils";
|
|
4
4
|
import { InputProps as AntdInputProps } from 'antd';
|
|
5
|
-
import { InputNumberProps } from 'antd/
|
|
6
|
-
import { PasswordProps } from 'antd/
|
|
7
|
-
import { TextAreaProps } from 'antd/
|
|
5
|
+
import { InputNumberProps } from 'antd/es/input-number';
|
|
6
|
+
import { PasswordProps } from 'antd/es/input/Password';
|
|
7
|
+
import { TextAreaProps } from 'antd/es/input/TextArea';
|
|
8
8
|
type UnionType = BaseComponentProps & AntdInputProps & TextAreaProps & InputNumberProps & PasswordProps;
|
|
9
9
|
export interface InputProps extends Omit<UnionType, 'form' | 'onChange'> {
|
|
10
10
|
/**
|
|
@@ -31,7 +31,8 @@ export function openModalFunction(props) {
|
|
|
31
31
|
duration = _mergeProps.duration,
|
|
32
32
|
restProps = _objectWithoutProperties(_mergeProps, _excluded2);
|
|
33
33
|
return new Promise(function (resolve) {
|
|
34
|
-
var
|
|
34
|
+
var modalMethod = Modal[type];
|
|
35
|
+
var modal = modalMethod(_objectSpread(_objectSpread({}, restProps), {}, {
|
|
35
36
|
onOk: function onOk() {
|
|
36
37
|
return resolve();
|
|
37
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModalFuncProps as AntdModalFuncProps } from 'antd/
|
|
2
|
-
import { SpinProps } from 'antd/
|
|
1
|
+
import type { ModalFuncProps as AntdModalFuncProps } from 'antd/es/modal';
|
|
2
|
+
import { SpinProps } from 'antd/es/spin';
|
|
3
3
|
import { CSSProperties, ReactNode } from 'react';
|
|
4
4
|
export interface ConfirmModalProps extends AntdModalFuncProps {
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { HStackProps } from "../../stack";
|
|
2
|
-
export declare function Footer({ className, children
|
|
2
|
+
export declare function Footer({ className, children, ...props }: HStackProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,12 +5,11 @@ import { useFormContext } from "../../form";
|
|
|
5
5
|
import { Portal } from "../../portal";
|
|
6
6
|
import { HStack } from "../../stack";
|
|
7
7
|
import { cx } from '@emotion/css';
|
|
8
|
-
import _ from 'lodash';
|
|
9
8
|
import { useMount } from 'react-use';
|
|
10
9
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
11
10
|
export function Footer(_ref) {
|
|
12
11
|
var className = _ref.className,
|
|
13
|
-
|
|
12
|
+
children = _ref.children,
|
|
14
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
14
|
var _useFormContext = useFormContext(),
|
|
16
15
|
setModalProps = _useFormContext.setModalProps;
|
|
@@ -19,7 +18,6 @@ export function Footer(_ref) {
|
|
|
19
18
|
footer: null
|
|
20
19
|
});
|
|
21
20
|
});
|
|
22
|
-
var component = _.isFunction(Children) ? _jsx(Children, {}) : Children;
|
|
23
21
|
return _jsx(Portal, {
|
|
24
22
|
container: function container(current) {
|
|
25
23
|
return current.closest('.ant-modal-content');
|
|
@@ -28,7 +26,7 @@ export function Footer(_ref) {
|
|
|
28
26
|
className: cx('ant-modal-footer', className),
|
|
29
27
|
justify: "right"
|
|
30
28
|
}, props), {}, {
|
|
31
|
-
children:
|
|
29
|
+
children: children
|
|
32
30
|
}))
|
|
33
31
|
});
|
|
34
32
|
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["configProviderProps"];
|
|
1
4
|
import { mountComponent, unmountComponent } from "../../api";
|
|
5
|
+
import { ConfigProvider } from 'antd';
|
|
6
|
+
import zhCN from 'antd/es/locale/zh_CN';
|
|
2
7
|
import { Modal } from "./modal";
|
|
8
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
3
9
|
export * from "./modal";
|
|
10
|
+
function ModalWrapper(_ref) {
|
|
11
|
+
var configProviderProps = _ref.configProviderProps,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return _jsx(ConfigProvider, _objectSpread(_objectSpread({
|
|
14
|
+
locale: zhCN
|
|
15
|
+
}, configProviderProps), {}, {
|
|
16
|
+
children: _jsx(Modal, _objectSpread({}, props))
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
4
19
|
export function openModal(props) {
|
|
5
|
-
return mountComponent(
|
|
20
|
+
return mountComponent(ModalWrapper, props);
|
|
6
21
|
}
|
|
7
22
|
export function closeModal() {
|
|
8
23
|
unmountComponent();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import { Form } from "../../form";
|
|
3
3
|
import { Text } from "../../text";
|
|
4
|
-
import { Modal as AntdModal } from 'antd';
|
|
4
|
+
import { Modal as AntdModal, Divider } from 'antd';
|
|
5
5
|
import { ModalProvider } from "../hook";
|
|
6
6
|
import { Footer } from "./footer";
|
|
7
7
|
import { Title } from "./title";
|
|
8
8
|
import { useModal } from "./use-modal";
|
|
9
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
10
10
|
export var Modal = function Modal(props) {
|
|
11
11
|
var _useModal = useModal(props),
|
|
12
12
|
context = _useModal.context,
|
|
@@ -17,9 +17,9 @@ export var Modal = function Modal(props) {
|
|
|
17
17
|
ok = context.ok,
|
|
18
18
|
close = context.close;
|
|
19
19
|
return _jsx(ModalProvider, _objectSpread(_objectSpread({}, context), {}, {
|
|
20
|
-
children:
|
|
20
|
+
children: _jsxs(AntdModal, _objectSpread(_objectSpread({
|
|
21
21
|
open: open,
|
|
22
|
-
|
|
22
|
+
destroyOnHidden: true
|
|
23
23
|
}, modalProps), {}, {
|
|
24
24
|
title: _jsx(Text, {
|
|
25
25
|
children: modalProps.title
|
|
@@ -27,9 +27,17 @@ export var Modal = function Modal(props) {
|
|
|
27
27
|
confirmLoading: confirmLoading,
|
|
28
28
|
onCancel: close,
|
|
29
29
|
onOk: ok,
|
|
30
|
-
children: _jsx(
|
|
30
|
+
children: [_jsx(Divider, {
|
|
31
|
+
style: {
|
|
32
|
+
margin: '15px 0 24px'
|
|
33
|
+
}
|
|
34
|
+
}), _jsx(Form, _objectSpread(_objectSpread({}, formProps), {}, {
|
|
31
35
|
context: context
|
|
32
|
-
}))
|
|
36
|
+
})), _jsx(Divider, {
|
|
37
|
+
style: {
|
|
38
|
+
margin: '15px 0 20px'
|
|
39
|
+
}
|
|
40
|
+
})]
|
|
33
41
|
}))
|
|
34
42
|
}));
|
|
35
43
|
};
|
|
@@ -73,7 +73,7 @@ export function getModalAndFormProps(props) {
|
|
|
73
73
|
footer: _.isNull(formProps.footer) ? null : undefined,
|
|
74
74
|
// 为 null 时,不显示 footer
|
|
75
75
|
css: style.wrapper({
|
|
76
|
-
bodyBottomMargin: getBodyBottomMargin(bodyBottomMargin
|
|
76
|
+
bodyBottomMargin: getBodyBottomMargin(bodyBottomMargin),
|
|
77
77
|
titleCenter: titleCenter
|
|
78
78
|
}),
|
|
79
79
|
style: modalProps.centered ? {} : {
|
|
@@ -86,14 +86,10 @@ export function getModalAndFormProps(props) {
|
|
|
86
86
|
modalProps: mergedModalProps
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function getBodyBottomMargin(bodyBottomMargin
|
|
90
|
-
var _formProps$items;
|
|
89
|
+
function getBodyBottomMargin(bodyBottomMargin) {
|
|
91
90
|
if (!_.isNil(bodyBottomMargin)) {
|
|
92
91
|
return transformValueWithStyleUnit(bodyBottomMargin);
|
|
93
92
|
}
|
|
94
|
-
if ((_formProps$items = formProps.items) !== null && _formProps$items !== void 0 && _formProps$items.length) {
|
|
95
|
-
return '10px';
|
|
96
|
-
}
|
|
97
93
|
}
|
|
98
94
|
export function shouldEnableButton(_ref2) {
|
|
99
95
|
var _onValidate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import usePatchElement from 'antd/
|
|
3
|
+
import usePatchElement from 'antd/es/_util/hooks/usePatchElement';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { Modal } from "../component";
|
|
6
6
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
-
import { commonFontFamily } from "../../api";
|
|
4
3
|
import { css } from '@emotion/react';
|
|
5
4
|
function titleStyle(titleCenter) {
|
|
6
5
|
if (titleCenter) {
|
|
@@ -12,7 +11,7 @@ var style = {
|
|
|
12
11
|
wrapper: function wrapper(_ref) {
|
|
13
12
|
var bodyBottomMargin = _ref.bodyBottomMargin,
|
|
14
13
|
titleCenter = _ref.titleCenter;
|
|
15
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n
|
|
14
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .ant-modal-title {\n font-size: 16px;\n ", "\n }\n\n .ant-modal-body {\n padding-bottom: ", ";\n }\n "])), titleStyle(titleCenter), bodyBottomMargin);
|
|
16
15
|
}
|
|
17
16
|
};
|
|
18
17
|
export default style;
|
|
@@ -2,5 +2,5 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
export function getWrapStyle(wrapStyle) {
|
|
5
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
5
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), wrapStyle);
|
|
6
6
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FunctionReturn } from "../../api";
|
|
2
2
|
import { FormInstance, FormItemProps, FormProps, FormValues } from "../../form";
|
|
3
3
|
import { CSSObject } from '@emotion/react';
|
|
4
|
-
import {
|
|
4
|
+
import { ConfigProviderProps } from 'antd/es/config-provider';
|
|
5
|
+
import type { ModalProps as AntdModalProps } from 'antd/es/modal';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
6
7
|
type AntdComponentProps = Omit<AntdModalProps, 'onOk' | 'children'> & Omit<FormProps, 'children' | 'content' | 'title'>;
|
|
7
8
|
/**
|
|
@@ -46,6 +47,10 @@ export interface OpenModalProps extends AntdComponentProps {
|
|
|
46
47
|
* @description 对话框外层容器的样式
|
|
47
48
|
*/
|
|
48
49
|
wrapStyle?: CSSObject;
|
|
50
|
+
/**
|
|
51
|
+
* @description Antd Provider Props
|
|
52
|
+
*/
|
|
53
|
+
configProviderProps?: Omit<ConfigProviderProps, 'children'>;
|
|
49
54
|
/**
|
|
50
55
|
* @description 点击取消按钮的回调
|
|
51
56
|
*/
|
|
@@ -1,92 +1,60 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseBoxProps } from "..";
|
|
3
3
|
import type { SerializedStyles } from '@emotion/utils';
|
|
4
|
-
import { CheckboxChangeEvent } from 'antd/
|
|
4
|
+
import { CheckboxChangeEvent } from 'antd/es/checkbox/Checkbox';
|
|
5
5
|
export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGroup, ...props }: BaseBoxProps): {
|
|
6
6
|
highlightTextProps: Partial<BaseBoxProps>;
|
|
7
7
|
tooltipProps: {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
color?: string | undefined;
|
|
9
|
+
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
10
|
+
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
11
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
12
|
+
classNames?: Partial<Record<"body" | "root", string>> | undefined;
|
|
10
13
|
style?: import("react").CSSProperties | undefined;
|
|
11
14
|
className?: string | undefined;
|
|
12
|
-
|
|
13
|
-
placement?: import("antd/
|
|
14
|
-
builtinPlacements?: import("rc-trigger").BuildInPlacements | undefined;
|
|
15
|
+
rootClassName?: string | undefined;
|
|
16
|
+
placement?: import("antd/es/tooltip").TooltipPlacement | undefined;
|
|
17
|
+
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
15
18
|
openClassName?: string | undefined;
|
|
16
19
|
arrowPointAtCenter?: boolean | undefined;
|
|
17
|
-
|
|
20
|
+
arrow?: boolean | {
|
|
21
|
+
arrowPointAtCenter?: boolean | undefined;
|
|
22
|
+
pointAtCenter?: boolean | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
autoAdjustOverflow?: boolean | import("antd/es/tooltip").AdjustOverflow | undefined;
|
|
18
25
|
getPopupContainer?: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
|
|
19
26
|
children?: import("react").ReactNode;
|
|
20
|
-
|
|
27
|
+
destroyTooltipOnHide?: boolean | {
|
|
28
|
+
keepParent?: boolean | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
destroyOnHidden?: boolean | undefined;
|
|
21
31
|
open?: boolean | undefined;
|
|
22
|
-
defaultVisible?: boolean | undefined;
|
|
23
32
|
defaultOpen?: boolean | undefined;
|
|
24
|
-
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
25
33
|
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
26
|
-
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
27
34
|
afterOpenChange?: ((visible: boolean) => void) | undefined;
|
|
28
|
-
zIndex?: number | undefined;
|
|
29
|
-
animation?: string | undefined;
|
|
30
|
-
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
31
|
-
id?: string | undefined;
|
|
32
|
-
prefixCls?: string | undefined;
|
|
33
|
-
onPopupAlign?: ((element: HTMLElement, align: import("rc-trigger/lib/interface").AlignType) => void) | undefined;
|
|
34
|
-
trigger?: string | string[] | undefined;
|
|
35
|
-
transitionName?: string | undefined;
|
|
36
|
-
overlayStyle?: import("react").CSSProperties | undefined;
|
|
37
|
-
overlayClassName?: string | undefined;
|
|
38
|
-
mouseEnterDelay?: number | undefined;
|
|
39
|
-
mouseLeaveDelay?: number | undefined;
|
|
40
|
-
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
41
|
-
destroyTooltipOnHide?: boolean | {
|
|
42
|
-
keepParent?: boolean | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
align: import("rc-trigger/lib/interface").AlignType;
|
|
45
|
-
showArrow?: boolean | undefined;
|
|
46
|
-
arrowContent?: import("react").ReactNode;
|
|
47
|
-
popupVisible?: boolean | undefined;
|
|
48
|
-
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
49
|
-
} | {
|
|
50
|
-
title?: import("react").ReactNode | import("antd/lib/tooltip").RenderFunction;
|
|
51
|
-
overlay?: import("react").ReactNode | import("antd/lib/tooltip").RenderFunction;
|
|
52
|
-
style?: import("react").CSSProperties | undefined;
|
|
53
|
-
className?: string | undefined;
|
|
54
|
-
color?: string | undefined;
|
|
55
|
-
placement?: import("antd/lib/tooltip").TooltipPlacement | undefined;
|
|
56
|
-
builtinPlacements?: import("rc-trigger").BuildInPlacements | undefined;
|
|
57
|
-
openClassName?: string | undefined;
|
|
58
|
-
arrowPointAtCenter?: boolean | undefined;
|
|
59
|
-
autoAdjustOverflow?: boolean | import("antd/lib/tooltip").AdjustOverflow | undefined;
|
|
60
|
-
getPopupContainer?: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
|
|
61
|
-
children?: import("react").ReactNode;
|
|
62
35
|
visible?: boolean | undefined;
|
|
63
|
-
open?: boolean | undefined;
|
|
64
36
|
defaultVisible?: boolean | undefined;
|
|
65
|
-
defaultOpen?: boolean | undefined;
|
|
66
37
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
67
|
-
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
68
38
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
69
|
-
afterOpenChange?: ((visible: boolean) => void) | undefined;
|
|
70
|
-
zIndex?: number | undefined;
|
|
71
|
-
animation?: string | undefined;
|
|
72
|
-
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
73
|
-
id?: string | undefined;
|
|
74
39
|
prefixCls?: string | undefined;
|
|
75
|
-
|
|
76
|
-
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
animation?: string | undefined;
|
|
77
42
|
transitionName?: string | undefined;
|
|
78
|
-
|
|
79
|
-
|
|
43
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
44
|
+
zIndex?: number | undefined;
|
|
45
|
+
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
80
46
|
mouseEnterDelay?: number | undefined;
|
|
81
47
|
mouseLeaveDelay?: number | undefined;
|
|
48
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
49
|
+
overlayClassName?: string | undefined;
|
|
50
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
51
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
52
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
53
|
+
popupVisible?: boolean | undefined;
|
|
54
|
+
forceRender?: boolean | undefined;
|
|
55
|
+
fresh?: boolean | undefined;
|
|
82
56
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
83
|
-
destroyTooltipOnHide?: boolean | {
|
|
84
|
-
keepParent?: boolean | undefined;
|
|
85
|
-
} | undefined;
|
|
86
|
-
align: import("rc-trigger/lib/interface").AlignType;
|
|
87
|
-
showArrow?: boolean | undefined;
|
|
88
57
|
arrowContent?: import("react").ReactNode;
|
|
89
|
-
popupVisible?: boolean | undefined;
|
|
90
58
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
91
59
|
};
|
|
92
60
|
boxProps: {
|
|
@@ -97,51 +65,49 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
97
65
|
value?: any;
|
|
98
66
|
boxTooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
99
67
|
inGroup?: boolean | undefined;
|
|
100
|
-
|
|
101
|
-
|
|
68
|
+
indeterminate?: boolean | undefined;
|
|
69
|
+
prefixCls?: string | undefined;
|
|
102
70
|
className?: string | undefined;
|
|
103
|
-
|
|
71
|
+
rootClassName?: string | undefined;
|
|
104
72
|
defaultChecked?: boolean | undefined;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
73
|
+
checked?: boolean | undefined;
|
|
74
|
+
style?: import("react").CSSProperties | undefined;
|
|
75
|
+
disabled?: boolean | undefined;
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
110
78
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
111
79
|
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
112
|
-
|
|
80
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
81
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
82
|
+
tabIndex?: number | undefined;
|
|
113
83
|
name?: string | undefined;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
autoFocus?: boolean | undefined;
|
|
86
|
+
type?: string | undefined;
|
|
117
87
|
skipGroup?: boolean | undefined;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
slot?: string | undefined;
|
|
122
|
-
title?: string | undefined;
|
|
123
|
-
accessKey?: string | undefined;
|
|
124
|
-
color?: string | undefined;
|
|
125
|
-
content?: string | undefined;
|
|
126
|
-
direction?: import("antd/lib/config-provider").DirectionType;
|
|
127
|
-
translate?: "yes" | "no" | undefined;
|
|
88
|
+
required?: boolean | undefined;
|
|
89
|
+
'aria-label'?: string | undefined;
|
|
90
|
+
direction?: import("antd/es/config-provider").DirectionType;
|
|
128
91
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
129
92
|
suppressContentEditableWarning?: boolean | undefined;
|
|
130
93
|
suppressHydrationWarning?: boolean | undefined;
|
|
131
|
-
|
|
132
|
-
|
|
94
|
+
accessKey?: string | undefined;
|
|
95
|
+
autoCapitalize?: "none" | "off" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
|
|
96
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
133
97
|
contextMenu?: string | undefined;
|
|
134
98
|
dir?: string | undefined;
|
|
135
99
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
136
|
-
enterKeyHint?: "search" | "
|
|
100
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
137
101
|
hidden?: boolean | undefined;
|
|
138
102
|
lang?: string | undefined;
|
|
139
103
|
nonce?: string | undefined;
|
|
140
|
-
|
|
104
|
+
slot?: string | undefined;
|
|
141
105
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
translate?: "yes" | "no" | undefined;
|
|
142
107
|
radioGroup?: string | undefined;
|
|
143
108
|
role?: import("react").AriaRole | undefined;
|
|
144
109
|
about?: string | undefined;
|
|
110
|
+
content?: string | undefined;
|
|
145
111
|
datatype?: string | undefined;
|
|
146
112
|
inlist?: any;
|
|
147
113
|
prefix?: string | undefined;
|
|
@@ -153,6 +119,7 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
153
119
|
vocab?: string | undefined;
|
|
154
120
|
autoCorrect?: string | undefined;
|
|
155
121
|
autoSave?: string | undefined;
|
|
122
|
+
color?: string | undefined;
|
|
156
123
|
itemProp?: string | undefined;
|
|
157
124
|
itemScope?: boolean | undefined;
|
|
158
125
|
itemType?: string | undefined;
|
|
@@ -161,19 +128,25 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
161
128
|
results?: number | undefined;
|
|
162
129
|
security?: string | undefined;
|
|
163
130
|
unselectable?: "off" | "on" | undefined;
|
|
164
|
-
inputMode?: "
|
|
131
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
165
132
|
is?: string | undefined;
|
|
133
|
+
exportparts?: string | undefined;
|
|
134
|
+
part?: string | undefined;
|
|
166
135
|
"aria-activedescendant"?: string | undefined;
|
|
167
136
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
168
137
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
138
|
+
"aria-braillelabel"?: string | undefined;
|
|
139
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
169
140
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
170
141
|
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
171
142
|
"aria-colcount"?: number | undefined;
|
|
172
143
|
"aria-colindex"?: number | undefined;
|
|
144
|
+
"aria-colindextext"?: string | undefined;
|
|
173
145
|
"aria-colspan"?: number | undefined;
|
|
174
146
|
"aria-controls"?: string | undefined;
|
|
175
|
-
"aria-current"?: boolean | "
|
|
147
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
176
148
|
"aria-describedby"?: string | undefined;
|
|
149
|
+
"aria-description"?: string | undefined;
|
|
177
150
|
"aria-details"?: string | undefined;
|
|
178
151
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
179
152
|
"aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
@@ -181,28 +154,28 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
181
154
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
182
155
|
"aria-flowto"?: string | undefined;
|
|
183
156
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
184
|
-
"aria-haspopup"?: boolean | "
|
|
157
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
185
158
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
186
159
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
187
160
|
"aria-keyshortcuts"?: string | undefined;
|
|
188
|
-
"aria-label"?: string | undefined;
|
|
189
161
|
"aria-labelledby"?: string | undefined;
|
|
190
162
|
"aria-level"?: number | undefined;
|
|
191
163
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
192
164
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
193
165
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
194
166
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
195
|
-
"aria-orientation"?: "
|
|
167
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
196
168
|
"aria-owns"?: string | undefined;
|
|
197
169
|
"aria-placeholder"?: string | undefined;
|
|
198
170
|
"aria-posinset"?: number | undefined;
|
|
199
171
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
200
172
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
201
|
-
"aria-relevant"?: "text" | "
|
|
173
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
202
174
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
203
175
|
"aria-roledescription"?: string | undefined;
|
|
204
176
|
"aria-rowcount"?: number | undefined;
|
|
205
177
|
"aria-rowindex"?: number | undefined;
|
|
178
|
+
"aria-rowindextext"?: string | undefined;
|
|
206
179
|
"aria-rowspan"?: number | undefined;
|
|
207
180
|
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
208
181
|
"aria-setsize"?: number | undefined;
|
|
@@ -226,12 +199,10 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
226
199
|
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
227
200
|
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
228
201
|
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLElement> | undefined;
|
|
229
|
-
onFocus?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
230
202
|
onFocusCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
231
|
-
onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
232
203
|
onBlurCapture?: import("react").FocusEventHandler<HTMLElement> | undefined;
|
|
233
204
|
onChangeCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
234
|
-
onBeforeInput?: import("react").
|
|
205
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLElement> | undefined;
|
|
235
206
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
236
207
|
onInput?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
237
208
|
onInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
@@ -345,9 +316,7 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
345
316
|
onPointerCancel?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
346
317
|
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
347
318
|
onPointerEnter?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
348
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
349
319
|
onPointerLeave?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
350
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
351
320
|
onPointerOver?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
352
321
|
onPointerOverCapture?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
353
322
|
onPointerOut?: import("react").PointerEventHandler<HTMLElement> | undefined;
|
|
@@ -368,6 +337,9 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
368
337
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
369
338
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
370
339
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
340
|
+
rows?: number | false | undefined;
|
|
341
|
+
tooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
342
|
+
autoShowTooltip?: boolean | undefined;
|
|
371
343
|
refs?: import("../../api").Refs | undefined;
|
|
372
344
|
ref: import("../../api").Refs | undefined;
|
|
373
345
|
};
|
|
@@ -45,11 +45,7 @@ export function useAbstractBox(_ref2) {
|
|
|
45
45
|
var _parseHighlightTextAn = parseHighlightTextAndRestProps(props),
|
|
46
46
|
highlightTextProps = _parseHighlightTextAn.highlightTextProps,
|
|
47
47
|
restProps = _parseHighlightTextAn.restProps;
|
|
48
|
-
var tooltipProps = _objectSpread({
|
|
49
|
-
align: {
|
|
50
|
-
offset: [0, 1]
|
|
51
|
-
}
|
|
52
|
-
}, generateTooltip(boxTooltip));
|
|
48
|
+
var tooltipProps = _objectSpread({}, generateTooltip(boxTooltip));
|
|
53
49
|
var boxProps = _objectSpread(_objectSpread({
|
|
54
50
|
ref: refs
|
|
55
51
|
}, restProps), {}, _defineProperty(_defineProperty({}, inGroup ? 'value' : 'checked', value), "onChange", function onChange(e) {
|