doui-react 2.0.1 → 2.0.2
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/react-dom.js +11 -7
- package/es/checkbox/component/utils.js +1 -1
- package/es/form/component/utils.d.ts +7 -7
- package/es/grid/component/pagination.d.ts +10 -10
- package/es/icon/hook/index.d.ts +258 -258
- package/es/open-modal/component/modal.js +2 -0
- package/es/open-modal/style/index.js +2 -1
- package/es/radio/component/abstract-box.d.ts +29 -29
- package/es/table/component/table.js +9 -2
- package/es/table/component/utils.js +4 -5
- package/es/tabs/component/utils.d.ts +4 -4
- package/es/tooltip/component/index.d.ts +6 -6
- package/es/virtual-list/component/index.d.ts +1 -1
- package/es/virtual-list/component/index.js +4 -2
- package/es/virtual-list/type/index.d.ts +2 -1
- package/lib/api/component/react-dom.js +13 -9
- package/lib/checkbox/component/utils.js +1 -1
- package/lib/form/component/utils.d.ts +7 -7
- package/lib/grid/component/pagination.d.ts +10 -10
- package/lib/icon/hook/index.d.ts +258 -258
- package/lib/open-modal/component/modal.js +2 -0
- package/lib/open-modal/style/index.js +2 -1
- package/lib/radio/component/abstract-box.d.ts +35 -35
- package/lib/table/component/table.js +8 -1
- package/lib/table/component/utils.js +4 -5
- package/lib/tabs/component/utils.d.ts +4 -4
- package/lib/tooltip/component/index.d.ts +6 -6
- package/lib/virtual-list/component/index.d.ts +1 -1
- package/lib/virtual-list/component/index.js +4 -2
- package/lib/virtual-list/type/index.d.ts +2 -1
- package/package.json +2 -1
|
@@ -36,24 +36,24 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
36
36
|
defaultVisible?: boolean | undefined;
|
|
37
37
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
38
38
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
39
|
-
prefixCls?: string | undefined;
|
|
40
|
-
id?: string | undefined;
|
|
41
39
|
animation?: string | undefined;
|
|
42
40
|
transitionName?: string | undefined;
|
|
43
|
-
|
|
41
|
+
prefixCls?: string | undefined;
|
|
44
42
|
zIndex?: number | undefined;
|
|
43
|
+
forceRender?: boolean | undefined;
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
45
46
|
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
46
47
|
mouseEnterDelay?: number | undefined;
|
|
47
48
|
mouseLeaveDelay?: number | undefined;
|
|
48
49
|
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
49
50
|
overlayClassName?: string | undefined;
|
|
50
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
51
51
|
overlayStyle?: import("react").CSSProperties | undefined;
|
|
52
52
|
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
53
53
|
popupVisible?: boolean | undefined;
|
|
54
|
-
forceRender?: boolean | undefined;
|
|
55
54
|
fresh?: boolean | undefined;
|
|
56
55
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
56
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
57
57
|
arrowContent?: import("react").ReactNode;
|
|
58
58
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
59
59
|
};
|
|
@@ -65,49 +65,48 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
65
65
|
value?: any;
|
|
66
66
|
boxTooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
67
67
|
inGroup?: boolean | undefined;
|
|
68
|
-
indeterminate?: boolean | undefined;
|
|
69
|
-
prefixCls?: string | undefined;
|
|
70
68
|
className?: string | undefined;
|
|
71
|
-
rootClassName?: string | undefined;
|
|
72
|
-
defaultChecked?: boolean | undefined;
|
|
73
|
-
checked?: boolean | undefined;
|
|
74
69
|
style?: import("react").CSSProperties | undefined;
|
|
75
|
-
disabled?: boolean | undefined;
|
|
76
70
|
title?: string | undefined;
|
|
71
|
+
prefixCls?: string | undefined;
|
|
72
|
+
rootClassName?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
disabled?: boolean | undefined;
|
|
75
|
+
defaultChecked?: boolean | undefined;
|
|
76
|
+
autoFocus?: boolean | undefined;
|
|
77
|
+
id?: string | undefined;
|
|
78
|
+
tabIndex?: number | undefined;
|
|
79
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
80
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
77
81
|
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
78
82
|
onMouseEnter?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
79
83
|
onMouseLeave?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
80
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
81
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLElement> | undefined;
|
|
82
|
-
tabIndex?: number | undefined;
|
|
83
|
-
name?: string | undefined;
|
|
84
|
-
id?: string | undefined;
|
|
85
|
-
autoFocus?: boolean | undefined;
|
|
86
84
|
type?: string | undefined;
|
|
85
|
+
checked?: boolean | undefined;
|
|
86
|
+
indeterminate?: boolean | undefined;
|
|
87
87
|
skipGroup?: boolean | undefined;
|
|
88
88
|
required?: boolean | undefined;
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
slot?: string | undefined;
|
|
90
|
+
dir?: string | undefined;
|
|
91
|
+
content?: string | undefined;
|
|
92
|
+
onSubmit?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
91
93
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
92
94
|
suppressContentEditableWarning?: boolean | undefined;
|
|
93
95
|
suppressHydrationWarning?: boolean | undefined;
|
|
94
96
|
accessKey?: string | undefined;
|
|
95
|
-
autoCapitalize?: "
|
|
97
|
+
autoCapitalize?: (string & {}) | "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
96
98
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
97
99
|
contextMenu?: string | undefined;
|
|
98
|
-
dir?: string | undefined;
|
|
99
100
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
100
101
|
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
101
102
|
hidden?: boolean | undefined;
|
|
102
103
|
lang?: string | undefined;
|
|
103
104
|
nonce?: string | undefined;
|
|
104
|
-
slot?: string | undefined;
|
|
105
105
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
106
106
|
translate?: "yes" | "no" | undefined;
|
|
107
107
|
radioGroup?: string | undefined;
|
|
108
108
|
role?: import("react").AriaRole | undefined;
|
|
109
109
|
about?: string | undefined;
|
|
110
|
-
content?: string | undefined;
|
|
111
110
|
datatype?: string | undefined;
|
|
112
111
|
inlist?: any;
|
|
113
112
|
prefix?: string | undefined;
|
|
@@ -128,13 +127,13 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
128
127
|
results?: number | undefined;
|
|
129
128
|
security?: string | undefined;
|
|
130
129
|
unselectable?: "off" | "on" | undefined;
|
|
131
|
-
inputMode?: "
|
|
130
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
132
131
|
is?: string | undefined;
|
|
133
132
|
exportparts?: string | undefined;
|
|
134
133
|
part?: string | undefined;
|
|
135
134
|
"aria-activedescendant"?: string | undefined;
|
|
136
135
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
137
|
-
"aria-autocomplete"?: "
|
|
136
|
+
"aria-autocomplete"?: "inline" | "none" | "list" | "both" | undefined;
|
|
138
137
|
"aria-braillelabel"?: string | undefined;
|
|
139
138
|
"aria-brailleroledescription"?: string | undefined;
|
|
140
139
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -144,20 +143,21 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
144
143
|
"aria-colindextext"?: string | undefined;
|
|
145
144
|
"aria-colspan"?: number | undefined;
|
|
146
145
|
"aria-controls"?: string | undefined;
|
|
147
|
-
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" |
|
|
146
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
148
147
|
"aria-describedby"?: string | undefined;
|
|
149
148
|
"aria-description"?: string | undefined;
|
|
150
149
|
"aria-details"?: string | undefined;
|
|
151
150
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
152
|
-
"aria-dropeffect"?: "
|
|
151
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
153
152
|
"aria-errormessage"?: string | undefined;
|
|
154
153
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
155
154
|
"aria-flowto"?: string | undefined;
|
|
156
155
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
157
|
-
"aria-haspopup"?: boolean | "
|
|
156
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "tree" | "true" | "false" | "grid" | "listbox" | undefined;
|
|
158
157
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
159
158
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
160
159
|
"aria-keyshortcuts"?: string | undefined;
|
|
160
|
+
'aria-label'?: string | undefined;
|
|
161
161
|
"aria-labelledby"?: string | undefined;
|
|
162
162
|
"aria-level"?: number | undefined;
|
|
163
163
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
@@ -208,7 +208,6 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
208
208
|
onInputCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
209
209
|
onReset?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
210
210
|
onResetCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
211
|
-
onSubmit?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
212
211
|
onSubmitCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
213
212
|
onInvalid?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
214
213
|
onInvalidCapture?: import("react").FormEventHandler<HTMLElement> | undefined;
|
|
@@ -337,6 +336,7 @@ export declare function useAbstractBox({ refs, boxTooltip, value, onChange, inGr
|
|
|
337
336
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLElement> | undefined;
|
|
338
337
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
339
338
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
339
|
+
direction?: import("antd/es/config-provider").DirectionType;
|
|
340
340
|
rows?: number | false | undefined;
|
|
341
341
|
tooltip?: import("react").ReactNode | import("antd").TooltipProps;
|
|
342
342
|
autoShowTooltip?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ var _excluded = ["rowKey", "loading", "columns", "dataSource", "editorValueKey"]
|
|
|
7
7
|
_excluded2 = ["onlyLoading"],
|
|
8
8
|
_excluded3 = ["onRowClick", "width", "emptyText"],
|
|
9
9
|
_excluded4 = ["useFormWrapper", "context", "maxHeight"];
|
|
10
|
-
import { executeFunction } from "../../api";
|
|
10
|
+
import { executeFunction, includesNonStrictMode } from "../../api";
|
|
11
11
|
import { Empty } from "../../empty";
|
|
12
12
|
import { Form, useFormContext } from "../../form";
|
|
13
13
|
import { useListOperation } from "../../hooks";
|
|
@@ -98,12 +98,19 @@ function useInit(_ref2) {
|
|
|
98
98
|
selectedRowKeys: selectedRowKeys,
|
|
99
99
|
setSelectedRowKeys: function setSelectedRowKeys() {
|
|
100
100
|
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
101
|
-
|
|
101
|
+
updateSelectedStatus(keys);
|
|
102
|
+
_setSelectedRowKeys(keys);
|
|
102
103
|
},
|
|
103
104
|
operation: operation,
|
|
104
105
|
rowKey: rowKey,
|
|
105
106
|
editorValueKey: editorValueKey
|
|
106
107
|
});
|
|
108
|
+
function updateSelectedStatus(keys) {
|
|
109
|
+
_.forEach(dataSource, function (item) {
|
|
110
|
+
var checked = includesNonStrictMode(keys, item[rowKey]);
|
|
111
|
+
_.set(item, '__selected__', checked);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
107
114
|
function refresh() {
|
|
108
115
|
return _refresh.apply(this, arguments);
|
|
109
116
|
}
|
|
@@ -136,8 +136,7 @@ export function getRowSelection(_ref3) {
|
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
var selectedRowKeys = context.selectedRowKeys,
|
|
139
|
-
setSelectedRowKeys = context.setSelectedRowKeys
|
|
140
|
-
dataSource = context.dataSource;
|
|
139
|
+
setSelectedRowKeys = context.setSelectedRowKeys;
|
|
141
140
|
var type = column.type,
|
|
142
141
|
disabled = column.disabled,
|
|
143
142
|
onClick = column.onClick,
|
|
@@ -160,14 +159,14 @@ export function getRowSelection(_ref3) {
|
|
|
160
159
|
var rowKeys = keys || _.map(selectedRows, rowKey);
|
|
161
160
|
setSelectedRowKeys(rowKeys);
|
|
162
161
|
},
|
|
163
|
-
onSelectAll: function onSelectAll(selected) {
|
|
162
|
+
onSelectAll: function onSelectAll(selected, selectedRows) {
|
|
164
163
|
if (selected) {
|
|
165
|
-
var
|
|
164
|
+
var _selected = _.filter(selectedRows, function (record) {
|
|
166
165
|
return !executeFunction(disabled, _objectSpread(_objectSpread({}, context), {}, {
|
|
167
166
|
record: record
|
|
168
167
|
}));
|
|
169
168
|
});
|
|
170
|
-
setSelectedRowKeys(_.map(
|
|
169
|
+
setSelectedRowKeys(_.map(_selected, rowKey));
|
|
171
170
|
return;
|
|
172
171
|
}
|
|
173
172
|
setSelectedRowKeys([]);
|
|
@@ -6,17 +6,17 @@ export declare function getRenderTabBar({ type, items, size, tabBarGutter, tabBa
|
|
|
6
6
|
export declare function generateTabItems({ items }: TabsProps): {
|
|
7
7
|
label: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
key: string;
|
|
9
|
-
prefixCls?: string | undefined;
|
|
10
9
|
className?: string | undefined;
|
|
11
10
|
style?: import("react").CSSProperties | undefined;
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
11
|
children?: import("react").ReactNode;
|
|
14
|
-
id?: string | undefined;
|
|
15
12
|
closable?: boolean | undefined;
|
|
13
|
+
prefixCls?: string | undefined;
|
|
16
14
|
closeIcon?: import("react").ReactNode;
|
|
15
|
+
forceRender?: boolean | undefined;
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
17
18
|
active?: boolean | undefined;
|
|
18
19
|
icon?: import("react").ReactNode;
|
|
19
|
-
forceRender?: boolean | undefined;
|
|
20
20
|
destroyInactiveTabPane?: boolean | undefined;
|
|
21
21
|
animated?: boolean | undefined;
|
|
22
22
|
tabKey?: string | undefined;
|
|
@@ -34,21 +34,21 @@ export declare function getTooltipProps(props: TooltipProps): {
|
|
|
34
34
|
defaultVisible?: boolean | undefined;
|
|
35
35
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
36
36
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
37
|
-
zIndex?: number | undefined;
|
|
38
37
|
animation?: string | undefined;
|
|
39
|
-
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
40
|
-
id?: string | undefined;
|
|
41
|
-
prefixCls?: string | undefined;
|
|
42
38
|
transitionName?: string | undefined;
|
|
39
|
+
prefixCls?: string | undefined;
|
|
40
|
+
zIndex?: number | undefined;
|
|
41
|
+
forceRender?: boolean | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
44
|
+
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
43
45
|
mouseEnterDelay?: number | undefined;
|
|
44
46
|
mouseLeaveDelay?: number | undefined;
|
|
45
47
|
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
46
48
|
overlayClassName?: string | undefined;
|
|
47
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
48
49
|
overlayStyle?: import("react").CSSProperties | undefined;
|
|
49
50
|
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
50
51
|
popupVisible?: boolean | undefined;
|
|
51
|
-
forceRender?: boolean | undefined;
|
|
52
52
|
fresh?: boolean | undefined;
|
|
53
53
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
54
54
|
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VirtualListProps } from "..";
|
|
2
|
-
export declare function VirtualList({ data, emptyText, children, ...props }: VirtualListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function VirtualList({ refs, data, emptyText, children, ...props }: VirtualListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["data", "emptyText", "children"];
|
|
3
|
+
var _excluded = ["refs", "data", "emptyText", "children"];
|
|
4
4
|
import { Empty } from "../../empty";
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import { Virtuoso } from 'react-virtuoso';
|
|
7
7
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
8
8
|
export function VirtualList(_ref) {
|
|
9
|
-
var
|
|
9
|
+
var refs = _ref.refs,
|
|
10
|
+
data = _ref.data,
|
|
10
11
|
emptyText = _ref.emptyText,
|
|
11
12
|
children = _ref.children,
|
|
12
13
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -20,6 +21,7 @@ export function VirtualList(_ref) {
|
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
return _jsx(Virtuoso, _objectSpread({
|
|
24
|
+
ref: refs,
|
|
23
25
|
data: data,
|
|
24
26
|
itemContent: function itemContent(index, item, context) {
|
|
25
27
|
return children(item, index, context);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseComponentProps } from "../../api";
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { VirtuosoProps } from 'react-virtuoso';
|
|
3
|
-
export interface VirtualListProps extends Omit<VirtuosoProps<any, any>, 'children'
|
|
4
|
+
export interface VirtualListProps extends Omit<VirtuosoProps<any, any>, 'children'>, BaseComponentProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 数据
|
|
6
7
|
*/
|
|
@@ -8,13 +8,16 @@ exports.mountComponent = mountComponent;
|
|
|
8
8
|
exports.unmountComponent = unmountComponent;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var
|
|
11
|
+
var _2 = require("./..");
|
|
12
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
12
13
|
var _client = require("react-dom/client");
|
|
13
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
|
-
var _excluded = ["hideBodyScroll"];
|
|
15
|
+
var _excluded = ["hideBodyScroll", "getContainer"];
|
|
15
16
|
function getContainer() {
|
|
17
|
+
var to = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
|
|
16
18
|
var container = document.createElement('div');
|
|
17
|
-
|
|
19
|
+
var root = _lodash.default.isString(to) ? (0, _2.$)(to) : (0, _2.executeFunction)(to);
|
|
20
|
+
root.append(container);
|
|
18
21
|
return container;
|
|
19
22
|
}
|
|
20
23
|
// 处理React17和18版本的兼容性
|
|
@@ -37,7 +40,11 @@ function getReactDOM() {
|
|
|
37
40
|
var closeFunctionSet = new Set();
|
|
38
41
|
function mountComponent(Component) {
|
|
39
42
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
40
|
-
var
|
|
43
|
+
var _props$hideBodyScroll = props.hideBodyScroll,
|
|
44
|
+
hide = _props$hideBodyScroll === void 0 ? false : _props$hideBodyScroll,
|
|
45
|
+
outerContainer = props.getContainer,
|
|
46
|
+
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
47
|
+
var container = getContainer(outerContainer);
|
|
41
48
|
var _getReactDOM = getReactDOM(),
|
|
42
49
|
render = _getReactDOM.render,
|
|
43
50
|
unmount = _getReactDOM.unmount;
|
|
@@ -45,12 +52,9 @@ function mountComponent(Component) {
|
|
|
45
52
|
unmount(container);
|
|
46
53
|
container.remove();
|
|
47
54
|
closeFunctionSet.delete(close);
|
|
48
|
-
!closeFunctionSet.size && (0,
|
|
55
|
+
!closeFunctionSet.size && (0, _2.hideBodyScroll)(false);
|
|
49
56
|
};
|
|
50
|
-
|
|
51
|
-
hide = _props$hideBodyScroll === void 0 ? false : _props$hideBodyScroll,
|
|
52
|
-
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
53
|
-
hide && (0, _.hideBodyScroll)();
|
|
57
|
+
hide && (0, _2.hideBodyScroll)();
|
|
54
58
|
render((0, _jsxRuntime.jsx)(Component, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
|
|
55
59
|
unmount: close,
|
|
56
60
|
getContainer: container
|
|
@@ -24,7 +24,7 @@ export declare function getFormItemProps(props: any): {
|
|
|
24
24
|
pointAtCenter?: boolean | undefined;
|
|
25
25
|
};
|
|
26
26
|
autoAdjustOverflow?: boolean | import("antd/es/tooltip").AdjustOverflow | undefined;
|
|
27
|
-
getPopupContainer: (
|
|
27
|
+
getPopupContainer: typeof import("../../api").getPopupContainer;
|
|
28
28
|
children?: import("react").ReactNode;
|
|
29
29
|
destroyTooltipOnHide?: boolean | {
|
|
30
30
|
keepParent?: boolean | undefined;
|
|
@@ -38,24 +38,24 @@ export declare function getFormItemProps(props: any): {
|
|
|
38
38
|
defaultVisible?: boolean | undefined;
|
|
39
39
|
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
40
40
|
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
41
|
-
prefixCls?: string | undefined;
|
|
42
|
-
id?: string | undefined;
|
|
43
41
|
animation?: string | undefined;
|
|
44
42
|
transitionName?: string | undefined;
|
|
45
|
-
|
|
43
|
+
prefixCls?: string | undefined;
|
|
46
44
|
zIndex?: number | undefined;
|
|
45
|
+
forceRender?: boolean | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
47
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
47
48
|
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
48
49
|
mouseEnterDelay?: number | undefined;
|
|
49
50
|
mouseLeaveDelay?: number | undefined;
|
|
50
51
|
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
51
52
|
overlayClassName?: string | undefined;
|
|
52
|
-
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
53
53
|
overlayStyle?: import("react").CSSProperties | undefined;
|
|
54
54
|
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
55
55
|
popupVisible?: boolean | undefined;
|
|
56
|
-
forceRender?: boolean | undefined;
|
|
57
56
|
fresh?: boolean | undefined;
|
|
58
57
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
58
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
59
59
|
arrowContent?: import("react").ReactNode;
|
|
60
60
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
61
61
|
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -85,7 +85,7 @@ export declare function transformPathToName(path?: NamePath): string | undefined
|
|
|
85
85
|
export declare function transformKeyToPath(params?: Record<string, any>): Record<string, any>;
|
|
86
86
|
export declare function parseFormFailedError(error: ValidateErrorEntity): Record<string, string>;
|
|
87
87
|
export declare function noStyle(item: FormItemProps): boolean;
|
|
88
|
-
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams):
|
|
88
|
+
export declare function transformOptions(item: FormItemProps, values: FormValues, params: CommonParams): ((values: FormValues, params: import("..").OptionsParams) => import("../../api").FunctionReturn<SelectOptions>) | import("../../api").FunctionReturn<SelectOptions> | ((search?: string) => import("../../api").FunctionReturn<SelectOptions>) | undefined;
|
|
89
89
|
interface FocusFirstInputParams extends CommonParams {
|
|
90
90
|
focusFirstOnMount: FormProps['focusFirstOnMount'];
|
|
91
91
|
}
|
|
@@ -23,11 +23,13 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
23
23
|
showSizeChanger?: boolean | import("antd").SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> | undefined;
|
|
24
24
|
selectComponentClass?: any;
|
|
25
25
|
pageSizeOptions?: (string | number)[] | undefined;
|
|
26
|
-
style?: import("react").CSSProperties | undefined;
|
|
27
26
|
className?: string | undefined;
|
|
27
|
+
style?: import("react").CSSProperties | undefined;
|
|
28
|
+
prefixCls?: string | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
28
30
|
"aria-activedescendant"?: string | undefined;
|
|
29
31
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
30
|
-
"aria-autocomplete"?: "
|
|
32
|
+
"aria-autocomplete"?: "inline" | "none" | "list" | "both" | undefined;
|
|
31
33
|
"aria-braillelabel"?: string | undefined;
|
|
32
34
|
"aria-brailleroledescription"?: string | undefined;
|
|
33
35
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -37,7 +39,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
37
39
|
"aria-colindextext"?: string | undefined;
|
|
38
40
|
"aria-colspan"?: number | undefined;
|
|
39
41
|
"aria-controls"?: string | undefined;
|
|
40
|
-
"aria-current"?: boolean | "time" | "
|
|
42
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
41
43
|
"aria-describedby"?: string | undefined;
|
|
42
44
|
"aria-description"?: string | undefined;
|
|
43
45
|
"aria-details"?: string | undefined;
|
|
@@ -47,7 +49,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
47
49
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
48
50
|
"aria-flowto"?: string | undefined;
|
|
49
51
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
50
|
-
"aria-haspopup"?: boolean | "dialog" | "menu" | "
|
|
52
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "tree" | "true" | "false" | "grid" | "listbox" | undefined;
|
|
51
53
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
52
54
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
53
55
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -58,13 +60,13 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
58
60
|
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
59
61
|
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
60
62
|
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
61
|
-
"aria-orientation"?: "
|
|
63
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
62
64
|
"aria-owns"?: string | undefined;
|
|
63
65
|
"aria-placeholder"?: string | undefined;
|
|
64
66
|
"aria-posinset"?: number | undefined;
|
|
65
67
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
66
68
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
67
|
-
"aria-relevant"?: "text" | "
|
|
69
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
68
70
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
69
71
|
"aria-roledescription"?: string | undefined;
|
|
70
72
|
"aria-rowcount"?: number | undefined;
|
|
@@ -78,12 +80,10 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
78
80
|
"aria-valuemin"?: number | undefined;
|
|
79
81
|
"aria-valuenow"?: number | undefined;
|
|
80
82
|
"aria-valuetext"?: string | undefined;
|
|
81
|
-
disabled?: boolean | undefined;
|
|
82
83
|
locale?: import("rc-pagination").PaginationLocale | undefined;
|
|
84
|
+
align?: "center" | "start" | "end" | undefined;
|
|
83
85
|
prevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
84
86
|
nextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
85
|
-
prefixCls?: string | undefined;
|
|
86
|
-
align?: "center" | "end" | "start" | undefined;
|
|
87
87
|
selectPrefixCls?: string | undefined;
|
|
88
88
|
defaultCurrent?: number | undefined;
|
|
89
89
|
defaultPageSize?: number | undefined;
|
|
@@ -98,7 +98,7 @@ export declare function usePagination({ data, rows, column, pagination }: Pagina
|
|
|
98
98
|
jumpPrevIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
99
99
|
jumpNextIcon?: import("react").ReactNode | import("react").ComponentType<{}>;
|
|
100
100
|
onShowSizeChange?: ((current: number, size: number) => void) | undefined;
|
|
101
|
-
itemRender?: ((page: number, type: "
|
|
101
|
+
itemRender?: ((page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
102
102
|
showTotal?: ((total: number, range: [number, number]) => import("react").ReactNode) | undefined;
|
|
103
103
|
justify?: "center" | "left" | "right" | "between" | undefined;
|
|
104
104
|
};
|