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
|
@@ -9,7 +9,7 @@ exports.unmountComponent = unmountComponent;
|
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _ = require("./..");
|
|
12
|
-
var
|
|
12
|
+
var _client = require("react-dom/client");
|
|
13
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
14
|
var _excluded = ["hideBodyScroll"];
|
|
15
15
|
function getContainer() {
|
|
@@ -19,30 +19,18 @@ function getContainer() {
|
|
|
19
19
|
}
|
|
20
20
|
// 处理React17和18版本的兼容性
|
|
21
21
|
function getReactDOM() {
|
|
22
|
-
// const { createRoot } = ReactDOM as any;
|
|
23
|
-
// if (createRoot) {
|
|
24
|
-
// return {
|
|
25
|
-
// render: (element, container: any) => {
|
|
26
|
-
// const root = createRoot(container);
|
|
27
|
-
// root.render(element);
|
|
28
|
-
// container._reactRootContainer = root;
|
|
29
|
-
// },
|
|
30
|
-
// unmount: (container: any) => {
|
|
31
|
-
// const root = container._reactRootContainer;
|
|
32
|
-
// if (root) {
|
|
33
|
-
// root.unmount();
|
|
34
|
-
// delete container._reactRootContainer;
|
|
35
|
-
// }
|
|
36
|
-
// },
|
|
37
|
-
// };
|
|
38
|
-
// }
|
|
39
|
-
|
|
40
22
|
return {
|
|
41
23
|
render: function render(element, container) {
|
|
42
|
-
|
|
24
|
+
var root = (0, _client.createRoot)(container);
|
|
25
|
+
root.render(element);
|
|
26
|
+
container._reactRootContainer = root;
|
|
43
27
|
},
|
|
44
28
|
unmount: function unmount(container) {
|
|
45
|
-
|
|
29
|
+
var root = container._reactRootContainer;
|
|
30
|
+
if (root) {
|
|
31
|
+
root.unmount();
|
|
32
|
+
delete container._reactRootContainer;
|
|
33
|
+
}
|
|
46
34
|
}
|
|
47
35
|
};
|
|
48
36
|
}
|
|
@@ -17,7 +17,7 @@ var _antd = require("antd");
|
|
|
17
17
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
18
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
19
|
var _excluded = ["tooltip", "placement", "trigger", "align"],
|
|
20
|
-
_excluded2 = ["show", "confirm", "onClick", "
|
|
20
|
+
_excluded2 = ["show", "confirm", "onClick", "description", "okText", "cancelText"],
|
|
21
21
|
_excluded3 = ["portalTo"];
|
|
22
22
|
function useButton(props) {
|
|
23
23
|
var _props$loading;
|
|
@@ -35,10 +35,7 @@ function BaseButton(_ref) {
|
|
|
35
35
|
_ref$placement = _ref.placement,
|
|
36
36
|
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
37
37
|
trigger = _ref.trigger,
|
|
38
|
-
|
|
39
|
-
align = _ref$align === void 0 ? {
|
|
40
|
-
offset: [0, 2]
|
|
41
|
-
} : _ref$align,
|
|
38
|
+
align = _ref.align,
|
|
42
39
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
43
40
|
var params = useButton(props);
|
|
44
41
|
if (_lodash.default.isNil(tooltip)) {
|
|
@@ -58,21 +55,23 @@ function ButtonWrapper(_ref2) {
|
|
|
58
55
|
show = _ref2$show === void 0 ? true : _ref2$show,
|
|
59
56
|
confirm = _ref2.confirm,
|
|
60
57
|
onClick = _ref2.onClick,
|
|
61
|
-
|
|
58
|
+
description = _ref2.description,
|
|
62
59
|
okText = _ref2.okText,
|
|
63
60
|
cancelText = _ref2.cancelText,
|
|
64
61
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
65
62
|
if (!show) {
|
|
66
|
-
return
|
|
63
|
+
return;
|
|
67
64
|
}
|
|
68
65
|
if (confirm) {
|
|
66
|
+
var title = _lodash.default.isBoolean(confirm) ? '是否确定?' : confirm;
|
|
69
67
|
return (0, _jsxRuntime.jsx)(_antd.Popconfirm, {
|
|
70
|
-
title:
|
|
68
|
+
title: title,
|
|
69
|
+
description: description,
|
|
71
70
|
onConfirm: onClick,
|
|
72
71
|
okText: okText,
|
|
73
72
|
cancelText: cancelText,
|
|
74
73
|
placement: props.placement,
|
|
75
|
-
|
|
74
|
+
arrow: props.arrow,
|
|
76
75
|
getPopupContainer: _api.getPopupContainer,
|
|
77
76
|
children: (0, _jsxRuntime.jsx)(BaseButton, (0, _objectSpread2.default)({}, props))
|
|
78
77
|
});
|
|
@@ -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 {
|
|
@@ -10,37 +10,33 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
11
|
var _api = require("../../api");
|
|
12
12
|
var _antd = require("antd");
|
|
13
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
13
14
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
14
|
-
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
15
15
|
var _style = _interopRequireDefault(require("../style"));
|
|
16
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
17
|
-
var _excluded = ["refs"];
|
|
17
|
+
var _excluded = ["refs", "value"];
|
|
18
18
|
function DatePicker(props) {
|
|
19
19
|
var baseProps = generateProps(props);
|
|
20
|
-
|
|
21
|
-
return (0, _jsxRuntime.jsx)(_antd.DatePicker, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, baseProps), {}, {
|
|
22
|
-
value: value
|
|
23
|
-
}));
|
|
20
|
+
return (0, _jsxRuntime.jsx)(_antd.DatePicker, (0, _objectSpread2.default)({}, baseProps));
|
|
24
21
|
}
|
|
25
22
|
function RangePicker(props) {
|
|
26
23
|
var baseProps = generateProps(props);
|
|
27
|
-
|
|
28
|
-
return (0, _jsxRuntime.jsx)(_antd.DatePicker.RangePicker, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, baseProps), {}, {
|
|
29
|
-
value: value
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
function toMoment(input) {
|
|
33
|
-
if (!input) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
return _momentTimezone.default.isMoment(input) ? input : (0, _momentTimezone.default)(input);
|
|
24
|
+
return (0, _jsxRuntime.jsx)(_antd.DatePicker.RangePicker, (0, _objectSpread2.default)({}, baseProps));
|
|
37
25
|
}
|
|
38
26
|
function generateProps(_ref) {
|
|
39
27
|
var refs = _ref.refs,
|
|
28
|
+
value = _ref.value,
|
|
40
29
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
30
|
return (0, _objectSpread2.default)({
|
|
42
31
|
ref: refs,
|
|
43
32
|
css: _style.default.wrapper,
|
|
44
|
-
getPopupContainer: _api.getPopupContainer
|
|
33
|
+
getPopupContainer: _api.getPopupContainer,
|
|
34
|
+
value: _lodash.default.isArray(value) ? _lodash.default.map(value, toDayjs) : toDayjs(value)
|
|
45
35
|
}, props);
|
|
36
|
+
}
|
|
37
|
+
function toDayjs(input) {
|
|
38
|
+
if (!input) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
return _dayjs.default.isDayjs(input) ? input : (0, _dayjs.default)(input);
|
|
46
42
|
}
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useUnsetWidthKeys = exports.registerMethods = exports.needCollectItemPropKeys = exports.formListActionKeys = exports.antdFormPropsKeys = exports.antdFormItemKeys = void 0;
|
|
7
|
-
var antdFormPropsKeys = exports.antdFormPropsKeys = ['form', 'name', 'colon', 'disabled', 'component', 'initialValues', 'labelAlign', 'labelWrap', 'labelCol', 'labelWidth', 'layout', 'preserve', 'requiredMark', 'scrollToFirstError', 'size', 'validateMessages', 'validateTrigger', 'wrapperCol', 'onFieldsChange', 'onFinish', 'onFinishFailed', 'onValuesChange', 'onValidateFailed'];
|
|
8
|
-
var antdFormItemKeys = exports.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'];
|
|
7
|
+
var antdFormPropsKeys = exports.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'];
|
|
8
|
+
var antdFormItemKeys = exports.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'];
|
|
9
9
|
var formListActionKeys = exports.formListActionKeys = ['operation', 'defaultValue', 'insertIndex', 'index', 'from', 'to'];
|
|
10
10
|
var needCollectItemPropKeys = exports.needCollectItemPropKeys = ['name', 'type', 'optionDependencies', 'rules', 'formListContext'];
|
|
11
11
|
var useUnsetWidthKeys = exports.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
|
};
|
|
@@ -26,7 +26,7 @@ var _utils = require("./utils");
|
|
|
26
26
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
27
27
|
var _excluded = ["item", "items"],
|
|
28
28
|
_excluded2 = ["type", "name", "disabled", "dateProps", "render", "onChange"],
|
|
29
|
-
_excluded3 = ["show", "className", "style", "flex", "labelWidth", "controlWidth", "requiredMark"
|
|
29
|
+
_excluded3 = ["show", "className", "style", "flex", "labelWidth", "controlWidth", "requiredMark"];
|
|
30
30
|
function useCollectItemsStatus(_ref) {
|
|
31
31
|
var name = _ref.name,
|
|
32
32
|
preserveStatus = _ref.preserveStatus;
|
|
@@ -171,7 +171,6 @@ function FormItemComponent(_ref3) {
|
|
|
171
171
|
labelWidth = item.labelWidth,
|
|
172
172
|
controlWidth = item.controlWidth,
|
|
173
173
|
requiredMark = item.requiredMark,
|
|
174
|
-
layout = item.layout,
|
|
175
174
|
restItem = (0, _objectWithoutProperties2.default)(item, _excluded3);
|
|
176
175
|
|
|
177
176
|
// 是否显示
|
|
@@ -189,7 +188,6 @@ function FormItemComponent(_ref3) {
|
|
|
189
188
|
labelWidth: labelWidth,
|
|
190
189
|
controlWidth: controlWidth,
|
|
191
190
|
requiredMark: requiredMark,
|
|
192
|
-
layout: layout,
|
|
193
191
|
type: restItem.type
|
|
194
192
|
});
|
|
195
193
|
var formItemProps = (0, _utils.getFormItemProps)((0, _objectSpread2.default)({
|
|
@@ -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
|
}
|
|
@@ -40,7 +40,7 @@ var _utils = require("../../select/component/utils");
|
|
|
40
40
|
var _text = require("../../text");
|
|
41
41
|
var _tooltip = require("../../tooltip");
|
|
42
42
|
var _icons = require("@ant-design/icons");
|
|
43
|
-
var _util = require("antd/
|
|
43
|
+
var _util = require("antd/es/form/util");
|
|
44
44
|
var _delay = _interopRequireDefault(require("delay"));
|
|
45
45
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
46
46
|
var _constant = require("./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;
|
|
@@ -12,8 +12,8 @@ var _api = require("../../api");
|
|
|
12
12
|
var _style = require("../../stack/style");
|
|
13
13
|
var _css = require("@emotion/css");
|
|
14
14
|
var _constant = require("../component/constant");
|
|
15
|
-
var _templateObject, _templateObject2, _templateObject3
|
|
16
|
-
var _excluded = ["labelWidth", "controlWidth", "requiredMark", "
|
|
15
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
16
|
+
var _excluded = ["labelWidth", "controlWidth", "requiredMark", "type"];
|
|
17
17
|
function getFormItemWidth(_ref) {
|
|
18
18
|
var width = _ref.width,
|
|
19
19
|
type = _ref.type;
|
|
@@ -29,18 +29,11 @@ function getFormItemStyle(_ref2) {
|
|
|
29
29
|
controlWidth = _ref2.controlWidth,
|
|
30
30
|
_ref2$requiredMark = _ref2.requiredMark,
|
|
31
31
|
requiredMark = _ref2$requiredMark === void 0 ? true : _ref2$requiredMark,
|
|
32
|
-
layout = _ref2.layout,
|
|
33
32
|
type = _ref2.type,
|
|
34
33
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
35
|
-
var baseStyle = (0, _css.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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
|
|
34
|
+
var baseStyle = (0, _css.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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 "])), (0, _api.transformValueWithStyleUnit)(labelWidth), (0, _api.transformValueWithStyleUnit)(controlWidth), requiredMark ? undefined : 'none', type === 'tree' && treeItemStyle());
|
|
36
35
|
return (0, _css.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n ", "\n "])), (0, _style.getWidthAndFlex)(props), baseStyle);
|
|
37
36
|
}
|
|
38
|
-
function getHorizontalStyle() {
|
|
39
|
-
return (0, _css.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\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 "])));
|
|
40
|
-
}
|
|
41
|
-
function getVerticalStyle() {
|
|
42
|
-
return (0, _css.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\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 "])));
|
|
43
|
-
}
|
|
44
37
|
function treeItemStyle() {
|
|
45
|
-
return (0, _css.css)(
|
|
38
|
+
return (0, _css.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\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 "])));
|
|
46
39
|
}
|
package/lib/form/style/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var style = {
|
|
|
26
26
|
wrapper: function wrapper(_ref) {
|
|
27
27
|
var labelWidth = _ref.labelWidth,
|
|
28
28
|
formItemMarginBottom = _ref.formItemMarginBottom;
|
|
29
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
29
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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 "])), (0, _api.transformValueWithStyleUnit)(formItemMarginBottom), (0, _api.transformValueWithStyleUnit)(labelWidth));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
var _default = exports.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/lib/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';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="rc-pagination" />
|
|
3
2
|
import { GridProps } from "..";
|
|
4
3
|
import { HStackProps } from "../../stack";
|
|
5
4
|
import { TablePaginationConfig } from 'antd';
|
|
@@ -12,7 +11,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
12
11
|
current: number;
|
|
13
12
|
total: number;
|
|
14
13
|
onChange: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
15
|
-
position?: ("topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter")[] | undefined;
|
|
14
|
+
position?: ("none" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter")[] | undefined;
|
|
16
15
|
showQuickJumper?: boolean | {
|
|
17
16
|
goButton?: import("react").ReactNode;
|
|
18
17
|
} | undefined;
|
|
@@ -20,29 +19,87 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
20
19
|
responsive?: boolean | undefined;
|
|
21
20
|
role?: string | undefined;
|
|
22
21
|
totalBoundaryShowSizeChanger?: number | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
rootClassName?: string | undefined;
|
|
23
|
+
showSizeChanger?: boolean | import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> | undefined;
|
|
24
|
+
selectComponentClass?: any;
|
|
25
|
+
pageSizeOptions?: (string | number)[] | undefined;
|
|
26
|
+
style?: import("react").CSSProperties | undefined;
|
|
26
27
|
className?: string | undefined;
|
|
27
|
-
|
|
28
|
+
"aria-activedescendant"?: string | undefined;
|
|
29
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
30
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
31
|
+
"aria-braillelabel"?: string | undefined;
|
|
32
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
33
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
34
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
35
|
+
"aria-colcount"?: number | undefined;
|
|
36
|
+
"aria-colindex"?: number | undefined;
|
|
37
|
+
"aria-colindextext"?: string | undefined;
|
|
38
|
+
"aria-colspan"?: number | undefined;
|
|
39
|
+
"aria-controls"?: string | undefined;
|
|
40
|
+
"aria-current"?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
41
|
+
"aria-describedby"?: string | undefined;
|
|
42
|
+
"aria-description"?: string | undefined;
|
|
43
|
+
"aria-details"?: string | undefined;
|
|
44
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
45
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
46
|
+
"aria-errormessage"?: string | undefined;
|
|
47
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
48
|
+
"aria-flowto"?: string | undefined;
|
|
49
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
50
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
51
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
52
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
53
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
54
|
+
"aria-label"?: string | undefined;
|
|
55
|
+
"aria-labelledby"?: string | undefined;
|
|
56
|
+
"aria-level"?: number | undefined;
|
|
57
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
58
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
59
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
60
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-orientation"?: "vertical" | "horizontal" | undefined;
|
|
62
|
+
"aria-owns"?: string | undefined;
|
|
63
|
+
"aria-placeholder"?: string | undefined;
|
|
64
|
+
"aria-posinset"?: number | undefined;
|
|
65
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
66
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
67
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
68
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
69
|
+
"aria-roledescription"?: string | undefined;
|
|
70
|
+
"aria-rowcount"?: number | undefined;
|
|
71
|
+
"aria-rowindex"?: number | undefined;
|
|
72
|
+
"aria-rowindextext"?: string | undefined;
|
|
73
|
+
"aria-rowspan"?: number | undefined;
|
|
74
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
"aria-setsize"?: number | undefined;
|
|
76
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
77
|
+
"aria-valuemax"?: number | undefined;
|
|
78
|
+
"aria-valuemin"?: number | undefined;
|
|
79
|
+
"aria-valuenow"?: number | undefined;
|
|
80
|
+
"aria-valuetext"?: string | undefined;
|
|
81
|
+
disabled?: boolean | undefined;
|
|
82
|
+
locale?: import("rc-pagination").PaginationLocale | undefined;
|
|
83
|
+
prevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
84
|
+
nextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
28
85
|
prefixCls?: string | undefined;
|
|
29
|
-
|
|
86
|
+
align?: "center" | "end" | "start" | undefined;
|
|
87
|
+
selectPrefixCls?: string | undefined;
|
|
30
88
|
defaultCurrent?: number | undefined;
|
|
31
89
|
defaultPageSize?: number | undefined;
|
|
32
90
|
hideOnSinglePage?: boolean | undefined;
|
|
33
|
-
|
|
91
|
+
sizeChangerRender?: import("rc-pagination/lib/Options").SizeChangerRender | undefined;
|
|
34
92
|
showLessItems?: boolean | undefined;
|
|
35
93
|
showPrevNextJumpers?: boolean | undefined;
|
|
36
94
|
showTitle?: boolean | undefined;
|
|
37
|
-
simple?: boolean |
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
style?: import("react").CSSProperties | undefined;
|
|
41
|
-
selectComponentClass?: import("react").ComponentType<{}> | undefined;
|
|
42
|
-
prevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
43
|
-
nextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
95
|
+
simple?: boolean | {
|
|
96
|
+
readOnly?: boolean | undefined;
|
|
97
|
+
} | undefined;
|
|
44
98
|
jumpPrevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
45
99
|
jumpNextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
100
|
+
onShowSizeChange?: ((current: number, size: number) => void) | undefined;
|
|
101
|
+
itemRender?: ((page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
102
|
+
showTotal?: ((total: number, range: [number, number]) => import("react").ReactNode) | undefined;
|
|
46
103
|
justify?: "center" | "left" | "right" | "between" | undefined;
|
|
47
104
|
};
|
|
48
105
|
export type PaginationProps = TablePaginationConfig & Pick<HStackProps, 'justify'>;
|