@flatbiz/antd 5.0.33 → 5.0.35
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/dist/_commonjsHelpers-B0GIDhER.js +33 -0
- package/dist/_commonjsHelpers-B0GIDhER.js.map +1 -0
- package/dist/ace-editor-json/index.js +1 -0
- package/dist/ace-editor-json/index.js.map +1 -1
- package/dist/ace-editor-mysql/index.js +1 -0
- package/dist/ace-editor-mysql/index.js.map +1 -1
- package/dist/ace-editor-xml/index.js +1 -0
- package/dist/ace-editor-xml/index.js.map +1 -1
- package/dist/ai-search/index.css +1 -0
- package/dist/ai-search/index.d.ts +25 -0
- package/dist/ai-search/index.js +39 -0
- package/dist/ai-search/index.js.map +1 -0
- package/dist/ai-search-WcG2oakE.js +161 -0
- package/dist/ai-search-WcG2oakE.js.map +1 -0
- package/dist/bootstrap/index.js +1 -0
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/button-operate/index.js +1 -0
- package/dist/button-operate/index.js.map +1 -1
- package/dist/button-wrapper/index.js +1 -0
- package/dist/button-wrapper/index.js.map +1 -1
- package/dist/cascader-wrapper/index.js +1 -0
- package/dist/cascader-wrapper/index.js.map +1 -1
- package/dist/check-list/index.js +1 -0
- package/dist/check-list/index.js.map +1 -1
- package/dist/config-provider-wrapper/index.js +1 -0
- package/dist/config-provider-wrapper/index.js.map +1 -1
- package/dist/date-range-picker-wrapper-form-item/index.js +1 -0
- package/dist/date-range-picker-wrapper-form-item/index.js.map +1 -1
- package/dist/dialog-alert/index.js +1 -0
- package/dist/dialog-alert/index.js.map +1 -1
- package/dist/dialog-confirm/index.js +1 -0
- package/dist/dialog-confirm/index.js.map +1 -1
- package/dist/dialog-drag-modal/index.css +1 -1
- package/dist/dialog-drag-modal/index.d.ts +18 -5
- package/dist/dialog-drag-modal/index.js +5 -2
- package/dist/dialog-drag-modal/index.js.map +1 -1
- package/dist/dialog-drawer/index.js +1 -0
- package/dist/dialog-drawer/index.js.map +1 -1
- package/dist/dialog-drawer-content/index.js +1 -0
- package/dist/dialog-drawer-content/index.js.map +1 -1
- package/dist/dialog-loading/index.js +1 -0
- package/dist/dialog-loading/index.js.map +1 -1
- package/dist/dialog-modal/index.js +1 -0
- package/dist/dialog-modal/index.js.map +1 -1
- package/dist/dialog-preview-image/index.js +1 -0
- package/dist/dialog-preview-image/index.js.map +1 -1
- package/dist/drag-collapse/index.js +1 -0
- package/dist/drag-collapse/index.js.map +1 -1
- package/dist/drag-collapse-form-list/index.js +1 -0
- package/dist/drag-collapse-form-list/index.js.map +1 -1
- package/dist/drag-editable-card/index.d.ts +7 -4
- package/dist/drag-editable-card/index.js +8 -7
- package/dist/drag-editable-card/index.js.map +1 -1
- package/dist/drag-editable-table/index.js +1 -0
- package/dist/drag-editable-table/index.js.map +1 -1
- package/dist/drag-editable-table-pro/index.js +1 -0
- package/dist/drag-editable-table-pro/index.js.map +1 -1
- package/dist/drag-form-list/index.js +1 -0
- package/dist/drag-form-list/index.js.map +1 -1
- package/dist/{drag-modal-DTbr-E0g.js → drag-modal-DVq260Mc.js} +56 -53
- package/dist/drag-modal-DVq260Mc.js.map +1 -0
- package/dist/drawer-BI8T3w7e.js +257 -0
- package/dist/drawer-BI8T3w7e.js.map +1 -0
- package/dist/dropdown-menu-wrapper/index.js +1 -0
- package/dist/dropdown-menu-wrapper/index.js.map +1 -1
- package/dist/easy-form/index.d.ts +0 -4
- package/dist/easy-form/index.js +2 -1
- package/dist/easy-form/index.js.map +1 -1
- package/dist/easy-table/index.d.ts +0 -4
- package/dist/easy-table/index.js +2 -1
- package/dist/easy-table/index.js.map +1 -1
- package/dist/editable-card/index.d.ts +7 -4
- package/dist/editable-card/index.js +7 -6
- package/dist/editable-card/index.js.map +1 -1
- package/dist/{editable-card-DlqrwXa0.js → editable-card-BN9ViZz0.js} +69 -56
- package/dist/editable-card-BN9ViZz0.js.map +1 -0
- package/dist/{editable-card-eGAbYXAH.js → editable-card-BrnWDl8j.js} +2 -2
- package/dist/{editable-card-eGAbYXAH.js.map → editable-card-BrnWDl8j.js.map} +1 -1
- package/dist/editable-field/index.js +1 -0
- package/dist/editable-field/index.js.map +1 -1
- package/dist/editable-table/index.js +1 -0
- package/dist/editable-table/index.js.map +1 -1
- package/dist/editable-table-pro/index.js +1 -0
- package/dist/editable-table-pro/index.js.map +1 -1
- package/dist/fba-app/index.js +1 -0
- package/dist/fba-app/index.js.map +1 -1
- package/dist/fba-hooks/index.d.ts +1 -0
- package/dist/fba-hooks/index.js +10 -1
- package/dist/fba-hooks/index.js.map +1 -1
- package/dist/{form-3qaPduiy.js → form-DNtjXzAW.js} +35 -36
- package/dist/form-DNtjXzAW.js.map +1 -0
- package/dist/form-item-group/index.js +1 -0
- package/dist/form-item-group/index.js.map +1 -1
- package/dist/form-item-text/index.js +1 -0
- package/dist/form-item-text/index.js.map +1 -1
- package/dist/form-item-wrapper/index.js +1 -0
- package/dist/form-item-wrapper/index.js.map +1 -1
- package/dist/form-list-wrapper/index.js +1 -0
- package/dist/form-list-wrapper/index.js.map +1 -1
- package/dist/index.d.ts +507 -444
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/input-search-wrapper/index.js +1 -0
- package/dist/input-search-wrapper/index.js.map +1 -1
- package/dist/input-text-area-wrapper/index.js +1 -0
- package/dist/input-text-area-wrapper/index.js.map +1 -1
- package/dist/input-wrapper/index.js +1 -0
- package/dist/input-wrapper/index.js.map +1 -1
- package/dist/label-value-render/index.js +1 -0
- package/dist/label-value-render/index.js.map +1 -1
- package/dist/local-loading/index.js +1 -0
- package/dist/local-loading/index.js.map +1 -1
- package/dist/mention-editor/index.js +1 -0
- package/dist/mention-editor/index.js.map +1 -1
- package/dist/mentions-wrapper/index.js +1 -0
- package/dist/mentions-wrapper/index.js.map +1 -1
- package/dist/number-range-form-item/index.js +1 -0
- package/dist/number-range-form-item/index.js.map +1 -1
- package/dist/pdf/index.js +1 -0
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-preview/index.js +1 -0
- package/dist/pdf-preview/index.js.map +1 -1
- package/dist/relation-tree/index.js +1 -0
- package/dist/relation-tree/index.js.map +1 -1
- package/dist/request-status/index.js +1 -0
- package/dist/request-status/index.js.map +1 -1
- package/dist/resizable-drawer/index.css +1 -0
- package/dist/resizable-drawer/index.d.ts +29 -0
- package/dist/resizable-drawer/index.js +41 -0
- package/dist/resizable-drawer/index.js.map +1 -0
- package/dist/rich-text-editor/index.js +1 -0
- package/dist/rich-text-editor/index.js.map +1 -1
- package/dist/rich-text-viewer/index.js +1 -0
- package/dist/rich-text-viewer/index.js.map +1 -1
- package/dist/roll-location-center/index.js +1 -0
- package/dist/roll-location-center/index.js.map +1 -1
- package/dist/roll-location-in-view/index.js +1 -0
- package/dist/roll-location-in-view/index.js.map +1 -1
- package/dist/rule-describe/index.js +1 -0
- package/dist/rule-describe/index.js.map +1 -1
- package/dist/search-form/index.js +1 -0
- package/dist/search-form/index.js.map +1 -1
- package/dist/search-menu/index.js +1 -0
- package/dist/search-menu/index.js.map +1 -1
- package/dist/selector-wrapper/index.js +1 -0
- package/dist/selector-wrapper/index.js.map +1 -1
- package/dist/selector-wrapper-search/index.js +1 -0
- package/dist/selector-wrapper-search/index.js.map +1 -1
- package/dist/selector-wrapper-simple/index.js +1 -0
- package/dist/selector-wrapper-simple/index.js.map +1 -1
- package/dist/simple-layout/index.js +1 -0
- package/dist/simple-layout/index.js.map +1 -1
- package/dist/switch-confirm-wrapper/index.js +1 -0
- package/dist/switch-confirm-wrapper/index.js.map +1 -1
- package/dist/table-cell-render/index.js +1 -0
- package/dist/table-cell-render/index.js.map +1 -1
- package/dist/table-scrollbar/index.js +1 -0
- package/dist/table-scrollbar/index.js.map +1 -1
- package/dist/tag-group/index.js +1 -0
- package/dist/tag-group/index.js.map +1 -1
- package/dist/tag-wrapper/index.js +1 -0
- package/dist/tag-wrapper/index.js.map +1 -1
- package/dist/text-overflow/index.js +1 -0
- package/dist/text-overflow/index.js.map +1 -1
- package/dist/time-range-picker-wrapper-form-item/index.js +1 -0
- package/dist/time-range-picker-wrapper-form-item/index.js.map +1 -1
- package/dist/tips-title/index.css +1 -1
- package/dist/tips-title/index.d.ts +1 -0
- package/dist/tips-title/index.js +1 -1
- package/dist/{tips-title-Bst97YH9.js → tips-title-B7ifvKpk.js} +4 -5
- package/dist/tips-title-B7ifvKpk.js.map +1 -0
- package/dist/tree-modal/index.js +1 -0
- package/dist/tree-modal/index.js.map +1 -1
- package/dist/tree-modal-selector/index.js +1 -0
- package/dist/tree-modal-selector/index.js.map +1 -1
- package/dist/tree-selector-wrapper/index.js +1 -0
- package/dist/tree-selector-wrapper/index.js.map +1 -1
- package/dist/tree-wrapper/index.js +1 -0
- package/dist/tree-wrapper/index.js.map +1 -1
- package/dist/upload-wrapper/index.js +1 -0
- package/dist/upload-wrapper/index.js.map +1 -1
- package/package.json +12 -1
- package/dist/drag-modal-DTbr-E0g.js.map +0 -1
- package/dist/editable-card-DlqrwXa0.js.map +0 -1
- package/dist/form-3qaPduiy.js.map +0 -1
- package/dist/tips-title-Bst97YH9.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
|
11
11
|
import { SearchProps, TextAreaProps } from 'antd/lib/input';
|
|
12
12
|
import { UploadChangeParam } from 'antd/lib/upload';
|
|
13
13
|
import { UploadFile } from 'antd/lib/upload/interface.js';
|
|
14
|
+
import React$1 from 'react';
|
|
14
15
|
import { CSSProperties, DependencyList, DetailedHTMLProps, FC, ForwardRefExoticComponent, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
15
16
|
import { IAceEditorProps } from 'react-ace';
|
|
16
17
|
import { SplitProps } from 'react-split';
|
|
@@ -47,7 +48,7 @@ export type AceEditorGroovyProps = Omit<IAceEditorProps, "mode" | "value" | "onC
|
|
|
47
48
|
* 5.2 配置 theme = xxxx
|
|
48
49
|
* ```
|
|
49
50
|
*/
|
|
50
|
-
export declare const AceEditorGroovy: (props: AceEditorGroovyProps) => import("react").JSX.Element;
|
|
51
|
+
export declare const AceEditorGroovy: (props: AceEditorGroovyProps) => import("react").React$1.JSX.Element;
|
|
51
52
|
export type AceEditorJavaProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
52
53
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
53
54
|
height?: string;
|
|
@@ -79,7 +80,7 @@ export type AceEditorJavaProps = Omit<IAceEditorProps, "mode" | "value" | "onCha
|
|
|
79
80
|
* 5.2 配置 theme = xxxx
|
|
80
81
|
* ```
|
|
81
82
|
*/
|
|
82
|
-
export declare const AceEditorJava: (props: AceEditorJavaProps) => import("react").JSX.Element;
|
|
83
|
+
export declare const AceEditorJava: (props: AceEditorJavaProps) => import("react").React$1.JSX.Element;
|
|
83
84
|
export type AceEditorJsonProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
84
85
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
85
86
|
height?: string;
|
|
@@ -103,8 +104,8 @@ export type AceEditorJsonProps = Omit<IAceEditorProps, "mode" | "value" | "onCha
|
|
|
103
104
|
*/
|
|
104
105
|
theme?: string;
|
|
105
106
|
/** 底部额外布局 */
|
|
106
|
-
footerExtraRender?: (children: ReactElement) => ReactElement;
|
|
107
|
-
footerStyle?: CSSProperties;
|
|
107
|
+
footerExtraRender?: (children: React$1.ReactElement) => React$1.ReactElement;
|
|
108
|
+
footerStyle?: React$1.CSSProperties;
|
|
108
109
|
};
|
|
109
110
|
/**
|
|
110
111
|
* Json编辑器
|
|
@@ -118,7 +119,7 @@ export type AceEditorJsonProps = Omit<IAceEditorProps, "mode" | "value" | "onCha
|
|
|
118
119
|
* 5.2 配置 theme = xxxx
|
|
119
120
|
* ```
|
|
120
121
|
*/
|
|
121
|
-
export declare const AceEditorJson: (props: AceEditorJsonProps) => import("react").JSX.Element;
|
|
122
|
+
export declare const AceEditorJson: (props: AceEditorJsonProps) => import("react").React$1.JSX.Element;
|
|
122
123
|
export type AceEditorMysqlProps = Omit<IAceEditorProps, "theme" | "mode" | "value" | "onChange"> & {
|
|
123
124
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
124
125
|
height?: string;
|
|
@@ -140,10 +141,10 @@ export type AceEditorMysqlProps = Omit<IAceEditorProps, "theme" | "mode" | "valu
|
|
|
140
141
|
*/
|
|
141
142
|
theme?: string;
|
|
142
143
|
/** 底部额外布局 */
|
|
143
|
-
footerExtraRender?: (children: ReactElement) => ReactElement;
|
|
144
|
-
footerStyle?: CSSProperties;
|
|
144
|
+
footerExtraRender?: (children: React$1.ReactElement) => React$1.ReactElement;
|
|
145
|
+
footerStyle?: React$1.CSSProperties;
|
|
145
146
|
};
|
|
146
|
-
export declare const AceEditorMysql: (props: AceEditorMysqlProps) => import("react").JSX.Element;
|
|
147
|
+
export declare const AceEditorMysql: (props: AceEditorMysqlProps) => import("react").React$1.JSX.Element;
|
|
147
148
|
export type AceEditorXmlProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
148
149
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
149
150
|
height?: string;
|
|
@@ -169,8 +170,8 @@ export type AceEditorXmlProps = Omit<IAceEditorProps, "mode" | "value" | "onChan
|
|
|
169
170
|
*/
|
|
170
171
|
theme?: string;
|
|
171
172
|
/** 底部额外布局 */
|
|
172
|
-
footerExtraRender?: (children: ReactElement) => ReactElement;
|
|
173
|
-
footerStyle?: CSSProperties;
|
|
173
|
+
footerExtraRender?: (children: React$1.ReactElement) => React$1.ReactElement;
|
|
174
|
+
footerStyle?: React$1.CSSProperties;
|
|
174
175
|
};
|
|
175
176
|
/**
|
|
176
177
|
* xml编辑器
|
|
@@ -184,19 +185,39 @@ export type AceEditorXmlProps = Omit<IAceEditorProps, "mode" | "value" | "onChan
|
|
|
184
185
|
* 5.2 配置 theme = xxxx
|
|
185
186
|
* ```
|
|
186
187
|
*/
|
|
187
|
-
export declare const AceEditorXml: (props: AceEditorXmlProps) => import("react").JSX.Element;
|
|
188
|
+
export declare const AceEditorXml: (props: AceEditorXmlProps) => import("react").React$1.JSX.Element;
|
|
189
|
+
export type AiSearchProps = {
|
|
190
|
+
/** 获取AI提示词 */
|
|
191
|
+
getPromptValue: (inputValue: string) => string;
|
|
192
|
+
/** AI回调 */
|
|
193
|
+
onAiCallback: (dataList: TPlainObject[]) => void;
|
|
194
|
+
/** 输入框placeholder */
|
|
195
|
+
placeholder?: string;
|
|
196
|
+
/** 默认值:{ minRows: 3, maxRows: 3 } */
|
|
197
|
+
inputAutoSize?: {
|
|
198
|
+
minRows?: number;
|
|
199
|
+
maxRows?: number;
|
|
200
|
+
};
|
|
201
|
+
className?: string;
|
|
202
|
+
style?: React$1.CSSProperties;
|
|
203
|
+
/** 是否使用流式交互 */
|
|
204
|
+
stream?: boolean;
|
|
205
|
+
/** 设置进度条跑完时间,单位秒,默认值:10秒 */
|
|
206
|
+
progressTime?: number;
|
|
207
|
+
};
|
|
208
|
+
export declare const AiSearch: (props: AiSearchProps) => import("react").React$1.JSX.Element;
|
|
188
209
|
export type AlertWrapperProps = AlertProps & {
|
|
189
210
|
size?: "small" | "default" | "large";
|
|
190
211
|
};
|
|
191
212
|
/**
|
|
192
213
|
* antd Alert 无法控制内边距,此组件扩展size属性
|
|
193
214
|
*/
|
|
194
|
-
export declare const AlertWrapper: (props: AlertWrapperProps) => import("react").JSX.Element;
|
|
215
|
+
export declare const AlertWrapper: (props: AlertWrapperProps) => import("react").React$1.JSX.Element;
|
|
195
216
|
export type AmountFenInputProps = Omit<InputNumberProps, "defaultValue"> & {
|
|
196
217
|
value?: number;
|
|
197
218
|
onChange?: (value?: number) => void;
|
|
198
219
|
};
|
|
199
|
-
export declare const AmountFenInput: (props: AmountFenInputProps) => import("react").JSX.Element;
|
|
220
|
+
export declare const AmountFenInput: (props: AmountFenInputProps) => import("react").React$1.JSX.Element;
|
|
200
221
|
export type AmountFenInputFormItemProps = FormItemProps & {
|
|
201
222
|
inputNumberProps?: Omit<InputNumberProps, "value" | "onChange" | "defaultValue">;
|
|
202
223
|
};
|
|
@@ -211,12 +232,12 @@ export type AmountFenInputFormItemProps = FormItemProps & {
|
|
|
211
232
|
* />
|
|
212
233
|
* ```
|
|
213
234
|
*/
|
|
214
|
-
export declare const AmountFenInputFormItem: (props: AmountFenInputFormItemProps) => import("react").JSX.Element;
|
|
235
|
+
export declare const AmountFenInputFormItem: (props: AmountFenInputFormItemProps) => import("react").React$1.JSX.Element;
|
|
215
236
|
export type AnchorStepsProps = {
|
|
216
237
|
steps: {
|
|
217
238
|
id: string;
|
|
218
239
|
title: string;
|
|
219
|
-
content: ReactElement;
|
|
240
|
+
content: React$1.ReactElement;
|
|
220
241
|
}[];
|
|
221
242
|
className?: string;
|
|
222
243
|
};
|
|
@@ -225,8 +246,8 @@ export type AnchorStepsProps = {
|
|
|
225
246
|
* @param props
|
|
226
247
|
* @returns
|
|
227
248
|
*/
|
|
228
|
-
export declare const AnchorSteps: (props: AnchorStepsProps) => import("react").JSX.Element;
|
|
229
|
-
export type BlockLayoutProps = DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
249
|
+
export declare const AnchorSteps: (props: AnchorStepsProps) => import("react").React$1.JSX.Element;
|
|
250
|
+
export type BlockLayoutProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
230
251
|
/**
|
|
231
252
|
* 块布局(控制light/dark模式下,块背景色和字体颜色)
|
|
232
253
|
* ```
|
|
@@ -238,7 +259,7 @@ export type BlockLayoutProps = DetailedHTMLProps<React.HTMLAttributes<HTMLDivEle
|
|
|
238
259
|
* @param props
|
|
239
260
|
* @returns
|
|
240
261
|
*/
|
|
241
|
-
export declare const BlockLayout: (props: BlockLayoutProps) => import("react").JSX.Element;
|
|
262
|
+
export declare const BlockLayout: (props: BlockLayoutProps) => import("react").React$1.JSX.Element;
|
|
242
263
|
export type FormItemNamePath = string | number | Array<string | number>;
|
|
243
264
|
export type TLocale = "en" | "zh-cn";
|
|
244
265
|
export type TFbaLocale = {
|
|
@@ -264,13 +285,13 @@ export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
|
264
285
|
* 1. 新增监听辅助行为,移除复制文本中前后空格能力
|
|
265
286
|
* ```
|
|
266
287
|
*/
|
|
267
|
-
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => import("react").JSX.Element;
|
|
288
|
+
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => import("react").React$1.JSX.Element;
|
|
268
289
|
export type BootstrapProps = {
|
|
269
290
|
/** 是否紧凑模式 */
|
|
270
291
|
compact?: boolean;
|
|
271
292
|
/** 是否drak模式 */
|
|
272
293
|
dark?: boolean;
|
|
273
|
-
children: ReactNode;
|
|
294
|
+
children: React$1.ReactNode;
|
|
274
295
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
275
296
|
/** @default zhCN */
|
|
276
297
|
locale?: "en" | "zh-cn";
|
|
@@ -303,12 +324,12 @@ export type BootstrapProps = {
|
|
|
303
324
|
* 4. 封装 antd ConfigProvider 可配置主题
|
|
304
325
|
* ```
|
|
305
326
|
*/
|
|
306
|
-
export declare const Bootstrap: (props: BootstrapProps) => import("react").JSX.Element;
|
|
327
|
+
export declare const Bootstrap: (props: BootstrapProps) => import("react").React$1.JSX.Element;
|
|
307
328
|
export type TBoxBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
308
329
|
export interface ICommonReact {
|
|
309
|
-
children?: ReactNode;
|
|
330
|
+
children?: React$1.ReactNode;
|
|
310
331
|
className?: string;
|
|
311
|
-
style?: CSSProperties;
|
|
332
|
+
style?: React$1.CSSProperties;
|
|
312
333
|
}
|
|
313
334
|
export type Gutter = number | undefined | Partial<Record<TBoxBreakpoint, number>>;
|
|
314
335
|
export type GutterParams = Gutter | [
|
|
@@ -417,7 +438,7 @@ export declare const BoxGrid: {
|
|
|
417
438
|
};
|
|
418
439
|
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
419
440
|
/** 当返回 Promise 时,按钮自动loading */
|
|
420
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
441
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
421
442
|
/** 重复点击间隙,单位毫秒 默认值:500 */
|
|
422
443
|
debounceDuration?: number;
|
|
423
444
|
/** 基于GLOBAL中elemAclLimits按钮权限列表,控制按钮显示、隐藏 */
|
|
@@ -437,7 +458,7 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
|
437
458
|
* @param props
|
|
438
459
|
* @returns
|
|
439
460
|
*/
|
|
440
|
-
export declare const ButtonWrapper: (props: ButtonWrapperProps) => import("react").JSX.Element | null;
|
|
461
|
+
export declare const ButtonWrapper: (props: ButtonWrapperProps) => import("react").React$1.JSX.Element | null;
|
|
441
462
|
export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
|
|
442
463
|
/**
|
|
443
464
|
* 内置尺寸,根据比例固定高度、宽度,默认:无
|
|
@@ -447,11 +468,11 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
447
468
|
* ```
|
|
448
469
|
*/
|
|
449
470
|
size?: "small" | "middle" | "large" | null;
|
|
450
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
451
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
452
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
471
|
+
onOk?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
472
|
+
onCancel?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
473
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
453
474
|
onClose: TNoopDefine;
|
|
454
|
-
}) => ReactElement);
|
|
475
|
+
}) => React$1.ReactElement);
|
|
455
476
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
456
477
|
okHidden?: boolean;
|
|
457
478
|
cancelHidden?: boolean;
|
|
@@ -466,14 +487,14 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
466
487
|
* ```
|
|
467
488
|
*/
|
|
468
489
|
bodyHeightPercent?: number;
|
|
469
|
-
titleExtra?: ReactElement;
|
|
490
|
+
titleExtra?: React$1.ReactElement;
|
|
470
491
|
/**
|
|
471
492
|
* null则隐藏footer
|
|
472
493
|
* ```
|
|
473
494
|
* extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
474
495
|
* ```
|
|
475
496
|
*/
|
|
476
|
-
footer?: null | ReactElement | ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => ReactElement);
|
|
497
|
+
footer?: null | React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement);
|
|
477
498
|
/** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
|
|
478
499
|
bodyHeight?: number;
|
|
479
500
|
};
|
|
@@ -512,12 +533,12 @@ export declare const dialogModal: {
|
|
|
512
533
|
};
|
|
513
534
|
};
|
|
514
535
|
export interface DropdownMenuItem extends Omit<ButtonProps, "color"> {
|
|
515
|
-
text?: string | ReactElement;
|
|
536
|
+
text?: string | React$1.ReactElement;
|
|
516
537
|
color?: string;
|
|
517
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
538
|
+
onClick?: (event: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
518
539
|
permission?: string;
|
|
519
540
|
needConfirm?: boolean;
|
|
520
|
-
confirmMessage?: ReactNode;
|
|
541
|
+
confirmMessage?: React$1.ReactNode;
|
|
521
542
|
hidden?: boolean;
|
|
522
543
|
confirmModalProps?: DialogModalProps;
|
|
523
544
|
stopPropagation?: boolean;
|
|
@@ -536,20 +557,20 @@ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
|
|
|
536
557
|
* 1. Dropdown默认弹框根节点在组件内部,通过isFixed=true可设置弹框根节点在body下
|
|
537
558
|
* ```
|
|
538
559
|
*/
|
|
539
|
-
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => import("react").JSX.Element;
|
|
560
|
+
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => import("react").React$1.JSX.Element;
|
|
540
561
|
export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
541
562
|
/** hover 提示文字,isFold=true无效 */
|
|
542
|
-
hoverTips?: string | ReactElement;
|
|
563
|
+
hoverTips?: string | React$1.ReactElement;
|
|
543
564
|
/** hover 提示类型 默认:'tooltip' */
|
|
544
565
|
tipsType?: "popover" | "tooltip";
|
|
545
566
|
/** 按钮文案 */
|
|
546
|
-
text?: string | ReactElement;
|
|
567
|
+
text?: string | React$1.ReactElement;
|
|
547
568
|
/** 自定义按钮颜色 */
|
|
548
569
|
color?: string;
|
|
549
570
|
/** 是否需要二次弹框确认 */
|
|
550
571
|
needConfirm?: boolean;
|
|
551
572
|
/** 二次弹框确认文案 */
|
|
552
|
-
confirmMessage?: ReactNode;
|
|
573
|
+
confirmMessage?: React$1.ReactNode;
|
|
553
574
|
popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
|
|
554
575
|
/** 是否折叠合拢 */
|
|
555
576
|
isFold?: boolean;
|
|
@@ -559,7 +580,7 @@ export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
|
559
580
|
}
|
|
560
581
|
export interface ButtonOperateProps {
|
|
561
582
|
className?: string;
|
|
562
|
-
style?: CSSProperties;
|
|
583
|
+
style?: React$1.CSSProperties;
|
|
563
584
|
/**
|
|
564
585
|
* 如果数组中元素为ReactElement类型
|
|
565
586
|
* 1. 一般为antd Button组件,如果组件存在属性hidden=true、v-hidden=true,则会隐藏
|
|
@@ -567,11 +588,11 @@ export interface ButtonOperateProps {
|
|
|
567
588
|
* 3. 任何confirm、disabled等状态在外部控制
|
|
568
589
|
* 3. 不支持fold效果
|
|
569
590
|
*/
|
|
570
|
-
operateList: Array<ButtonOperateItem | null | ReactElement>;
|
|
591
|
+
operateList: Array<ButtonOperateItem | null | React$1.ReactElement>;
|
|
571
592
|
/** 是否换行,默认true */
|
|
572
593
|
wrap?: boolean;
|
|
573
594
|
/** 隐藏图标Icon */
|
|
574
|
-
foldIcon?: ReactElement;
|
|
595
|
+
foldIcon?: React$1.ReactElement;
|
|
575
596
|
/** 按钮之间是否添加分隔符 */
|
|
576
597
|
split?: boolean;
|
|
577
598
|
/** 多个按钮的包装组件Space属性 */
|
|
@@ -582,8 +603,8 @@ export interface ButtonOperateProps {
|
|
|
582
603
|
dropdownMenuProps?: Omit<DropdownMenuWrapperProps, "menuList">;
|
|
583
604
|
}
|
|
584
605
|
export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
|
|
585
|
-
content: ReactNode;
|
|
586
|
-
}) => import("react").JSX.Element;
|
|
606
|
+
content: React$1.ReactNode;
|
|
607
|
+
}) => import("react").React$1.JSX.Element;
|
|
587
608
|
/**
|
|
588
609
|
* 按钮组合处理组件
|
|
589
610
|
* ```
|
|
@@ -596,14 +617,14 @@ export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "
|
|
|
596
617
|
* 2. 修改原因:升级 antd 5.5.1 后,Dropdown 中 Popconfirm弹框组合使用存在问题
|
|
597
618
|
* ```
|
|
598
619
|
*/
|
|
599
|
-
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
620
|
+
export declare const ButtonOperate: React$1.FC<ButtonOperateProps>;
|
|
600
621
|
export type CardLayoutProps = {
|
|
601
622
|
/** 描述 */
|
|
602
|
-
desc?: string | string[] | ReactElement | ReactElement[];
|
|
623
|
+
desc?: string | string[] | React$1.ReactElement | React$1.ReactElement[];
|
|
603
624
|
/** 标题 */
|
|
604
|
-
title?: string | ReactElement;
|
|
625
|
+
title?: string | React$1.ReactElement;
|
|
605
626
|
/** 子标题,在标题右侧 */
|
|
606
|
-
subTitle?: string | ReactElement;
|
|
627
|
+
subTitle?: string | React$1.ReactElement;
|
|
607
628
|
/**
|
|
608
629
|
* layoutType 布局类型
|
|
609
630
|
* ```
|
|
@@ -614,19 +635,19 @@ export type CardLayoutProps = {
|
|
|
614
635
|
layoutType?: "layer" | "tight";
|
|
615
636
|
/** 隐藏标题左侧符号 */
|
|
616
637
|
titleLeftLine?: boolean;
|
|
617
|
-
titleStyle?: CSSProperties;
|
|
618
|
-
titleContentStyle?: CSSProperties;
|
|
619
|
-
subTitleStyle?: CSSProperties;
|
|
620
|
-
titleExtraStyle?: CSSProperties;
|
|
621
|
-
contentStyle?: CSSProperties;
|
|
638
|
+
titleStyle?: React$1.CSSProperties;
|
|
639
|
+
titleContentStyle?: React$1.CSSProperties;
|
|
640
|
+
subTitleStyle?: React$1.CSSProperties;
|
|
641
|
+
titleExtraStyle?: React$1.CSSProperties;
|
|
642
|
+
contentStyle?: React$1.CSSProperties;
|
|
622
643
|
/** 优先级大于 style padding */
|
|
623
|
-
padding?: CSSProperties["padding"];
|
|
644
|
+
padding?: React$1.CSSProperties["padding"];
|
|
624
645
|
/** 优先级大于 style width */
|
|
625
|
-
width?: CSSProperties["width"];
|
|
646
|
+
width?: React$1.CSSProperties["width"];
|
|
626
647
|
/** 优先级大于 style height */
|
|
627
|
-
height?: CSSProperties["height"];
|
|
648
|
+
height?: React$1.CSSProperties["height"];
|
|
628
649
|
/** 标题右侧布局 */
|
|
629
|
-
titleExtra?: string | ReactElement;
|
|
650
|
+
titleExtra?: string | React$1.ReactElement;
|
|
630
651
|
/** 当存在滚动条时,标题固定,滚动区域为内部部分 */
|
|
631
652
|
titleFixed?: boolean;
|
|
632
653
|
/**
|
|
@@ -637,9 +658,9 @@ export type CardLayoutProps = {
|
|
|
637
658
|
size?: "default" | "small";
|
|
638
659
|
onClick?: (event: any) => void;
|
|
639
660
|
hidden?: boolean;
|
|
640
|
-
children?: ReactNode;
|
|
661
|
+
children?: React$1.ReactNode;
|
|
641
662
|
className?: string;
|
|
642
|
-
style?: CSSProperties;
|
|
663
|
+
style?: React$1.CSSProperties;
|
|
643
664
|
};
|
|
644
665
|
/**
|
|
645
666
|
* 卡片结构布局,替代 SimpleLayout 组件
|
|
@@ -652,7 +673,7 @@ export type CardLayoutProps = {
|
|
|
652
673
|
* ```
|
|
653
674
|
*/
|
|
654
675
|
export declare const CardLayout: {
|
|
655
|
-
(props: CardLayoutProps): import("react").JSX.Element;
|
|
676
|
+
(props: CardLayoutProps): import("react").React$1.JSX.Element;
|
|
656
677
|
defaultProps: {
|
|
657
678
|
titleLeftLine: boolean;
|
|
658
679
|
layoutType: string;
|
|
@@ -665,15 +686,15 @@ export declare const CardLayout: {
|
|
|
665
686
|
* @param props
|
|
666
687
|
* @returns
|
|
667
688
|
*/
|
|
668
|
-
export declare const CardWrapper: (props: CardProps) => import("react").JSX.Element;
|
|
689
|
+
export declare const CardWrapper: (props: CardProps) => import("react").React$1.JSX.Element;
|
|
669
690
|
export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
670
691
|
export type TRequestStatusProps = {
|
|
671
692
|
status?: TRequestStatus;
|
|
672
|
-
errorButton?: ReactElement;
|
|
693
|
+
errorButton?: React$1.ReactElement;
|
|
673
694
|
messageConfig?: Partial<Record<TRequestStatus, string>>;
|
|
674
695
|
loading?: boolean;
|
|
675
696
|
};
|
|
676
|
-
export declare const RequestStatus: (props: TRequestStatusProps) => import("react").JSX.Element;
|
|
697
|
+
export declare const RequestStatus: (props: TRequestStatusProps) => import("react").React$1.JSX.Element;
|
|
677
698
|
export type CascaderWrapperServiceConfig = {
|
|
678
699
|
params?: TPlainObject;
|
|
679
700
|
onRequest?: (params?: TAny) => TAny;
|
|
@@ -702,7 +723,7 @@ export type CascaderWrapperProps = Omit<CascaderProps<TAny>, "loading" | "notFou
|
|
|
702
723
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
703
724
|
*/
|
|
704
725
|
serviceConfig?: CascaderWrapperServiceConfig;
|
|
705
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
726
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
706
727
|
onSelectorListChange?: (dataList: TPlainObject[]) => void;
|
|
707
728
|
/**
|
|
708
729
|
* 是否动态加载选项
|
|
@@ -758,7 +779,7 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
758
779
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
759
780
|
*/
|
|
760
781
|
serviceConfig?: CascaderWrapperServiceConfig;
|
|
761
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
782
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
762
783
|
onSelectorListChange?: (dataList: TPlainObject[]) => void;
|
|
763
784
|
/**
|
|
764
785
|
* 是否动态加载选项
|
|
@@ -781,8 +802,8 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
781
802
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
782
803
|
export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject> {
|
|
783
804
|
className?: string;
|
|
784
|
-
style?: CSSProperties & Partial<S>;
|
|
785
|
-
children?: ReactNode | undefined;
|
|
805
|
+
style?: React$1.CSSProperties & Partial<S>;
|
|
806
|
+
children?: React$1.ReactNode | undefined;
|
|
786
807
|
}
|
|
787
808
|
export type CheckListItemValue = string | number;
|
|
788
809
|
export type CheckListSelectedValue<T extends "multi" | "radio"> = T extends "multi" ? CheckListItemValue[] : CheckListItemValue;
|
|
@@ -792,8 +813,8 @@ export type CheckListProps<T extends "multi" | "radio"> = {
|
|
|
792
813
|
onPreChange?: (value: CheckListItemValue) => Promise<void>;
|
|
793
814
|
value?: CheckListSelectedValue<T>;
|
|
794
815
|
defaultValue?: CheckListSelectedValue<T>;
|
|
795
|
-
beforeExtra?: ReactNode;
|
|
796
|
-
afterExtra?: ReactNode;
|
|
816
|
+
beforeExtra?: React$1.ReactNode;
|
|
817
|
+
afterExtra?: React$1.ReactNode;
|
|
797
818
|
stopPropagation?: boolean;
|
|
798
819
|
required?: boolean;
|
|
799
820
|
} & CommonPropsWithChildren;
|
|
@@ -803,17 +824,17 @@ export type CheckListItemContentProps = {
|
|
|
803
824
|
onClick?: (event: any) => void;
|
|
804
825
|
className?: string;
|
|
805
826
|
readonly?: boolean;
|
|
806
|
-
style?: CSSProperties;
|
|
827
|
+
style?: React$1.CSSProperties;
|
|
807
828
|
};
|
|
808
829
|
export type CheckListItemProps = {
|
|
809
830
|
value: CheckListItemValue;
|
|
810
831
|
disabled?: boolean;
|
|
811
832
|
readonly?: boolean;
|
|
812
|
-
children: (data: CheckListItemContentProps) => ReactElement;
|
|
833
|
+
children: (data: CheckListItemContentProps) => React$1.ReactElement;
|
|
813
834
|
className?: string;
|
|
814
|
-
style?: CSSProperties;
|
|
835
|
+
style?: React$1.CSSProperties;
|
|
815
836
|
};
|
|
816
|
-
export declare const CheckList: (<T extends "multi" | "radio">(props: CheckListProps<T>) => import("react").JSX.Element) & {
|
|
837
|
+
export declare const CheckList: (<T extends "multi" | "radio">(props: CheckListProps<T>) => import("react").React$1.JSX.Element) & {
|
|
817
838
|
Item: (props: CheckListItemProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
818
839
|
};
|
|
819
840
|
export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultChecked" | "onChange"> & {
|
|
@@ -834,7 +855,7 @@ export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultCheck
|
|
|
834
855
|
* </Form.Item>
|
|
835
856
|
* ```
|
|
836
857
|
*/
|
|
837
|
-
export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => import("react").JSX.Element;
|
|
858
|
+
export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => import("react").React$1.JSX.Element;
|
|
838
859
|
export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange"> & {
|
|
839
860
|
/** 格式:#1677ff */
|
|
840
861
|
value?: string;
|
|
@@ -842,13 +863,13 @@ export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange
|
|
|
842
863
|
onChange?: (hex?: string) => void;
|
|
843
864
|
viewMinWidth?: number;
|
|
844
865
|
};
|
|
845
|
-
export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react").JSX.Element;
|
|
866
|
+
export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
846
867
|
export type CssHoverProps = {
|
|
847
|
-
children: ReactElement | ReactElement[];
|
|
868
|
+
children: React$1.ReactElement | React$1.ReactElement[];
|
|
848
869
|
} & Pick<CommonPropsWithChildren<{
|
|
849
|
-
"--v-css-hover-bgcolor": CSSProperties["backgroundColor"];
|
|
850
|
-
"--v-css-hover-opacity": CSSProperties["opacity"];
|
|
851
|
-
"--v-css-hover-border-radius": CSSProperties["borderRadius"];
|
|
870
|
+
"--v-css-hover-bgcolor": React$1.CSSProperties["backgroundColor"];
|
|
871
|
+
"--v-css-hover-opacity": React$1.CSSProperties["opacity"];
|
|
872
|
+
"--v-css-hover-border-radius": React$1.CSSProperties["borderRadius"];
|
|
852
873
|
}>, "style" | "children">;
|
|
853
874
|
/**
|
|
854
875
|
* css hover 效果
|
|
@@ -859,14 +880,14 @@ export type CssHoverProps = {
|
|
|
859
880
|
* @param props
|
|
860
881
|
* @returns
|
|
861
882
|
*/
|
|
862
|
-
export declare const CssNodeHover: (props: CssHoverProps) => import("react").JSX.Element;
|
|
883
|
+
export declare const CssNodeHover: (props: CssHoverProps) => import("react").React$1.JSX.Element;
|
|
863
884
|
export type DataRenderProps = {
|
|
864
885
|
isEmpty: boolean | (() => boolean);
|
|
865
|
-
empty?: ReactElement;
|
|
866
|
-
emptyText?: string | ReactElement;
|
|
867
|
-
emptyStyle?: CSSProperties;
|
|
886
|
+
empty?: React$1.ReactElement;
|
|
887
|
+
emptyText?: string | React$1.ReactElement;
|
|
888
|
+
emptyStyle?: React$1.CSSProperties;
|
|
868
889
|
emptyClassName?: string;
|
|
869
|
-
children: ReactNode;
|
|
890
|
+
children: React$1.ReactNode;
|
|
870
891
|
};
|
|
871
892
|
/**
|
|
872
893
|
* 数据渲染,内置处理数据为空渲染
|
|
@@ -884,7 +905,7 @@ export type DataRenderProps = {
|
|
|
884
905
|
* </DataRender>
|
|
885
906
|
* ```
|
|
886
907
|
*/
|
|
887
|
-
export declare const DataRender: (props: DataRenderProps) => import("react").JSX.Element;
|
|
908
|
+
export declare const DataRender: (props: DataRenderProps) => import("react").React$1.JSX.Element;
|
|
888
909
|
export type TDayjsDateType = "YYYY-MM-DD HH:mm:ss" | "YYYY-MM-DD HH:mm" | "YYYY-MM-DD HH" | "YYYY-MM-DD" | (string & {});
|
|
889
910
|
export type TDayjsTimeType = "HH:mm:ss" | "HH:mm" | "HH" | "mm:ss" | "mm" | "ss" | (string & {});
|
|
890
911
|
export type DatePickerWrapperProps = Omit<PickerProps<TAny>, "value" | "onChange" | "format"> & {
|
|
@@ -918,7 +939,7 @@ export type DatePickerWrapperProps = Omit<PickerProps<TAny>, "value" | "onChange
|
|
|
918
939
|
* 5. 设置 disabledTime 后,内置的disabledTime逻辑将失效
|
|
919
940
|
* ```
|
|
920
941
|
*/
|
|
921
|
-
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react").JSX.Element;
|
|
942
|
+
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
922
943
|
export type RangePickerDateProps = GetProps<typeof DatePicker.RangePicker>;
|
|
923
944
|
export type DateRangePickerWrapperProps = Omit<RangePickerDateProps, "value" | "onChange" | "onCalendarChange" | "format"> & {
|
|
924
945
|
value?: [
|
|
@@ -969,7 +990,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps, "value" | "
|
|
|
969
990
|
* TODO: 存在场景缺陷,当设置maxDays、showTime后,在选择单个日期不通过确认按钮直接切换输入框,无法获取回调,无法约束disabledDate
|
|
970
991
|
* ```
|
|
971
992
|
*/
|
|
972
|
-
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react").JSX.Element;
|
|
993
|
+
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
973
994
|
export type TFormLayoutPreClassNameProps = {
|
|
974
995
|
/**
|
|
975
996
|
* label宽度,Form内部所有FormItem label都生效
|
|
@@ -1009,13 +1030,13 @@ export type TFormItemLayoutPreClassNameProps = {
|
|
|
1009
1030
|
className?: string;
|
|
1010
1031
|
};
|
|
1011
1032
|
export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "noStyle"> & TFormItemLayoutPreClassNameProps & {
|
|
1012
|
-
wrapper?: (children: ReactNode) => ReactElement;
|
|
1033
|
+
wrapper?: (children: React$1.ReactNode) => React$1.ReactElement;
|
|
1013
1034
|
/** 设置wrapper后,before、after失效 */
|
|
1014
|
-
before?: ReactNode;
|
|
1035
|
+
before?: React$1.ReactNode;
|
|
1015
1036
|
/** 设置wrapper后,before、after失效 */
|
|
1016
|
-
after?: ReactNode;
|
|
1037
|
+
after?: React$1.ReactNode;
|
|
1017
1038
|
/** 设置 before、after 属性的包装结构style */
|
|
1018
|
-
beforeAfterStyle?: CSSProperties;
|
|
1039
|
+
beforeAfterStyle?: React$1.CSSProperties;
|
|
1019
1040
|
/** value 序列化处理 */
|
|
1020
1041
|
inputNormalize?: (value?: TAny) => TAny;
|
|
1021
1042
|
/**
|
|
@@ -1048,7 +1069,7 @@ export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "
|
|
|
1048
1069
|
*/
|
|
1049
1070
|
span?: number;
|
|
1050
1071
|
/** 不支持函数式写法,如果需要使用dependencies获取表单值,可使用FormItemWrapperDependencies 组件 */
|
|
1051
|
-
children?: ReactNode;
|
|
1072
|
+
children?: React$1.ReactNode;
|
|
1052
1073
|
/**
|
|
1053
1074
|
* ```
|
|
1054
1075
|
* 1. 设置noStyle后,可能会导致 FromItemWrapper 在 EasyFrom 内部渲染网格布局时出现异常
|
|
@@ -1084,7 +1105,7 @@ export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "
|
|
|
1084
1105
|
* ```
|
|
1085
1106
|
*/
|
|
1086
1107
|
export declare const FormItemWrapper: {
|
|
1087
|
-
(props: FormItemWrapperProps): import("react").JSX.Element;
|
|
1108
|
+
(props: FormItemWrapperProps): import("react").React$1.JSX.Element;
|
|
1088
1109
|
domTypeName: string;
|
|
1089
1110
|
};
|
|
1090
1111
|
export type DateRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "name"> & {
|
|
@@ -1137,21 +1158,21 @@ export type DateRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "na
|
|
|
1137
1158
|
* </FormListWrapper>
|
|
1138
1159
|
* ```
|
|
1139
1160
|
*/
|
|
1140
|
-
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => import("react").JSX.Element;
|
|
1161
|
+
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => import("react").React$1.JSX.Element;
|
|
1141
1162
|
/** 删除节点,点击后会显示二次确认点击 */
|
|
1142
1163
|
export declare const DeleteNode: (props: {
|
|
1143
1164
|
onDelete: () => void;
|
|
1144
1165
|
/** 默认图标 */
|
|
1145
|
-
icon?: ReactElement;
|
|
1166
|
+
icon?: React$1.ReactElement;
|
|
1146
1167
|
/** 确认图标 */
|
|
1147
|
-
confirmIcon?: ReactElement;
|
|
1168
|
+
confirmIcon?: React$1.ReactElement;
|
|
1148
1169
|
/** 是否隐藏 */
|
|
1149
1170
|
hidden?: boolean;
|
|
1150
|
-
style?: CSSProperties;
|
|
1171
|
+
style?: React$1.CSSProperties;
|
|
1151
1172
|
className?: string;
|
|
1152
|
-
}) => import("react").JSX.Element;
|
|
1173
|
+
}) => import("react").React$1.JSX.Element;
|
|
1153
1174
|
export type DialogAlertProps = Omit<DialogModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
|
|
1154
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1175
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1155
1176
|
};
|
|
1156
1177
|
/**
|
|
1157
1178
|
* 确认弹框
|
|
@@ -1188,38 +1209,51 @@ export declare const dialogConfirm: {
|
|
|
1188
1209
|
};
|
|
1189
1210
|
};
|
|
1190
1211
|
export type DialogDragModalProps = {
|
|
1191
|
-
/**
|
|
1212
|
+
/** 相同的modalKey,最多只有一个弹起状态 */
|
|
1192
1213
|
modalKey?: string;
|
|
1214
|
+
className?: string;
|
|
1215
|
+
style?: React$1.CSSProperties;
|
|
1216
|
+
styles?: {
|
|
1217
|
+
header?: React$1.CSSProperties;
|
|
1218
|
+
body?: React$1.CSSProperties;
|
|
1219
|
+
footer?: React$1.CSSProperties;
|
|
1220
|
+
};
|
|
1193
1221
|
width?: number;
|
|
1194
1222
|
bodyHeight?: number;
|
|
1195
1223
|
/** 触发弹起点击事件event,用于计算鼠标位置 */
|
|
1196
|
-
event?: React.MouseEvent<HTMLElement>;
|
|
1197
|
-
/**
|
|
1224
|
+
event?: React$1.MouseEvent<HTMLElement>;
|
|
1225
|
+
/** 定义弹出层距离触发点的x轴偏移量 */
|
|
1198
1226
|
xOffset?: number;
|
|
1199
|
-
style?: CSSProperties;
|
|
1200
1227
|
title?: string;
|
|
1201
|
-
okText?: string | ReactElement;
|
|
1202
|
-
cancelText?: string | ReactElement;
|
|
1228
|
+
okText?: string | React$1.ReactElement;
|
|
1229
|
+
cancelText?: string | React$1.ReactElement;
|
|
1203
1230
|
okHidden?: boolean;
|
|
1204
1231
|
cancelHidden?: boolean;
|
|
1205
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1206
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1207
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
1232
|
+
onOk?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1233
|
+
onCancel?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1234
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
1208
1235
|
onClose: TNoopDefine;
|
|
1209
|
-
}) => ReactElement);
|
|
1236
|
+
}) => React$1.ReactElement);
|
|
1210
1237
|
/** 覆盖当前footer,自定义操作按钮 */
|
|
1211
|
-
footer?: (form: FormInstance, operate: {
|
|
1238
|
+
footer?: null | ((form: FormInstance, operate: {
|
|
1212
1239
|
onClose: TNoopDefine;
|
|
1213
|
-
}) => ReactElement;
|
|
1240
|
+
}) => React$1.ReactElement);
|
|
1214
1241
|
/** 当前footer操作按钮,左侧扩展 */
|
|
1215
1242
|
footerOperateBeforeRender?: (form: FormInstance, operate: {
|
|
1216
1243
|
onClose: TNoopDefine;
|
|
1217
|
-
}) => ReactElement;
|
|
1244
|
+
}) => React$1.ReactElement;
|
|
1218
1245
|
/** 当前footer操作按钮,右侧扩展 */
|
|
1219
1246
|
footerOperateAfterRender?: (form: FormInstance, operate: {
|
|
1220
1247
|
onClose: TNoopDefine;
|
|
1221
|
-
}) => ReactElement;
|
|
1248
|
+
}) => React$1.ReactElement;
|
|
1222
1249
|
};
|
|
1250
|
+
/**
|
|
1251
|
+
* 可移动弹框
|
|
1252
|
+
* ```
|
|
1253
|
+
* 1. 设置 event 后,弹起位置受鼠标点击位置控制
|
|
1254
|
+
* 2. 相同的modalKey,最多只有一个弹起状态
|
|
1255
|
+
* ```
|
|
1256
|
+
*/
|
|
1223
1257
|
export declare const dialogDragModal: {
|
|
1224
1258
|
open: (props: DialogDragModalProps) => {
|
|
1225
1259
|
close: () => void;
|
|
@@ -1233,13 +1267,13 @@ export declare const dialogDragModal: {
|
|
|
1233
1267
|
close: (modalKey?: string) => void;
|
|
1234
1268
|
};
|
|
1235
1269
|
export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "footer" | "extra"> & {
|
|
1236
|
-
okText?: string | ReactElement;
|
|
1237
|
-
cancelText?: string | ReactElement;
|
|
1238
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1239
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1240
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
1270
|
+
okText?: string | React$1.ReactElement;
|
|
1271
|
+
cancelText?: string | React$1.ReactElement;
|
|
1272
|
+
onOk?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1273
|
+
onCancel?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1274
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
1241
1275
|
onClose: TNoopDefine;
|
|
1242
|
-
}) => ReactElement);
|
|
1276
|
+
}) => React$1.ReactElement);
|
|
1243
1277
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
1244
1278
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1245
1279
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children">;
|
|
@@ -1248,14 +1282,14 @@ export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
1248
1282
|
/** 设置操作区域位置 */
|
|
1249
1283
|
operatePosition?: "header" | "footer";
|
|
1250
1284
|
/** 右上角自定义内容,如果operatePosition=header,此设置无效 */
|
|
1251
|
-
extra?: ReactNode | ((form: FormInstance) => ReactElement);
|
|
1285
|
+
extra?: React$1.ReactNode | ((form: FormInstance) => React$1.ReactElement);
|
|
1252
1286
|
/**
|
|
1253
1287
|
* ```
|
|
1254
1288
|
* 1. 自定义弹框操作区域,通过 operatePosition 配置可以自定义位置
|
|
1255
1289
|
* 2. extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
1256
1290
|
* ```
|
|
1257
1291
|
*/
|
|
1258
|
-
operateRender?: (form: FormInstance, extraData?: TPlainObject) => ReactElement;
|
|
1292
|
+
operateRender?: (form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement;
|
|
1259
1293
|
};
|
|
1260
1294
|
/**
|
|
1261
1295
|
* 抽屉弹框
|
|
@@ -1293,17 +1327,17 @@ export declare const dialogDrawer: {
|
|
|
1293
1327
|
export type DialogDrawerContentProps = {
|
|
1294
1328
|
footer?: (data: {
|
|
1295
1329
|
onClose: () => void;
|
|
1296
|
-
}) => ReactElement;
|
|
1297
|
-
footerStyle?: CSSProperties;
|
|
1298
|
-
children?: ReactNode;
|
|
1330
|
+
}) => React$1.ReactElement;
|
|
1331
|
+
footerStyle?: React$1.CSSProperties;
|
|
1332
|
+
children?: React$1.ReactNode;
|
|
1299
1333
|
okHidden?: boolean;
|
|
1300
1334
|
cancelHidden?: boolean;
|
|
1301
1335
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1302
1336
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1303
|
-
okText?: string | ReactElement;
|
|
1304
|
-
cancelText?: string | ReactElement;
|
|
1305
|
-
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1306
|
-
onCancel?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1337
|
+
okText?: string | React$1.ReactElement;
|
|
1338
|
+
cancelText?: string | React$1.ReactElement;
|
|
1339
|
+
onOk?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1340
|
+
onCancel?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1307
1341
|
};
|
|
1308
1342
|
/**
|
|
1309
1343
|
* 当dialogDrawer底部操作按钮在业务content内部时,使用
|
|
@@ -1312,7 +1346,7 @@ export type DialogDrawerContentProps = {
|
|
|
1312
1346
|
* 2. 设置 footer 后,okHidden、cancelHidden、okButtonExtraProps、cancelButtonExtraProps、okText、cancelText、onOk、onCancel全部失效
|
|
1313
1347
|
* ```
|
|
1314
1348
|
*/
|
|
1315
|
-
export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => import("react").JSX.Element;
|
|
1349
|
+
export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => import("react").React$1.JSX.Element;
|
|
1316
1350
|
export type DialogLoadingProps = {
|
|
1317
1351
|
className?: string;
|
|
1318
1352
|
message?: string;
|
|
@@ -1355,12 +1389,12 @@ export declare const dialogPreviewImage: {
|
|
|
1355
1389
|
export type DragCollapseItemKey = number | string;
|
|
1356
1390
|
export type DragCollapseItem = {
|
|
1357
1391
|
key: DragCollapseItemKey;
|
|
1358
|
-
header: ReactNode;
|
|
1359
|
-
content: ReactElement;
|
|
1392
|
+
header: React$1.ReactNode;
|
|
1393
|
+
content: React$1.ReactElement;
|
|
1360
1394
|
};
|
|
1361
1395
|
export type DragCollapseProps = {
|
|
1362
1396
|
className?: string;
|
|
1363
|
-
style?: CSSProperties;
|
|
1397
|
+
style?: React$1.CSSProperties;
|
|
1364
1398
|
/** 面板数据 */
|
|
1365
1399
|
items: DragCollapseItem[];
|
|
1366
1400
|
/** 拖拽面板回调 */
|
|
@@ -1382,7 +1416,7 @@ export type DragCollapseProps = {
|
|
|
1382
1416
|
/** 隐藏拖拽图标,默认不隐藏 */
|
|
1383
1417
|
hideDragIcon?: boolean;
|
|
1384
1418
|
/** 设置拖拽图标 */
|
|
1385
|
-
dragIcon?: ReactElement;
|
|
1419
|
+
dragIcon?: React$1.ReactElement;
|
|
1386
1420
|
/** 切换面板的回调 */
|
|
1387
1421
|
onChange?: (activeKey?: DragCollapseItemKey | DragCollapseItemKey[]) => void;
|
|
1388
1422
|
};
|
|
@@ -1391,7 +1425,7 @@ export type DragCollapseProps = {
|
|
|
1391
1425
|
* @param props
|
|
1392
1426
|
* @returns
|
|
1393
1427
|
*/
|
|
1394
|
-
export declare const DragCollapse: (props: DragCollapseProps) => import("react").JSX.Element;
|
|
1428
|
+
export declare const DragCollapse: (props: DragCollapseProps) => import("react").React$1.JSX.Element;
|
|
1395
1429
|
export type DragCollapseFormListContentProps = {
|
|
1396
1430
|
/** Form.List item fieldData */
|
|
1397
1431
|
formListFieldData: FormListFieldData;
|
|
@@ -1412,7 +1446,7 @@ export type DragCollapseFormListProps = {
|
|
|
1412
1446
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
1413
1447
|
uidFieldName?: string;
|
|
1414
1448
|
className?: string;
|
|
1415
|
-
style?: CSSProperties;
|
|
1449
|
+
style?: React$1.CSSProperties;
|
|
1416
1450
|
/** formList name */
|
|
1417
1451
|
formListName: string | number | (string | number)[];
|
|
1418
1452
|
/** 拖拽面板回调 */
|
|
@@ -1432,15 +1466,15 @@ export type DragCollapseFormListProps = {
|
|
|
1432
1466
|
/** 设置折叠面板大小 */
|
|
1433
1467
|
size?: CollapseProps["size"];
|
|
1434
1468
|
/** 设置拖拽图标 */
|
|
1435
|
-
dragIcon?: ReactElement;
|
|
1469
|
+
dragIcon?: React$1.ReactElement;
|
|
1436
1470
|
/** 切换面板的回调 */
|
|
1437
1471
|
onChange?: (activeKey?: number | string | (number | string)[]) => void;
|
|
1438
1472
|
/** 禁用拖拽,拖拽图标隐藏 */
|
|
1439
1473
|
dragDisabled?: boolean;
|
|
1440
1474
|
/** 折叠面板 header 渲染 */
|
|
1441
|
-
header: (data: DragCollapseFormListHeaderProps) => ReactElement;
|
|
1475
|
+
header: (data: DragCollapseFormListHeaderProps) => React$1.ReactElement;
|
|
1442
1476
|
/** 折叠面板 content 渲染 */
|
|
1443
|
-
content: (data: DragCollapseFormListContentProps) => ReactElement;
|
|
1477
|
+
content: (data: DragCollapseFormListContentProps) => React$1.ReactElement;
|
|
1444
1478
|
/** 设置面板禁止拖拽 */
|
|
1445
1479
|
getItemDragDisabled?: (uid: string | number, index: number) => boolean;
|
|
1446
1480
|
rules?: FormListProps["rules"];
|
|
@@ -1451,9 +1485,9 @@ export type DragCollapseFormListProps = {
|
|
|
1451
1485
|
* 1. FormList数组中必须要有唯一值字段,默认值字段名称uid,可通过uidFieldName自定义设置名称
|
|
1452
1486
|
* ```
|
|
1453
1487
|
*/
|
|
1454
|
-
export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => import("react").JSX.Element;
|
|
1488
|
+
export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => import("react").React$1.JSX.Element;
|
|
1455
1489
|
export type FormWrapperProps<Values = any> = TFormLayoutPreClassNameProps & FormProps<Values> & {
|
|
1456
|
-
children: ReactNode;
|
|
1490
|
+
children: React$1.ReactNode;
|
|
1457
1491
|
};
|
|
1458
1492
|
/**
|
|
1459
1493
|
* Form 包装组件,添加对formItem的布局控制
|
|
@@ -1461,7 +1495,7 @@ export type FormWrapperProps<Values = any> = TFormLayoutPreClassNameProps & Form
|
|
|
1461
1495
|
* 1. 内置布局样式使用 preDefinedClassName.form
|
|
1462
1496
|
* ```
|
|
1463
1497
|
*/
|
|
1464
|
-
export declare const FormWrapper: (props: FormWrapperProps) => import("react").JSX.Element;
|
|
1498
|
+
export declare const FormWrapper: (props: FormWrapperProps) => import("react").React$1.JSX.Element;
|
|
1465
1499
|
export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
1466
1500
|
/**
|
|
1467
1501
|
* 定义一行显示几列(当外层宽度尺寸大于 992px(lg) 时,一行显示几列), 默认值:3
|
|
@@ -1498,15 +1532,11 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1498
1532
|
width?: number | string;
|
|
1499
1533
|
/** 网格间距 */
|
|
1500
1534
|
gridGutter?: BoxRowProps["gutter"];
|
|
1501
|
-
children: ReactNode;
|
|
1535
|
+
children: React$1.ReactNode;
|
|
1502
1536
|
/**
|
|
1503
1537
|
* 是否为纯净模式,对EasyForm的子节点不做任何包装处理
|
|
1504
1538
|
*/
|
|
1505
1539
|
isPure?: boolean;
|
|
1506
|
-
/**
|
|
1507
|
-
* true: 当前EasyForm组件不使用Antd Form包裹,可在Form、EasyForm、FormWrapper内部使用
|
|
1508
|
-
*/
|
|
1509
|
-
nonuseFormWrapper?: boolean;
|
|
1510
1540
|
/**
|
|
1511
1541
|
* 栅格占位格数,最大值:24
|
|
1512
1542
|
* ```
|
|
@@ -1565,7 +1595,7 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1565
1595
|
* ```
|
|
1566
1596
|
*/
|
|
1567
1597
|
export declare const EasyForm: {
|
|
1568
|
-
(props: EasyFormProps): import("react").JSX.Element;
|
|
1598
|
+
(props: EasyFormProps): import("react").React$1.JSX.Element;
|
|
1569
1599
|
domTypeName: string;
|
|
1570
1600
|
};
|
|
1571
1601
|
export type EditableCardDataIndex = string | string[];
|
|
@@ -1625,7 +1655,7 @@ export type EditableCardColumnItem = {
|
|
|
1625
1655
|
*/
|
|
1626
1656
|
gridNumber?: number;
|
|
1627
1657
|
/** 标题 */
|
|
1628
|
-
title?: ReactElement | string;
|
|
1658
|
+
title?: React$1.ReactElement | string;
|
|
1629
1659
|
/**
|
|
1630
1660
|
* Form.Item props
|
|
1631
1661
|
*/
|
|
@@ -1662,7 +1692,7 @@ export type EditableCardColumnItem = {
|
|
|
1662
1692
|
* }
|
|
1663
1693
|
* ```
|
|
1664
1694
|
*/
|
|
1665
|
-
render?: (operation: EditableCardOperation) => ReactElement;
|
|
1695
|
+
render?: (operation: EditableCardOperation) => React$1.ReactElement;
|
|
1666
1696
|
/**
|
|
1667
1697
|
* 会在 title 之后展示一个 icon
|
|
1668
1698
|
*/
|
|
@@ -1678,11 +1708,11 @@ export type EditableCardColumnItem = {
|
|
|
1678
1708
|
hidden?: (operation: EditableCardOperation, index: number) => boolean;
|
|
1679
1709
|
/** 移除设置,优先级高于 hidden */
|
|
1680
1710
|
remove?: (operation: EditableCardOperation, index: number) => boolean;
|
|
1681
|
-
formItemContainer?: (formItem: ReactElement) => ReactElement | null;
|
|
1711
|
+
formItemContainer?: (formItem: React$1.ReactElement) => React$1.ReactElement | null;
|
|
1682
1712
|
};
|
|
1683
1713
|
export type EditableCardProps = {
|
|
1684
1714
|
className?: string;
|
|
1685
|
-
style?: CSSProperties;
|
|
1715
|
+
style?: React$1.CSSProperties;
|
|
1686
1716
|
/** 卡片内字段配置 */
|
|
1687
1717
|
columns: EditableCardColumnItem[];
|
|
1688
1718
|
/**
|
|
@@ -1716,32 +1746,32 @@ export type EditableCardProps = {
|
|
|
1716
1746
|
/**`默认新增按钮`新增行默认值,hiddenFooterBtn != true 有效 */
|
|
1717
1747
|
addRowDefaultValues?: () => TPlainObject;
|
|
1718
1748
|
/** 自定义新增按钮名称 */
|
|
1719
|
-
addRowBtnName?: ReactNode;
|
|
1749
|
+
addRowBtnName?: React$1.ReactNode;
|
|
1720
1750
|
/** 隐藏底部`新增`按钮 */
|
|
1721
1751
|
hiddenFooterBtn?: boolean;
|
|
1722
1752
|
/** 隐藏默认删除按钮 */
|
|
1723
1753
|
hiddenDeleteBtn?: boolean;
|
|
1724
1754
|
/** 顶部区域渲染 */
|
|
1725
|
-
contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
1755
|
+
contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
1726
1756
|
/** 底部区域渲染 */
|
|
1727
|
-
contentAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
1757
|
+
contentAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
1728
1758
|
/** 设置默认卡片名称,设置 onCustomWrapper 后失效 */
|
|
1729
|
-
onCustomGroupName?: (index: number) => string | ReactElement;
|
|
1759
|
+
onCustomGroupName?: (index: number) => string | React$1.ReactElement;
|
|
1730
1760
|
/** 自定义卡片包裹,同时可自定义删除按钮、新增按钮 */
|
|
1731
|
-
onCustomWrapper?: (children: ReactElement, extraData: {
|
|
1761
|
+
onCustomWrapper?: (children: React$1.ReactElement, extraData: {
|
|
1732
1762
|
operation: FormListOperation;
|
|
1733
1763
|
fields: FormListFieldData[];
|
|
1734
1764
|
fieldItem: FormListFieldData;
|
|
1735
1765
|
index: number;
|
|
1736
1766
|
required?: boolean;
|
|
1737
1767
|
key: string;
|
|
1738
|
-
}) => ReactElement;
|
|
1768
|
+
}) => React$1.ReactElement;
|
|
1739
1769
|
/** 设置必填,但只有一条数据时,隐藏默认删除按钮 */
|
|
1740
1770
|
required?: boolean;
|
|
1741
1771
|
/** 默认卡片样式 */
|
|
1742
1772
|
cardClassName?: string;
|
|
1743
1773
|
/** 默认卡片样式 */
|
|
1744
|
-
cardStyle?: CSSProperties;
|
|
1774
|
+
cardStyle?: React$1.CSSProperties;
|
|
1745
1775
|
/**
|
|
1746
1776
|
* 每个卡片内容都使用了 EasyForm 包裹,此处可设置 EasyFormProps
|
|
1747
1777
|
* ```
|
|
@@ -1749,6 +1779,13 @@ export type EditableCardProps = {
|
|
|
1749
1779
|
* ```
|
|
1750
1780
|
*/
|
|
1751
1781
|
cardEasyFormProps?: Omit<EasyFormProps, "nonuseFormWrapper" | "isPure" | "children">;
|
|
1782
|
+
/**
|
|
1783
|
+
* 定义卡片网格水平跨度,最大值:24,默认值:24;设置 onCustomWrapper 后失效
|
|
1784
|
+
* ```
|
|
1785
|
+
* 1. 外层宽度在 xs、sm 时,强制为24
|
|
1786
|
+
* ```
|
|
1787
|
+
*/
|
|
1788
|
+
boxGridColSpan?: number;
|
|
1752
1789
|
/**
|
|
1753
1790
|
* 默认卡片右侧布局,设置 onCustomWrapper 后失效
|
|
1754
1791
|
* ```
|
|
@@ -1773,15 +1810,15 @@ export type EditableCardProps = {
|
|
|
1773
1810
|
required?: boolean;
|
|
1774
1811
|
key: string;
|
|
1775
1812
|
}) => {
|
|
1776
|
-
before?: ReactElement[];
|
|
1777
|
-
after?: ReactElement[];
|
|
1778
|
-
} | ReactElement;
|
|
1813
|
+
before?: React$1.ReactElement[];
|
|
1814
|
+
after?: React$1.ReactElement[];
|
|
1815
|
+
} | React$1.ReactElement;
|
|
1779
1816
|
};
|
|
1780
1817
|
export type DragEditableCardProps = Omit<EditableCardProps, "onCustomWrapper"> & {
|
|
1781
1818
|
/**
|
|
1782
1819
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
1783
1820
|
*/
|
|
1784
|
-
dragIcon?: ReactElement;
|
|
1821
|
+
dragIcon?: React$1.ReactElement;
|
|
1785
1822
|
/** 禁用拖拽 */
|
|
1786
1823
|
disabledDrag?: boolean;
|
|
1787
1824
|
/**
|
|
@@ -1817,13 +1854,13 @@ export type DragEditableCardProps = Omit<EditableCardProps, "onCustomWrapper"> &
|
|
|
1817
1854
|
* 1. 卡片数组必须有唯一值字段,通过参数 uidFieldKey 告诉组件
|
|
1818
1855
|
* ```
|
|
1819
1856
|
*/
|
|
1820
|
-
export declare const DragEditableCard: (props: DragEditableCardProps) => import("react").JSX.Element;
|
|
1857
|
+
export declare const DragEditableCard: (props: DragEditableCardProps) => import("react").React$1.JSX.Element;
|
|
1821
1858
|
export type TipsWrapperProps = {
|
|
1822
1859
|
gap?: number;
|
|
1823
1860
|
className?: string;
|
|
1824
|
-
style?: CSSProperties;
|
|
1825
|
-
children?: ReactNode;
|
|
1826
|
-
icon?: ReactElement;
|
|
1861
|
+
style?: React$1.CSSProperties;
|
|
1862
|
+
children?: React$1.ReactNode;
|
|
1863
|
+
icon?: React$1.ReactElement;
|
|
1827
1864
|
/** Icon添加点击事件,设置hoverTips后失效 */
|
|
1828
1865
|
onClick?: (event: any) => void;
|
|
1829
1866
|
/**
|
|
@@ -1854,7 +1891,7 @@ export type TipsWrapperProps = {
|
|
|
1854
1891
|
* <TipsWrapper onClick={noop}>ABC</TipsWrapper>
|
|
1855
1892
|
* ```
|
|
1856
1893
|
*/
|
|
1857
|
-
export declare const TipsWrapper: (props: TipsWrapperProps) => import("react").JSX.Element;
|
|
1894
|
+
export declare const TipsWrapper: (props: TipsWrapperProps) => import("react").React$1.JSX.Element;
|
|
1858
1895
|
export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
1859
1896
|
export type SelectorServiceConfig = {
|
|
1860
1897
|
params?: TPlainObject;
|
|
@@ -1919,11 +1956,11 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
|
|
|
1919
1956
|
label: string;
|
|
1920
1957
|
value: string | number;
|
|
1921
1958
|
};
|
|
1922
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
1959
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
1923
1960
|
onChange?: (value?: SelectorWrapperValue, selectedList?: TPlainObject[] | TPlainObject) => void;
|
|
1924
1961
|
showIcon?: boolean;
|
|
1925
1962
|
/** select option添加图标;与showIcon组合使用 */
|
|
1926
|
-
icon?: (data: TPlainObject, index: number) => ReactElement;
|
|
1963
|
+
icon?: (data: TPlainObject, index: number) => React$1.ReactElement;
|
|
1927
1964
|
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1928
1965
|
/**
|
|
1929
1966
|
* value格式
|
|
@@ -1975,7 +2012,7 @@ export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked"
|
|
|
1975
2012
|
* 6. 可设置 serviceConfig 配置服务调用交互
|
|
1976
2013
|
* ```
|
|
1977
2014
|
*/
|
|
1978
|
-
export declare const SwitchWrapper: (props: SwitchWrapperProps) => import("react").JSX.Element;
|
|
2015
|
+
export declare const SwitchWrapper: (props: SwitchWrapperProps) => import("react").React$1.JSX.Element;
|
|
1979
2016
|
export type UploadWrapperFileItem = {
|
|
1980
2017
|
uid: string;
|
|
1981
2018
|
name: string;
|
|
@@ -2022,7 +2059,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2022
2059
|
* ```
|
|
2023
2060
|
*/
|
|
2024
2061
|
extraOperate?: {
|
|
2025
|
-
icon: ReactElement;
|
|
2062
|
+
icon: React$1.ReactElement;
|
|
2026
2063
|
onClick: (file: UploadFile, fileList: UploadFile[], e: any) => void;
|
|
2027
2064
|
}[];
|
|
2028
2065
|
} & Omit<UploadProps, "onChange" | "fileList">;
|
|
@@ -2066,7 +2103,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2066
2103
|
* ```
|
|
2067
2104
|
*
|
|
2068
2105
|
*/
|
|
2069
|
-
export declare const UploadWrapper: (props: UploadWrapperProps) => import("react").JSX.Element;
|
|
2106
|
+
export declare const UploadWrapper: (props: UploadWrapperProps) => import("react").React$1.JSX.Element;
|
|
2070
2107
|
export type EditableTableName = string | number | Array<string | number>;
|
|
2071
2108
|
export type EditableTableRecordType = FormListFieldData & {
|
|
2072
2109
|
operation: FormListOperation;
|
|
@@ -2135,7 +2172,7 @@ export type EditableCustomConfig = {
|
|
|
2135
2172
|
editable?: boolean;
|
|
2136
2173
|
completeName: Array<number | string>;
|
|
2137
2174
|
tableRowIndex: number;
|
|
2138
|
-
}) => ReactElement;
|
|
2175
|
+
}) => React$1.ReactElement;
|
|
2139
2176
|
};
|
|
2140
2177
|
export type EditableTypeConfig = EditableCustomConfig | EditableInputConfig | EditableSelectWrapperConfig | EditableDatePickerWrapperConfig | EditableDateRangePickerWrapperConfig | EditableCheckboxGroupConfig | EditableTextareaConfig | EditableInputNumberConfig | EditableRadioGroupConfig | EditableFileUploadConfig | EditableSwitchWrapperConfig;
|
|
2141
2178
|
export type FieldSingleConfig = {
|
|
@@ -2154,7 +2191,7 @@ export type FieldSingleConfig = {
|
|
|
2154
2191
|
* 3. 同级配置 editableConfigList后,同级render配置失效
|
|
2155
2192
|
* 4. checkboxGroup、radioGroup、selectorWrapper第二次参数为options数组
|
|
2156
2193
|
*/
|
|
2157
|
-
render?: (params?: TAny, other?: TAny) => ReactNode;
|
|
2194
|
+
render?: (params?: TAny, other?: TAny) => React$1.ReactNode;
|
|
2158
2195
|
};
|
|
2159
2196
|
export type FormListItemMethodOperateProps = {
|
|
2160
2197
|
tableRowIndex: number;
|
|
@@ -2172,14 +2209,14 @@ export type FormListConfig = {
|
|
|
2172
2209
|
editableConfigList: Array<FieldSingleConfig & {
|
|
2173
2210
|
fieldName: string;
|
|
2174
2211
|
}>;
|
|
2175
|
-
onFormListBeforeRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
2176
|
-
onFormListAfterRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
2177
|
-
onFormListItemBeforeRender?: (data: FormListItemMethodOperateProps) => ReactElement | null;
|
|
2178
|
-
onFormListItemAfterRender?: (data: FormListItemMethodOperateProps) => ReactElement | null;
|
|
2212
|
+
onFormListBeforeRender?: (data: FormListMethodOperateProps) => React$1.ReactElement | null;
|
|
2213
|
+
onFormListAfterRender?: (data: FormListMethodOperateProps) => React$1.ReactElement | null;
|
|
2214
|
+
onFormListItemBeforeRender?: (data: FormListItemMethodOperateProps) => React$1.ReactElement | null;
|
|
2215
|
+
onFormListItemAfterRender?: (data: FormListItemMethodOperateProps) => React$1.ReactElement | null;
|
|
2179
2216
|
deleteOperateRender?: (data: {
|
|
2180
2217
|
remove: () => void;
|
|
2181
2218
|
formListItemIndex: number;
|
|
2182
|
-
}) => ReactElement;
|
|
2219
|
+
}) => React$1.ReactElement;
|
|
2183
2220
|
};
|
|
2184
2221
|
export type fieldConfigFunctionParams = {
|
|
2185
2222
|
tableRowIndex: number;
|
|
@@ -2232,9 +2269,9 @@ export type EditableTableColumn = Omit<ColumnsType["0"], "render"> & {
|
|
|
2232
2269
|
operation: FormListOperation;
|
|
2233
2270
|
index: number;
|
|
2234
2271
|
getTableRowData: () => TPlainObject;
|
|
2235
|
-
}) => ReactElement | null;
|
|
2272
|
+
}) => React$1.ReactElement | null;
|
|
2236
2273
|
/** table datasource children column 自定义渲染 */
|
|
2237
|
-
tableChildrenColumnRender?: (value: TAny, record: TPlainObject, index: number) => ReactElement | null;
|
|
2274
|
+
tableChildrenColumnRender?: (value: TAny, record: TPlainObject, index: number) => React$1.ReactElement | null;
|
|
2238
2275
|
/** 为表格header中的字段添加必填标识,无验证拦截功能 */
|
|
2239
2276
|
required?: boolean;
|
|
2240
2277
|
};
|
|
@@ -2268,11 +2305,11 @@ export type EditableTableProps = {
|
|
|
2268
2305
|
cellVerticalAlign?: "baseline" | "middle" | "top" | "bottom";
|
|
2269
2306
|
};
|
|
2270
2307
|
columns: EditableTableColumn[];
|
|
2271
|
-
onTableBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2308
|
+
onTableBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2272
2309
|
/**
|
|
2273
2310
|
* 设置后,将覆盖底部`新增`按钮
|
|
2274
2311
|
*/
|
|
2275
|
-
onTableAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2312
|
+
onTableAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2276
2313
|
/** 新增行默认值,自定义onTableAfterRender后失效 */
|
|
2277
2314
|
getAddRowDefaultValues?: () => TPlainObject;
|
|
2278
2315
|
/** 隐藏底部`新增`按钮,设置 onTableAfterRender后 失效 */
|
|
@@ -2295,7 +2332,7 @@ export type EditableTableProps = {
|
|
|
2295
2332
|
/** 空效果显示尺寸,默认值:small */
|
|
2296
2333
|
emptyShowSize?: "small" | "large";
|
|
2297
2334
|
className?: string;
|
|
2298
|
-
style?: CSSProperties;
|
|
2335
|
+
style?: React$1.CSSProperties;
|
|
2299
2336
|
};
|
|
2300
2337
|
/**
|
|
2301
2338
|
* 可编辑表格(通过FormList实现)
|
|
@@ -2310,12 +2347,12 @@ export type EditableTableProps = {
|
|
|
2310
2347
|
* 6. 4.5.0版本移除 ref.getTableItemDataByFormListItemKey 功能,可选择表格参考(https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable2)
|
|
2311
2348
|
* ```
|
|
2312
2349
|
*/
|
|
2313
|
-
export declare const EditableTable: (props: EditableTableProps) => import("react").JSX.Element;
|
|
2350
|
+
export declare const EditableTable: (props: EditableTableProps) => import("react").React$1.JSX.Element;
|
|
2314
2351
|
export type DragEditableTableProps = EditableTableProps & {
|
|
2315
2352
|
/**
|
|
2316
2353
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
2317
2354
|
*/
|
|
2318
|
-
dragIcon?: ReactElement;
|
|
2355
|
+
dragIcon?: React$1.ReactElement;
|
|
2319
2356
|
/** 禁用拖拽 */
|
|
2320
2357
|
disabledDrag?: boolean;
|
|
2321
2358
|
/**
|
|
@@ -2349,7 +2386,7 @@ export type DragEditableTableProps = EditableTableProps & {
|
|
|
2349
2386
|
* 2. Table 参数 components.body.row 被组件内部使用
|
|
2350
2387
|
* ```
|
|
2351
2388
|
*/
|
|
2352
|
-
export declare const DragEditableTable: (props: DragEditableTableProps) => import("react").JSX.Element;
|
|
2389
|
+
export declare const DragEditableTable: (props: DragEditableTableProps) => import("react").React$1.JSX.Element;
|
|
2353
2390
|
export type EditableTableProDataIndex = string | readonly (string | number)[];
|
|
2354
2391
|
export interface EditableTableProOperation {
|
|
2355
2392
|
add: (defaultValue: TPlainObject, insertIndex?: number) => void;
|
|
@@ -2377,7 +2414,7 @@ export interface EditableTableProOperation {
|
|
|
2377
2414
|
validateRowFields: (nameList: EditableTableProDataIndex[]) => Promise<void>;
|
|
2378
2415
|
}
|
|
2379
2416
|
export type EditableTableProColumnItem = Omit<ColumnsType[0], "render" | "title" | "dataIndex"> & {
|
|
2380
|
-
title?: ReactElement | string;
|
|
2417
|
+
title?: React$1.ReactElement | string;
|
|
2381
2418
|
dataIndex?: EditableTableProDataIndex;
|
|
2382
2419
|
/** Form.Item props */
|
|
2383
2420
|
formItemProps?: Omit<FormItemWrapperProps, "children" | "name"> | ((value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => Omit<FormItemWrapperProps, "children" | "name">);
|
|
@@ -2413,7 +2450,7 @@ export type EditableTableProColumnItem = Omit<ColumnsType[0], "render" | "title"
|
|
|
2413
2450
|
* }
|
|
2414
2451
|
* ```
|
|
2415
2452
|
*/
|
|
2416
|
-
render?: (value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => ReactElement;
|
|
2453
|
+
render?: (value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => React$1.ReactElement;
|
|
2417
2454
|
/** 是否可编辑 */
|
|
2418
2455
|
editable: boolean | ((record: TPlainObject, index: number) => boolean);
|
|
2419
2456
|
/**
|
|
@@ -2467,15 +2504,15 @@ export type EditableTableProProps = {
|
|
|
2467
2504
|
*/
|
|
2468
2505
|
rules?: FormListProps["rules"];
|
|
2469
2506
|
className?: string;
|
|
2470
|
-
style?: CSSProperties;
|
|
2507
|
+
style?: React$1.CSSProperties;
|
|
2471
2508
|
/**`默认新增按钮`新增行默认值,hiddenFooterBtn != true 有效 */
|
|
2472
2509
|
addRowDefaultValues?: () => TPlainObject;
|
|
2473
2510
|
/** 隐藏底部`新增`按钮 */
|
|
2474
2511
|
hiddenFooterBtn?: boolean;
|
|
2475
2512
|
/** 表格顶部区域渲染 */
|
|
2476
|
-
tableBeforeAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2513
|
+
tableBeforeAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2477
2514
|
/** 表格底部区域渲染 */
|
|
2478
|
-
tableAfterAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2515
|
+
tableAfterAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2479
2516
|
/** 展开的行key,一般用于初始化,重新tableProps.expandable.expandedRowKeys后失效 */
|
|
2480
2517
|
expandedRowKeys?: string[];
|
|
2481
2518
|
/**
|
|
@@ -2504,12 +2541,12 @@ export type EditableTableProProps = {
|
|
|
2504
2541
|
* https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable4
|
|
2505
2542
|
* ```
|
|
2506
2543
|
*/
|
|
2507
|
-
export declare const EditableTablePro: (props: EditableTableProProps) => import("react").JSX.Element;
|
|
2544
|
+
export declare const EditableTablePro: (props: EditableTableProProps) => import("react").React$1.JSX.Element;
|
|
2508
2545
|
export type DragEditableTableProProps = EditableTableProProps & {
|
|
2509
2546
|
/**
|
|
2510
2547
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
2511
2548
|
*/
|
|
2512
|
-
dragIcon?: ReactElement;
|
|
2549
|
+
dragIcon?: React$1.ReactElement;
|
|
2513
2550
|
/** 禁用拖拽 */
|
|
2514
2551
|
disabledDrag?: boolean;
|
|
2515
2552
|
/**
|
|
@@ -2544,15 +2581,15 @@ export type DragEditableTableProProps = EditableTableProProps & {
|
|
|
2544
2581
|
* 4. 存在多级的情况下,通过上移、下移操作按钮,调用 column.render.operation.move 方法实现同一级内移动
|
|
2545
2582
|
* ```
|
|
2546
2583
|
*/
|
|
2547
|
-
export declare const DragEditableTablePro: (props: DragEditableTableProProps) => import("react").JSX.Element;
|
|
2584
|
+
export declare const DragEditableTablePro: (props: DragEditableTableProProps) => import("react").React$1.JSX.Element;
|
|
2548
2585
|
export type FormItemHorizontalUnionProps = {
|
|
2549
2586
|
className?: string;
|
|
2550
|
-
style?: CSSProperties;
|
|
2551
|
-
label?: string | ReactElement;
|
|
2587
|
+
style?: React$1.CSSProperties;
|
|
2588
|
+
label?: string | React$1.ReactElement;
|
|
2552
2589
|
/** 水平布局元素 */
|
|
2553
2590
|
groupConfigList: {
|
|
2554
2591
|
hidden?: boolean;
|
|
2555
|
-
before?: ReactElement | string;
|
|
2592
|
+
before?: React$1.ReactElement | string;
|
|
2556
2593
|
/**
|
|
2557
2594
|
* 设置宽度
|
|
2558
2595
|
* ```
|
|
@@ -2563,12 +2600,12 @@ export type FormItemHorizontalUnionProps = {
|
|
|
2563
2600
|
* ```
|
|
2564
2601
|
*/
|
|
2565
2602
|
width?: number | string;
|
|
2566
|
-
mainItem: ReactElement;
|
|
2567
|
-
after?: ReactElement | string;
|
|
2603
|
+
mainItem: React$1.ReactElement;
|
|
2604
|
+
after?: React$1.ReactElement | string;
|
|
2568
2605
|
}[];
|
|
2569
2606
|
/** 水平布局原始之间的间距 */
|
|
2570
2607
|
gap?: number;
|
|
2571
|
-
flexLayoutStyle?: CSSProperties;
|
|
2608
|
+
flexLayoutStyle?: React$1.CSSProperties;
|
|
2572
2609
|
flexLayoutClassName?: string;
|
|
2573
2610
|
hidden?: boolean;
|
|
2574
2611
|
required?: boolean;
|
|
@@ -2604,8 +2641,8 @@ export type DragFormListContentProps = {
|
|
|
2604
2641
|
};
|
|
2605
2642
|
export type DragFormListProps = {
|
|
2606
2643
|
className?: string;
|
|
2607
|
-
style?: CSSProperties;
|
|
2608
|
-
itemStyle?: CSSProperties;
|
|
2644
|
+
style?: React$1.CSSProperties;
|
|
2645
|
+
itemStyle?: React$1.CSSProperties;
|
|
2609
2646
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
2610
2647
|
uidFieldName?: string;
|
|
2611
2648
|
/** formList name */
|
|
@@ -2621,7 +2658,7 @@ export type DragFormListProps = {
|
|
|
2621
2658
|
/** 拖拽回调 */
|
|
2622
2659
|
onDropChange?: (items: TPlainObject[]) => void;
|
|
2623
2660
|
/** 设置拖拽图标 */
|
|
2624
|
-
dragIcon?: ReactElement;
|
|
2661
|
+
dragIcon?: React$1.ReactElement;
|
|
2625
2662
|
/** 禁用拖拽,拖拽图标隐藏 */
|
|
2626
2663
|
dragDisabled?: boolean;
|
|
2627
2664
|
/** 设置item禁止拖拽 */
|
|
@@ -2631,15 +2668,15 @@ export type DragFormListProps = {
|
|
|
2631
2668
|
/** 隐藏新增行按钮 */
|
|
2632
2669
|
hiddenAddRowButton?: boolean;
|
|
2633
2670
|
/** 自定义新增行按钮,getAddRowDefaultValues配置失效 */
|
|
2634
|
-
onCustomAddRowButton?: (operation: FormListOperation) => ReactElement;
|
|
2671
|
+
onCustomAddRowButton?: (operation: FormListOperation) => React$1.ReactElement;
|
|
2635
2672
|
/** formListItem 内容 */
|
|
2636
|
-
children: (data: DragFormListContentProps) => ReactElement;
|
|
2673
|
+
children: (data: DragFormListContentProps) => React$1.ReactElement;
|
|
2637
2674
|
/** 隐藏数据为空渲染 */
|
|
2638
2675
|
hiddenEmptyRender?: boolean;
|
|
2639
2676
|
/** formList内部渲染包装,多用于FormListWrapper嵌套布局 */
|
|
2640
2677
|
formListChildrenWrapper?: (props: {
|
|
2641
|
-
children: ReactElement;
|
|
2642
|
-
}) => ReactElement;
|
|
2678
|
+
children: React$1.ReactElement;
|
|
2679
|
+
}) => React$1.ReactElement;
|
|
2643
2680
|
/**
|
|
2644
2681
|
* Form.List rules
|
|
2645
2682
|
* ```
|
|
@@ -2682,7 +2719,7 @@ export type DragFormListProps = {
|
|
|
2682
2719
|
* 2. 通过 itemGap 设置FormList Item 之间间隙
|
|
2683
2720
|
* ```
|
|
2684
2721
|
*/
|
|
2685
|
-
export declare const DragFormList: (props: DragFormListProps) => import("react").JSX.Element;
|
|
2722
|
+
export declare const DragFormList: (props: DragFormListProps) => import("react").React$1.JSX.Element;
|
|
2686
2723
|
export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
2687
2724
|
/**
|
|
2688
2725
|
* ```
|
|
@@ -2690,7 +2727,7 @@ export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
|
2690
2727
|
* 2. dragIcon = false,可设置表格行拖拽
|
|
2691
2728
|
* ```
|
|
2692
2729
|
*/
|
|
2693
|
-
dragIcon?: false | ReactElement;
|
|
2730
|
+
dragIcon?: false | React$1.ReactElement;
|
|
2694
2731
|
/** 表格数据唯一值字段Key,未填或者无法唯一,都不能拖拽能力 */
|
|
2695
2732
|
uidFieldKey: string;
|
|
2696
2733
|
dataSource?: TPlainObject[];
|
|
@@ -2720,13 +2757,13 @@ export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
|
2720
2757
|
* 3. Table 参数 components.body.row 被组件内部使用
|
|
2721
2758
|
* ```
|
|
2722
2759
|
*/
|
|
2723
|
-
export declare const DragTable: (props: DragTableProps) => import("react").JSX.Element;
|
|
2760
|
+
export declare const DragTable: (props: DragTableProps) => import("react").React$1.JSX.Element;
|
|
2724
2761
|
export type TDynamicNodeProps = {
|
|
2725
2762
|
className?: string;
|
|
2726
2763
|
getContainer?: HTMLElement | (() => HTMLElement) | string;
|
|
2727
|
-
content?: ReactElement;
|
|
2764
|
+
content?: React$1.ReactElement;
|
|
2728
2765
|
fixed?: boolean;
|
|
2729
|
-
style?: CSSProperties;
|
|
2766
|
+
style?: React$1.CSSProperties;
|
|
2730
2767
|
};
|
|
2731
2768
|
/**
|
|
2732
2769
|
* 动态添加 element 元素
|
|
@@ -2752,7 +2789,7 @@ export type TEasyTableTableColumn<T> = ColumnsType<T>[0] & {
|
|
|
2752
2789
|
*/
|
|
2753
2790
|
tooltip?: string | {
|
|
2754
2791
|
content: string;
|
|
2755
|
-
icon?: ReactElement;
|
|
2792
|
+
icon?: React$1.ReactElement;
|
|
2756
2793
|
hoverArea?: "icon" | "all";
|
|
2757
2794
|
};
|
|
2758
2795
|
dataIndex?: keyof T | (string & {});
|
|
@@ -2777,7 +2814,7 @@ export type TEasyTableTableColumn<T> = ColumnsType<T>[0] & {
|
|
|
2777
2814
|
* 3. respData为异步返回数据
|
|
2778
2815
|
* ```
|
|
2779
2816
|
*/
|
|
2780
|
-
asyncRender?: (value: TAny, record: T, index: number, respData?: TAny) => ReactNode;
|
|
2817
|
+
asyncRender?: (value: TAny, record: T, index: number, respData?: TAny) => React$1.ReactNode;
|
|
2781
2818
|
/** 设置默认值,当数据为【undefined、null、''】时显示;自定义render后失效 */
|
|
2782
2819
|
defaultValue?: string;
|
|
2783
2820
|
};
|
|
@@ -2822,8 +2859,8 @@ export type EasyTableServiceConfig = {
|
|
|
2822
2859
|
};
|
|
2823
2860
|
export type EasyTableProps = {
|
|
2824
2861
|
className?: string;
|
|
2825
|
-
style?: CSSProperties;
|
|
2826
|
-
children: ReactElement | ReactElement[] | ((dataSource?: TAny) => ReactElement);
|
|
2862
|
+
style?: React$1.CSSProperties;
|
|
2863
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((dataSource?: TAny) => React$1.ReactElement);
|
|
2827
2864
|
/**
|
|
2828
2865
|
* EasyTable唯一值,可用于缓存查询条件
|
|
2829
2866
|
* @deprecated 已过时,如果需要缓存数据请设置 cacheKey 参数
|
|
@@ -2923,7 +2960,7 @@ export type EasyTableProps = {
|
|
|
2923
2960
|
/** 隐藏默认触发节点 */
|
|
2924
2961
|
hidden?: boolean;
|
|
2925
2962
|
/** 自定义图标 */
|
|
2926
|
-
icon?: ReactElement;
|
|
2963
|
+
icon?: React$1.ReactElement;
|
|
2927
2964
|
/** 文本 */
|
|
2928
2965
|
text?: string;
|
|
2929
2966
|
/** 鼠标悬浮文案 */
|
|
@@ -2993,7 +3030,7 @@ export type EasyTableRefApi = {
|
|
|
2993
3030
|
/** 修改表格数据源,会触发onDataSourceChange函数 */
|
|
2994
3031
|
onUpdateDataSource: (dataList: TPlainObject[]) => void;
|
|
2995
3032
|
/** 自定义字段折叠触发位置,默认位置在最后一个字段标题右侧 */
|
|
2996
|
-
columnFoldTriggerRender: (children: ReactElement, columns: TEasyTableTableColumn<TPlainObject>[]) => ReactElement;
|
|
3033
|
+
columnFoldTriggerRender: (children: React$1.ReactElement, columns: TEasyTableTableColumn<TPlainObject>[]) => React$1.ReactElement;
|
|
2997
3034
|
/** 查询loading状态 */
|
|
2998
3035
|
loading?: boolean;
|
|
2999
3036
|
/**
|
|
@@ -3010,8 +3047,8 @@ export type EasyTableRefApi = {
|
|
|
3010
3047
|
};
|
|
3011
3048
|
export type FormOperateColProps = {
|
|
3012
3049
|
className?: string;
|
|
3013
|
-
leftList?: Array<ReactElement | null>;
|
|
3014
|
-
rightList?: Array<ReactElement | null>;
|
|
3050
|
+
leftList?: Array<React$1.ReactElement | null>;
|
|
3051
|
+
rightList?: Array<React$1.ReactElement | null>;
|
|
3015
3052
|
justify?: RowProps["justify"];
|
|
3016
3053
|
/** 强制单独一行 */
|
|
3017
3054
|
forceAloneRow?: boolean;
|
|
@@ -3020,7 +3057,7 @@ export type FormOperateColProps = {
|
|
|
3020
3057
|
rightSpaceProps?: SpaceProps;
|
|
3021
3058
|
};
|
|
3022
3059
|
export type FormRowProps = RowProps & {
|
|
3023
|
-
children?: ReactNode | ReactNode[];
|
|
3060
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
3024
3061
|
/**
|
|
3025
3062
|
* default = { xs: 24, sm: 12, md: 8, lg: 8, xl: 8, xxl: 6 };
|
|
3026
3063
|
* small = { xs: 24, sm: 12, md: 8, lg: 6, xl: 6, xxl: 6 };
|
|
@@ -3028,7 +3065,7 @@ export type FormRowProps = RowProps & {
|
|
|
3028
3065
|
gridSize?: "default" | "small";
|
|
3029
3066
|
};
|
|
3030
3067
|
export type EasyTableFilterProps = {
|
|
3031
|
-
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
3068
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance) => React$1.ReactElement);
|
|
3032
3069
|
/** isPure = true时无效 */
|
|
3033
3070
|
filterOperate?: (form: FormInstance) => FormOperateColProps;
|
|
3034
3071
|
/** 是否为纯净模式(查询条件布局是否自定义), */
|
|
@@ -3054,9 +3091,9 @@ export type EasyTableFilterProps = {
|
|
|
3054
3091
|
/**
|
|
3055
3092
|
* @deprecated已过期,使用 easyFormProps.style 配置
|
|
3056
3093
|
*/
|
|
3057
|
-
formStyle?: CSSProperties;
|
|
3094
|
+
formStyle?: React$1.CSSProperties;
|
|
3058
3095
|
/** filter Form 外层 BlockLayout style */
|
|
3059
|
-
filterWrapperStyle?: CSSProperties;
|
|
3096
|
+
filterWrapperStyle?: React$1.CSSProperties;
|
|
3060
3097
|
/** filter Form 外层 BlockLayout className */
|
|
3061
3098
|
filterWrapperClassName?: string;
|
|
3062
3099
|
/**
|
|
@@ -3073,7 +3110,7 @@ export type EasyTableFilterProps = {
|
|
|
3073
3110
|
easyFormProps?: Omit<EasyFormProps, "isPure" | "column" | "forceColumn" | "width" | "gridGutter" | "children">;
|
|
3074
3111
|
};
|
|
3075
3112
|
export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey" | "columns"> & {
|
|
3076
|
-
children?: ReactElement | ReactElement[];
|
|
3113
|
+
children?: React$1.ReactElement | React$1.ReactElement[];
|
|
3077
3114
|
/**
|
|
3078
3115
|
* 表格行 key 的取值,
|
|
3079
3116
|
* ```
|
|
@@ -3085,7 +3122,7 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
3085
3122
|
*/
|
|
3086
3123
|
rowKey: TableProps<TAny>["rowKey"];
|
|
3087
3124
|
/** table Form 外层 SimpleLayout className */
|
|
3088
|
-
tableWrapperStyle?: CSSProperties;
|
|
3125
|
+
tableWrapperStyle?: React$1.CSSProperties;
|
|
3089
3126
|
/** table Form 外层 SimpleLayout className */
|
|
3090
3127
|
tableWrapperClassName?: string;
|
|
3091
3128
|
/**
|
|
@@ -3159,7 +3196,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3159
3196
|
* 8. 通过easyFormProps属性可整体控制子节点FormItem布局
|
|
3160
3197
|
*```
|
|
3161
3198
|
*/
|
|
3162
|
-
Filter: (props: EasyTableFilterProps) => import("react").JSX.Element;
|
|
3199
|
+
Filter: (props: EasyTableFilterProps) => import("react").React$1.JSX.Element;
|
|
3163
3200
|
/**
|
|
3164
3201
|
* 表格渲染
|
|
3165
3202
|
* @param props
|
|
@@ -3168,7 +3205,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3168
3205
|
* 2. 分页功能已内置处理,不调用 onChange
|
|
3169
3206
|
* ```
|
|
3170
3207
|
*/
|
|
3171
|
-
Table: <T extends import("@flatbiz/utils").TPlainObject>(props: EasyTableTableProps<T>) => import("react").JSX.Element;
|
|
3208
|
+
Table: <T extends import("@flatbiz/utils").TPlainObject>(props: EasyTableTableProps<T>) => import("react").React$1.JSX.Element;
|
|
3172
3209
|
/**
|
|
3173
3210
|
* @deprecated 已过时 4.3.0版本移除,请使用 useEasyTable
|
|
3174
3211
|
*/
|
|
@@ -3191,15 +3228,15 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3191
3228
|
* https://fex.qa.tcshuke.com/docs/admin/main/form/grid
|
|
3192
3229
|
* ```
|
|
3193
3230
|
*/
|
|
3194
|
-
export declare const EditableCard: (props: EditableCardProps) => import("react").JSX.Element;
|
|
3231
|
+
export declare const EditableCard: (props: EditableCardProps) => import("react").React$1.JSX.Element;
|
|
3195
3232
|
export interface EditableFieldProps {
|
|
3196
3233
|
className?: string;
|
|
3197
|
-
style?: CSSProperties;
|
|
3198
|
-
editRender: ReactElement | ((data: {
|
|
3234
|
+
style?: React$1.CSSProperties;
|
|
3235
|
+
editRender: React$1.ReactElement | ((data: {
|
|
3199
3236
|
value?: TAny;
|
|
3200
3237
|
onChange?: (data?: TAny) => void;
|
|
3201
|
-
}) => ReactElement);
|
|
3202
|
-
viewRender?: (value?: TAny) => ReactNode;
|
|
3238
|
+
}) => React$1.ReactElement);
|
|
3239
|
+
viewRender?: (value?: TAny) => React$1.ReactNode;
|
|
3203
3240
|
value?: TAny;
|
|
3204
3241
|
onChange?: (data?: TAny) => void;
|
|
3205
3242
|
placeholderValue?: string;
|
|
@@ -3221,13 +3258,13 @@ export interface EditableFieldProps {
|
|
|
3221
3258
|
iconConfig?: {
|
|
3222
3259
|
editIcon?: (options: {
|
|
3223
3260
|
onClick: () => void;
|
|
3224
|
-
}) => ReactElement;
|
|
3261
|
+
}) => React$1.ReactElement;
|
|
3225
3262
|
confirmIcon?: (options: {
|
|
3226
3263
|
onClick: () => void;
|
|
3227
|
-
}) => ReactElement;
|
|
3264
|
+
}) => React$1.ReactElement;
|
|
3228
3265
|
cancelIcon?: (options: {
|
|
3229
3266
|
onClick: () => void;
|
|
3230
|
-
}) => ReactElement;
|
|
3267
|
+
}) => React$1.ReactElement;
|
|
3231
3268
|
};
|
|
3232
3269
|
}
|
|
3233
3270
|
/**
|
|
@@ -3244,7 +3281,7 @@ export interface EditableFieldProps {
|
|
|
3244
3281
|
*/
|
|
3245
3282
|
export declare const EditableField: (props: EditableFieldProps) => any;
|
|
3246
3283
|
export interface EditableFieldProviderProps {
|
|
3247
|
-
children: ReactElement;
|
|
3284
|
+
children: React$1.ReactElement;
|
|
3248
3285
|
/** 是否只读 */
|
|
3249
3286
|
readonly?: boolean;
|
|
3250
3287
|
/** 是否编辑状态 */
|
|
@@ -3257,7 +3294,7 @@ export interface EditableFieldProviderProps {
|
|
|
3257
3294
|
* @param props
|
|
3258
3295
|
* @returns
|
|
3259
3296
|
*/
|
|
3260
|
-
export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => import("react").JSX.Element;
|
|
3297
|
+
export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => import("react").React$1.JSX.Element;
|
|
3261
3298
|
export interface ErrorBoundaryProps {
|
|
3262
3299
|
message?: ReactNode;
|
|
3263
3300
|
description?: ReactNode;
|
|
@@ -3287,13 +3324,13 @@ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBou
|
|
|
3287
3324
|
*/
|
|
3288
3325
|
export declare const ErrorBoundaryWrapper: typeof ErrorBoundary;
|
|
3289
3326
|
export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "footer" | "extra"> & {
|
|
3290
|
-
okText?: string | ReactElement;
|
|
3291
|
-
cancelText?: string | ReactElement;
|
|
3292
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3293
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3294
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
3327
|
+
okText?: string | React$1.ReactElement;
|
|
3328
|
+
cancelText?: string | React$1.ReactElement;
|
|
3329
|
+
onOk?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3330
|
+
onCancel?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3331
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
3295
3332
|
onClose: DrawerProps["onClose"];
|
|
3296
|
-
}) => ReactElement);
|
|
3333
|
+
}) => React$1.ReactElement);
|
|
3297
3334
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
3298
3335
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children">;
|
|
3299
3336
|
okHidden?: boolean;
|
|
@@ -3301,14 +3338,14 @@ export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
3301
3338
|
/** 设置操作区域位置 */
|
|
3302
3339
|
operatePosition?: "header" | "footer";
|
|
3303
3340
|
/** 右上角自定义内容,如果operatePosition=header,此设置无效 */
|
|
3304
|
-
extra?: ReactNode | ((form: FormInstance) => ReactElement);
|
|
3341
|
+
extra?: React$1.ReactNode | ((form: FormInstance) => React$1.ReactElement);
|
|
3305
3342
|
/**
|
|
3306
3343
|
* ```
|
|
3307
3344
|
* 1. 自定义弹框操作区域,通过 operatePosition 配置可以自定义位置
|
|
3308
3345
|
* 2. extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
3309
3346
|
* ```
|
|
3310
3347
|
*/
|
|
3311
|
-
operateRender?: (form: FormInstance, extraData?: TPlainObject) => ReactElement;
|
|
3348
|
+
operateRender?: (form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement;
|
|
3312
3349
|
};
|
|
3313
3350
|
export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
|
|
3314
3351
|
/**
|
|
@@ -3319,12 +3356,12 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
3319
3356
|
* ```
|
|
3320
3357
|
*/
|
|
3321
3358
|
size?: "small" | "middle" | "large" | null;
|
|
3322
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3323
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3359
|
+
onOk?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3360
|
+
onCancel?: (form: FormInstance, e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3324
3361
|
onClose?: () => void;
|
|
3325
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
3362
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
3326
3363
|
onClose: TNoopDefine;
|
|
3327
|
-
}) => ReactElement);
|
|
3364
|
+
}) => React$1.ReactElement);
|
|
3328
3365
|
okHidden?: boolean;
|
|
3329
3366
|
cancelHidden?: boolean;
|
|
3330
3367
|
okButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
|
|
@@ -3338,20 +3375,20 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
3338
3375
|
* ```
|
|
3339
3376
|
*/
|
|
3340
3377
|
bodyHeightPercent?: number;
|
|
3341
|
-
titleExtra?: ReactElement;
|
|
3378
|
+
titleExtra?: React$1.ReactElement;
|
|
3342
3379
|
/**
|
|
3343
3380
|
* null则隐藏footer
|
|
3344
3381
|
* ```
|
|
3345
3382
|
* extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
3346
3383
|
* ```
|
|
3347
3384
|
*/
|
|
3348
|
-
footer?: null | ReactElement | ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => ReactElement);
|
|
3385
|
+
footer?: null | React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement);
|
|
3349
3386
|
/** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
|
|
3350
3387
|
bodyHeight?: number;
|
|
3351
3388
|
};
|
|
3352
3389
|
export type FbaAppConfirmProps = FbaAppModalProps;
|
|
3353
3390
|
export type FbaAppAlertProps = Omit<FbaAppModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
|
|
3354
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3391
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3355
3392
|
};
|
|
3356
3393
|
export type FbaAppLoadingProps = {
|
|
3357
3394
|
className?: string;
|
|
@@ -3360,7 +3397,7 @@ export type FbaAppLoadingProps = {
|
|
|
3360
3397
|
};
|
|
3361
3398
|
export declare const FbaApp: ((props: {
|
|
3362
3399
|
children: import("react").ReactNode;
|
|
3363
|
-
}) => import("react").JSX.Element) & {
|
|
3400
|
+
}) => import("react").React$1.JSX.Element) & {
|
|
3364
3401
|
/** 不支持多次弹框,第二个弹框可使用useDialogDrawer2 */
|
|
3365
3402
|
useDialogDrawer: () => {
|
|
3366
3403
|
appDialogDrawer: {
|
|
@@ -3471,6 +3508,7 @@ export declare const fbaHooks: {
|
|
|
3471
3508
|
];
|
|
3472
3509
|
useMemoCustom: <T>(fn: () => T, deps: import("react").DependencyList) => T;
|
|
3473
3510
|
useCopyRemoveSpace: (props?: CopyRemoveSpaceProps) => void;
|
|
3511
|
+
useUuid: () => string;
|
|
3474
3512
|
};
|
|
3475
3513
|
declare function attachPropertiesToComponent<C, P extends Record<string, unknown>>(component: C, properties: P): C & P;
|
|
3476
3514
|
export declare const fbaUtils: {
|
|
@@ -3510,11 +3548,11 @@ export declare const fbaUtils: {
|
|
|
3510
3548
|
};
|
|
3511
3549
|
export type FileExportProps = {
|
|
3512
3550
|
/** 触发节点 */
|
|
3513
|
-
action: (ReactElement & {
|
|
3551
|
+
action: (React$1.ReactElement & {
|
|
3514
3552
|
onClick?: (e: any) => void;
|
|
3515
3553
|
}) | ((data: {
|
|
3516
3554
|
onClick: (e: any) => void;
|
|
3517
|
-
}) => ReactElement);
|
|
3555
|
+
}) => React$1.ReactElement);
|
|
3518
3556
|
/**
|
|
3519
3557
|
* 获取文件流数据
|
|
3520
3558
|
* ```
|
|
@@ -3549,14 +3587,14 @@ export type FileExportProps = {
|
|
|
3549
3587
|
/>
|
|
3550
3588
|
* ```
|
|
3551
3589
|
*/
|
|
3552
|
-
export declare const FileExport: (props: FileExportProps) => import("react").JSX.Element;
|
|
3590
|
+
export declare const FileExport: (props: FileExportProps) => import("react").React$1.JSX.Element;
|
|
3553
3591
|
export type FileImportProps = {
|
|
3554
3592
|
/** 上传文件接口返回处理 */
|
|
3555
3593
|
onImportFinish: (data?: TAny) => void;
|
|
3556
|
-
buttonName?: string | ReactElement;
|
|
3557
|
-
children?: ReactNode | ((data: {
|
|
3594
|
+
buttonName?: string | React$1.ReactElement;
|
|
3595
|
+
children?: React$1.ReactNode | ((data: {
|
|
3558
3596
|
loading: boolean;
|
|
3559
|
-
}) => ReactNode);
|
|
3597
|
+
}) => React$1.ReactNode);
|
|
3560
3598
|
} & Omit<UploadProps, "fileList" | "showUploadList" | "itemRender" | "listType" | "multiple" | "previewFile" | "progress" | "onChange" | "onDownload" | "onRemove" | "onPreview" | "directory" | "customRequest" | "defaultFileList" | "iconRender">;
|
|
3561
3599
|
/**
|
|
3562
3600
|
* 文件导入
|
|
@@ -3577,15 +3615,15 @@ export type FileImportProps = {
|
|
|
3577
3615
|
* ```
|
|
3578
3616
|
*/
|
|
3579
3617
|
export declare const FileImport: {
|
|
3580
|
-
(props: FileImportProps): import("react").JSX.Element;
|
|
3618
|
+
(props: FileImportProps): import("react").React$1.JSX.Element;
|
|
3581
3619
|
defaultProps: {
|
|
3582
3620
|
name: string;
|
|
3583
3621
|
accept: string;
|
|
3584
3622
|
};
|
|
3585
3623
|
};
|
|
3586
3624
|
export type FileSelectProps = {
|
|
3587
|
-
buttonName?: string | ReactElement;
|
|
3588
|
-
children?: ReactNode;
|
|
3625
|
+
buttonName?: string | React$1.ReactElement;
|
|
3626
|
+
children?: React$1.ReactNode;
|
|
3589
3627
|
/** 上传按钮与文件排版 默认:horizontal */
|
|
3590
3628
|
direction?: "horizontal" | "hertical";
|
|
3591
3629
|
/** 可选择文件格式,默认:.xlsx,.xls */
|
|
@@ -3599,7 +3637,7 @@ export type FileSelectProps = {
|
|
|
3599
3637
|
* 默认选择文件格式:.xlsx,.xls
|
|
3600
3638
|
* ```
|
|
3601
3639
|
*/
|
|
3602
|
-
export declare const FileSelect: (props: FileSelectProps) => import("react").JSX.Element;
|
|
3640
|
+
export declare const FileSelect: (props: FileSelectProps) => import("react").React$1.JSX.Element;
|
|
3603
3641
|
export type FlexLayoutProps = {
|
|
3604
3642
|
className?: string;
|
|
3605
3643
|
/** 子组件铺满的索引值,从0开始 */
|
|
@@ -3607,10 +3645,10 @@ export type FlexLayoutProps = {
|
|
|
3607
3645
|
/**方向,默认值vertical */
|
|
3608
3646
|
direction?: "vertical" | "horizontal";
|
|
3609
3647
|
onClick?: () => void;
|
|
3610
|
-
style?: CSSProperties;
|
|
3648
|
+
style?: React$1.CSSProperties;
|
|
3611
3649
|
/** 间隙尺寸 */
|
|
3612
3650
|
gap?: number;
|
|
3613
|
-
children?: ReactNode | null | Array<ReactNode | null>;
|
|
3651
|
+
children?: React$1.ReactNode | null | Array<React$1.ReactNode | null>;
|
|
3614
3652
|
};
|
|
3615
3653
|
/**
|
|
3616
3654
|
* flex布局,主要用于Flex结构性布局
|
|
@@ -3618,7 +3656,7 @@ export type FlexLayoutProps = {
|
|
|
3618
3656
|
* 4.2.87版本中将fullIndex改为了必填属性,如果在升级中遇到问题,不确定怎么写,可设置 fullIndex=[] 保持原样
|
|
3619
3657
|
* ```
|
|
3620
3658
|
*/
|
|
3621
|
-
export declare const FlexLayout: (props: FlexLayoutProps) => import("react").JSX.Element;
|
|
3659
|
+
export declare const FlexLayout: (props: FlexLayoutProps) => import("react").React$1.JSX.Element;
|
|
3622
3660
|
export type FormColProps = {
|
|
3623
3661
|
/** 栅格占位格数,替换lg、xl、xxl默认数据 */
|
|
3624
3662
|
span?: number;
|
|
@@ -3636,7 +3674,7 @@ export type FormColProps = {
|
|
|
3636
3674
|
xxl?: number;
|
|
3637
3675
|
/** 强制单独一行 */
|
|
3638
3676
|
forceAloneRow?: boolean;
|
|
3639
|
-
children?: ReactNode | ReactNode[];
|
|
3677
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
3640
3678
|
hidden?: boolean;
|
|
3641
3679
|
};
|
|
3642
3680
|
export declare const FormGrid: {
|
|
@@ -3647,7 +3685,7 @@ export declare const FormGrid: {
|
|
|
3647
3685
|
* 2. 子元素只能是 FormGrid.Col、FormGrid.OperateCol,其他会被忽略
|
|
3648
3686
|
* 3. 所有子元素中只能存在一个 FormGrid.OperateCol
|
|
3649
3687
|
*/
|
|
3650
|
-
Row: (props: FormRowProps) => import("react").JSX.Element;
|
|
3688
|
+
Row: (props: FormRowProps) => import("react").React$1.JSX.Element;
|
|
3651
3689
|
/**
|
|
3652
3690
|
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
3653
3691
|
*```
|
|
@@ -3662,7 +3700,7 @@ export declare const FormGrid: {
|
|
|
3662
3700
|
* ```
|
|
3663
3701
|
*/
|
|
3664
3702
|
Col: {
|
|
3665
|
-
(props: FormColProps): import("react").JSX.Element | null;
|
|
3703
|
+
(props: FormColProps): import("react").React$1.JSX.Element | null;
|
|
3666
3704
|
domTypeName: string;
|
|
3667
3705
|
};
|
|
3668
3706
|
/**
|
|
@@ -3675,35 +3713,35 @@ export declare const FormGrid: {
|
|
|
3675
3713
|
* ```
|
|
3676
3714
|
*/
|
|
3677
3715
|
OperateCol: {
|
|
3678
|
-
(props: FormOperateColProps): import("react").JSX.Element | null;
|
|
3716
|
+
(props: FormOperateColProps): import("react").React$1.JSX.Element | null;
|
|
3679
3717
|
domTypeName: string;
|
|
3680
3718
|
};
|
|
3681
3719
|
};
|
|
3682
3720
|
export type FormItemCardProps = {
|
|
3683
|
-
title?: string | ReactElement;
|
|
3684
|
-
children: ReactElement | ReactElement[];
|
|
3721
|
+
title?: string | React$1.ReactElement;
|
|
3722
|
+
children: React$1.ReactElement | React$1.ReactElement[];
|
|
3685
3723
|
className?: string;
|
|
3686
|
-
style?: CSSProperties;
|
|
3724
|
+
style?: React$1.CSSProperties;
|
|
3687
3725
|
titleSign?: boolean;
|
|
3688
3726
|
};
|
|
3689
3727
|
export declare const FormItemGroup: {
|
|
3690
|
-
HorizontalUnion: (props: FormItemHorizontalUnionProps) => import("react").JSX.Element;
|
|
3728
|
+
HorizontalUnion: (props: FormItemHorizontalUnionProps) => import("react").React$1.JSX.Element;
|
|
3691
3729
|
Card: import("react").FC<FormItemCardProps>;
|
|
3692
3730
|
};
|
|
3693
3731
|
export type FormItemHiddenProps = {
|
|
3694
3732
|
name: FormItemProps["name"];
|
|
3695
3733
|
className?: string;
|
|
3696
|
-
style?: CSSProperties;
|
|
3734
|
+
style?: React$1.CSSProperties;
|
|
3697
3735
|
};
|
|
3698
3736
|
export declare const FormItemHidden: {
|
|
3699
|
-
(props: FormItemHiddenProps): import("react").JSX.Element;
|
|
3737
|
+
(props: FormItemHiddenProps): import("react").React$1.JSX.Element;
|
|
3700
3738
|
domTypeName: string;
|
|
3701
3739
|
};
|
|
3702
3740
|
export type FormItemSpanProps = {
|
|
3703
3741
|
span?: number;
|
|
3704
|
-
children?: ReactNode;
|
|
3742
|
+
children?: React$1.ReactNode;
|
|
3705
3743
|
className?: string;
|
|
3706
|
-
style?: CSSProperties;
|
|
3744
|
+
style?: React$1.CSSProperties;
|
|
3707
3745
|
/** 是否移除 */
|
|
3708
3746
|
hidden?: boolean;
|
|
3709
3747
|
};
|
|
@@ -3734,7 +3772,7 @@ export type FormItemSpanProps = {
|
|
|
3734
3772
|
* ```
|
|
3735
3773
|
*/
|
|
3736
3774
|
export declare const FormItemSpan: {
|
|
3737
|
-
(props: FormItemSpanProps): import("react").JSX.Element;
|
|
3775
|
+
(props: FormItemSpanProps): import("react").React$1.JSX.Element;
|
|
3738
3776
|
domTypeName: string;
|
|
3739
3777
|
};
|
|
3740
3778
|
export type FormItemTextServiceConfig = {
|
|
@@ -3752,7 +3790,7 @@ export type FormItemTextProps = Omit<FormItemWrapperProps, "onChange"> & {
|
|
|
3752
3790
|
/** 是否换行,默认不换行,超出省略(鼠标悬浮可显示) */
|
|
3753
3791
|
wrap?: boolean;
|
|
3754
3792
|
/** 自定义数据显示 */
|
|
3755
|
-
render?: (value?: TAny) => ReactNode;
|
|
3793
|
+
render?: (value?: TAny) => React$1.ReactNode;
|
|
3756
3794
|
/** 占位值,当 value 为 ''、undefined、null时显示 */
|
|
3757
3795
|
placeholderValue?: string;
|
|
3758
3796
|
/**
|
|
@@ -3807,17 +3845,17 @@ export type FormItemTextProps = Omit<FormItemWrapperProps, "onChange"> & {
|
|
|
3807
3845
|
* ```
|
|
3808
3846
|
*/
|
|
3809
3847
|
export declare const FormItemText: {
|
|
3810
|
-
(props: FormItemTextProps): import("react").JSX.Element;
|
|
3848
|
+
(props: FormItemTextProps): import("react").React$1.JSX.Element;
|
|
3811
3849
|
domTypeName: string;
|
|
3812
3850
|
};
|
|
3813
3851
|
export type FormItemWrapperDependenciesProps = {
|
|
3814
3852
|
children?: (form: FormInstance, otherProps: {
|
|
3815
|
-
style?: CSSProperties;
|
|
3853
|
+
style?: React$1.CSSProperties;
|
|
3816
3854
|
className?: string;
|
|
3817
|
-
}) => ReactElement;
|
|
3855
|
+
}) => React$1.ReactElement;
|
|
3818
3856
|
dependencies: any[];
|
|
3819
3857
|
className?: string;
|
|
3820
|
-
style?: CSSProperties;
|
|
3858
|
+
style?: React$1.CSSProperties;
|
|
3821
3859
|
};
|
|
3822
3860
|
/**
|
|
3823
3861
|
* FormItem依赖写法包装,当处在EasyForm内部时,不支持 <Form.Item dependencies={['xxx']} noStyle /> 此写法,使用 <FormItemWrapperDependencies dependencies={['xxx']} /> 代替
|
|
@@ -3846,7 +3884,7 @@ export type FormItemWrapperDependenciesProps = {
|
|
|
3846
3884
|
* ```
|
|
3847
3885
|
*/
|
|
3848
3886
|
export declare const FormItemWrapperDependencies: {
|
|
3849
|
-
(props: FormItemWrapperDependenciesProps): import("react").JSX.Element;
|
|
3887
|
+
(props: FormItemWrapperDependenciesProps): import("react").React$1.JSX.Element;
|
|
3850
3888
|
domTypeName: string;
|
|
3851
3889
|
};
|
|
3852
3890
|
export type FormListWrapperContentProps = {
|
|
@@ -3879,7 +3917,7 @@ export type FormListWrapperContentProps = {
|
|
|
3879
3917
|
};
|
|
3880
3918
|
export type FormListWrapperProps = {
|
|
3881
3919
|
className?: string;
|
|
3882
|
-
style?: CSSProperties;
|
|
3920
|
+
style?: React$1.CSSProperties;
|
|
3883
3921
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
3884
3922
|
uidFieldName?: string;
|
|
3885
3923
|
/** formList name */
|
|
@@ -3898,15 +3936,15 @@ export type FormListWrapperProps = {
|
|
|
3898
3936
|
/** 隐藏新增行按钮 */
|
|
3899
3937
|
hiddenAddRowButton?: boolean;
|
|
3900
3938
|
/** 自定义新增行按钮,getAddRowDefaultValues配置失效 */
|
|
3901
|
-
onCustomAddRowButton?: (operation: FormListOperation) => ReactElement;
|
|
3939
|
+
onCustomAddRowButton?: (operation: FormListOperation) => React$1.ReactElement;
|
|
3902
3940
|
/** formListItem 内容 */
|
|
3903
|
-
children: (data: FormListWrapperContentProps) => ReactElement;
|
|
3941
|
+
children: (data: FormListWrapperContentProps) => React$1.ReactElement;
|
|
3904
3942
|
/** 隐藏数据为空渲染 */
|
|
3905
3943
|
hiddenEmptyRender?: boolean;
|
|
3906
3944
|
/** formList内部渲染包装,多用于FormListWrapper嵌套布局 */
|
|
3907
3945
|
formListChildrenWrapper?: (props: {
|
|
3908
|
-
children: ReactElement;
|
|
3909
|
-
}) => ReactElement;
|
|
3946
|
+
children: React$1.ReactElement;
|
|
3947
|
+
}) => React$1.ReactElement;
|
|
3910
3948
|
/**
|
|
3911
3949
|
* Form.List rules
|
|
3912
3950
|
* ```
|
|
@@ -3947,12 +3985,12 @@ export type FormListWrapperProps = {
|
|
|
3947
3985
|
* 2. 通过 itemGap 设置FormList Item 之间间隙
|
|
3948
3986
|
* ```
|
|
3949
3987
|
*/
|
|
3950
|
-
export declare const FormListWrapper: (props: FormListWrapperProps) => import("react").JSX.Element;
|
|
3988
|
+
export declare const FormListWrapper: (props: FormListWrapperProps) => import("react").React$1.JSX.Element;
|
|
3951
3989
|
export type GapProps = {
|
|
3952
3990
|
height?: number;
|
|
3953
3991
|
width?: number;
|
|
3954
3992
|
className?: string;
|
|
3955
|
-
style?: CSSProperties;
|
|
3993
|
+
style?: React$1.CSSProperties;
|
|
3956
3994
|
inline?: boolean;
|
|
3957
3995
|
};
|
|
3958
3996
|
/**
|
|
@@ -3960,17 +3998,17 @@ export type GapProps = {
|
|
|
3960
3998
|
* @param props
|
|
3961
3999
|
* @returns
|
|
3962
4000
|
*/
|
|
3963
|
-
export declare const Gap: (props: GapProps) => import("react").JSX.Element;
|
|
4001
|
+
export declare const Gap: (props: GapProps) => import("react").React$1.JSX.Element;
|
|
3964
4002
|
export type IconWrapperProps = {
|
|
3965
|
-
hoverTips?: string | ReactElement;
|
|
4003
|
+
hoverTips?: string | React$1.ReactElement;
|
|
3966
4004
|
/**
|
|
3967
4005
|
* 提示类型
|
|
3968
4006
|
* @default 'tooltip'
|
|
3969
4007
|
*/
|
|
3970
4008
|
tipsType?: "popover" | "tooltip";
|
|
3971
|
-
icon?: ReactNode;
|
|
3972
|
-
style?: CSSProperties;
|
|
3973
|
-
text?: string | ReactElement;
|
|
4009
|
+
icon?: React$1.ReactNode;
|
|
4010
|
+
style?: React$1.CSSProperties;
|
|
4011
|
+
text?: string | React$1.ReactElement;
|
|
3974
4012
|
className?: string;
|
|
3975
4013
|
size?: "small" | "middle" | "large";
|
|
3976
4014
|
onClick?: (event: any) => void;
|
|
@@ -3981,7 +4019,7 @@ export type IconWrapperProps = {
|
|
|
3981
4019
|
/** 图标与文字之间的间距 */
|
|
3982
4020
|
gap?: number;
|
|
3983
4021
|
};
|
|
3984
|
-
export declare const IconWrapper: (props: IconWrapperProps) => import("react").JSX.Element;
|
|
4022
|
+
export declare const IconWrapper: (props: IconWrapperProps) => import("react").React$1.JSX.Element;
|
|
3985
4023
|
export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
3986
4024
|
/**
|
|
3987
4025
|
* ```
|
|
@@ -3994,7 +4032,7 @@ export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
3994
4032
|
*
|
|
3995
4033
|
* ```
|
|
3996
4034
|
*/
|
|
3997
|
-
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => import("react").JSX.Element;
|
|
4035
|
+
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => import("react").React$1.JSX.Element;
|
|
3998
4036
|
export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
|
|
3999
4037
|
debounceDuration?: number;
|
|
4000
4038
|
};
|
|
@@ -4009,7 +4047,7 @@ export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
|
|
|
4009
4047
|
*
|
|
4010
4048
|
* ```
|
|
4011
4049
|
*/
|
|
4012
|
-
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => import("react").JSX.Element;
|
|
4050
|
+
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => import("react").React$1.JSX.Element;
|
|
4013
4051
|
export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
|
|
4014
4052
|
debounceDuration?: number;
|
|
4015
4053
|
};
|
|
@@ -4024,11 +4062,11 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
|
|
|
4024
4062
|
* 6. 可设置防抖执行时间
|
|
4025
4063
|
* ```
|
|
4026
4064
|
*/
|
|
4027
|
-
export declare const InputWrapper: (props: InputWrapperProps) => import("react").JSX.Element;
|
|
4065
|
+
export declare const InputWrapper: (props: InputWrapperProps) => import("react").React$1.JSX.Element;
|
|
4028
4066
|
export type LabelValueLayoutProps = {
|
|
4029
4067
|
options: {
|
|
4030
|
-
label: string | ReactElement;
|
|
4031
|
-
value?: string | number | ReactElement | null;
|
|
4068
|
+
label: string | React$1.ReactElement;
|
|
4069
|
+
value?: string | number | React$1.ReactElement | null;
|
|
4032
4070
|
span?: number;
|
|
4033
4071
|
hidden?: boolean;
|
|
4034
4072
|
}[];
|
|
@@ -4037,19 +4075,19 @@ export type LabelValueLayoutProps = {
|
|
|
4037
4075
|
/** 添加边框 */
|
|
4038
4076
|
bordered?: boolean;
|
|
4039
4077
|
className?: string;
|
|
4040
|
-
style?: CSSProperties;
|
|
4078
|
+
style?: React$1.CSSProperties;
|
|
4041
4079
|
/** 边框 row 内边距 */
|
|
4042
|
-
borderedRowPadding?: CSSProperties["padding"];
|
|
4080
|
+
borderedRowPadding?: React$1.CSSProperties["padding"];
|
|
4043
4081
|
};
|
|
4044
4082
|
/**
|
|
4045
4083
|
* @deprecated 已过期,请使用 LabelValueRender 组件
|
|
4046
4084
|
* options[].span 是 Description.Item 的数量。 span={2} 会占用两个 DescriptionItem 的宽度
|
|
4047
4085
|
* options[].hidden 是否隐藏 Description.Item
|
|
4048
4086
|
*/
|
|
4049
|
-
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import("react").JSX.Element;
|
|
4087
|
+
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import("react").React$1.JSX.Element;
|
|
4050
4088
|
export type TLabelValueItem = {
|
|
4051
|
-
label: string | ReactElement;
|
|
4052
|
-
value?: string | number | ReactElement;
|
|
4089
|
+
label: string | React$1.ReactElement;
|
|
4090
|
+
value?: string | number | React$1.ReactElement;
|
|
4053
4091
|
/** 根据LabelValueRender.column配置,当前item占几列 */
|
|
4054
4092
|
span?: 1 | 2 | 3 | 4 | 6;
|
|
4055
4093
|
/** 是否隐藏 */
|
|
@@ -4066,12 +4104,12 @@ export type TLabelValueItem = {
|
|
|
4066
4104
|
hideTip?: boolean;
|
|
4067
4105
|
/** value 渲染不使用 TextOverflow 包裹 */
|
|
4068
4106
|
valueNoWrapper?: boolean;
|
|
4069
|
-
labelStyle?: CSSProperties;
|
|
4070
|
-
valueStyle?: CSSProperties;
|
|
4107
|
+
labelStyle?: React$1.CSSProperties;
|
|
4108
|
+
valueStyle?: React$1.CSSProperties;
|
|
4071
4109
|
};
|
|
4072
4110
|
export type LabelValueRenderProps = {
|
|
4073
4111
|
className?: string;
|
|
4074
|
-
style?: CSSProperties;
|
|
4112
|
+
style?: React$1.CSSProperties;
|
|
4075
4113
|
/**
|
|
4076
4114
|
* 定义一行显示几列, 默认值:4
|
|
4077
4115
|
* ```
|
|
@@ -4126,9 +4164,9 @@ export type LabelValueRenderProps = {
|
|
|
4126
4164
|
labelWidth?: number | "auto";
|
|
4127
4165
|
width?: number;
|
|
4128
4166
|
/** label 样式 */
|
|
4129
|
-
labelStyle?: CSSProperties;
|
|
4167
|
+
labelStyle?: React$1.CSSProperties;
|
|
4130
4168
|
/** value 样式 */
|
|
4131
|
-
valueStyle?: CSSProperties;
|
|
4169
|
+
valueStyle?: React$1.CSSProperties;
|
|
4132
4170
|
size?: "default" | "small";
|
|
4133
4171
|
/**
|
|
4134
4172
|
* label&value 方向布局
|
|
@@ -4158,7 +4196,7 @@ export type LabelValueRenderProps = {
|
|
|
4158
4196
|
* 3. 内置响应式布局
|
|
4159
4197
|
* ```
|
|
4160
4198
|
*/
|
|
4161
|
-
export declare const LabelValueRender: (props: LabelValueRenderProps) => import("react").JSX.Element;
|
|
4199
|
+
export declare const LabelValueRender: (props: LabelValueRenderProps) => import("react").React$1.JSX.Element;
|
|
4162
4200
|
export type LocalLoadingServiceConfig = {
|
|
4163
4201
|
onRequest: (params?: TAny) => Promise<TAny>;
|
|
4164
4202
|
params?: TPlainObject;
|
|
@@ -4169,12 +4207,12 @@ export type LocalLoadingServiceConfig = {
|
|
|
4169
4207
|
};
|
|
4170
4208
|
export interface LocalLoadingProps {
|
|
4171
4209
|
className?: string;
|
|
4172
|
-
style?: CSSProperties;
|
|
4173
|
-
contentStyle?: CSSProperties;
|
|
4210
|
+
style?: React$1.CSSProperties;
|
|
4211
|
+
contentStyle?: React$1.CSSProperties;
|
|
4174
4212
|
/** 接口数据配置 */
|
|
4175
4213
|
serviceConfig: LocalLoadingServiceConfig;
|
|
4176
4214
|
/** children 为函数,参数【respData】为接口返回数据 */
|
|
4177
|
-
children: (respData?: TAny) => ReactElement;
|
|
4215
|
+
children: (respData?: TAny) => React$1.ReactElement;
|
|
4178
4216
|
/**
|
|
4179
4217
|
* 是否异步,默认:false
|
|
4180
4218
|
* ```
|
|
@@ -4190,7 +4228,7 @@ export interface LocalLoadingProps {
|
|
|
4190
4228
|
/** loading tip,默认值:Loading */
|
|
4191
4229
|
tip?: string;
|
|
4192
4230
|
/** loading 内容 */
|
|
4193
|
-
content?: ReactElement;
|
|
4231
|
+
content?: React$1.ReactElement;
|
|
4194
4232
|
/** 背景色,默认值:rgba(0,0,0,0.01) */
|
|
4195
4233
|
bgColor?: string;
|
|
4196
4234
|
};
|
|
@@ -4201,7 +4239,7 @@ export interface LocalLoadingProps {
|
|
|
4201
4239
|
/** 是否显示必填异常 */
|
|
4202
4240
|
showRequiredError?: boolean;
|
|
4203
4241
|
/** 自定义异常渲染处理 */
|
|
4204
|
-
errorRender?: (error?: TAny) => ReactElement;
|
|
4242
|
+
errorRender?: (error?: TAny) => React$1.ReactElement;
|
|
4205
4243
|
/** 设置内部滚动,需要设置 style.height 才能生效,@5.0.16 */
|
|
4206
4244
|
contentScroll?: boolean;
|
|
4207
4245
|
/** 设置高度 */
|
|
@@ -4301,7 +4339,7 @@ export type ParamItem = {
|
|
|
4301
4339
|
} & Record<string, TAny>;
|
|
4302
4340
|
export type OperationPresetProps = {
|
|
4303
4341
|
/** icon */
|
|
4304
|
-
icon: ReactElement;
|
|
4342
|
+
icon: React$1.ReactElement;
|
|
4305
4343
|
/** 模版参数文案 */
|
|
4306
4344
|
label?: string;
|
|
4307
4345
|
/** 模版参数类型 */
|
|
@@ -4332,19 +4370,19 @@ export type MentionEditorProps = Omit<MentionsWrapperProps, "prefix"> & {
|
|
|
4332
4370
|
* 4. 模版参数建议都以${_xxx}为格式
|
|
4333
4371
|
* 5. Demo: https://fex.qa.tcshuke.com/docs/admin/main/widget?key=mention-editor
|
|
4334
4372
|
*/
|
|
4335
|
-
export declare const MentionEditor: (props: MentionEditorProps) => import("react").JSX.Element;
|
|
4373
|
+
export declare const MentionEditor: (props: MentionEditorProps) => import("react").React$1.JSX.Element;
|
|
4336
4374
|
export interface ModalActionProps {
|
|
4337
|
-
children: ReactElement | ((data: {
|
|
4375
|
+
children: React$1.ReactElement | ((data: {
|
|
4338
4376
|
onClose: () => void;
|
|
4339
4377
|
open: boolean;
|
|
4340
|
-
}) => ReactElement);
|
|
4341
|
-
action?: (ReactElement & {
|
|
4378
|
+
}) => React$1.ReactElement);
|
|
4379
|
+
action?: (React$1.ReactElement & {
|
|
4342
4380
|
onClick?: (e: any) => void;
|
|
4343
4381
|
}) | ((data: {
|
|
4344
4382
|
onClick: (e: any) => void;
|
|
4345
4383
|
onClose: () => void;
|
|
4346
4384
|
open: boolean;
|
|
4347
|
-
}) => ReactElement);
|
|
4385
|
+
}) => React$1.ReactElement);
|
|
4348
4386
|
}
|
|
4349
4387
|
/**
|
|
4350
4388
|
* 弹框 触发器
|
|
@@ -4356,7 +4394,7 @@ export interface ModalActionProps {
|
|
|
4356
4394
|
* </ModalAction>
|
|
4357
4395
|
* ```
|
|
4358
4396
|
*/
|
|
4359
|
-
export declare const ModalAction: (props: ModalActionProps) => import("react").JSX.Element;
|
|
4397
|
+
export declare const ModalAction: (props: ModalActionProps) => import("react").React$1.JSX.Element;
|
|
4360
4398
|
type InputNumberProps$1 = GetProps<typeof InputNumber>;
|
|
4361
4399
|
export type NumberRangeFormItemProps = Omit<FormItemWrapperProps, "name" | "rules"> & {
|
|
4362
4400
|
minFormItemName: FormItemNamePath;
|
|
@@ -4381,18 +4419,18 @@ export type NumberRangeFormItemProps = Omit<FormItemWrapperProps, "name" | "rule
|
|
|
4381
4419
|
/**
|
|
4382
4420
|
* 数字输入范围组件
|
|
4383
4421
|
*/
|
|
4384
|
-
export declare const NumberRangeFormItem: (props: NumberRangeFormItemProps) => import("react").JSX.Element;
|
|
4422
|
+
export declare const NumberRangeFormItem: (props: NumberRangeFormItemProps) => import("react").React$1.JSX.Element;
|
|
4385
4423
|
export type PageFixedFooterProps = {
|
|
4386
4424
|
className?: string;
|
|
4387
|
-
style?: CSSProperties;
|
|
4388
|
-
children?: ReactNode | ReactNode[];
|
|
4425
|
+
style?: React$1.CSSProperties;
|
|
4426
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
4389
4427
|
hidden?: boolean;
|
|
4390
4428
|
};
|
|
4391
|
-
export declare const PageFixedFooter: (props: PageFixedFooterProps) => import("react").JSX.Element | null;
|
|
4429
|
+
export declare const PageFixedFooter: (props: PageFixedFooterProps) => import("react").React$1.JSX.Element | null;
|
|
4392
4430
|
export type Page404Props = {
|
|
4393
4431
|
message?: string;
|
|
4394
4432
|
};
|
|
4395
|
-
export declare const Page404: (props: Page404Props) => import("react").JSX.Element;
|
|
4433
|
+
export declare const Page404: (props: Page404Props) => import("react").React$1.JSX.Element;
|
|
4396
4434
|
/**
|
|
4397
4435
|
* 由于 antd 5.3.x 分页Pagination组件,存在点击分页选择框时,一直朝下
|
|
4398
4436
|
* issues:https://github.com/ant-design/ant-design/issues/36866
|
|
@@ -4400,7 +4438,7 @@ export declare const Page404: (props: Page404Props) => import("react").JSX.Eleme
|
|
|
4400
4438
|
* @param props
|
|
4401
4439
|
* @returns
|
|
4402
4440
|
*/
|
|
4403
|
-
export declare const PaginationWrapper: (props: PaginationProps) => import("react").JSX.Element;
|
|
4441
|
+
export declare const PaginationWrapper: (props: PaginationProps) => import("react").React$1.JSX.Element;
|
|
4404
4442
|
/**
|
|
4405
4443
|
* pdf预览
|
|
4406
4444
|
* ```
|
|
@@ -4418,7 +4456,7 @@ export declare const Pdf: {
|
|
|
4418
4456
|
children: import("react").ReactNode;
|
|
4419
4457
|
error?: import("react").ReactElement | ((error: any) => import("react").ReactElement);
|
|
4420
4458
|
className?: string;
|
|
4421
|
-
}) => import("react").JSX.Element;
|
|
4459
|
+
}) => import("react").React$1.JSX.Element;
|
|
4422
4460
|
Page: (props: {
|
|
4423
4461
|
onRenderSuccess?: (pageInstance: any, pdfInstance: any) => void;
|
|
4424
4462
|
onRenderError?: (error: any, pdfInstance: any) => void;
|
|
@@ -4430,7 +4468,7 @@ export declare const Pdf: {
|
|
|
4430
4468
|
onClick?: (e: any) => void;
|
|
4431
4469
|
className?: string;
|
|
4432
4470
|
style?: import("react").CSSProperties;
|
|
4433
|
-
}) => import("react").JSX.Element;
|
|
4471
|
+
}) => import("react").React$1.JSX.Element;
|
|
4434
4472
|
};
|
|
4435
4473
|
export type PdfPreviewProps = {
|
|
4436
4474
|
pdfUrl: string;
|
|
@@ -4453,7 +4491,7 @@ export type PdfPreviewProps = {
|
|
|
4453
4491
|
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal
|
|
4454
4492
|
* ```
|
|
4455
4493
|
*/
|
|
4456
|
-
export declare const PdfPreview: (props: PdfPreviewProps) => import("react").JSX.Element;
|
|
4494
|
+
export declare const PdfPreview: (props: PdfPreviewProps) => import("react").React$1.JSX.Element;
|
|
4457
4495
|
export type PdfPreview2Props = {
|
|
4458
4496
|
pdfUrl: string;
|
|
4459
4497
|
/** 网络环境,inner/内网,outer/外网,默认inner */
|
|
@@ -4467,12 +4505,12 @@ export type PdfPreview2Props = {
|
|
|
4467
4505
|
* 3. networkEnv 设置内网、外网,默认内网
|
|
4468
4506
|
* ```
|
|
4469
4507
|
*/
|
|
4470
|
-
export declare const PdfPreview2: (props: PdfPreview2Props) => import("react").JSX.Element;
|
|
4508
|
+
export declare const PdfPreview2: (props: PdfPreview2Props) => import("react").React$1.JSX.Element;
|
|
4471
4509
|
export interface PermissionProps {
|
|
4472
4510
|
name?: string;
|
|
4473
|
-
children?: ReactNode | ReactNode[];
|
|
4511
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
4474
4512
|
}
|
|
4475
|
-
export declare const Permission: (props: PermissionProps) => import("react").JSX.Element | null;
|
|
4513
|
+
export declare const Permission: (props: PermissionProps) => import("react").React$1.JSX.Element | null;
|
|
4476
4514
|
/**
|
|
4477
4515
|
* 预定义className
|
|
4478
4516
|
* ```
|
|
@@ -4553,7 +4591,7 @@ export declare const preDefinedClassName: {
|
|
|
4553
4591
|
};
|
|
4554
4592
|
export type RadioGroupWrapperValue = string | number | boolean;
|
|
4555
4593
|
export type RadioGroupWrapperOptionItem = {
|
|
4556
|
-
label: string | ReactElement;
|
|
4594
|
+
label: string | React$1.ReactElement;
|
|
4557
4595
|
value: RadioGroupWrapperValue;
|
|
4558
4596
|
disabled?: boolean;
|
|
4559
4597
|
};
|
|
@@ -4573,7 +4611,7 @@ export type CustomRadioGroupProps = {
|
|
|
4573
4611
|
* @param props
|
|
4574
4612
|
* @returns
|
|
4575
4613
|
*/
|
|
4576
|
-
export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react").JSX.Element;
|
|
4614
|
+
export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react").React$1.JSX.Element;
|
|
4577
4615
|
export type RelationProps = {
|
|
4578
4616
|
/** 左侧Tag+线占用宽度 */
|
|
4579
4617
|
tagLineWidth?: number;
|
|
@@ -4589,8 +4627,8 @@ export type RelationProps = {
|
|
|
4589
4627
|
onTagClick?: (tagName?: string) => void;
|
|
4590
4628
|
/**连接线颜色 */
|
|
4591
4629
|
lineColor?: string;
|
|
4592
|
-
solt1: () => ReactElement;
|
|
4593
|
-
solt2?: () => ReactElement | null;
|
|
4630
|
+
solt1: () => React$1.ReactElement;
|
|
4631
|
+
solt2?: () => React$1.ReactElement | null;
|
|
4594
4632
|
className?: string;
|
|
4595
4633
|
onlyOne?: boolean;
|
|
4596
4634
|
onlyNoMainOne?: boolean;
|
|
@@ -4599,7 +4637,7 @@ export type RelationProps = {
|
|
|
4599
4637
|
export type RelationTreeProps = {
|
|
4600
4638
|
className?: string;
|
|
4601
4639
|
dataSource?: TRelationTreeData;
|
|
4602
|
-
children: (data: TRelationTreeCustomData, operate: TRelationTreeOperate, extraData?: TPlainObject) => ReactElement;
|
|
4640
|
+
children: (data: TRelationTreeCustomData, operate: TRelationTreeOperate, extraData?: TPlainObject) => React$1.ReactElement;
|
|
4603
4641
|
onChange?: (dataSource?: TRelationTreeData) => void;
|
|
4604
4642
|
relationProps?: Pick<RelationProps, "tagLineWidth" | "indentWidth" | "tagColor" | "tagWidth" | "lineColor">;
|
|
4605
4643
|
onTagClick?: (uid: string, extraData?: TPlainObject) => void;
|
|
@@ -4626,7 +4664,31 @@ export type TRelationTreeOperate = {
|
|
|
4626
4664
|
remove: (uid: string) => void;
|
|
4627
4665
|
onChange: (name: string, value: TAny) => void;
|
|
4628
4666
|
};
|
|
4629
|
-
export declare const RelationTree: (props: RelationTreeProps) => import("react").JSX.Element;
|
|
4667
|
+
export declare const RelationTree: (props: RelationTreeProps) => import("react").React$1.JSX.Element;
|
|
4668
|
+
export type ResizableDrawerProps = {
|
|
4669
|
+
open?: boolean;
|
|
4670
|
+
onClose?: () => void;
|
|
4671
|
+
title?: React$1.ReactNode;
|
|
4672
|
+
width?: number | string;
|
|
4673
|
+
children?: React$1.ReactNode;
|
|
4674
|
+
footer?: React$1.ReactNode | null;
|
|
4675
|
+
hidenFooter?: boolean;
|
|
4676
|
+
maskClosable?: boolean;
|
|
4677
|
+
mask?: boolean;
|
|
4678
|
+
className?: string;
|
|
4679
|
+
style?: React$1.CSSProperties;
|
|
4680
|
+
styles?: {
|
|
4681
|
+
header?: React$1.CSSProperties;
|
|
4682
|
+
body?: React$1.CSSProperties;
|
|
4683
|
+
footer?: React$1.CSSProperties;
|
|
4684
|
+
};
|
|
4685
|
+
headerExtraRender?: React$1.ReactElement;
|
|
4686
|
+
zIndex?: number;
|
|
4687
|
+
onOk?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
4688
|
+
cancelText?: string;
|
|
4689
|
+
okText?: string;
|
|
4690
|
+
};
|
|
4691
|
+
export declare const ResizableDrawer: React$1.FC<ResizableDrawerProps>;
|
|
4630
4692
|
export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"> {
|
|
4631
4693
|
/** 设置高度,默认:500 */
|
|
4632
4694
|
height?: number;
|
|
@@ -4684,14 +4746,14 @@ export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"
|
|
|
4684
4746
|
* 默认比例:[{ min: 0, max: 1000, ratio: 0.5 }, { min: 1000, ratio: 0.3 }]
|
|
4685
4747
|
* ```
|
|
4686
4748
|
*/
|
|
4687
|
-
export declare const RichTextEditor: (props: RichTextEditorProps) => import("react").JSX.Element;
|
|
4749
|
+
export declare const RichTextEditor: (props: RichTextEditorProps) => import("react").React$1.JSX.Element;
|
|
4688
4750
|
export type RichTextViewerProps = {
|
|
4689
4751
|
value: string;
|
|
4690
4752
|
className?: string;
|
|
4691
|
-
style?: CSSProperties;
|
|
4753
|
+
style?: React$1.CSSProperties;
|
|
4692
4754
|
fullscreen?: boolean;
|
|
4693
4755
|
onInit?: (editor: TinyMCEEditor) => void;
|
|
4694
|
-
children?: ReactElement;
|
|
4756
|
+
children?: React$1.ReactElement;
|
|
4695
4757
|
fullscreenIconTips?: string;
|
|
4696
4758
|
};
|
|
4697
4759
|
/**
|
|
@@ -4704,35 +4766,35 @@ export type RichTextViewerProps = {
|
|
|
4704
4766
|
* @param props
|
|
4705
4767
|
* @returns
|
|
4706
4768
|
*/
|
|
4707
|
-
export declare const RichTextViewer: (props: RichTextViewerProps) => import("react").JSX.Element;
|
|
4769
|
+
export declare const RichTextViewer: (props: RichTextViewerProps) => import("react").React$1.JSX.Element;
|
|
4708
4770
|
export type RollLocationCenterProps = {
|
|
4709
4771
|
renderList: {
|
|
4710
4772
|
activeKey: string;
|
|
4711
|
-
render: ReactElement;
|
|
4773
|
+
render: React$1.ReactElement;
|
|
4712
4774
|
}[];
|
|
4713
4775
|
activeKey?: string;
|
|
4714
4776
|
behavior?: ScrollBehavior;
|
|
4715
4777
|
direction?: "horizontal" | "vertical";
|
|
4716
|
-
style?: CSSProperties;
|
|
4778
|
+
style?: React$1.CSSProperties;
|
|
4717
4779
|
className?: string;
|
|
4718
4780
|
};
|
|
4719
|
-
export declare const RollLocationCenter: (props: RollLocationCenterProps) => import("react").JSX.Element;
|
|
4781
|
+
export declare const RollLocationCenter: (props: RollLocationCenterProps) => import("react").React$1.JSX.Element;
|
|
4720
4782
|
export type RollLocationInViewProps = {
|
|
4721
4783
|
renderList: {
|
|
4722
4784
|
activeKey: string;
|
|
4723
|
-
render: ReactElement;
|
|
4785
|
+
render: React$1.ReactElement;
|
|
4724
4786
|
}[];
|
|
4725
4787
|
activeKey?: string;
|
|
4726
4788
|
behavior?: ScrollBehavior;
|
|
4727
4789
|
activeOffset?: number;
|
|
4728
4790
|
direction?: "horizontal" | "vertical";
|
|
4729
|
-
style?: CSSProperties;
|
|
4791
|
+
style?: React$1.CSSProperties;
|
|
4730
4792
|
className?: string;
|
|
4731
4793
|
};
|
|
4732
|
-
export declare const RollLocationInView: (props: RollLocationInViewProps) => import("react").JSX.Element;
|
|
4794
|
+
export declare const RollLocationInView: (props: RollLocationInViewProps) => import("react").React$1.JSX.Element;
|
|
4733
4795
|
export type RuleDataItem = {
|
|
4734
|
-
title?: string | ReactElement;
|
|
4735
|
-
desc?: string | ReactElement;
|
|
4796
|
+
title?: string | React$1.ReactElement;
|
|
4797
|
+
desc?: string | React$1.ReactElement;
|
|
4736
4798
|
};
|
|
4737
4799
|
export type RuleDescribeProps = {
|
|
4738
4800
|
title?: string;
|
|
@@ -4740,13 +4802,13 @@ export type RuleDescribeProps = {
|
|
|
4740
4802
|
ruleDataList: RuleDataItem[];
|
|
4741
4803
|
titleSign?: boolean;
|
|
4742
4804
|
className?: string;
|
|
4743
|
-
ruleItemTitleStyle?: CSSProperties;
|
|
4744
|
-
ruleItemDescStyle?: CSSProperties;
|
|
4745
|
-
ruleItemStyle?: CSSProperties;
|
|
4805
|
+
ruleItemTitleStyle?: React$1.CSSProperties;
|
|
4806
|
+
ruleItemDescStyle?: React$1.CSSProperties;
|
|
4807
|
+
ruleItemStyle?: React$1.CSSProperties;
|
|
4746
4808
|
};
|
|
4747
|
-
export declare const RuleDescribe: (props: RuleDescribeProps) => import("react").JSX.Element;
|
|
4809
|
+
export declare const RuleDescribe: (props: RuleDescribeProps) => import("react").React$1.JSX.Element;
|
|
4748
4810
|
export type SearchFormProps = {
|
|
4749
|
-
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
4811
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance) => React$1.ReactElement);
|
|
4750
4812
|
/** isPure = true时无效 */
|
|
4751
4813
|
searchOperate?: (form: FormInstance) => FormOperateColProps;
|
|
4752
4814
|
/** 是否为纯净模式(查询条件布局是否自定义), */
|
|
@@ -4766,7 +4828,7 @@ export type SearchFormProps = {
|
|
|
4766
4828
|
*/
|
|
4767
4829
|
formGridSize?: FormRowProps["gridSize"];
|
|
4768
4830
|
formClassName?: string;
|
|
4769
|
-
formStyle?: CSSProperties;
|
|
4831
|
+
formStyle?: React$1.CSSProperties;
|
|
4770
4832
|
/** form 初始值 */
|
|
4771
4833
|
formInitialValues?: TPlainObject;
|
|
4772
4834
|
/** label宽度,Form内部所有FormItem label都生效 */
|
|
@@ -4870,44 +4932,44 @@ export interface ISearchMenuProps {
|
|
|
4870
4932
|
key?: string;
|
|
4871
4933
|
};
|
|
4872
4934
|
/** 自定义渲染条目 */
|
|
4873
|
-
renderItem?: (nodeData: TPlainObject) => ReactElement;
|
|
4935
|
+
renderItem?: (nodeData: TPlainObject) => React$1.ReactElement;
|
|
4874
4936
|
/** 搜索框参数 */
|
|
4875
4937
|
inputProps?: InputSearchWrapperProps;
|
|
4876
4938
|
/** 搜索位置额外元素 */
|
|
4877
|
-
searchExtraElement?: ReactElement;
|
|
4939
|
+
searchExtraElement?: React$1.ReactElement;
|
|
4878
4940
|
placeholder?: string;
|
|
4879
4941
|
className?: string;
|
|
4880
|
-
wrapStyle?: CSSProperties;
|
|
4881
|
-
style?: CSSProperties;
|
|
4882
|
-
searchStyle?: CSSProperties;
|
|
4942
|
+
wrapStyle?: React$1.CSSProperties;
|
|
4943
|
+
style?: React$1.CSSProperties;
|
|
4944
|
+
searchStyle?: React$1.CSSProperties;
|
|
4883
4945
|
/** 是否显示搜索区域 */
|
|
4884
4946
|
showSearch?: boolean;
|
|
4885
4947
|
}
|
|
4886
4948
|
export interface IListViewItem {
|
|
4887
|
-
label: ReactNode;
|
|
4949
|
+
label: React$1.ReactNode;
|
|
4888
4950
|
key: string;
|
|
4889
4951
|
}
|
|
4890
4952
|
export interface IListViewProps {
|
|
4891
4953
|
dataList: IListViewItem[];
|
|
4892
4954
|
value?: string;
|
|
4893
4955
|
onChange?: (key: string, item: IListViewItem) => void;
|
|
4894
|
-
style?: CSSProperties;
|
|
4956
|
+
style?: React$1.CSSProperties;
|
|
4895
4957
|
/** 自定义空数据提示 */
|
|
4896
|
-
emptyView?: ReactElement;
|
|
4958
|
+
emptyView?: React$1.ReactElement;
|
|
4897
4959
|
}
|
|
4898
4960
|
/**
|
|
4899
4961
|
* 列表搜索
|
|
4900
4962
|
* @param props
|
|
4901
4963
|
* @returns
|
|
4902
4964
|
*/
|
|
4903
|
-
export declare function SearchMenu(props: ISearchMenuProps & Pick<IListViewProps, "emptyView">): import("react").JSX.Element;
|
|
4965
|
+
export declare function SearchMenu(props: ISearchMenuProps & Pick<IListViewProps, "emptyView">): import("react").React$1.JSX.Element;
|
|
4904
4966
|
/**
|
|
4905
4967
|
* 选择器包装组件
|
|
4906
4968
|
* ```
|
|
4907
4969
|
* 1. 不支持搜索调用服务模式,可使用组件 SelectorWrapperSearch
|
|
4908
4970
|
* ```
|
|
4909
4971
|
*/
|
|
4910
|
-
export declare const SelectorWrapper: (props: SelectorWrapperProps) => import("react").JSX.Element;
|
|
4972
|
+
export declare const SelectorWrapper: (props: SelectorWrapperProps) => import("react").React$1.JSX.Element;
|
|
4911
4973
|
export type SelectorWrapperSearchServiceConfig = {
|
|
4912
4974
|
params?: TPlainObject;
|
|
4913
4975
|
onRequest: (params?: TAny) => TAny;
|
|
@@ -4946,7 +5008,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
4946
5008
|
onSelectorRequestError?: (error: Error) => void;
|
|
4947
5009
|
/** 交互文案配置 */
|
|
4948
5010
|
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
4949
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
5011
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
4950
5012
|
customKeyword?: string;
|
|
4951
5013
|
};
|
|
4952
5014
|
/**
|
|
@@ -4959,7 +5021,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
4959
5021
|
* 3. 不会对value、onChange做任何处理
|
|
4960
5022
|
* ```
|
|
4961
5023
|
*/
|
|
4962
|
-
export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => import("react").JSX.Element;
|
|
5024
|
+
export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => import("react").React$1.JSX.Element;
|
|
4963
5025
|
export type SelectorWrapperSimpleServiceConfig = {
|
|
4964
5026
|
params?: TPlainObject;
|
|
4965
5027
|
onRequest: (params?: TAny) => TAny;
|
|
@@ -5009,12 +5071,12 @@ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
5009
5071
|
* 3. 不会对value、onChange做任何处理
|
|
5010
5072
|
* ```
|
|
5011
5073
|
*/
|
|
5012
|
-
export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => import("react").JSX.Element;
|
|
5074
|
+
export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => import("react").React$1.JSX.Element;
|
|
5013
5075
|
export type SimpleLayoutProps = {
|
|
5014
5076
|
className?: string;
|
|
5015
|
-
style?: CSSProperties;
|
|
5016
|
-
title?: string | ReactElement;
|
|
5017
|
-
desc?: string | ReactElement | string[] | ReactElement[];
|
|
5077
|
+
style?: React$1.CSSProperties;
|
|
5078
|
+
title?: string | React$1.ReactElement;
|
|
5079
|
+
desc?: string | React$1.ReactElement | string[] | React$1.ReactElement[];
|
|
5018
5080
|
/**
|
|
5019
5081
|
* @deprecated 已过期,请使用form className 属性 preDefinedClassName.form.xxx
|
|
5020
5082
|
*/
|
|
@@ -5028,14 +5090,14 @@ export type SimpleLayoutProps = {
|
|
|
5028
5090
|
*/
|
|
5029
5091
|
layoutType?: "layer" | "tight";
|
|
5030
5092
|
titleLeftLine?: boolean;
|
|
5031
|
-
titleStyle?: CSSProperties;
|
|
5032
|
-
contentStyle?: CSSProperties;
|
|
5093
|
+
titleStyle?: React$1.CSSProperties;
|
|
5094
|
+
contentStyle?: React$1.CSSProperties;
|
|
5033
5095
|
/** 优先级大于 style padding */
|
|
5034
|
-
padding?: CSSProperties["padding"];
|
|
5096
|
+
padding?: React$1.CSSProperties["padding"];
|
|
5035
5097
|
/** 优先级大于 style width */
|
|
5036
|
-
width?: CSSProperties["width"];
|
|
5037
|
-
children?: ReactNode | ReactNode[];
|
|
5038
|
-
titleExtra?: string | ReactElement;
|
|
5098
|
+
width?: React$1.CSSProperties["width"];
|
|
5099
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
5100
|
+
titleExtra?: string | React$1.ReactElement;
|
|
5039
5101
|
hidden?: boolean;
|
|
5040
5102
|
titleFixed?: boolean;
|
|
5041
5103
|
/**
|
|
@@ -5056,7 +5118,7 @@ export type SimpleLayoutProps = {
|
|
|
5056
5118
|
* ```
|
|
5057
5119
|
*/
|
|
5058
5120
|
export declare const SimpleLayout: {
|
|
5059
|
-
(props: SimpleLayoutProps): import("react").JSX.Element;
|
|
5121
|
+
(props: SimpleLayoutProps): import("react").React$1.JSX.Element;
|
|
5060
5122
|
defaultProps: {
|
|
5061
5123
|
titleLeftLine: boolean;
|
|
5062
5124
|
layoutType: string;
|
|
@@ -5074,9 +5136,9 @@ export interface SmsCountDownProps {
|
|
|
5074
5136
|
onTick?: (time: number) => void;
|
|
5075
5137
|
className?: string;
|
|
5076
5138
|
}
|
|
5077
|
-
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
5139
|
+
export declare const SmsCountDown: React$1.FC<SmsCountDownProps>;
|
|
5078
5140
|
export type SplitWrapperProps = SplitProps & {
|
|
5079
|
-
panelStyle?: CSSProperties;
|
|
5141
|
+
panelStyle?: React$1.CSSProperties;
|
|
5080
5142
|
};
|
|
5081
5143
|
/**
|
|
5082
5144
|
* 分屏可拖动组件
|
|
@@ -5091,7 +5153,7 @@ export type SplitWrapperProps = SplitProps & {
|
|
|
5091
5153
|
3. 通过 direction 设置方向
|
|
5092
5154
|
* ```
|
|
5093
5155
|
*/
|
|
5094
|
-
export declare const SplitWrapper: (props: SplitWrapperProps) => import("react").JSX.Element;
|
|
5156
|
+
export declare const SplitWrapper: (props: SplitWrapperProps) => import("react").React$1.JSX.Element;
|
|
5095
5157
|
export declare const styles: () => void;
|
|
5096
5158
|
export type SvgHttpViewProps = {
|
|
5097
5159
|
/**
|
|
@@ -5113,7 +5175,7 @@ export type SvgHttpViewProps = {
|
|
|
5113
5175
|
color?: string;
|
|
5114
5176
|
onClick?: (e: any) => void;
|
|
5115
5177
|
className?: string;
|
|
5116
|
-
style?: CSSProperties;
|
|
5178
|
+
style?: React$1.CSSProperties;
|
|
5117
5179
|
};
|
|
5118
5180
|
/**
|
|
5119
5181
|
* http svg地址解析,可自定义颜色
|
|
@@ -5123,7 +5185,7 @@ export type SvgHttpViewProps = {
|
|
|
5123
5185
|
* 3.
|
|
5124
5186
|
* ```
|
|
5125
5187
|
*/
|
|
5126
|
-
export declare const SvgHttpView: (props: SvgHttpViewProps) => import("react").JSX.Element;
|
|
5188
|
+
export declare const SvgHttpView: (props: SvgHttpViewProps) => import("react").React$1.JSX.Element;
|
|
5127
5189
|
export type SwitchConfirmWrapperValue = string | number | boolean;
|
|
5128
5190
|
export type SwitchConfirmWrapperProps = Omit<SwitchProps, "defaultChecked" | "onChange"> & {
|
|
5129
5191
|
value?: SwitchConfirmWrapperValue;
|
|
@@ -5197,7 +5259,7 @@ export type SwitchConfirmWrapperProps = Omit<SwitchProps, "defaultChecked" | "on
|
|
|
5197
5259
|
* </Form.Item>
|
|
5198
5260
|
* ```
|
|
5199
5261
|
*/
|
|
5200
|
-
export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => import("react").JSX.Element;
|
|
5262
|
+
export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => import("react").React$1.JSX.Element;
|
|
5201
5263
|
export type TagListSelectValue = string | number | boolean;
|
|
5202
5264
|
export type TagListSelectDataItem = {
|
|
5203
5265
|
label: string;
|
|
@@ -5239,10 +5301,10 @@ export type TagListSelectProps = {
|
|
|
5239
5301
|
* <Tag color={'red'}>启用</Tag>
|
|
5240
5302
|
* ```
|
|
5241
5303
|
*/
|
|
5242
|
-
export declare const TagListSelect: FC<TagListSelectProps>;
|
|
5304
|
+
export declare const TagListSelect: React$1.FC<TagListSelectProps>;
|
|
5243
5305
|
export type TableColumnIconRenderProps = {
|
|
5244
5306
|
/** 额外内容,一般为Icon */
|
|
5245
|
-
extra: ReactElement;
|
|
5307
|
+
extra: React$1.ReactElement;
|
|
5246
5308
|
extraPosition?: "before" | "after";
|
|
5247
5309
|
onClick?: (e: any) => void;
|
|
5248
5310
|
/** 是否显示原单元格数据,默认值:true */
|
|
@@ -5323,7 +5385,7 @@ export declare const tableCellRender: {
|
|
|
5323
5385
|
* }))
|
|
5324
5386
|
* ```
|
|
5325
5387
|
*/
|
|
5326
|
-
operateCell: (options: (item: TAny, index: number) => ButtonOperateProps) => (_value: string | number, record: any, index: number) => import("react").JSX.Element;
|
|
5388
|
+
operateCell: (options: (item: TAny, index: number) => ButtonOperateProps) => (_value: string | number, record: any, index: number) => import("react").React$1.JSX.Element;
|
|
5327
5389
|
/**
|
|
5328
5390
|
* 实现字段超出隐藏,默认长度10个字符
|
|
5329
5391
|
* @deprecated 已过期,请使用 TextOverflow 组件实现
|
|
@@ -5332,7 +5394,7 @@ export declare const tableCellRender: {
|
|
|
5332
5394
|
* 2. 会讲字符转出字节进行计算显示
|
|
5333
5395
|
* ```
|
|
5334
5396
|
*/
|
|
5335
|
-
tooltipCell: (showMaxNumber?: number, defaultValue?: string) => (value: string | number) => string | number | import("react").JSX.Element | undefined;
|
|
5397
|
+
tooltipCell: (showMaxNumber?: number, defaultValue?: string) => (value: string | number) => string | number | import("react").React$1.JSX.Element | undefined;
|
|
5336
5398
|
/**
|
|
5337
5399
|
* Tag格式数据渲染,可结合枚举定义数据
|
|
5338
5400
|
* ```
|
|
@@ -5358,7 +5420,7 @@ export declare const tableCellRender: {
|
|
|
5358
5420
|
maxShowCount?: number;
|
|
5359
5421
|
/** 触发maxShowCount后,被折叠的内容是否显示完整tag,默认值:false */
|
|
5360
5422
|
foldShowAllTag?: boolean;
|
|
5361
|
-
}) => (value?: TAny) => import("react").JSX.Element | null;
|
|
5423
|
+
}) => (value?: TAny) => import("react").React$1.JSX.Element | null;
|
|
5362
5424
|
/**
|
|
5363
5425
|
* 单元格对象数据处理,支持多级处理
|
|
5364
5426
|
* ```
|
|
@@ -5389,7 +5451,7 @@ export declare const tableCellRender: {
|
|
|
5389
5451
|
defaultValue?: string | number;
|
|
5390
5452
|
/** 隐藏背景颜色, 默认值:true */
|
|
5391
5453
|
hideBgColor?: boolean;
|
|
5392
|
-
}) => (value?: string | number) => string | number | import("react").JSX.Element | undefined;
|
|
5454
|
+
}) => (value?: string | number) => string | number | import("react").React$1.JSX.Element | undefined;
|
|
5393
5455
|
/**
|
|
5394
5456
|
* 分金额展示,入参分,显示万元(默认添加千分位)
|
|
5395
5457
|
* ```
|
|
@@ -5416,7 +5478,7 @@ export declare const tableCellRender: {
|
|
|
5416
5478
|
showBgColor?: boolean;
|
|
5417
5479
|
/** 移除小数点后末尾零 */
|
|
5418
5480
|
removeTailZero?: boolean;
|
|
5419
|
-
}) => (value?: string | number) => string | number | import("react").JSX.Element | undefined;
|
|
5481
|
+
}) => (value?: string | number) => string | number | import("react").React$1.JSX.Element | undefined;
|
|
5420
5482
|
/**
|
|
5421
5483
|
* 单元格徽标展示数据
|
|
5422
5484
|
* ```
|
|
@@ -5452,10 +5514,10 @@ export declare const tableCellRender: {
|
|
|
5452
5514
|
* }
|
|
5453
5515
|
* ```
|
|
5454
5516
|
*/
|
|
5455
|
-
clickCell: (onClick: (record: TPlainObject, e: any) => void, defaultValue?: string) => (value: TAny, record: TPlainObject) => string | import("react").JSX.Element | undefined;
|
|
5517
|
+
clickCell: (onClick: (record: TPlainObject, e: any) => void, defaultValue?: string) => (value: TAny, record: TPlainObject) => string | import("react").React$1.JSX.Element | undefined;
|
|
5456
5518
|
};
|
|
5457
5519
|
export type TableScrollProps = {
|
|
5458
|
-
children: ReactNode;
|
|
5520
|
+
children: React$1.ReactNode;
|
|
5459
5521
|
/**
|
|
5460
5522
|
* y轴的滚动条
|
|
5461
5523
|
*/
|
|
@@ -5471,33 +5533,33 @@ export type TableScrollProps = {
|
|
|
5471
5533
|
* ```
|
|
5472
5534
|
*/
|
|
5473
5535
|
export declare const TableScrollbar: ({ children, target, ...props }: TableScrollProps) => import("react").FunctionComponentElement<{
|
|
5474
|
-
summary: (...args: any[]) => import("react").JSX.Element;
|
|
5536
|
+
summary: (...args: any[]) => import("react").React$1.JSX.Element;
|
|
5475
5537
|
}>;
|
|
5476
5538
|
export type TableTitleTooltipProps = {
|
|
5477
|
-
title: string | ReactElement;
|
|
5539
|
+
title: string | React$1.ReactElement;
|
|
5478
5540
|
tooltip: string | {
|
|
5479
|
-
icon?: ReactElement;
|
|
5541
|
+
icon?: React$1.ReactElement;
|
|
5480
5542
|
content: string;
|
|
5481
5543
|
hoverArea?: "icon" | "all";
|
|
5482
5544
|
};
|
|
5483
5545
|
gap?: number;
|
|
5484
5546
|
className?: string;
|
|
5485
|
-
style?: CSSProperties;
|
|
5547
|
+
style?: React$1.CSSProperties;
|
|
5486
5548
|
};
|
|
5487
5549
|
/**
|
|
5488
5550
|
* title + tooltip
|
|
5489
5551
|
* @deprecated 已过期,请使用 TipsWrapper 组件
|
|
5490
5552
|
*/
|
|
5491
|
-
export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => import("react").JSX.Element;
|
|
5553
|
+
export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => import("react").React$1.JSX.Element;
|
|
5492
5554
|
export type TabsType = GetProps<typeof Tabs>;
|
|
5493
5555
|
export type TabsStickyProps = {
|
|
5494
5556
|
tabsProps: Omit<TabsType, "tabPosition">;
|
|
5495
5557
|
/** tabs头部布局 */
|
|
5496
|
-
headerRender?: ReactElement;
|
|
5558
|
+
headerRender?: React$1.ReactElement;
|
|
5497
5559
|
/** 点击tabItem后,tab跳到顶部吸顶效果;默认值true */
|
|
5498
5560
|
clickTabToTop?: boolean;
|
|
5499
5561
|
/** 设置tabItem 内容包裹元素的样式 */
|
|
5500
|
-
tabItemContentWrapperStyle?: (key: string) => CSSProperties;
|
|
5562
|
+
tabItemContentWrapperStyle?: (key: string) => React$1.CSSProperties;
|
|
5501
5563
|
};
|
|
5502
5564
|
/**
|
|
5503
5565
|
* Tabs吸顶组件
|
|
@@ -5505,7 +5567,7 @@ export type TabsStickyProps = {
|
|
|
5505
5567
|
* 1. 组件根节点设置了 height: 100%、overflow: auto;所以外部包裹元素必须要有高度
|
|
5506
5568
|
* ```
|
|
5507
5569
|
*/
|
|
5508
|
-
export declare const TabsSticky: (props: TabsStickyProps) => import("react").JSX.Element;
|
|
5570
|
+
export declare const TabsSticky: (props: TabsStickyProps) => import("react").React$1.JSX.Element;
|
|
5509
5571
|
export type TabsWrapperProps = TabsProps & {
|
|
5510
5572
|
/**
|
|
5511
5573
|
* Tabs Header 提供 Sticky 效果,默认值:true
|
|
@@ -5533,7 +5595,7 @@ export type TabsWrapperProps = TabsProps & {
|
|
|
5533
5595
|
* 缓存模式:会话缓存,在浏览器关闭后,会清除
|
|
5534
5596
|
* ```
|
|
5535
5597
|
*/
|
|
5536
|
-
export declare const TabsWrapper: (props: TabsWrapperProps) => import("react").JSX.Element;
|
|
5598
|
+
export declare const TabsWrapper: (props: TabsWrapperProps) => import("react").React$1.JSX.Element;
|
|
5537
5599
|
export type TagGroupDataItem = {
|
|
5538
5600
|
label: string;
|
|
5539
5601
|
value: string | number;
|
|
@@ -5550,7 +5612,7 @@ export type TagGroupProps = {
|
|
|
5550
5612
|
/**
|
|
5551
5613
|
* Tag 列表显示
|
|
5552
5614
|
*/
|
|
5553
|
-
export declare const TagGroup: FC<TagGroupProps>;
|
|
5615
|
+
export declare const TagGroup: React$1.FC<TagGroupProps>;
|
|
5554
5616
|
export type TagListRenderValue = string | number | boolean;
|
|
5555
5617
|
export type TagListRenderDataItem = {
|
|
5556
5618
|
label: string;
|
|
@@ -5595,19 +5657,19 @@ export type TagListRenderProps = {
|
|
|
5595
5657
|
* <Tag color={'red'}>启用</Tag>
|
|
5596
5658
|
* ```
|
|
5597
5659
|
*/
|
|
5598
|
-
export declare const TagListRender: FC<TagListRenderProps>;
|
|
5660
|
+
export declare const TagListRender: React$1.FC<TagListRenderProps>;
|
|
5599
5661
|
export type TagWrapperProps = Omit<TagProps, "onClick"> & {
|
|
5600
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
5662
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
5601
5663
|
loading?: boolean;
|
|
5602
5664
|
debounceDuration?: number;
|
|
5603
5665
|
};
|
|
5604
5666
|
/**
|
|
5605
5667
|
* 为 Tag 添加 loading 效果
|
|
5606
5668
|
*/
|
|
5607
|
-
export declare const TagWrapper: (props: TagWrapperProps) => import("react").JSX.Element;
|
|
5669
|
+
export declare const TagWrapper: (props: TagWrapperProps) => import("react").React$1.JSX.Element;
|
|
5608
5670
|
export type TextOverflowProps = {
|
|
5609
5671
|
/** text 为ReactElement类型时,maxLength配置无效 */
|
|
5610
|
-
text: string | ReactElement;
|
|
5672
|
+
text: string | React$1.ReactElement;
|
|
5611
5673
|
/** 最大显示宽度 */
|
|
5612
5674
|
maxWidth?: number;
|
|
5613
5675
|
/** 最大显示字数 */
|
|
@@ -5642,19 +5704,19 @@ export type TextOverflowProps = {
|
|
|
5642
5704
|
4. 与 Table columns render结合使用,如果Table配置了 scroll={{ x: 'max-content' }}后,不能与TextOverflow maxWidth结合使用
|
|
5643
5705
|
* ```
|
|
5644
5706
|
*/
|
|
5645
|
-
export declare const TextOverflow: import("react").MemoExoticComponent<(props: TextOverflowProps) => import("react").JSX.Element>;
|
|
5707
|
+
export declare const TextOverflow: import("react").MemoExoticComponent<(props: TextOverflowProps) => import("react").React$1.JSX.Element>;
|
|
5646
5708
|
export type TextSymbolWrapperProps = {
|
|
5647
5709
|
className?: string;
|
|
5648
|
-
style?: CSSProperties;
|
|
5710
|
+
style?: React$1.CSSProperties;
|
|
5649
5711
|
/** 内置图标类型 */
|
|
5650
5712
|
symbolType?: "required";
|
|
5651
5713
|
/** 自定义标记符号,优先级大于 symbolType */
|
|
5652
|
-
symbol?: ReactNode;
|
|
5714
|
+
symbol?: React$1.ReactNode;
|
|
5653
5715
|
/** 标记位置,默认:brefore */
|
|
5654
5716
|
position?: "before" | "after";
|
|
5655
5717
|
/** 显示文本 */
|
|
5656
|
-
text?: string | ReactElement;
|
|
5657
|
-
symbolStyle?: CSSProperties;
|
|
5718
|
+
text?: string | React$1.ReactElement;
|
|
5719
|
+
symbolStyle?: React$1.CSSProperties;
|
|
5658
5720
|
onSymbolClick?: (event: any) => void;
|
|
5659
5721
|
/** 只隐藏符号,不隐藏文案 */
|
|
5660
5722
|
hiddenSymbol?: boolean;
|
|
@@ -5667,7 +5729,7 @@ export type TextSymbolWrapperProps = {
|
|
|
5667
5729
|
* 例如: <TextSymbolWrapper text={'用户名'} symbolType="required" />
|
|
5668
5730
|
* ```
|
|
5669
5731
|
*/
|
|
5670
|
-
export declare const TextSymbolWrapper: (props: TextSymbolWrapperProps) => import("react").JSX.Element;
|
|
5732
|
+
export declare const TextSymbolWrapper: (props: TextSymbolWrapperProps) => import("react").React$1.JSX.Element;
|
|
5671
5733
|
export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange" | "format"> & {
|
|
5672
5734
|
value?: string;
|
|
5673
5735
|
onChange?: (value?: string) => void;
|
|
@@ -5697,7 +5759,7 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
5697
5759
|
* 5. 设置disabledTime后,disabledTimeConfig配置将失效
|
|
5698
5760
|
* ```
|
|
5699
5761
|
*/
|
|
5700
|
-
export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => import("react").JSX.Element;
|
|
5762
|
+
export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
5701
5763
|
export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "onChange" | "format"> & {
|
|
5702
5764
|
value?: [
|
|
5703
5765
|
string,
|
|
@@ -5732,7 +5794,7 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
5732
5794
|
* 4. 设置disabledTime后,disabledTimeConfig配置将失效
|
|
5733
5795
|
* ```
|
|
5734
5796
|
*/
|
|
5735
|
-
export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => import("react").JSX.Element;
|
|
5797
|
+
export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
5736
5798
|
export type TimeRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "name"> & {
|
|
5737
5799
|
/**
|
|
5738
5800
|
* 开始的时间name
|
|
@@ -5783,22 +5845,23 @@ export type TimeRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "na
|
|
|
5783
5845
|
* </FormListWrapper>
|
|
5784
5846
|
* ```
|
|
5785
5847
|
*/
|
|
5786
|
-
export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => import("react").JSX.Element;
|
|
5848
|
+
export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => import("react").React$1.JSX.Element;
|
|
5787
5849
|
export type TipsTitleProps = {
|
|
5788
5850
|
className?: string;
|
|
5789
|
-
style?: CSSProperties;
|
|
5790
|
-
title: string | ReactElement;
|
|
5791
|
-
titleStyle?: CSSProperties;
|
|
5792
|
-
|
|
5851
|
+
style?: React$1.CSSProperties;
|
|
5852
|
+
title: string | React$1.ReactElement;
|
|
5853
|
+
titleStyle?: React$1.CSSProperties;
|
|
5854
|
+
contentStyle?: React$1.CSSProperties;
|
|
5855
|
+
children: React$1.ReactNode;
|
|
5793
5856
|
size?: "default" | "small";
|
|
5794
5857
|
/** 自定义 help icon */
|
|
5795
|
-
helpIcon?: ReactElement;
|
|
5858
|
+
helpIcon?: React$1.ReactElement;
|
|
5796
5859
|
/** 配置 helpIcon 后,此参数失效 */
|
|
5797
5860
|
onHelp?: () => void;
|
|
5798
5861
|
hidden?: boolean;
|
|
5799
5862
|
borderColor?: string;
|
|
5800
5863
|
};
|
|
5801
|
-
export declare const TipsTitle: (props: TipsTitleProps) => import("react").JSX.Element | null;
|
|
5864
|
+
export declare const TipsTitle: (props: TipsTitleProps) => import("react").React$1.JSX.Element | null;
|
|
5802
5865
|
export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
5803
5866
|
export type TreeServiceConfig = {
|
|
5804
5867
|
params?: TPlainObject;
|
|
@@ -5841,7 +5904,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
5841
5904
|
/**
|
|
5842
5905
|
* useEffect依赖项数组,用于重新发起获取接口数据
|
|
5843
5906
|
*/
|
|
5844
|
-
effectDependencyList?: DependencyList;
|
|
5907
|
+
effectDependencyList?: React$1.DependencyList;
|
|
5845
5908
|
/**
|
|
5846
5909
|
* 请求服务需求的数据,当设置`selectorTreeList`后无效果
|
|
5847
5910
|
*/
|
|
@@ -5936,12 +5999,12 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
5936
5999
|
showSearch?: boolean;
|
|
5937
6000
|
onSearchValueChange?: (searchValue?: string) => void;
|
|
5938
6001
|
searchPlaceholder?: string;
|
|
5939
|
-
searchStyle?: CSSProperties;
|
|
6002
|
+
searchStyle?: React$1.CSSProperties;
|
|
5940
6003
|
icon?: (data: {
|
|
5941
6004
|
isParent: boolean;
|
|
5942
6005
|
isLeaf: boolean;
|
|
5943
6006
|
[key: string]: TAny;
|
|
5944
|
-
}) => ReactElement;
|
|
6007
|
+
}) => React$1.ReactElement;
|
|
5945
6008
|
/**
|
|
5946
6009
|
* 状态文案配置
|
|
5947
6010
|
*/
|
|
@@ -5981,7 +6044,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
5981
6044
|
/** treeItem数据适配器 */
|
|
5982
6045
|
treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
5983
6046
|
/** 搜索位置额外元素 */
|
|
5984
|
-
searchExtraElement?: ReactElement;
|
|
6047
|
+
searchExtraElement?: React$1.ReactElement;
|
|
5985
6048
|
/** 有唯一跟节点时,初始化是否展开,默认值:false */
|
|
5986
6049
|
initRootExpand?: boolean;
|
|
5987
6050
|
/** 搜素过滤方式,高亮 | 过滤;默认:filter */
|
|
@@ -6016,7 +6079,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
6016
6079
|
* b. 设置 titleRender 后,menuLayout失效
|
|
6017
6080
|
* ```
|
|
6018
6081
|
*/
|
|
6019
|
-
labelRender?: (nodeData: TPlainObject) => ReactElement;
|
|
6082
|
+
labelRender?: (nodeData: TPlainObject) => React$1.ReactElement;
|
|
6020
6083
|
/**
|
|
6021
6084
|
* 自定义搜索规则
|
|
6022
6085
|
*/
|
|
@@ -6083,7 +6146,7 @@ export type TreeWrapperRefApi = {
|
|
|
6083
6146
|
* 6. 内置 onDrop 事件已处理数组排序,通过 onDropNodeHandle 事件可获取操作节点排序数据;自定义onDrop后,内置onDrop失效
|
|
6084
6147
|
* ```
|
|
6085
6148
|
*/
|
|
6086
|
-
export declare const TreeWrapper: ForwardRefExoticComponent<TreeWrapperProps & RefAttributes<TreeWrapperRefApi>> & {
|
|
6149
|
+
export declare const TreeWrapper: React$1.ForwardRefExoticComponent<TreeWrapperProps & React$1.RefAttributes<TreeWrapperRefApi>> & {
|
|
6087
6150
|
getTreeDataList: (modelKey: string) => TPlainObject[];
|
|
6088
6151
|
};
|
|
6089
6152
|
export type TreeModelSelectItem = {
|
|
@@ -6128,7 +6191,7 @@ export type TreeModalContentProps = {
|
|
|
6128
6191
|
treeProps?: Pick<TreeWrapperProps, "showSearch" | "searchResultType" | "searchPlaceholder" | "searchValue" | "loadDataFlag" | "loadDataServiceConfig" | "icon" | "disabledCanUse" | "treeItemDataAdapter" | "searchExtraElement" | "initRootExpand" | "searchResultType" | "labelRender" | "customSearchRule" | "checkableType" | "checkStrictly" | "defaultExpandAll" | "clickParentNodeToggleExpand" | "disableNodeSelect">;
|
|
6129
6192
|
};
|
|
6130
6193
|
export type TreeModalProps = TreeModalContentProps & {
|
|
6131
|
-
children: ReactElement & {
|
|
6194
|
+
children: React$1.ReactElement & {
|
|
6132
6195
|
onClick?: (e: any) => void | Promise<void>;
|
|
6133
6196
|
};
|
|
6134
6197
|
modalClassName?: string;
|
|
@@ -6136,8 +6199,8 @@ export type TreeModalProps = TreeModalContentProps & {
|
|
|
6136
6199
|
modalBodyHeight?: number;
|
|
6137
6200
|
disabled?: boolean;
|
|
6138
6201
|
};
|
|
6139
|
-
export declare const TreeModal: ((props: TreeModalProps) => import("react").JSX.Element) & {
|
|
6140
|
-
Content: (props: TreeModalContentProps) => import("react").JSX.Element;
|
|
6202
|
+
export declare const TreeModal: ((props: TreeModalProps) => import("react").React$1.JSX.Element) & {
|
|
6203
|
+
Content: (props: TreeModalContentProps) => import("react").React$1.JSX.Element;
|
|
6141
6204
|
};
|
|
6142
6205
|
export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRender" | "onChange"> & {
|
|
6143
6206
|
placeholder?: string;
|
|
@@ -6212,7 +6275,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
6212
6275
|
/**
|
|
6213
6276
|
* useEffect依赖项数组,用于重新发起获取接口数据
|
|
6214
6277
|
*/
|
|
6215
|
-
effectDependencyList?: DependencyList;
|
|
6278
|
+
effectDependencyList?: React$1.DependencyList;
|
|
6216
6279
|
/**
|
|
6217
6280
|
* 请求服务需求的数据,当设置`treeSelectorList`后无效果
|
|
6218
6281
|
*/
|
|
@@ -6311,7 +6374,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
6311
6374
|
* 2. 父节点默认不返回,需要返回请设置showCheckedStrategy
|
|
6312
6375
|
* ```
|
|
6313
6376
|
*/
|
|
6314
|
-
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react").JSX.Element;
|
|
6377
|
+
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react").React$1.JSX.Element;
|
|
6315
6378
|
export type TXMindTreeItem = {
|
|
6316
6379
|
data: {
|
|
6317
6380
|
/** 节点文本 */
|
|
@@ -6327,7 +6390,7 @@ export type TXMindTreeItem = {
|
|
|
6327
6390
|
export interface IXMindPreviewProps {
|
|
6328
6391
|
data?: TXMindTreeItem;
|
|
6329
6392
|
className?: string;
|
|
6330
|
-
style?: CSSProperties;
|
|
6393
|
+
style?: React$1.CSSProperties;
|
|
6331
6394
|
/**
|
|
6332
6395
|
* 自定义节点渲染内容:
|
|
6333
6396
|
* 默认情况 xmind 会自动计算节点的宽高,
|
|
@@ -6340,9 +6403,9 @@ export interface IXMindPreviewProps {
|
|
|
6340
6403
|
renderNode?: (node: TXMindTreeItem) => {
|
|
6341
6404
|
width?: number;
|
|
6342
6405
|
height?: number;
|
|
6343
|
-
reactNode: ReactNode;
|
|
6406
|
+
reactNode: React$1.ReactNode;
|
|
6344
6407
|
} | void;
|
|
6345
6408
|
}
|
|
6346
|
-
export declare const XMindPreview: FC<IXMindPreviewProps>;
|
|
6409
|
+
export declare const XMindPreview: React$1.FC<IXMindPreviewProps>;
|
|
6347
6410
|
|
|
6348
6411
|
export {};
|