doui-react 1.0.2 → 2.0.0
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 +1 -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 +36 -26
- package/es/form/component/utils.js +1 -1
- 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/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/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 +1 -1
- package/es/radio/component/abstract-box.d.ts +86 -114
- package/es/radio/component/abstract-box.js +1 -5
- package/es/radio/component/use-radio.d.ts +7 -5
- package/es/radio/type/index.d.ts +2 -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 +1 -1
- 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 +7 -7
- 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 +1 -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 +36 -26
- package/lib/form/component/utils.js +1 -1
- 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/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/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 +1 -1
- package/lib/radio/component/abstract-box.d.ts +86 -114
- package/lib/radio/component/abstract-box.js +1 -5
- package/lib/radio/component/use-radio.d.ts +7 -5
- package/lib/radio/type/index.d.ts +2 -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 +1 -1
- 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 +7 -7
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionType } from "..";
|
|
2
|
-
import
|
|
2
|
+
import 'dayjs/locale/zh-cn';
|
|
3
3
|
export declare const isJest: boolean;
|
|
4
4
|
export declare function runDevOrJest<T, U>(fn: T, jestFn: U): any;
|
|
5
5
|
export declare function getPopupContainer(triggerNode: HTMLElement): HTMLElement;
|
|
@@ -12,7 +12,7 @@ export declare function uuid(): string;
|
|
|
12
12
|
* 1. 不是 js 对象,比如 undefined, null, number, string, boolean 等
|
|
13
13
|
* 2. 是 ReactNode
|
|
14
14
|
*/
|
|
15
|
-
export declare function isReactNode(node?:
|
|
15
|
+
export declare function isReactNode(node?: any): boolean;
|
|
16
16
|
type OptionType = string | number | boolean;
|
|
17
17
|
export declare function includesNonStrictMode(options?: Array<OptionType>, value?: OptionType | Array<OptionType>): boolean;
|
|
18
18
|
export declare function mergeProps<T, U>(originProps: T, patchProps: U): {} & T & U;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import 'dayjs/locale/zh-cn';
|
|
3
5
|
import delay from 'delay';
|
|
4
6
|
import _ from 'lodash';
|
|
5
7
|
import { cloneElement, isValidElement } from 'react';
|
|
6
8
|
import { Fragment as _Fragment, jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
9
|
+
dayjs.locale('zh-cn');
|
|
7
10
|
export var isJest = !!process.env.JEST_WORKER_ID;
|
|
8
11
|
export function runDevOrJest(fn, jestFn) {
|
|
9
12
|
return executeFunction(isJest ? jestFn : /* istanbul ignore next */fn);
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
3
3
|
import { transformValueToGap } from "./..";
|
|
4
4
|
import { injectGlobal } from '@emotion/css';
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
var commonStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.do-hide-scroll {\n overflow: hidden !important;\n }\n"])));
|
|
7
7
|
injectGlobal(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n body {\n ", "\n }\n"])), commonStyle);
|
|
8
|
-
export var commonFontFamily = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-family: 'MyriadPro-Cond', 'Helvetica Neue', Helvetica, sans-serif;\n\n input,\n button,\n select,\n textarea {\n font-family: 'MyriadPro-Cond', 'Helvetica Neue', Helvetica, sans-serif;\n }\n"])));
|
|
9
8
|
export var flexStyle = function flexStyle(_ref) {
|
|
10
9
|
var vertical = _ref.vertical,
|
|
11
10
|
_ref$gap = _ref.gap,
|
|
12
11
|
gap = _ref$gap === void 0 ? 8 : _ref$gap,
|
|
13
12
|
_ref$wrap = _ref.wrap,
|
|
14
13
|
wrap = _ref$wrap === void 0 ? true : _ref$wrap;
|
|
15
|
-
return css(
|
|
14
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n flex-wrap: ", ";\n min-width: 0;\n"])), vertical ? 'column' : 'row', transformValueToGap(gap), wrap ? 'wrap' : 'nowrap');
|
|
16
15
|
};
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["hideBodyScroll"];
|
|
4
4
|
import { hideBodyScroll } from "./..";
|
|
5
|
-
import
|
|
5
|
+
import { createRoot } from 'react-dom/client';
|
|
6
6
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
7
7
|
function getContainer() {
|
|
8
8
|
var container = document.createElement('div');
|
|
@@ -11,30 +11,18 @@ function getContainer() {
|
|
|
11
11
|
}
|
|
12
12
|
// 处理React17和18版本的兼容性
|
|
13
13
|
function getReactDOM() {
|
|
14
|
-
// const { createRoot } = ReactDOM as any;
|
|
15
|
-
// if (createRoot) {
|
|
16
|
-
// return {
|
|
17
|
-
// render: (element, container: any) => {
|
|
18
|
-
// const root = createRoot(container);
|
|
19
|
-
// root.render(element);
|
|
20
|
-
// container._reactRootContainer = root;
|
|
21
|
-
// },
|
|
22
|
-
// unmount: (container: any) => {
|
|
23
|
-
// const root = container._reactRootContainer;
|
|
24
|
-
// if (root) {
|
|
25
|
-
// root.unmount();
|
|
26
|
-
// delete container._reactRootContainer;
|
|
27
|
-
// }
|
|
28
|
-
// },
|
|
29
|
-
// };
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
14
|
return {
|
|
33
15
|
render: function render(element, container) {
|
|
34
|
-
|
|
16
|
+
var root = createRoot(container);
|
|
17
|
+
root.render(element);
|
|
18
|
+
container._reactRootContainer = root;
|
|
35
19
|
},
|
|
36
20
|
unmount: function unmount(container) {
|
|
37
|
-
|
|
21
|
+
var root = container._reactRootContainer;
|
|
22
|
+
if (root) {
|
|
23
|
+
root.unmount();
|
|
24
|
+
delete container._reactRootContainer;
|
|
25
|
+
}
|
|
38
26
|
}
|
|
39
27
|
};
|
|
40
28
|
}
|
|
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
var _excluded = ["tooltip", "placement", "trigger", "align"],
|
|
5
|
-
_excluded2 = ["show", "confirm", "onClick", "
|
|
5
|
+
_excluded2 = ["show", "confirm", "onClick", "description", "okText", "cancelText"],
|
|
6
6
|
_excluded3 = ["portalTo"];
|
|
7
7
|
import { getPopupContainer } from "../../api";
|
|
8
8
|
import { useLoading } from "../../hooks";
|
|
@@ -28,10 +28,7 @@ function BaseButton(_ref) {
|
|
|
28
28
|
_ref$placement = _ref.placement,
|
|
29
29
|
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
30
30
|
trigger = _ref.trigger,
|
|
31
|
-
|
|
32
|
-
align = _ref$align === void 0 ? {
|
|
33
|
-
offset: [0, 2]
|
|
34
|
-
} : _ref$align,
|
|
31
|
+
align = _ref.align,
|
|
35
32
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
36
33
|
var params = useButton(props);
|
|
37
34
|
if (_.isNil(tooltip)) {
|
|
@@ -51,21 +48,23 @@ function ButtonWrapper(_ref2) {
|
|
|
51
48
|
show = _ref2$show === void 0 ? true : _ref2$show,
|
|
52
49
|
confirm = _ref2.confirm,
|
|
53
50
|
onClick = _ref2.onClick,
|
|
54
|
-
|
|
51
|
+
description = _ref2.description,
|
|
55
52
|
okText = _ref2.okText,
|
|
56
53
|
cancelText = _ref2.cancelText,
|
|
57
54
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
58
55
|
if (!show) {
|
|
59
|
-
return
|
|
56
|
+
return;
|
|
60
57
|
}
|
|
61
58
|
if (confirm) {
|
|
59
|
+
var title = _.isBoolean(confirm) ? '是否确定?' : confirm;
|
|
62
60
|
return _jsx(Popconfirm, {
|
|
63
|
-
title:
|
|
61
|
+
title: title,
|
|
62
|
+
description: description,
|
|
64
63
|
onConfirm: onClick,
|
|
65
64
|
okText: okText,
|
|
66
65
|
cancelText: cancelText,
|
|
67
66
|
placement: props.placement,
|
|
68
|
-
|
|
67
|
+
arrow: props.arrow,
|
|
69
68
|
getPopupContainer: getPopupContainer,
|
|
70
69
|
children: _jsx(BaseButton, _objectSpread({}, props))
|
|
71
70
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FunctionReturn } from "../../api";
|
|
2
2
|
import { PortalProps } from "../../portal";
|
|
3
3
|
import { ButtonProps as AntdButtonProps, PopconfirmProps } from 'antd';
|
|
4
|
-
import { EllipsisConfig } from 'antd/
|
|
4
|
+
import { EllipsisConfig } from 'antd/es/typography/Base';
|
|
5
5
|
import { MouseEvent, ReactNode } from 'react';
|
|
6
|
-
export interface ButtonProps extends AntdButtonProps, Omit<PopconfirmProps, 'title'> {
|
|
6
|
+
export interface ButtonProps extends AntdButtonProps, Omit<PopconfirmProps, 'title' | 'classNames' | 'color' | 'styles'> {
|
|
7
7
|
/**
|
|
8
8
|
* @description 提示信息
|
|
9
9
|
* @link TooltipProps: https://4x.ant.design/components/tooltip-cn/#API
|
|
@@ -13,11 +13,7 @@ export interface ButtonProps extends AntdButtonProps, Omit<PopconfirmProps, 'tit
|
|
|
13
13
|
* @description 是否需要确认
|
|
14
14
|
* @default false
|
|
15
15
|
*/
|
|
16
|
-
confirm?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @description 确认信息
|
|
19
|
-
*/
|
|
20
|
-
confirmMessage?: ReactNode;
|
|
16
|
+
confirm?: boolean | ReactNode;
|
|
21
17
|
/**
|
|
22
18
|
* @description 是否显示
|
|
23
19
|
* @default true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseFlexProps } from "../../api";
|
|
2
2
|
import { BaseBoxProps } from "../../radio";
|
|
3
3
|
import { BaseSelectProps } from "../../select";
|
|
4
|
-
import { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/
|
|
4
|
+
import { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/es/checkbox/Group';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
type UnionType = Omit<AntdCheckboxGroupProps, 'options' | 'defaultValue' | 'onChange' | 'value'> & Omit<BaseBoxProps, 'defaultValue'> & BaseSelectProps & BaseFlexProps;
|
|
7
7
|
export interface CheckboxProps extends UnionType {
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
-
var _excluded = ["refs"];
|
|
3
|
+
var _excluded = ["refs", "value"];
|
|
4
4
|
import { getPopupContainer } from "../../api";
|
|
5
5
|
import { DatePicker as AntdDatePicker } from 'antd';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
6
7
|
import _ from 'lodash';
|
|
7
|
-
import moment from 'moment-timezone';
|
|
8
8
|
import style from "../style";
|
|
9
9
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
10
10
|
export function DatePicker(props) {
|
|
11
11
|
var baseProps = generateProps(props);
|
|
12
|
-
|
|
13
|
-
return _jsx(AntdDatePicker, _objectSpread(_objectSpread({}, baseProps), {}, {
|
|
14
|
-
value: value
|
|
15
|
-
}));
|
|
12
|
+
return _jsx(AntdDatePicker, _objectSpread({}, baseProps));
|
|
16
13
|
}
|
|
17
14
|
export function RangePicker(props) {
|
|
18
15
|
var baseProps = generateProps(props);
|
|
19
|
-
|
|
20
|
-
return _jsx(AntdDatePicker.RangePicker, _objectSpread(_objectSpread({}, baseProps), {}, {
|
|
21
|
-
value: value
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
function toMoment(input) {
|
|
25
|
-
if (!input) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
return moment.isMoment(input) ? input : moment(input);
|
|
16
|
+
return _jsx(AntdDatePicker.RangePicker, _objectSpread({}, baseProps));
|
|
29
17
|
}
|
|
30
18
|
function generateProps(_ref) {
|
|
31
19
|
var refs = _ref.refs,
|
|
20
|
+
value = _ref.value,
|
|
32
21
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
22
|
return _objectSpread({
|
|
34
23
|
ref: refs,
|
|
35
24
|
css: style.wrapper,
|
|
36
|
-
getPopupContainer: getPopupContainer
|
|
25
|
+
getPopupContainer: getPopupContainer,
|
|
26
|
+
value: _.isArray(value) ? _.map(value, toDayjs) : toDayjs(value)
|
|
37
27
|
}, props);
|
|
28
|
+
}
|
|
29
|
+
function toDayjs(input) {
|
|
30
|
+
if (!input) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
return dayjs.isDayjs(input) ? input : dayjs(input);
|
|
38
34
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import { BaseComponentProps } from "../../api";
|
|
2
|
-
import {
|
|
3
|
-
import { Moment } from 'moment/moment';
|
|
4
|
-
import { Key } from 'react';
|
|
2
|
+
import type { DatePickerProps as AntdDatePickerProps, RangePickerProps as AntdRangePickerProps } from 'antd/es/date-picker';
|
|
5
3
|
export interface CommonProps extends BaseComponentProps {
|
|
6
4
|
/**
|
|
7
5
|
* @description 日期选择器类型
|
|
8
6
|
* @default date
|
|
9
7
|
*/
|
|
10
|
-
picker?:
|
|
8
|
+
picker?: AntdDatePickerProps['picker'];
|
|
9
|
+
value?: any;
|
|
11
10
|
}
|
|
12
|
-
type
|
|
13
|
-
type
|
|
14
|
-
export type DatePickerProps = PickerProps & CommonProps & {
|
|
15
|
-
value?: Moment | Key;
|
|
16
|
-
};
|
|
17
|
-
type RangePickerType<DateType = Moment> = OmitValue<RangePickerBaseProps<DateType>> | OmitValue<RangePickerDateProps<DateType>> | OmitValue<RangePickerTimeProps<DateType>>;
|
|
18
|
-
export type RangePickerProps = RangePickerType & CommonProps & {
|
|
19
|
-
value?: DatePickerProps['value'][];
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
11
|
+
export type DatePickerProps = Omit<AntdDatePickerProps, 'value'> & CommonProps;
|
|
12
|
+
export type RangePickerProps = Omit<AntdRangePickerProps, 'value'> & CommonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export var antdFormPropsKeys = ['form', 'name', 'colon', 'disabled', 'component', 'initialValues', 'labelAlign', 'labelWrap', 'labelCol', 'labelWidth', 'layout', 'preserve', 'requiredMark', 'scrollToFirstError', 'size', 'validateMessages', 'validateTrigger', 'wrapperCol', 'onFieldsChange', 'onFinish', 'onFinishFailed', 'onValuesChange', 'onValidateFailed'];
|
|
2
|
-
export var antdFormItemKeys = ['colon', 'dependencies', 'extra', 'getValueFromEvent', 'getValueProps', 'hasFeedback', 'help', 'hidden', 'htmlFor', 'initialValue', 'label', 'labelAlign', 'labelCol', 'messageVariables', 'name', 'normalize', 'noStyle', 'preserve', 'required', 'rules', 'shouldUpdate', 'tooltip', 'trigger', 'validateFirst', 'validateStatus', 'validateTrigger', 'valuePropName', 'wrapperCol', 'className', 'style', 'isListField'];
|
|
1
|
+
export var antdFormPropsKeys = ['form', 'name', 'colon', 'disabled', 'component', 'initialValues', 'labelAlign', 'labelWrap', 'labelCol', 'labelWidth', 'layout', 'preserve', 'variant', 'requiredMark', 'feedbackIcons', 'scrollToFirstError', 'size', 'validateMessages', 'validateTrigger', 'wrapperCol', 'clearOnDestroy', 'onFieldsChange', 'onFinish', 'onFinishFailed', 'onValuesChange', 'onValidateFailed'];
|
|
2
|
+
export var antdFormItemKeys = ['colon', 'dependencies', 'extra', 'getValueFromEvent', 'getValueProps', 'hasFeedback', 'help', 'hidden', 'htmlFor', 'initialValue', 'label', 'labelAlign', 'labelCol', 'messageVariables', 'name', 'normalize', 'noStyle', 'preserve', 'required', 'rules', 'shouldUpdate', 'tooltip', 'layout', 'trigger', 'validateFirst', 'validateDebounce', 'validateStatus', 'validateTrigger', 'valuePropName', 'wrapperCol', 'className', 'style', 'isListField'];
|
|
3
3
|
export var formListActionKeys = ['operation', 'defaultValue', 'insertIndex', 'index', 'from', 'to'];
|
|
4
4
|
export var needCollectItemPropKeys = ['name', 'type', 'optionDependencies', 'rules', 'formListContext'];
|
|
5
5
|
export var useUnsetWidthKeys = ['switch'];
|
|
@@ -33,7 +33,7 @@ export declare const formItemMap: {
|
|
|
33
33
|
checkbox: typeof FormItemCheckbox;
|
|
34
34
|
switch: typeof Switch;
|
|
35
35
|
radio: typeof Radio;
|
|
36
|
-
slider: import("react").ForwardRefExoticComponent<(import("antd").SliderSingleProps | import("antd/
|
|
36
|
+
slider: import("react").ForwardRefExoticComponent<(import("antd").SliderSingleProps | import("antd/es/slider").SliderRangeProps) & import("react").RefAttributes<import("rc-slider").SliderRef>>;
|
|
37
37
|
date: typeof DatePicker;
|
|
38
38
|
rangeDate: typeof RangePicker;
|
|
39
39
|
};
|
|
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
var _excluded = ["item", "items"],
|
|
5
5
|
_excluded2 = ["type", "name", "disabled", "dateProps", "render", "onChange"],
|
|
6
|
-
_excluded3 = ["show", "className", "style", "flex", "labelWidth", "controlWidth", "requiredMark"
|
|
6
|
+
_excluded3 = ["show", "className", "style", "flex", "labelWidth", "controlWidth", "requiredMark"];
|
|
7
7
|
import { executeFunction, mergeFunction, mergeProps } from "../../api";
|
|
8
8
|
import { useFormContext, useFormListContext } from "./..";
|
|
9
9
|
import { useDeepEffect } from "../../hooks";
|
|
@@ -163,7 +163,6 @@ function FormItemComponent(_ref3) {
|
|
|
163
163
|
labelWidth = item.labelWidth,
|
|
164
164
|
controlWidth = item.controlWidth,
|
|
165
165
|
requiredMark = item.requiredMark,
|
|
166
|
-
layout = item.layout,
|
|
167
166
|
restItem = _objectWithoutProperties(item, _excluded3);
|
|
168
167
|
|
|
169
168
|
// 是否显示
|
|
@@ -181,7 +180,6 @@ function FormItemComponent(_ref3) {
|
|
|
181
180
|
labelWidth: labelWidth,
|
|
182
181
|
controlWidth: controlWidth,
|
|
183
182
|
requiredMark: requiredMark,
|
|
184
|
-
layout: layout,
|
|
185
183
|
type: restItem.type
|
|
186
184
|
});
|
|
187
185
|
var formItemProps = getFormItemProps(_objectSpread({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormInstance, FormListActionProps, FormListProps, FormValues } from "..";
|
|
2
|
-
import { ErrorListProps } from 'antd/
|
|
3
|
-
import { FormListFieldData, FormListOperation } from 'antd/
|
|
2
|
+
import { ErrorListProps } from 'antd/es/form/ErrorList';
|
|
3
|
+
import { FormListFieldData, FormListOperation } from 'antd/es/form/FormList';
|
|
4
4
|
import { NamePath } from 'rc-field-form/es/interface';
|
|
5
5
|
import { StoreValue } from 'rc-field-form/lib/interface';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
@@ -10,51 +10,61 @@ export declare function getFormItemProps(props: any): {
|
|
|
10
10
|
name: string | string[] | undefined;
|
|
11
11
|
tooltip: {
|
|
12
12
|
color?: string | undefined;
|
|
13
|
-
title?: import("react").ReactNode | import("antd/
|
|
14
|
-
overlay?: import("react").ReactNode | import("antd/
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
14
|
+
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
15
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
16
|
+
classNames: Partial<Record<"body" | "root", string>>;
|
|
17
|
+
rootClassName?: string | undefined;
|
|
18
|
+
placement?: import("antd/es/tooltip").TooltipPlacement | undefined;
|
|
19
|
+
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
17
20
|
openClassName?: string | undefined;
|
|
18
|
-
arrowPointAtCenter
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
arrowPointAtCenter?: boolean | undefined;
|
|
22
|
+
arrow: boolean | {
|
|
23
|
+
arrowPointAtCenter?: boolean | undefined;
|
|
24
|
+
pointAtCenter?: boolean | undefined;
|
|
25
|
+
};
|
|
26
|
+
autoAdjustOverflow?: boolean | import("antd/es/tooltip").AdjustOverflow | undefined;
|
|
27
|
+
getPopupContainer: typeof import("../../api").getPopupContainer;
|
|
21
28
|
children?: import("react").ReactNode;
|
|
22
|
-
|
|
29
|
+
destroyTooltipOnHide?: boolean | {
|
|
30
|
+
keepParent?: boolean | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
destroyOnHidden?: boolean | undefined;
|
|
23
33
|
open?: boolean | undefined;
|
|
24
|
-
defaultVisible?: boolean | undefined;
|
|
25
34
|
defaultOpen?: boolean | undefined;
|
|
26
|
-
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
27
35
|
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
28
|
-
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
29
36
|
afterOpenChange?: ((visible: boolean) => void) | undefined;
|
|
37
|
+
visible?: boolean | undefined;
|
|
38
|
+
defaultVisible?: boolean | undefined;
|
|
39
|
+
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
40
|
+
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
41
|
+
zIndex?: number | undefined;
|
|
42
|
+
animation?: string | undefined;
|
|
43
|
+
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
30
44
|
id?: string | undefined;
|
|
31
45
|
prefixCls?: string | undefined;
|
|
32
|
-
onPopupAlign?: ((element: HTMLElement, align: import("rc-trigger/lib/interface").AlignType) => void) | undefined;
|
|
33
|
-
trigger?: string | string[] | undefined;
|
|
34
46
|
transitionName?: string | undefined;
|
|
35
|
-
animation?: string | undefined;
|
|
36
|
-
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
37
|
-
overlayStyle?: import("react").CSSProperties | undefined;
|
|
38
|
-
overlayClassName: string;
|
|
39
47
|
mouseEnterDelay?: number | undefined;
|
|
40
48
|
mouseLeaveDelay?: number | undefined;
|
|
49
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
50
|
+
overlayClassName?: string | undefined;
|
|
51
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
52
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
53
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
54
|
+
popupVisible?: boolean | undefined;
|
|
55
|
+
forceRender?: boolean | undefined;
|
|
56
|
+
fresh?: boolean | undefined;
|
|
41
57
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
42
|
-
|
|
43
|
-
keepParent?: boolean | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
align?: import("rc-trigger/lib/interface").AlignType | undefined;
|
|
46
|
-
showArrow?: boolean | undefined;
|
|
58
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
47
59
|
arrowContent?: import("react").ReactNode;
|
|
48
|
-
popupVisible?: boolean | undefined;
|
|
49
60
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
50
|
-
zIndex?: number | undefined;
|
|
51
61
|
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
52
62
|
} | undefined;
|
|
53
63
|
initialValue: any;
|
|
54
64
|
};
|
|
55
65
|
export declare function getComponentProps(props: any): _.Omit<any, string>;
|
|
56
66
|
interface GenerateFormItemProps extends CommonParams {
|
|
57
|
-
item: FormItemProps
|
|
67
|
+
item: Omit<FormItemProps, 'children'>;
|
|
58
68
|
formListContext: FormListContext;
|
|
59
69
|
isFormList?: boolean;
|
|
60
70
|
}
|
|
@@ -75,7 +85,7 @@ export declare function transformPathToName(path?: NamePath): string | undefined
|
|
|
75
85
|
export declare function transformKeyToPath(params?: Record<string, any>): Record<string, any>;
|
|
76
86
|
export declare function parseFormFailedError(error: ValidateErrorEntity): Record<string, string>;
|
|
77
87
|
export declare function noStyle(item: FormItemProps): boolean;
|
|
78
|
-
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams): ((values: FormValues, params: import("..").OptionsParams) => import("../../api").FunctionReturn<SelectOptions>) | ((search?: string) => import("../../api").FunctionReturn<SelectOptions>) |
|
|
88
|
+
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams): import("../../api").FunctionReturn<SelectOptions> | ((values: FormValues, params: import("..").OptionsParams) => import("../../api").FunctionReturn<SelectOptions>) | ((search?: string) => import("../../api").FunctionReturn<SelectOptions>) | undefined;
|
|
79
89
|
interface FocusFirstInputParams extends CommonParams {
|
|
80
90
|
focusFirstOnMount: FormProps['focusFirstOnMount'];
|
|
81
91
|
}
|
|
@@ -13,7 +13,7 @@ import { getOptionsValue } from "../../select/component/utils";
|
|
|
13
13
|
import { generateTooltip } from "../../text";
|
|
14
14
|
import { getTooltipProps } from "../../tooltip";
|
|
15
15
|
import { InfoCircleOutlined } from '@ant-design/icons';
|
|
16
|
-
import { getFieldId } from 'antd/
|
|
16
|
+
import { getFieldId } from 'antd/es/form/util';
|
|
17
17
|
import delay from 'delay';
|
|
18
18
|
import _ from 'lodash';
|
|
19
19
|
import { antdFormItemKeys, antdFormPropsKeys, registerMethods } from "./constant";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormItemProps, FormItemPropsWithType } from "..";
|
|
2
2
|
export declare function getFormItemWidth({ width, type }: FormItemPropsWithType): string | number | undefined;
|
|
3
|
-
export declare function getFormItemStyle({ labelWidth, controlWidth, requiredMark,
|
|
3
|
+
export declare function getFormItemStyle({ labelWidth, controlWidth, requiredMark, type, ...props }: FormItemProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3
|
|
4
|
-
var _excluded = ["labelWidth", "controlWidth", "requiredMark", "
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
+
var _excluded = ["labelWidth", "controlWidth", "requiredMark", "type"];
|
|
5
5
|
import { transformValueWithStyleUnit } from "../../api";
|
|
6
6
|
import { getWidthAndFlex } from "../../stack/style";
|
|
7
7
|
import { css } from '@emotion/css';
|
|
@@ -21,18 +21,11 @@ export function getFormItemStyle(_ref2) {
|
|
|
21
21
|
controlWidth = _ref2.controlWidth,
|
|
22
22
|
_ref2$requiredMark = _ref2.requiredMark,
|
|
23
23
|
requiredMark = _ref2$requiredMark === void 0 ? true : _ref2$requiredMark,
|
|
24
|
-
layout = _ref2.layout,
|
|
25
24
|
type = _ref2.type,
|
|
26
25
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
27
|
-
var baseStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.ant-form-item {\n min-width: 0;\n\n .ant-form-item-label {\n width: ", ";\n\n .ant-form-item-tooltip {\n color: inherit;\n font-size: 13px;\n margin-inline-start: unset;\n margin-left: 3px;\n }\n }\n\n .ant-form-item-control-input {\n width: ", ";\n }\n\n .ant-form-item-required::before {\n display: ", ";\n }\n\n
|
|
26
|
+
var baseStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.ant-form-item {\n min-width: 0;\n\n .ant-form-item-label {\n width: ", ";\n\n .ant-form-item-tooltip {\n color: inherit;\n font-size: 13px;\n margin-inline-start: unset;\n margin-left: 3px;\n }\n }\n\n .ant-form-item-control-input {\n width: ", ";\n }\n\n label.ant-form-item-required::before {\n display: ", ";\n }\n\n // ", "\n }\n "])), transformValueWithStyleUnit(labelWidth), transformValueWithStyleUnit(controlWidth), requiredMark ? undefined : 'none', type === 'tree' && treeItemStyle());
|
|
28
27
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), getWidthAndFlex(props), baseStyle);
|
|
29
28
|
}
|
|
30
|
-
function getHorizontalStyle() {
|
|
31
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .ant-form-item-row {\n flex-direction: row;\n }\n\n .ant-form-item-label {\n padding-bottom: 0;\n\n > label {\n height: 32px;\n margin-right: 8px;\n }\n }\n\n .ant-form-item-control {\n flex: 1;\n min-width: 0;\n }\n "])));
|
|
32
|
-
}
|
|
33
|
-
function getVerticalStyle() {
|
|
34
|
-
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .ant-form-item-row {\n flex-direction: column;\n }\n\n .ant-form-item-label {\n > label {\n height: auto;\n margin-bottom: 4px;\n }\n\n .ant-form-item-required::before {\n position: unset;\n }\n }\n "])));
|
|
35
|
-
}
|
|
36
29
|
function treeItemStyle() {
|
|
37
|
-
return css(
|
|
30
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &,\n .ant-form-item-row,\n .ant-form-item-control,\n .ant-form-item-control-input,\n .ant-form-item-control-input-content,\n .ant-select-in-form-item {\n height: 100%;\n }\n "])));
|
|
38
31
|
}
|
package/es/form/style/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
import {
|
|
3
|
+
import { transformValueWithStyleUnit } from "../../api";
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
export * from "./form-item";
|
|
6
6
|
var style = {
|
|
7
7
|
wrapper: function wrapper(_ref) {
|
|
8
8
|
var labelWidth = _ref.labelWidth,
|
|
9
9
|
formItemMarginBottom = _ref.formItemMarginBottom;
|
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
10
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-form-item {\n margin-bottom: ", ";\n }\n\n .ant-form-item-label {\n width: ", ";\n }\n\n .ant-form-item-with-help .ant-form-item-explain {\n line-height: 1.1;\n padding: 4px 0;\n\n .ant-form-item-explain-error + .ant-form-item-explain-error {\n margin-top: 2px;\n }\n }\n\n &.ant-form-horizontal {\n .ant-form-item-required::before {\n position: absolute;\n left: -10px;\n }\n }\n\n &.ant-form-vertical {\n .ant-form-item-label {\n padding-bottom: 5px;\n }\n }\n "])), transformValueWithStyleUnit(formItemMarginBottom), transformValueWithStyleUnit(labelWidth));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
export default style;
|
|
@@ -7,13 +7,13 @@ import { RadioProps } from "../../radio";
|
|
|
7
7
|
import { SelectOptions, SelectProps } from "../../select";
|
|
8
8
|
import { SwitchProps } from "../../switch";
|
|
9
9
|
import { TreeSelectProps } from "../../tree-select";
|
|
10
|
-
import { FormItemProps as AntdFormItemProps } from 'antd/
|
|
11
|
-
import { SliderRangeProps, SliderSingleProps } from 'antd/
|
|
10
|
+
import { FormItemProps as AntdFormItemProps } from 'antd/es/form/FormItem';
|
|
11
|
+
import { SliderRangeProps, SliderSingleProps } from 'antd/es/slider';
|
|
12
12
|
import { Rule } from 'rc-field-form/lib/interface';
|
|
13
13
|
import { ReactElement, ReactNode } from 'react';
|
|
14
14
|
import { InputComponentType, OtherComponentType } from '../component/form-item';
|
|
15
15
|
type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
16
|
-
type UnionType = Omit<AntdFormItemProps & InputProps & SelectProps & TreeSelectProps & SwitchProps & RadioProps & CheckboxProps & SliderProps, 'rules' | 'type' | 'disabled' | 'options' | 'required'>;
|
|
16
|
+
type UnionType = Omit<AntdFormItemProps & InputProps & SelectProps & TreeSelectProps & SwitchProps & RadioProps & CheckboxProps & SliderProps, 'rules' | 'type' | 'disabled' | 'options' | 'required' | 'children'>;
|
|
17
17
|
/**
|
|
18
18
|
* @noExtends
|
|
19
19
|
*/
|
|
@@ -84,10 +84,9 @@ export interface FormItemProps extends UnionType {
|
|
|
84
84
|
*/
|
|
85
85
|
controlWidth?: number | string;
|
|
86
86
|
/**
|
|
87
|
-
* @description
|
|
88
|
-
* @default horizontal
|
|
87
|
+
* @description 是否显示必填标记
|
|
89
88
|
*/
|
|
90
|
-
|
|
89
|
+
requiredMark?: boolean;
|
|
91
90
|
preserveStatus?: boolean;
|
|
92
91
|
/**
|
|
93
92
|
* @description 自定义渲染
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from "../../button";
|
|
2
2
|
import { FormItemProps, FormValues } from "..";
|
|
3
3
|
import { ListOperation } from "../../hooks";
|
|
4
|
-
import { FormListFieldData } from 'antd/
|
|
4
|
+
import { FormListFieldData } from 'antd/es/form/FormList';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
export interface FormListContext extends FormListCommonProps {
|
|
7
7
|
name: FormItemProps['name'];
|
|
@@ -9,7 +9,7 @@ export interface FormListContext extends FormListCommonProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* @noExtends
|
|
11
11
|
*/
|
|
12
|
-
export interface FormListProps extends FormItemProps {
|
|
12
|
+
export interface FormListProps extends Omit<FormItemProps, 'children'> {
|
|
13
13
|
/**
|
|
14
14
|
* @description 表单名称,支持层级嵌套,如:a.b.c
|
|
15
15
|
*/
|
package/es/form/type/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FunctionReturn } from "../../api";
|
|
2
2
|
import { ButtonProps } from "../../button";
|
|
3
3
|
import { FormContext, FormItemContext, FormItemProps, FormListContext } from "..";
|
|
4
|
-
import { FormProps as AntdFormProps } from 'antd/
|
|
5
|
-
import { FormInstance as AntdFormInstance } from 'antd/
|
|
6
|
-
import { InputFocusOptions } from 'antd/
|
|
4
|
+
import { FormProps as AntdFormProps } from 'antd/es/form/Form';
|
|
5
|
+
import { FormInstance as AntdFormInstance } from 'antd/es/form/hooks/useForm';
|
|
6
|
+
import { InputFocusOptions } from 'antd/es/input/Input';
|
|
7
7
|
import { ValidateOptions } from 'rc-field-form/es/interface';
|
|
8
8
|
import { StoreValue } from 'rc-field-form/lib/interface';
|
|
9
9
|
import { ReactNode } from 'react';
|