@flatbiz/antd 5.0.34 → 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/ai-search/index.js +1 -1
- package/dist/{ai-search-DIVO-ryc.js → ai-search-WcG2oakE.js} +2 -2
- package/dist/{ai-search-DIVO-ryc.js.map → ai-search-WcG2oakE.js.map} +1 -1
- package/dist/dialog-drag-modal/index.js +2 -1
- package/dist/dialog-drag-modal/index.js.map +1 -1
- package/dist/drag-editable-card/index.d.ts +7 -4
- package/dist/drag-editable-card/index.js +7 -7
- package/dist/{drag-modal-hO3kzep4.js → drag-modal-DVq260Mc.js} +5 -33
- package/dist/{drag-modal-hO3kzep4.js.map → drag-modal-DVq260Mc.js.map} +1 -1
- package/dist/drawer-BI8T3w7e.js +257 -0
- package/dist/drawer-BI8T3w7e.js.map +1 -0
- package/dist/easy-form/index.d.ts +0 -4
- package/dist/easy-form/index.js +1 -1
- package/dist/easy-table/index.d.ts +0 -4
- package/dist/easy-table/index.js +1 -1
- package/dist/editable-card/index.d.ts +7 -4
- package/dist/editable-card/index.js +6 -6
- 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/{form-3qaPduiy.js → form-DNtjXzAW.js} +35 -36
- package/dist/form-DNtjXzAW.js.map +1 -0
- package/dist/index.d.ts +475 -447
- package/dist/index.js +9 -5
- package/dist/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/package.json +10 -5
- package/dist/editable-card-DlqrwXa0.js.map +0 -1
- package/dist/form-3qaPduiy.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,7 +185,7 @@ 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;
|
|
188
189
|
export type AiSearchProps = {
|
|
189
190
|
/** 获取AI提示词 */
|
|
190
191
|
getPromptValue: (inputValue: string) => string;
|
|
@@ -198,25 +199,25 @@ export type AiSearchProps = {
|
|
|
198
199
|
maxRows?: number;
|
|
199
200
|
};
|
|
200
201
|
className?: string;
|
|
201
|
-
style?: CSSProperties;
|
|
202
|
+
style?: React$1.CSSProperties;
|
|
202
203
|
/** 是否使用流式交互 */
|
|
203
204
|
stream?: boolean;
|
|
204
205
|
/** 设置进度条跑完时间,单位秒,默认值:10秒 */
|
|
205
206
|
progressTime?: number;
|
|
206
207
|
};
|
|
207
|
-
export declare const AiSearch: (props: AiSearchProps) => import("react").JSX.Element;
|
|
208
|
+
export declare const AiSearch: (props: AiSearchProps) => import("react").React$1.JSX.Element;
|
|
208
209
|
export type AlertWrapperProps = AlertProps & {
|
|
209
210
|
size?: "small" | "default" | "large";
|
|
210
211
|
};
|
|
211
212
|
/**
|
|
212
213
|
* antd Alert 无法控制内边距,此组件扩展size属性
|
|
213
214
|
*/
|
|
214
|
-
export declare const AlertWrapper: (props: AlertWrapperProps) => import("react").JSX.Element;
|
|
215
|
+
export declare const AlertWrapper: (props: AlertWrapperProps) => import("react").React$1.JSX.Element;
|
|
215
216
|
export type AmountFenInputProps = Omit<InputNumberProps, "defaultValue"> & {
|
|
216
217
|
value?: number;
|
|
217
218
|
onChange?: (value?: number) => void;
|
|
218
219
|
};
|
|
219
|
-
export declare const AmountFenInput: (props: AmountFenInputProps) => import("react").JSX.Element;
|
|
220
|
+
export declare const AmountFenInput: (props: AmountFenInputProps) => import("react").React$1.JSX.Element;
|
|
220
221
|
export type AmountFenInputFormItemProps = FormItemProps & {
|
|
221
222
|
inputNumberProps?: Omit<InputNumberProps, "value" | "onChange" | "defaultValue">;
|
|
222
223
|
};
|
|
@@ -231,12 +232,12 @@ export type AmountFenInputFormItemProps = FormItemProps & {
|
|
|
231
232
|
* />
|
|
232
233
|
* ```
|
|
233
234
|
*/
|
|
234
|
-
export declare const AmountFenInputFormItem: (props: AmountFenInputFormItemProps) => import("react").JSX.Element;
|
|
235
|
+
export declare const AmountFenInputFormItem: (props: AmountFenInputFormItemProps) => import("react").React$1.JSX.Element;
|
|
235
236
|
export type AnchorStepsProps = {
|
|
236
237
|
steps: {
|
|
237
238
|
id: string;
|
|
238
239
|
title: string;
|
|
239
|
-
content: ReactElement;
|
|
240
|
+
content: React$1.ReactElement;
|
|
240
241
|
}[];
|
|
241
242
|
className?: string;
|
|
242
243
|
};
|
|
@@ -245,8 +246,8 @@ export type AnchorStepsProps = {
|
|
|
245
246
|
* @param props
|
|
246
247
|
* @returns
|
|
247
248
|
*/
|
|
248
|
-
export declare const AnchorSteps: (props: AnchorStepsProps) => import("react").JSX.Element;
|
|
249
|
-
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>;
|
|
250
251
|
/**
|
|
251
252
|
* 块布局(控制light/dark模式下,块背景色和字体颜色)
|
|
252
253
|
* ```
|
|
@@ -258,7 +259,7 @@ export type BlockLayoutProps = DetailedHTMLProps<React.HTMLAttributes<HTMLDivEle
|
|
|
258
259
|
* @param props
|
|
259
260
|
* @returns
|
|
260
261
|
*/
|
|
261
|
-
export declare const BlockLayout: (props: BlockLayoutProps) => import("react").JSX.Element;
|
|
262
|
+
export declare const BlockLayout: (props: BlockLayoutProps) => import("react").React$1.JSX.Element;
|
|
262
263
|
export type FormItemNamePath = string | number | Array<string | number>;
|
|
263
264
|
export type TLocale = "en" | "zh-cn";
|
|
264
265
|
export type TFbaLocale = {
|
|
@@ -284,13 +285,13 @@ export type ConfigProviderWrapperProps = Omit<ConfigProviderProps, "locale"> & {
|
|
|
284
285
|
* 1. 新增监听辅助行为,移除复制文本中前后空格能力
|
|
285
286
|
* ```
|
|
286
287
|
*/
|
|
287
|
-
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => import("react").JSX.Element;
|
|
288
|
+
export declare const ConfigProviderWrapper: (props: ConfigProviderWrapperProps) => import("react").React$1.JSX.Element;
|
|
288
289
|
export type BootstrapProps = {
|
|
289
290
|
/** 是否紧凑模式 */
|
|
290
291
|
compact?: boolean;
|
|
291
292
|
/** 是否drak模式 */
|
|
292
293
|
dark?: boolean;
|
|
293
|
-
children: ReactNode;
|
|
294
|
+
children: React$1.ReactNode;
|
|
294
295
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
295
296
|
/** @default zhCN */
|
|
296
297
|
locale?: "en" | "zh-cn";
|
|
@@ -323,12 +324,12 @@ export type BootstrapProps = {
|
|
|
323
324
|
* 4. 封装 antd ConfigProvider 可配置主题
|
|
324
325
|
* ```
|
|
325
326
|
*/
|
|
326
|
-
export declare const Bootstrap: (props: BootstrapProps) => import("react").JSX.Element;
|
|
327
|
+
export declare const Bootstrap: (props: BootstrapProps) => import("react").React$1.JSX.Element;
|
|
327
328
|
export type TBoxBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
328
329
|
export interface ICommonReact {
|
|
329
|
-
children?: ReactNode;
|
|
330
|
+
children?: React$1.ReactNode;
|
|
330
331
|
className?: string;
|
|
331
|
-
style?: CSSProperties;
|
|
332
|
+
style?: React$1.CSSProperties;
|
|
332
333
|
}
|
|
333
334
|
export type Gutter = number | undefined | Partial<Record<TBoxBreakpoint, number>>;
|
|
334
335
|
export type GutterParams = Gutter | [
|
|
@@ -437,7 +438,7 @@ export declare const BoxGrid: {
|
|
|
437
438
|
};
|
|
438
439
|
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
439
440
|
/** 当返回 Promise 时,按钮自动loading */
|
|
440
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
441
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
441
442
|
/** 重复点击间隙,单位毫秒 默认值:500 */
|
|
442
443
|
debounceDuration?: number;
|
|
443
444
|
/** 基于GLOBAL中elemAclLimits按钮权限列表,控制按钮显示、隐藏 */
|
|
@@ -457,7 +458,7 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
|
457
458
|
* @param props
|
|
458
459
|
* @returns
|
|
459
460
|
*/
|
|
460
|
-
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;
|
|
461
462
|
export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
|
|
462
463
|
/**
|
|
463
464
|
* 内置尺寸,根据比例固定高度、宽度,默认:无
|
|
@@ -467,11 +468,11 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
467
468
|
* ```
|
|
468
469
|
*/
|
|
469
470
|
size?: "small" | "middle" | "large" | null;
|
|
470
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
471
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
472
|
-
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: {
|
|
473
474
|
onClose: TNoopDefine;
|
|
474
|
-
}) => ReactElement);
|
|
475
|
+
}) => React$1.ReactElement);
|
|
475
476
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
476
477
|
okHidden?: boolean;
|
|
477
478
|
cancelHidden?: boolean;
|
|
@@ -486,14 +487,14 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
486
487
|
* ```
|
|
487
488
|
*/
|
|
488
489
|
bodyHeightPercent?: number;
|
|
489
|
-
titleExtra?: ReactElement;
|
|
490
|
+
titleExtra?: React$1.ReactElement;
|
|
490
491
|
/**
|
|
491
492
|
* null则隐藏footer
|
|
492
493
|
* ```
|
|
493
494
|
* extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
494
495
|
* ```
|
|
495
496
|
*/
|
|
496
|
-
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);
|
|
497
498
|
/** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
|
|
498
499
|
bodyHeight?: number;
|
|
499
500
|
};
|
|
@@ -532,12 +533,12 @@ export declare const dialogModal: {
|
|
|
532
533
|
};
|
|
533
534
|
};
|
|
534
535
|
export interface DropdownMenuItem extends Omit<ButtonProps, "color"> {
|
|
535
|
-
text?: string | ReactElement;
|
|
536
|
+
text?: string | React$1.ReactElement;
|
|
536
537
|
color?: string;
|
|
537
|
-
onClick?: (event: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
538
|
+
onClick?: (event: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
538
539
|
permission?: string;
|
|
539
540
|
needConfirm?: boolean;
|
|
540
|
-
confirmMessage?: ReactNode;
|
|
541
|
+
confirmMessage?: React$1.ReactNode;
|
|
541
542
|
hidden?: boolean;
|
|
542
543
|
confirmModalProps?: DialogModalProps;
|
|
543
544
|
stopPropagation?: boolean;
|
|
@@ -556,20 +557,20 @@ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
|
|
|
556
557
|
* 1. Dropdown默认弹框根节点在组件内部,通过isFixed=true可设置弹框根节点在body下
|
|
557
558
|
* ```
|
|
558
559
|
*/
|
|
559
|
-
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => import("react").JSX.Element;
|
|
560
|
+
export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => import("react").React$1.JSX.Element;
|
|
560
561
|
export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
561
562
|
/** hover 提示文字,isFold=true无效 */
|
|
562
|
-
hoverTips?: string | ReactElement;
|
|
563
|
+
hoverTips?: string | React$1.ReactElement;
|
|
563
564
|
/** hover 提示类型 默认:'tooltip' */
|
|
564
565
|
tipsType?: "popover" | "tooltip";
|
|
565
566
|
/** 按钮文案 */
|
|
566
|
-
text?: string | ReactElement;
|
|
567
|
+
text?: string | React$1.ReactElement;
|
|
567
568
|
/** 自定义按钮颜色 */
|
|
568
569
|
color?: string;
|
|
569
570
|
/** 是否需要二次弹框确认 */
|
|
570
571
|
needConfirm?: boolean;
|
|
571
572
|
/** 二次弹框确认文案 */
|
|
572
|
-
confirmMessage?: ReactNode;
|
|
573
|
+
confirmMessage?: React$1.ReactNode;
|
|
573
574
|
popconfirmProps?: Pick<PopconfirmProps, "placement" | "okText" | "cancelText" | "trigger">;
|
|
574
575
|
/** 是否折叠合拢 */
|
|
575
576
|
isFold?: boolean;
|
|
@@ -579,7 +580,7 @@ export interface ButtonOperateItem extends ButtonWrapperProps {
|
|
|
579
580
|
}
|
|
580
581
|
export interface ButtonOperateProps {
|
|
581
582
|
className?: string;
|
|
582
|
-
style?: CSSProperties;
|
|
583
|
+
style?: React$1.CSSProperties;
|
|
583
584
|
/**
|
|
584
585
|
* 如果数组中元素为ReactElement类型
|
|
585
586
|
* 1. 一般为antd Button组件,如果组件存在属性hidden=true、v-hidden=true,则会隐藏
|
|
@@ -587,11 +588,11 @@ export interface ButtonOperateProps {
|
|
|
587
588
|
* 3. 任何confirm、disabled等状态在外部控制
|
|
588
589
|
* 3. 不支持fold效果
|
|
589
590
|
*/
|
|
590
|
-
operateList: Array<ButtonOperateItem | null | ReactElement>;
|
|
591
|
+
operateList: Array<ButtonOperateItem | null | React$1.ReactElement>;
|
|
591
592
|
/** 是否换行,默认true */
|
|
592
593
|
wrap?: boolean;
|
|
593
594
|
/** 隐藏图标Icon */
|
|
594
|
-
foldIcon?: ReactElement;
|
|
595
|
+
foldIcon?: React$1.ReactElement;
|
|
595
596
|
/** 按钮之间是否添加分隔符 */
|
|
596
597
|
split?: boolean;
|
|
597
598
|
/** 多个按钮的包装组件Space属性 */
|
|
@@ -602,8 +603,8 @@ export interface ButtonOperateProps {
|
|
|
602
603
|
dropdownMenuProps?: Omit<DropdownMenuWrapperProps, "menuList">;
|
|
603
604
|
}
|
|
604
605
|
export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "hoverTips" | "tipsType"> & {
|
|
605
|
-
content: ReactNode;
|
|
606
|
-
}) => import("react").JSX.Element;
|
|
606
|
+
content: React$1.ReactNode;
|
|
607
|
+
}) => import("react").React$1.JSX.Element;
|
|
607
608
|
/**
|
|
608
609
|
* 按钮组合处理组件
|
|
609
610
|
* ```
|
|
@@ -616,14 +617,14 @@ export declare const ButtonOperateItemContent: (props: Pick<ButtonOperateItem, "
|
|
|
616
617
|
* 2. 修改原因:升级 antd 5.5.1 后,Dropdown 中 Popconfirm弹框组合使用存在问题
|
|
617
618
|
* ```
|
|
618
619
|
*/
|
|
619
|
-
export declare const ButtonOperate: FC<ButtonOperateProps>;
|
|
620
|
+
export declare const ButtonOperate: React$1.FC<ButtonOperateProps>;
|
|
620
621
|
export type CardLayoutProps = {
|
|
621
622
|
/** 描述 */
|
|
622
|
-
desc?: string | string[] | ReactElement | ReactElement[];
|
|
623
|
+
desc?: string | string[] | React$1.ReactElement | React$1.ReactElement[];
|
|
623
624
|
/** 标题 */
|
|
624
|
-
title?: string | ReactElement;
|
|
625
|
+
title?: string | React$1.ReactElement;
|
|
625
626
|
/** 子标题,在标题右侧 */
|
|
626
|
-
subTitle?: string | ReactElement;
|
|
627
|
+
subTitle?: string | React$1.ReactElement;
|
|
627
628
|
/**
|
|
628
629
|
* layoutType 布局类型
|
|
629
630
|
* ```
|
|
@@ -634,19 +635,19 @@ export type CardLayoutProps = {
|
|
|
634
635
|
layoutType?: "layer" | "tight";
|
|
635
636
|
/** 隐藏标题左侧符号 */
|
|
636
637
|
titleLeftLine?: boolean;
|
|
637
|
-
titleStyle?: CSSProperties;
|
|
638
|
-
titleContentStyle?: CSSProperties;
|
|
639
|
-
subTitleStyle?: CSSProperties;
|
|
640
|
-
titleExtraStyle?: CSSProperties;
|
|
641
|
-
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;
|
|
642
643
|
/** 优先级大于 style padding */
|
|
643
|
-
padding?: CSSProperties["padding"];
|
|
644
|
+
padding?: React$1.CSSProperties["padding"];
|
|
644
645
|
/** 优先级大于 style width */
|
|
645
|
-
width?: CSSProperties["width"];
|
|
646
|
+
width?: React$1.CSSProperties["width"];
|
|
646
647
|
/** 优先级大于 style height */
|
|
647
|
-
height?: CSSProperties["height"];
|
|
648
|
+
height?: React$1.CSSProperties["height"];
|
|
648
649
|
/** 标题右侧布局 */
|
|
649
|
-
titleExtra?: string | ReactElement;
|
|
650
|
+
titleExtra?: string | React$1.ReactElement;
|
|
650
651
|
/** 当存在滚动条时,标题固定,滚动区域为内部部分 */
|
|
651
652
|
titleFixed?: boolean;
|
|
652
653
|
/**
|
|
@@ -657,9 +658,9 @@ export type CardLayoutProps = {
|
|
|
657
658
|
size?: "default" | "small";
|
|
658
659
|
onClick?: (event: any) => void;
|
|
659
660
|
hidden?: boolean;
|
|
660
|
-
children?: ReactNode;
|
|
661
|
+
children?: React$1.ReactNode;
|
|
661
662
|
className?: string;
|
|
662
|
-
style?: CSSProperties;
|
|
663
|
+
style?: React$1.CSSProperties;
|
|
663
664
|
};
|
|
664
665
|
/**
|
|
665
666
|
* 卡片结构布局,替代 SimpleLayout 组件
|
|
@@ -672,7 +673,7 @@ export type CardLayoutProps = {
|
|
|
672
673
|
* ```
|
|
673
674
|
*/
|
|
674
675
|
export declare const CardLayout: {
|
|
675
|
-
(props: CardLayoutProps): import("react").JSX.Element;
|
|
676
|
+
(props: CardLayoutProps): import("react").React$1.JSX.Element;
|
|
676
677
|
defaultProps: {
|
|
677
678
|
titleLeftLine: boolean;
|
|
678
679
|
layoutType: string;
|
|
@@ -685,15 +686,15 @@ export declare const CardLayout: {
|
|
|
685
686
|
* @param props
|
|
686
687
|
* @returns
|
|
687
688
|
*/
|
|
688
|
-
export declare const CardWrapper: (props: CardProps) => import("react").JSX.Element;
|
|
689
|
+
export declare const CardWrapper: (props: CardProps) => import("react").React$1.JSX.Element;
|
|
689
690
|
export type TRequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
|
|
690
691
|
export type TRequestStatusProps = {
|
|
691
692
|
status?: TRequestStatus;
|
|
692
|
-
errorButton?: ReactElement;
|
|
693
|
+
errorButton?: React$1.ReactElement;
|
|
693
694
|
messageConfig?: Partial<Record<TRequestStatus, string>>;
|
|
694
695
|
loading?: boolean;
|
|
695
696
|
};
|
|
696
|
-
export declare const RequestStatus: (props: TRequestStatusProps) => import("react").JSX.Element;
|
|
697
|
+
export declare const RequestStatus: (props: TRequestStatusProps) => import("react").React$1.JSX.Element;
|
|
697
698
|
export type CascaderWrapperServiceConfig = {
|
|
698
699
|
params?: TPlainObject;
|
|
699
700
|
onRequest?: (params?: TAny) => TAny;
|
|
@@ -722,7 +723,7 @@ export type CascaderWrapperProps = Omit<CascaderProps<TAny>, "loading" | "notFou
|
|
|
722
723
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
723
724
|
*/
|
|
724
725
|
serviceConfig?: CascaderWrapperServiceConfig;
|
|
725
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
726
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
726
727
|
onSelectorListChange?: (dataList: TPlainObject[]) => void;
|
|
727
728
|
/**
|
|
728
729
|
* 是否动态加载选项
|
|
@@ -778,7 +779,7 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
778
779
|
* 请求服务需求的数据,当设置`selectorList`后无效果
|
|
779
780
|
*/
|
|
780
781
|
serviceConfig?: CascaderWrapperServiceConfig;
|
|
781
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
782
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
782
783
|
onSelectorListChange?: (dataList: TPlainObject[]) => void;
|
|
783
784
|
/**
|
|
784
785
|
* 是否动态加载选项
|
|
@@ -801,8 +802,8 @@ export declare const CascaderWrapper: import("react").ForwardRefExoticComponent<
|
|
|
801
802
|
} & import("react").RefAttributes<CascaderWrapperRefApi>>;
|
|
802
803
|
export interface CommonPropsWithChildren<S extends TPlainObject = TPlainObject> {
|
|
803
804
|
className?: string;
|
|
804
|
-
style?: CSSProperties & Partial<S>;
|
|
805
|
-
children?: ReactNode | undefined;
|
|
805
|
+
style?: React$1.CSSProperties & Partial<S>;
|
|
806
|
+
children?: React$1.ReactNode | undefined;
|
|
806
807
|
}
|
|
807
808
|
export type CheckListItemValue = string | number;
|
|
808
809
|
export type CheckListSelectedValue<T extends "multi" | "radio"> = T extends "multi" ? CheckListItemValue[] : CheckListItemValue;
|
|
@@ -812,8 +813,8 @@ export type CheckListProps<T extends "multi" | "radio"> = {
|
|
|
812
813
|
onPreChange?: (value: CheckListItemValue) => Promise<void>;
|
|
813
814
|
value?: CheckListSelectedValue<T>;
|
|
814
815
|
defaultValue?: CheckListSelectedValue<T>;
|
|
815
|
-
beforeExtra?: ReactNode;
|
|
816
|
-
afterExtra?: ReactNode;
|
|
816
|
+
beforeExtra?: React$1.ReactNode;
|
|
817
|
+
afterExtra?: React$1.ReactNode;
|
|
817
818
|
stopPropagation?: boolean;
|
|
818
819
|
required?: boolean;
|
|
819
820
|
} & CommonPropsWithChildren;
|
|
@@ -823,17 +824,17 @@ export type CheckListItemContentProps = {
|
|
|
823
824
|
onClick?: (event: any) => void;
|
|
824
825
|
className?: string;
|
|
825
826
|
readonly?: boolean;
|
|
826
|
-
style?: CSSProperties;
|
|
827
|
+
style?: React$1.CSSProperties;
|
|
827
828
|
};
|
|
828
829
|
export type CheckListItemProps = {
|
|
829
830
|
value: CheckListItemValue;
|
|
830
831
|
disabled?: boolean;
|
|
831
832
|
readonly?: boolean;
|
|
832
|
-
children: (data: CheckListItemContentProps) => ReactElement;
|
|
833
|
+
children: (data: CheckListItemContentProps) => React$1.ReactElement;
|
|
833
834
|
className?: string;
|
|
834
|
-
style?: CSSProperties;
|
|
835
|
+
style?: React$1.CSSProperties;
|
|
835
836
|
};
|
|
836
|
-
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) & {
|
|
837
838
|
Item: (props: CheckListItemProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
838
839
|
};
|
|
839
840
|
export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultChecked" | "onChange"> & {
|
|
@@ -854,7 +855,7 @@ export type CheckboxWrapperProps = Omit<CheckboxProps, "checked" | "defaultCheck
|
|
|
854
855
|
* </Form.Item>
|
|
855
856
|
* ```
|
|
856
857
|
*/
|
|
857
|
-
export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => import("react").JSX.Element;
|
|
858
|
+
export declare const CheckboxWrapper: (props: CheckboxWrapperProps) => import("react").React$1.JSX.Element;
|
|
858
859
|
export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange"> & {
|
|
859
860
|
/** 格式:#1677ff */
|
|
860
861
|
value?: string;
|
|
@@ -862,13 +863,13 @@ export type ColorPickerWrapperProps = Omit<ColorPickerProps, "value" | "onChange
|
|
|
862
863
|
onChange?: (hex?: string) => void;
|
|
863
864
|
viewMinWidth?: number;
|
|
864
865
|
};
|
|
865
|
-
export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react").JSX.Element;
|
|
866
|
+
export declare const ColorPickerWrapper: (props: ColorPickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
866
867
|
export type CssHoverProps = {
|
|
867
|
-
children: ReactElement | ReactElement[];
|
|
868
|
+
children: React$1.ReactElement | React$1.ReactElement[];
|
|
868
869
|
} & Pick<CommonPropsWithChildren<{
|
|
869
|
-
"--v-css-hover-bgcolor": CSSProperties["backgroundColor"];
|
|
870
|
-
"--v-css-hover-opacity": CSSProperties["opacity"];
|
|
871
|
-
"--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"];
|
|
872
873
|
}>, "style" | "children">;
|
|
873
874
|
/**
|
|
874
875
|
* css hover 效果
|
|
@@ -879,14 +880,14 @@ export type CssHoverProps = {
|
|
|
879
880
|
* @param props
|
|
880
881
|
* @returns
|
|
881
882
|
*/
|
|
882
|
-
export declare const CssNodeHover: (props: CssHoverProps) => import("react").JSX.Element;
|
|
883
|
+
export declare const CssNodeHover: (props: CssHoverProps) => import("react").React$1.JSX.Element;
|
|
883
884
|
export type DataRenderProps = {
|
|
884
885
|
isEmpty: boolean | (() => boolean);
|
|
885
|
-
empty?: ReactElement;
|
|
886
|
-
emptyText?: string | ReactElement;
|
|
887
|
-
emptyStyle?: CSSProperties;
|
|
886
|
+
empty?: React$1.ReactElement;
|
|
887
|
+
emptyText?: string | React$1.ReactElement;
|
|
888
|
+
emptyStyle?: React$1.CSSProperties;
|
|
888
889
|
emptyClassName?: string;
|
|
889
|
-
children: ReactNode;
|
|
890
|
+
children: React$1.ReactNode;
|
|
890
891
|
};
|
|
891
892
|
/**
|
|
892
893
|
* 数据渲染,内置处理数据为空渲染
|
|
@@ -904,7 +905,7 @@ export type DataRenderProps = {
|
|
|
904
905
|
* </DataRender>
|
|
905
906
|
* ```
|
|
906
907
|
*/
|
|
907
|
-
export declare const DataRender: (props: DataRenderProps) => import("react").JSX.Element;
|
|
908
|
+
export declare const DataRender: (props: DataRenderProps) => import("react").React$1.JSX.Element;
|
|
908
909
|
export type TDayjsDateType = "YYYY-MM-DD HH:mm:ss" | "YYYY-MM-DD HH:mm" | "YYYY-MM-DD HH" | "YYYY-MM-DD" | (string & {});
|
|
909
910
|
export type TDayjsTimeType = "HH:mm:ss" | "HH:mm" | "HH" | "mm:ss" | "mm" | "ss" | (string & {});
|
|
910
911
|
export type DatePickerWrapperProps = Omit<PickerProps<TAny>, "value" | "onChange" | "format"> & {
|
|
@@ -938,7 +939,7 @@ export type DatePickerWrapperProps = Omit<PickerProps<TAny>, "value" | "onChange
|
|
|
938
939
|
* 5. 设置 disabledTime 后,内置的disabledTime逻辑将失效
|
|
939
940
|
* ```
|
|
940
941
|
*/
|
|
941
|
-
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react").JSX.Element;
|
|
942
|
+
export declare const DatePickerWrapper: (props: DatePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
942
943
|
export type RangePickerDateProps = GetProps<typeof DatePicker.RangePicker>;
|
|
943
944
|
export type DateRangePickerWrapperProps = Omit<RangePickerDateProps, "value" | "onChange" | "onCalendarChange" | "format"> & {
|
|
944
945
|
value?: [
|
|
@@ -989,7 +990,7 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps, "value" | "
|
|
|
989
990
|
* TODO: 存在场景缺陷,当设置maxDays、showTime后,在选择单个日期不通过确认按钮直接切换输入框,无法获取回调,无法约束disabledDate
|
|
990
991
|
* ```
|
|
991
992
|
*/
|
|
992
|
-
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react").JSX.Element;
|
|
993
|
+
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
993
994
|
export type TFormLayoutPreClassNameProps = {
|
|
994
995
|
/**
|
|
995
996
|
* label宽度,Form内部所有FormItem label都生效
|
|
@@ -1029,13 +1030,13 @@ export type TFormItemLayoutPreClassNameProps = {
|
|
|
1029
1030
|
className?: string;
|
|
1030
1031
|
};
|
|
1031
1032
|
export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "noStyle"> & TFormItemLayoutPreClassNameProps & {
|
|
1032
|
-
wrapper?: (children: ReactNode) => ReactElement;
|
|
1033
|
+
wrapper?: (children: React$1.ReactNode) => React$1.ReactElement;
|
|
1033
1034
|
/** 设置wrapper后,before、after失效 */
|
|
1034
|
-
before?: ReactNode;
|
|
1035
|
+
before?: React$1.ReactNode;
|
|
1035
1036
|
/** 设置wrapper后,before、after失效 */
|
|
1036
|
-
after?: ReactNode;
|
|
1037
|
+
after?: React$1.ReactNode;
|
|
1037
1038
|
/** 设置 before、after 属性的包装结构style */
|
|
1038
|
-
beforeAfterStyle?: CSSProperties;
|
|
1039
|
+
beforeAfterStyle?: React$1.CSSProperties;
|
|
1039
1040
|
/** value 序列化处理 */
|
|
1040
1041
|
inputNormalize?: (value?: TAny) => TAny;
|
|
1041
1042
|
/**
|
|
@@ -1068,7 +1069,7 @@ export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "
|
|
|
1068
1069
|
*/
|
|
1069
1070
|
span?: number;
|
|
1070
1071
|
/** 不支持函数式写法,如果需要使用dependencies获取表单值,可使用FormItemWrapperDependencies 组件 */
|
|
1071
|
-
children?: ReactNode;
|
|
1072
|
+
children?: React$1.ReactNode;
|
|
1072
1073
|
/**
|
|
1073
1074
|
* ```
|
|
1074
1075
|
* 1. 设置noStyle后,可能会导致 FromItemWrapper 在 EasyFrom 内部渲染网格布局时出现异常
|
|
@@ -1104,7 +1105,7 @@ export type FormItemWrapperProps = Omit<FormItemProps, "hidden" | "children" | "
|
|
|
1104
1105
|
* ```
|
|
1105
1106
|
*/
|
|
1106
1107
|
export declare const FormItemWrapper: {
|
|
1107
|
-
(props: FormItemWrapperProps): import("react").JSX.Element;
|
|
1108
|
+
(props: FormItemWrapperProps): import("react").React$1.JSX.Element;
|
|
1108
1109
|
domTypeName: string;
|
|
1109
1110
|
};
|
|
1110
1111
|
export type DateRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "name"> & {
|
|
@@ -1157,21 +1158,21 @@ export type DateRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "na
|
|
|
1157
1158
|
* </FormListWrapper>
|
|
1158
1159
|
* ```
|
|
1159
1160
|
*/
|
|
1160
|
-
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => import("react").JSX.Element;
|
|
1161
|
+
export declare const DateRangePickerWrapperFormItem: (props: DateRangePickerWrapperFormItemProps) => import("react").React$1.JSX.Element;
|
|
1161
1162
|
/** 删除节点,点击后会显示二次确认点击 */
|
|
1162
1163
|
export declare const DeleteNode: (props: {
|
|
1163
1164
|
onDelete: () => void;
|
|
1164
1165
|
/** 默认图标 */
|
|
1165
|
-
icon?: ReactElement;
|
|
1166
|
+
icon?: React$1.ReactElement;
|
|
1166
1167
|
/** 确认图标 */
|
|
1167
|
-
confirmIcon?: ReactElement;
|
|
1168
|
+
confirmIcon?: React$1.ReactElement;
|
|
1168
1169
|
/** 是否隐藏 */
|
|
1169
1170
|
hidden?: boolean;
|
|
1170
|
-
style?: CSSProperties;
|
|
1171
|
+
style?: React$1.CSSProperties;
|
|
1171
1172
|
className?: string;
|
|
1172
|
-
}) => import("react").JSX.Element;
|
|
1173
|
+
}) => import("react").React$1.JSX.Element;
|
|
1173
1174
|
export type DialogAlertProps = Omit<DialogModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
|
|
1174
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1175
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1175
1176
|
};
|
|
1176
1177
|
/**
|
|
1177
1178
|
* 确认弹框
|
|
@@ -1211,40 +1212,40 @@ export type DialogDragModalProps = {
|
|
|
1211
1212
|
/** 相同的modalKey,最多只有一个弹起状态 */
|
|
1212
1213
|
modalKey?: string;
|
|
1213
1214
|
className?: string;
|
|
1214
|
-
style?: CSSProperties;
|
|
1215
|
+
style?: React$1.CSSProperties;
|
|
1215
1216
|
styles?: {
|
|
1216
|
-
header?: CSSProperties;
|
|
1217
|
-
body?: CSSProperties;
|
|
1218
|
-
footer?: CSSProperties;
|
|
1217
|
+
header?: React$1.CSSProperties;
|
|
1218
|
+
body?: React$1.CSSProperties;
|
|
1219
|
+
footer?: React$1.CSSProperties;
|
|
1219
1220
|
};
|
|
1220
1221
|
width?: number;
|
|
1221
1222
|
bodyHeight?: number;
|
|
1222
1223
|
/** 触发弹起点击事件event,用于计算鼠标位置 */
|
|
1223
|
-
event?: React.MouseEvent<HTMLElement>;
|
|
1224
|
+
event?: React$1.MouseEvent<HTMLElement>;
|
|
1224
1225
|
/** 定义弹出层距离触发点的x轴偏移量 */
|
|
1225
1226
|
xOffset?: number;
|
|
1226
1227
|
title?: string;
|
|
1227
|
-
okText?: string | ReactElement;
|
|
1228
|
-
cancelText?: string | ReactElement;
|
|
1228
|
+
okText?: string | React$1.ReactElement;
|
|
1229
|
+
cancelText?: string | React$1.ReactElement;
|
|
1229
1230
|
okHidden?: boolean;
|
|
1230
1231
|
cancelHidden?: boolean;
|
|
1231
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1232
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1233
|
-
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: {
|
|
1234
1235
|
onClose: TNoopDefine;
|
|
1235
|
-
}) => ReactElement);
|
|
1236
|
+
}) => React$1.ReactElement);
|
|
1236
1237
|
/** 覆盖当前footer,自定义操作按钮 */
|
|
1237
1238
|
footer?: null | ((form: FormInstance, operate: {
|
|
1238
1239
|
onClose: TNoopDefine;
|
|
1239
|
-
}) => ReactElement);
|
|
1240
|
+
}) => React$1.ReactElement);
|
|
1240
1241
|
/** 当前footer操作按钮,左侧扩展 */
|
|
1241
1242
|
footerOperateBeforeRender?: (form: FormInstance, operate: {
|
|
1242
1243
|
onClose: TNoopDefine;
|
|
1243
|
-
}) => ReactElement;
|
|
1244
|
+
}) => React$1.ReactElement;
|
|
1244
1245
|
/** 当前footer操作按钮,右侧扩展 */
|
|
1245
1246
|
footerOperateAfterRender?: (form: FormInstance, operate: {
|
|
1246
1247
|
onClose: TNoopDefine;
|
|
1247
|
-
}) => ReactElement;
|
|
1248
|
+
}) => React$1.ReactElement;
|
|
1248
1249
|
};
|
|
1249
1250
|
/**
|
|
1250
1251
|
* 可移动弹框
|
|
@@ -1266,13 +1267,13 @@ export declare const dialogDragModal: {
|
|
|
1266
1267
|
close: (modalKey?: string) => void;
|
|
1267
1268
|
};
|
|
1268
1269
|
export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "footer" | "extra"> & {
|
|
1269
|
-
okText?: string | ReactElement;
|
|
1270
|
-
cancelText?: string | ReactElement;
|
|
1271
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1272
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1273
|
-
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: {
|
|
1274
1275
|
onClose: TNoopDefine;
|
|
1275
|
-
}) => ReactElement);
|
|
1276
|
+
}) => React$1.ReactElement);
|
|
1276
1277
|
configProviderProps?: ConfigProviderWrapperProps;
|
|
1277
1278
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1278
1279
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children">;
|
|
@@ -1281,14 +1282,14 @@ export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
1281
1282
|
/** 设置操作区域位置 */
|
|
1282
1283
|
operatePosition?: "header" | "footer";
|
|
1283
1284
|
/** 右上角自定义内容,如果operatePosition=header,此设置无效 */
|
|
1284
|
-
extra?: ReactNode | ((form: FormInstance) => ReactElement);
|
|
1285
|
+
extra?: React$1.ReactNode | ((form: FormInstance) => React$1.ReactElement);
|
|
1285
1286
|
/**
|
|
1286
1287
|
* ```
|
|
1287
1288
|
* 1. 自定义弹框操作区域,通过 operatePosition 配置可以自定义位置
|
|
1288
1289
|
* 2. extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
1289
1290
|
* ```
|
|
1290
1291
|
*/
|
|
1291
|
-
operateRender?: (form: FormInstance, extraData?: TPlainObject) => ReactElement;
|
|
1292
|
+
operateRender?: (form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement;
|
|
1292
1293
|
};
|
|
1293
1294
|
/**
|
|
1294
1295
|
* 抽屉弹框
|
|
@@ -1326,17 +1327,17 @@ export declare const dialogDrawer: {
|
|
|
1326
1327
|
export type DialogDrawerContentProps = {
|
|
1327
1328
|
footer?: (data: {
|
|
1328
1329
|
onClose: () => void;
|
|
1329
|
-
}) => ReactElement;
|
|
1330
|
-
footerStyle?: CSSProperties;
|
|
1331
|
-
children?: ReactNode;
|
|
1330
|
+
}) => React$1.ReactElement;
|
|
1331
|
+
footerStyle?: React$1.CSSProperties;
|
|
1332
|
+
children?: React$1.ReactNode;
|
|
1332
1333
|
okHidden?: boolean;
|
|
1333
1334
|
cancelHidden?: boolean;
|
|
1334
1335
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1335
1336
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
1336
|
-
okText?: string | ReactElement;
|
|
1337
|
-
cancelText?: string | ReactElement;
|
|
1338
|
-
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
1339
|
-
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>;
|
|
1340
1341
|
};
|
|
1341
1342
|
/**
|
|
1342
1343
|
* 当dialogDrawer底部操作按钮在业务content内部时,使用
|
|
@@ -1345,7 +1346,7 @@ export type DialogDrawerContentProps = {
|
|
|
1345
1346
|
* 2. 设置 footer 后,okHidden、cancelHidden、okButtonExtraProps、cancelButtonExtraProps、okText、cancelText、onOk、onCancel全部失效
|
|
1346
1347
|
* ```
|
|
1347
1348
|
*/
|
|
1348
|
-
export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => import("react").JSX.Element;
|
|
1349
|
+
export declare const DialogDrawerContent: (props: DialogDrawerContentProps) => import("react").React$1.JSX.Element;
|
|
1349
1350
|
export type DialogLoadingProps = {
|
|
1350
1351
|
className?: string;
|
|
1351
1352
|
message?: string;
|
|
@@ -1388,12 +1389,12 @@ export declare const dialogPreviewImage: {
|
|
|
1388
1389
|
export type DragCollapseItemKey = number | string;
|
|
1389
1390
|
export type DragCollapseItem = {
|
|
1390
1391
|
key: DragCollapseItemKey;
|
|
1391
|
-
header: ReactNode;
|
|
1392
|
-
content: ReactElement;
|
|
1392
|
+
header: React$1.ReactNode;
|
|
1393
|
+
content: React$1.ReactElement;
|
|
1393
1394
|
};
|
|
1394
1395
|
export type DragCollapseProps = {
|
|
1395
1396
|
className?: string;
|
|
1396
|
-
style?: CSSProperties;
|
|
1397
|
+
style?: React$1.CSSProperties;
|
|
1397
1398
|
/** 面板数据 */
|
|
1398
1399
|
items: DragCollapseItem[];
|
|
1399
1400
|
/** 拖拽面板回调 */
|
|
@@ -1415,7 +1416,7 @@ export type DragCollapseProps = {
|
|
|
1415
1416
|
/** 隐藏拖拽图标,默认不隐藏 */
|
|
1416
1417
|
hideDragIcon?: boolean;
|
|
1417
1418
|
/** 设置拖拽图标 */
|
|
1418
|
-
dragIcon?: ReactElement;
|
|
1419
|
+
dragIcon?: React$1.ReactElement;
|
|
1419
1420
|
/** 切换面板的回调 */
|
|
1420
1421
|
onChange?: (activeKey?: DragCollapseItemKey | DragCollapseItemKey[]) => void;
|
|
1421
1422
|
};
|
|
@@ -1424,7 +1425,7 @@ export type DragCollapseProps = {
|
|
|
1424
1425
|
* @param props
|
|
1425
1426
|
* @returns
|
|
1426
1427
|
*/
|
|
1427
|
-
export declare const DragCollapse: (props: DragCollapseProps) => import("react").JSX.Element;
|
|
1428
|
+
export declare const DragCollapse: (props: DragCollapseProps) => import("react").React$1.JSX.Element;
|
|
1428
1429
|
export type DragCollapseFormListContentProps = {
|
|
1429
1430
|
/** Form.List item fieldData */
|
|
1430
1431
|
formListFieldData: FormListFieldData;
|
|
@@ -1445,7 +1446,7 @@ export type DragCollapseFormListProps = {
|
|
|
1445
1446
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
1446
1447
|
uidFieldName?: string;
|
|
1447
1448
|
className?: string;
|
|
1448
|
-
style?: CSSProperties;
|
|
1449
|
+
style?: React$1.CSSProperties;
|
|
1449
1450
|
/** formList name */
|
|
1450
1451
|
formListName: string | number | (string | number)[];
|
|
1451
1452
|
/** 拖拽面板回调 */
|
|
@@ -1465,15 +1466,15 @@ export type DragCollapseFormListProps = {
|
|
|
1465
1466
|
/** 设置折叠面板大小 */
|
|
1466
1467
|
size?: CollapseProps["size"];
|
|
1467
1468
|
/** 设置拖拽图标 */
|
|
1468
|
-
dragIcon?: ReactElement;
|
|
1469
|
+
dragIcon?: React$1.ReactElement;
|
|
1469
1470
|
/** 切换面板的回调 */
|
|
1470
1471
|
onChange?: (activeKey?: number | string | (number | string)[]) => void;
|
|
1471
1472
|
/** 禁用拖拽,拖拽图标隐藏 */
|
|
1472
1473
|
dragDisabled?: boolean;
|
|
1473
1474
|
/** 折叠面板 header 渲染 */
|
|
1474
|
-
header: (data: DragCollapseFormListHeaderProps) => ReactElement;
|
|
1475
|
+
header: (data: DragCollapseFormListHeaderProps) => React$1.ReactElement;
|
|
1475
1476
|
/** 折叠面板 content 渲染 */
|
|
1476
|
-
content: (data: DragCollapseFormListContentProps) => ReactElement;
|
|
1477
|
+
content: (data: DragCollapseFormListContentProps) => React$1.ReactElement;
|
|
1477
1478
|
/** 设置面板禁止拖拽 */
|
|
1478
1479
|
getItemDragDisabled?: (uid: string | number, index: number) => boolean;
|
|
1479
1480
|
rules?: FormListProps["rules"];
|
|
@@ -1484,9 +1485,9 @@ export type DragCollapseFormListProps = {
|
|
|
1484
1485
|
* 1. FormList数组中必须要有唯一值字段,默认值字段名称uid,可通过uidFieldName自定义设置名称
|
|
1485
1486
|
* ```
|
|
1486
1487
|
*/
|
|
1487
|
-
export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => import("react").JSX.Element;
|
|
1488
|
+
export declare const DragCollapseFormList: (props: DragCollapseFormListProps) => import("react").React$1.JSX.Element;
|
|
1488
1489
|
export type FormWrapperProps<Values = any> = TFormLayoutPreClassNameProps & FormProps<Values> & {
|
|
1489
|
-
children: ReactNode;
|
|
1490
|
+
children: React$1.ReactNode;
|
|
1490
1491
|
};
|
|
1491
1492
|
/**
|
|
1492
1493
|
* Form 包装组件,添加对formItem的布局控制
|
|
@@ -1494,7 +1495,7 @@ export type FormWrapperProps<Values = any> = TFormLayoutPreClassNameProps & Form
|
|
|
1494
1495
|
* 1. 内置布局样式使用 preDefinedClassName.form
|
|
1495
1496
|
* ```
|
|
1496
1497
|
*/
|
|
1497
|
-
export declare const FormWrapper: (props: FormWrapperProps) => import("react").JSX.Element;
|
|
1498
|
+
export declare const FormWrapper: (props: FormWrapperProps) => import("react").React$1.JSX.Element;
|
|
1498
1499
|
export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
1499
1500
|
/**
|
|
1500
1501
|
* 定义一行显示几列(当外层宽度尺寸大于 992px(lg) 时,一行显示几列), 默认值:3
|
|
@@ -1531,15 +1532,11 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1531
1532
|
width?: number | string;
|
|
1532
1533
|
/** 网格间距 */
|
|
1533
1534
|
gridGutter?: BoxRowProps["gutter"];
|
|
1534
|
-
children: ReactNode;
|
|
1535
|
+
children: React$1.ReactNode;
|
|
1535
1536
|
/**
|
|
1536
1537
|
* 是否为纯净模式,对EasyForm的子节点不做任何包装处理
|
|
1537
1538
|
*/
|
|
1538
1539
|
isPure?: boolean;
|
|
1539
|
-
/**
|
|
1540
|
-
* true: 当前EasyForm组件不使用Antd Form包裹,可在Form、EasyForm、FormWrapper内部使用
|
|
1541
|
-
*/
|
|
1542
|
-
nonuseFormWrapper?: boolean;
|
|
1543
1540
|
/**
|
|
1544
1541
|
* 栅格占位格数,最大值:24
|
|
1545
1542
|
* ```
|
|
@@ -1598,7 +1595,7 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1598
1595
|
* ```
|
|
1599
1596
|
*/
|
|
1600
1597
|
export declare const EasyForm: {
|
|
1601
|
-
(props: EasyFormProps): import("react").JSX.Element;
|
|
1598
|
+
(props: EasyFormProps): import("react").React$1.JSX.Element;
|
|
1602
1599
|
domTypeName: string;
|
|
1603
1600
|
};
|
|
1604
1601
|
export type EditableCardDataIndex = string | string[];
|
|
@@ -1658,7 +1655,7 @@ export type EditableCardColumnItem = {
|
|
|
1658
1655
|
*/
|
|
1659
1656
|
gridNumber?: number;
|
|
1660
1657
|
/** 标题 */
|
|
1661
|
-
title?: ReactElement | string;
|
|
1658
|
+
title?: React$1.ReactElement | string;
|
|
1662
1659
|
/**
|
|
1663
1660
|
* Form.Item props
|
|
1664
1661
|
*/
|
|
@@ -1695,7 +1692,7 @@ export type EditableCardColumnItem = {
|
|
|
1695
1692
|
* }
|
|
1696
1693
|
* ```
|
|
1697
1694
|
*/
|
|
1698
|
-
render?: (operation: EditableCardOperation) => ReactElement;
|
|
1695
|
+
render?: (operation: EditableCardOperation) => React$1.ReactElement;
|
|
1699
1696
|
/**
|
|
1700
1697
|
* 会在 title 之后展示一个 icon
|
|
1701
1698
|
*/
|
|
@@ -1711,11 +1708,11 @@ export type EditableCardColumnItem = {
|
|
|
1711
1708
|
hidden?: (operation: EditableCardOperation, index: number) => boolean;
|
|
1712
1709
|
/** 移除设置,优先级高于 hidden */
|
|
1713
1710
|
remove?: (operation: EditableCardOperation, index: number) => boolean;
|
|
1714
|
-
formItemContainer?: (formItem: ReactElement) => ReactElement | null;
|
|
1711
|
+
formItemContainer?: (formItem: React$1.ReactElement) => React$1.ReactElement | null;
|
|
1715
1712
|
};
|
|
1716
1713
|
export type EditableCardProps = {
|
|
1717
1714
|
className?: string;
|
|
1718
|
-
style?: CSSProperties;
|
|
1715
|
+
style?: React$1.CSSProperties;
|
|
1719
1716
|
/** 卡片内字段配置 */
|
|
1720
1717
|
columns: EditableCardColumnItem[];
|
|
1721
1718
|
/**
|
|
@@ -1749,32 +1746,32 @@ export type EditableCardProps = {
|
|
|
1749
1746
|
/**`默认新增按钮`新增行默认值,hiddenFooterBtn != true 有效 */
|
|
1750
1747
|
addRowDefaultValues?: () => TPlainObject;
|
|
1751
1748
|
/** 自定义新增按钮名称 */
|
|
1752
|
-
addRowBtnName?: ReactNode;
|
|
1749
|
+
addRowBtnName?: React$1.ReactNode;
|
|
1753
1750
|
/** 隐藏底部`新增`按钮 */
|
|
1754
1751
|
hiddenFooterBtn?: boolean;
|
|
1755
1752
|
/** 隐藏默认删除按钮 */
|
|
1756
1753
|
hiddenDeleteBtn?: boolean;
|
|
1757
1754
|
/** 顶部区域渲染 */
|
|
1758
|
-
contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
1755
|
+
contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
1759
1756
|
/** 底部区域渲染 */
|
|
1760
|
-
contentAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
1757
|
+
contentAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
1761
1758
|
/** 设置默认卡片名称,设置 onCustomWrapper 后失效 */
|
|
1762
|
-
onCustomGroupName?: (index: number) => string | ReactElement;
|
|
1759
|
+
onCustomGroupName?: (index: number) => string | React$1.ReactElement;
|
|
1763
1760
|
/** 自定义卡片包裹,同时可自定义删除按钮、新增按钮 */
|
|
1764
|
-
onCustomWrapper?: (children: ReactElement, extraData: {
|
|
1761
|
+
onCustomWrapper?: (children: React$1.ReactElement, extraData: {
|
|
1765
1762
|
operation: FormListOperation;
|
|
1766
1763
|
fields: FormListFieldData[];
|
|
1767
1764
|
fieldItem: FormListFieldData;
|
|
1768
1765
|
index: number;
|
|
1769
1766
|
required?: boolean;
|
|
1770
1767
|
key: string;
|
|
1771
|
-
}) => ReactElement;
|
|
1768
|
+
}) => React$1.ReactElement;
|
|
1772
1769
|
/** 设置必填,但只有一条数据时,隐藏默认删除按钮 */
|
|
1773
1770
|
required?: boolean;
|
|
1774
1771
|
/** 默认卡片样式 */
|
|
1775
1772
|
cardClassName?: string;
|
|
1776
1773
|
/** 默认卡片样式 */
|
|
1777
|
-
cardStyle?: CSSProperties;
|
|
1774
|
+
cardStyle?: React$1.CSSProperties;
|
|
1778
1775
|
/**
|
|
1779
1776
|
* 每个卡片内容都使用了 EasyForm 包裹,此处可设置 EasyFormProps
|
|
1780
1777
|
* ```
|
|
@@ -1782,6 +1779,13 @@ export type EditableCardProps = {
|
|
|
1782
1779
|
* ```
|
|
1783
1780
|
*/
|
|
1784
1781
|
cardEasyFormProps?: Omit<EasyFormProps, "nonuseFormWrapper" | "isPure" | "children">;
|
|
1782
|
+
/**
|
|
1783
|
+
* 定义卡片网格水平跨度,最大值:24,默认值:24;设置 onCustomWrapper 后失效
|
|
1784
|
+
* ```
|
|
1785
|
+
* 1. 外层宽度在 xs、sm 时,强制为24
|
|
1786
|
+
* ```
|
|
1787
|
+
*/
|
|
1788
|
+
boxGridColSpan?: number;
|
|
1785
1789
|
/**
|
|
1786
1790
|
* 默认卡片右侧布局,设置 onCustomWrapper 后失效
|
|
1787
1791
|
* ```
|
|
@@ -1806,15 +1810,15 @@ export type EditableCardProps = {
|
|
|
1806
1810
|
required?: boolean;
|
|
1807
1811
|
key: string;
|
|
1808
1812
|
}) => {
|
|
1809
|
-
before?: ReactElement[];
|
|
1810
|
-
after?: ReactElement[];
|
|
1811
|
-
} | ReactElement;
|
|
1813
|
+
before?: React$1.ReactElement[];
|
|
1814
|
+
after?: React$1.ReactElement[];
|
|
1815
|
+
} | React$1.ReactElement;
|
|
1812
1816
|
};
|
|
1813
1817
|
export type DragEditableCardProps = Omit<EditableCardProps, "onCustomWrapper"> & {
|
|
1814
1818
|
/**
|
|
1815
1819
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
1816
1820
|
*/
|
|
1817
|
-
dragIcon?: ReactElement;
|
|
1821
|
+
dragIcon?: React$1.ReactElement;
|
|
1818
1822
|
/** 禁用拖拽 */
|
|
1819
1823
|
disabledDrag?: boolean;
|
|
1820
1824
|
/**
|
|
@@ -1850,13 +1854,13 @@ export type DragEditableCardProps = Omit<EditableCardProps, "onCustomWrapper"> &
|
|
|
1850
1854
|
* 1. 卡片数组必须有唯一值字段,通过参数 uidFieldKey 告诉组件
|
|
1851
1855
|
* ```
|
|
1852
1856
|
*/
|
|
1853
|
-
export declare const DragEditableCard: (props: DragEditableCardProps) => import("react").JSX.Element;
|
|
1857
|
+
export declare const DragEditableCard: (props: DragEditableCardProps) => import("react").React$1.JSX.Element;
|
|
1854
1858
|
export type TipsWrapperProps = {
|
|
1855
1859
|
gap?: number;
|
|
1856
1860
|
className?: string;
|
|
1857
|
-
style?: CSSProperties;
|
|
1858
|
-
children?: ReactNode;
|
|
1859
|
-
icon?: ReactElement;
|
|
1861
|
+
style?: React$1.CSSProperties;
|
|
1862
|
+
children?: React$1.ReactNode;
|
|
1863
|
+
icon?: React$1.ReactElement;
|
|
1860
1864
|
/** Icon添加点击事件,设置hoverTips后失效 */
|
|
1861
1865
|
onClick?: (event: any) => void;
|
|
1862
1866
|
/**
|
|
@@ -1887,7 +1891,7 @@ export type TipsWrapperProps = {
|
|
|
1887
1891
|
* <TipsWrapper onClick={noop}>ABC</TipsWrapper>
|
|
1888
1892
|
* ```
|
|
1889
1893
|
*/
|
|
1890
|
-
export declare const TipsWrapper: (props: TipsWrapperProps) => import("react").JSX.Element;
|
|
1894
|
+
export declare const TipsWrapper: (props: TipsWrapperProps) => import("react").React$1.JSX.Element;
|
|
1891
1895
|
export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
1892
1896
|
export type SelectorServiceConfig = {
|
|
1893
1897
|
params?: TPlainObject;
|
|
@@ -1952,11 +1956,11 @@ export type SelectorWrapperProps = Omit<SelectProps, "onSearch" | "notFoundConte
|
|
|
1952
1956
|
label: string;
|
|
1953
1957
|
value: string | number;
|
|
1954
1958
|
};
|
|
1955
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
1959
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
1956
1960
|
onChange?: (value?: SelectorWrapperValue, selectedList?: TPlainObject[] | TPlainObject) => void;
|
|
1957
1961
|
showIcon?: boolean;
|
|
1958
1962
|
/** select option添加图标;与showIcon组合使用 */
|
|
1959
|
-
icon?: (data: TPlainObject, index: number) => ReactElement;
|
|
1963
|
+
icon?: (data: TPlainObject, index: number) => React$1.ReactElement;
|
|
1960
1964
|
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
1961
1965
|
/**
|
|
1962
1966
|
* value格式
|
|
@@ -2008,7 +2012,7 @@ export type SwitchWrapperProps = Omit<SwitchProps, "checked" | "defaultChecked"
|
|
|
2008
2012
|
* 6. 可设置 serviceConfig 配置服务调用交互
|
|
2009
2013
|
* ```
|
|
2010
2014
|
*/
|
|
2011
|
-
export declare const SwitchWrapper: (props: SwitchWrapperProps) => import("react").JSX.Element;
|
|
2015
|
+
export declare const SwitchWrapper: (props: SwitchWrapperProps) => import("react").React$1.JSX.Element;
|
|
2012
2016
|
export type UploadWrapperFileItem = {
|
|
2013
2017
|
uid: string;
|
|
2014
2018
|
name: string;
|
|
@@ -2055,7 +2059,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2055
2059
|
* ```
|
|
2056
2060
|
*/
|
|
2057
2061
|
extraOperate?: {
|
|
2058
|
-
icon: ReactElement;
|
|
2062
|
+
icon: React$1.ReactElement;
|
|
2059
2063
|
onClick: (file: UploadFile, fileList: UploadFile[], e: any) => void;
|
|
2060
2064
|
}[];
|
|
2061
2065
|
} & Omit<UploadProps, "onChange" | "fileList">;
|
|
@@ -2099,7 +2103,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2099
2103
|
* ```
|
|
2100
2104
|
*
|
|
2101
2105
|
*/
|
|
2102
|
-
export declare const UploadWrapper: (props: UploadWrapperProps) => import("react").JSX.Element;
|
|
2106
|
+
export declare const UploadWrapper: (props: UploadWrapperProps) => import("react").React$1.JSX.Element;
|
|
2103
2107
|
export type EditableTableName = string | number | Array<string | number>;
|
|
2104
2108
|
export type EditableTableRecordType = FormListFieldData & {
|
|
2105
2109
|
operation: FormListOperation;
|
|
@@ -2168,7 +2172,7 @@ export type EditableCustomConfig = {
|
|
|
2168
2172
|
editable?: boolean;
|
|
2169
2173
|
completeName: Array<number | string>;
|
|
2170
2174
|
tableRowIndex: number;
|
|
2171
|
-
}) => ReactElement;
|
|
2175
|
+
}) => React$1.ReactElement;
|
|
2172
2176
|
};
|
|
2173
2177
|
export type EditableTypeConfig = EditableCustomConfig | EditableInputConfig | EditableSelectWrapperConfig | EditableDatePickerWrapperConfig | EditableDateRangePickerWrapperConfig | EditableCheckboxGroupConfig | EditableTextareaConfig | EditableInputNumberConfig | EditableRadioGroupConfig | EditableFileUploadConfig | EditableSwitchWrapperConfig;
|
|
2174
2178
|
export type FieldSingleConfig = {
|
|
@@ -2187,7 +2191,7 @@ export type FieldSingleConfig = {
|
|
|
2187
2191
|
* 3. 同级配置 editableConfigList后,同级render配置失效
|
|
2188
2192
|
* 4. checkboxGroup、radioGroup、selectorWrapper第二次参数为options数组
|
|
2189
2193
|
*/
|
|
2190
|
-
render?: (params?: TAny, other?: TAny) => ReactNode;
|
|
2194
|
+
render?: (params?: TAny, other?: TAny) => React$1.ReactNode;
|
|
2191
2195
|
};
|
|
2192
2196
|
export type FormListItemMethodOperateProps = {
|
|
2193
2197
|
tableRowIndex: number;
|
|
@@ -2205,14 +2209,14 @@ export type FormListConfig = {
|
|
|
2205
2209
|
editableConfigList: Array<FieldSingleConfig & {
|
|
2206
2210
|
fieldName: string;
|
|
2207
2211
|
}>;
|
|
2208
|
-
onFormListBeforeRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
2209
|
-
onFormListAfterRender?: (data: FormListMethodOperateProps) => ReactElement | null;
|
|
2210
|
-
onFormListItemBeforeRender?: (data: FormListItemMethodOperateProps) => ReactElement | null;
|
|
2211
|
-
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;
|
|
2212
2216
|
deleteOperateRender?: (data: {
|
|
2213
2217
|
remove: () => void;
|
|
2214
2218
|
formListItemIndex: number;
|
|
2215
|
-
}) => ReactElement;
|
|
2219
|
+
}) => React$1.ReactElement;
|
|
2216
2220
|
};
|
|
2217
2221
|
export type fieldConfigFunctionParams = {
|
|
2218
2222
|
tableRowIndex: number;
|
|
@@ -2265,9 +2269,9 @@ export type EditableTableColumn = Omit<ColumnsType["0"], "render"> & {
|
|
|
2265
2269
|
operation: FormListOperation;
|
|
2266
2270
|
index: number;
|
|
2267
2271
|
getTableRowData: () => TPlainObject;
|
|
2268
|
-
}) => ReactElement | null;
|
|
2272
|
+
}) => React$1.ReactElement | null;
|
|
2269
2273
|
/** table datasource children column 自定义渲染 */
|
|
2270
|
-
tableChildrenColumnRender?: (value: TAny, record: TPlainObject, index: number) => ReactElement | null;
|
|
2274
|
+
tableChildrenColumnRender?: (value: TAny, record: TPlainObject, index: number) => React$1.ReactElement | null;
|
|
2271
2275
|
/** 为表格header中的字段添加必填标识,无验证拦截功能 */
|
|
2272
2276
|
required?: boolean;
|
|
2273
2277
|
};
|
|
@@ -2301,11 +2305,11 @@ export type EditableTableProps = {
|
|
|
2301
2305
|
cellVerticalAlign?: "baseline" | "middle" | "top" | "bottom";
|
|
2302
2306
|
};
|
|
2303
2307
|
columns: EditableTableColumn[];
|
|
2304
|
-
onTableBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2308
|
+
onTableBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2305
2309
|
/**
|
|
2306
2310
|
* 设置后,将覆盖底部`新增`按钮
|
|
2307
2311
|
*/
|
|
2308
|
-
onTableAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2312
|
+
onTableAfterRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2309
2313
|
/** 新增行默认值,自定义onTableAfterRender后失效 */
|
|
2310
2314
|
getAddRowDefaultValues?: () => TPlainObject;
|
|
2311
2315
|
/** 隐藏底部`新增`按钮,设置 onTableAfterRender后 失效 */
|
|
@@ -2328,7 +2332,7 @@ export type EditableTableProps = {
|
|
|
2328
2332
|
/** 空效果显示尺寸,默认值:small */
|
|
2329
2333
|
emptyShowSize?: "small" | "large";
|
|
2330
2334
|
className?: string;
|
|
2331
|
-
style?: CSSProperties;
|
|
2335
|
+
style?: React$1.CSSProperties;
|
|
2332
2336
|
};
|
|
2333
2337
|
/**
|
|
2334
2338
|
* 可编辑表格(通过FormList实现)
|
|
@@ -2343,12 +2347,12 @@ export type EditableTableProps = {
|
|
|
2343
2347
|
* 6. 4.5.0版本移除 ref.getTableItemDataByFormListItemKey 功能,可选择表格参考(https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable2)
|
|
2344
2348
|
* ```
|
|
2345
2349
|
*/
|
|
2346
|
-
export declare const EditableTable: (props: EditableTableProps) => import("react").JSX.Element;
|
|
2350
|
+
export declare const EditableTable: (props: EditableTableProps) => import("react").React$1.JSX.Element;
|
|
2347
2351
|
export type DragEditableTableProps = EditableTableProps & {
|
|
2348
2352
|
/**
|
|
2349
2353
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
2350
2354
|
*/
|
|
2351
|
-
dragIcon?: ReactElement;
|
|
2355
|
+
dragIcon?: React$1.ReactElement;
|
|
2352
2356
|
/** 禁用拖拽 */
|
|
2353
2357
|
disabledDrag?: boolean;
|
|
2354
2358
|
/**
|
|
@@ -2382,7 +2386,7 @@ export type DragEditableTableProps = EditableTableProps & {
|
|
|
2382
2386
|
* 2. Table 参数 components.body.row 被组件内部使用
|
|
2383
2387
|
* ```
|
|
2384
2388
|
*/
|
|
2385
|
-
export declare const DragEditableTable: (props: DragEditableTableProps) => import("react").JSX.Element;
|
|
2389
|
+
export declare const DragEditableTable: (props: DragEditableTableProps) => import("react").React$1.JSX.Element;
|
|
2386
2390
|
export type EditableTableProDataIndex = string | readonly (string | number)[];
|
|
2387
2391
|
export interface EditableTableProOperation {
|
|
2388
2392
|
add: (defaultValue: TPlainObject, insertIndex?: number) => void;
|
|
@@ -2410,7 +2414,7 @@ export interface EditableTableProOperation {
|
|
|
2410
2414
|
validateRowFields: (nameList: EditableTableProDataIndex[]) => Promise<void>;
|
|
2411
2415
|
}
|
|
2412
2416
|
export type EditableTableProColumnItem = Omit<ColumnsType[0], "render" | "title" | "dataIndex"> & {
|
|
2413
|
-
title?: ReactElement | string;
|
|
2417
|
+
title?: React$1.ReactElement | string;
|
|
2414
2418
|
dataIndex?: EditableTableProDataIndex;
|
|
2415
2419
|
/** Form.Item props */
|
|
2416
2420
|
formItemProps?: Omit<FormItemWrapperProps, "children" | "name"> | ((value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => Omit<FormItemWrapperProps, "children" | "name">);
|
|
@@ -2446,7 +2450,7 @@ export type EditableTableProColumnItem = Omit<ColumnsType[0], "render" | "title"
|
|
|
2446
2450
|
* }
|
|
2447
2451
|
* ```
|
|
2448
2452
|
*/
|
|
2449
|
-
render?: (value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => ReactElement;
|
|
2453
|
+
render?: (value: TAny, record: TPlainObject, index: number, operation: EditableTableProOperation) => React$1.ReactElement;
|
|
2450
2454
|
/** 是否可编辑 */
|
|
2451
2455
|
editable: boolean | ((record: TPlainObject, index: number) => boolean);
|
|
2452
2456
|
/**
|
|
@@ -2500,15 +2504,15 @@ export type EditableTableProProps = {
|
|
|
2500
2504
|
*/
|
|
2501
2505
|
rules?: FormListProps["rules"];
|
|
2502
2506
|
className?: string;
|
|
2503
|
-
style?: CSSProperties;
|
|
2507
|
+
style?: React$1.CSSProperties;
|
|
2504
2508
|
/**`默认新增按钮`新增行默认值,hiddenFooterBtn != true 有效 */
|
|
2505
2509
|
addRowDefaultValues?: () => TPlainObject;
|
|
2506
2510
|
/** 隐藏底部`新增`按钮 */
|
|
2507
2511
|
hiddenFooterBtn?: boolean;
|
|
2508
2512
|
/** 表格顶部区域渲染 */
|
|
2509
|
-
tableBeforeAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2513
|
+
tableBeforeAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2510
2514
|
/** 表格底部区域渲染 */
|
|
2511
|
-
tableAfterAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
|
|
2515
|
+
tableAfterAreaRender?: (formListOperation: FormListOperation, nextRowIndex: number) => React$1.ReactElement | null;
|
|
2512
2516
|
/** 展开的行key,一般用于初始化,重新tableProps.expandable.expandedRowKeys后失效 */
|
|
2513
2517
|
expandedRowKeys?: string[];
|
|
2514
2518
|
/**
|
|
@@ -2537,12 +2541,12 @@ export type EditableTableProProps = {
|
|
|
2537
2541
|
* https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable4
|
|
2538
2542
|
* ```
|
|
2539
2543
|
*/
|
|
2540
|
-
export declare const EditableTablePro: (props: EditableTableProProps) => import("react").JSX.Element;
|
|
2544
|
+
export declare const EditableTablePro: (props: EditableTableProProps) => import("react").React$1.JSX.Element;
|
|
2541
2545
|
export type DragEditableTableProProps = EditableTableProProps & {
|
|
2542
2546
|
/**
|
|
2543
2547
|
* 拖拽图标自定义,默认使用 DragOutlined 图标
|
|
2544
2548
|
*/
|
|
2545
|
-
dragIcon?: ReactElement;
|
|
2549
|
+
dragIcon?: React$1.ReactElement;
|
|
2546
2550
|
/** 禁用拖拽 */
|
|
2547
2551
|
disabledDrag?: boolean;
|
|
2548
2552
|
/**
|
|
@@ -2577,15 +2581,15 @@ export type DragEditableTableProProps = EditableTableProProps & {
|
|
|
2577
2581
|
* 4. 存在多级的情况下,通过上移、下移操作按钮,调用 column.render.operation.move 方法实现同一级内移动
|
|
2578
2582
|
* ```
|
|
2579
2583
|
*/
|
|
2580
|
-
export declare const DragEditableTablePro: (props: DragEditableTableProProps) => import("react").JSX.Element;
|
|
2584
|
+
export declare const DragEditableTablePro: (props: DragEditableTableProProps) => import("react").React$1.JSX.Element;
|
|
2581
2585
|
export type FormItemHorizontalUnionProps = {
|
|
2582
2586
|
className?: string;
|
|
2583
|
-
style?: CSSProperties;
|
|
2584
|
-
label?: string | ReactElement;
|
|
2587
|
+
style?: React$1.CSSProperties;
|
|
2588
|
+
label?: string | React$1.ReactElement;
|
|
2585
2589
|
/** 水平布局元素 */
|
|
2586
2590
|
groupConfigList: {
|
|
2587
2591
|
hidden?: boolean;
|
|
2588
|
-
before?: ReactElement | string;
|
|
2592
|
+
before?: React$1.ReactElement | string;
|
|
2589
2593
|
/**
|
|
2590
2594
|
* 设置宽度
|
|
2591
2595
|
* ```
|
|
@@ -2596,12 +2600,12 @@ export type FormItemHorizontalUnionProps = {
|
|
|
2596
2600
|
* ```
|
|
2597
2601
|
*/
|
|
2598
2602
|
width?: number | string;
|
|
2599
|
-
mainItem: ReactElement;
|
|
2600
|
-
after?: ReactElement | string;
|
|
2603
|
+
mainItem: React$1.ReactElement;
|
|
2604
|
+
after?: React$1.ReactElement | string;
|
|
2601
2605
|
}[];
|
|
2602
2606
|
/** 水平布局原始之间的间距 */
|
|
2603
2607
|
gap?: number;
|
|
2604
|
-
flexLayoutStyle?: CSSProperties;
|
|
2608
|
+
flexLayoutStyle?: React$1.CSSProperties;
|
|
2605
2609
|
flexLayoutClassName?: string;
|
|
2606
2610
|
hidden?: boolean;
|
|
2607
2611
|
required?: boolean;
|
|
@@ -2637,8 +2641,8 @@ export type DragFormListContentProps = {
|
|
|
2637
2641
|
};
|
|
2638
2642
|
export type DragFormListProps = {
|
|
2639
2643
|
className?: string;
|
|
2640
|
-
style?: CSSProperties;
|
|
2641
|
-
itemStyle?: CSSProperties;
|
|
2644
|
+
style?: React$1.CSSProperties;
|
|
2645
|
+
itemStyle?: React$1.CSSProperties;
|
|
2642
2646
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
2643
2647
|
uidFieldName?: string;
|
|
2644
2648
|
/** formList name */
|
|
@@ -2654,7 +2658,7 @@ export type DragFormListProps = {
|
|
|
2654
2658
|
/** 拖拽回调 */
|
|
2655
2659
|
onDropChange?: (items: TPlainObject[]) => void;
|
|
2656
2660
|
/** 设置拖拽图标 */
|
|
2657
|
-
dragIcon?: ReactElement;
|
|
2661
|
+
dragIcon?: React$1.ReactElement;
|
|
2658
2662
|
/** 禁用拖拽,拖拽图标隐藏 */
|
|
2659
2663
|
dragDisabled?: boolean;
|
|
2660
2664
|
/** 设置item禁止拖拽 */
|
|
@@ -2664,15 +2668,15 @@ export type DragFormListProps = {
|
|
|
2664
2668
|
/** 隐藏新增行按钮 */
|
|
2665
2669
|
hiddenAddRowButton?: boolean;
|
|
2666
2670
|
/** 自定义新增行按钮,getAddRowDefaultValues配置失效 */
|
|
2667
|
-
onCustomAddRowButton?: (operation: FormListOperation) => ReactElement;
|
|
2671
|
+
onCustomAddRowButton?: (operation: FormListOperation) => React$1.ReactElement;
|
|
2668
2672
|
/** formListItem 内容 */
|
|
2669
|
-
children: (data: DragFormListContentProps) => ReactElement;
|
|
2673
|
+
children: (data: DragFormListContentProps) => React$1.ReactElement;
|
|
2670
2674
|
/** 隐藏数据为空渲染 */
|
|
2671
2675
|
hiddenEmptyRender?: boolean;
|
|
2672
2676
|
/** formList内部渲染包装,多用于FormListWrapper嵌套布局 */
|
|
2673
2677
|
formListChildrenWrapper?: (props: {
|
|
2674
|
-
children: ReactElement;
|
|
2675
|
-
}) => ReactElement;
|
|
2678
|
+
children: React$1.ReactElement;
|
|
2679
|
+
}) => React$1.ReactElement;
|
|
2676
2680
|
/**
|
|
2677
2681
|
* Form.List rules
|
|
2678
2682
|
* ```
|
|
@@ -2715,7 +2719,7 @@ export type DragFormListProps = {
|
|
|
2715
2719
|
* 2. 通过 itemGap 设置FormList Item 之间间隙
|
|
2716
2720
|
* ```
|
|
2717
2721
|
*/
|
|
2718
|
-
export declare const DragFormList: (props: DragFormListProps) => import("react").JSX.Element;
|
|
2722
|
+
export declare const DragFormList: (props: DragFormListProps) => import("react").React$1.JSX.Element;
|
|
2719
2723
|
export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
2720
2724
|
/**
|
|
2721
2725
|
* ```
|
|
@@ -2723,7 +2727,7 @@ export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
|
2723
2727
|
* 2. dragIcon = false,可设置表格行拖拽
|
|
2724
2728
|
* ```
|
|
2725
2729
|
*/
|
|
2726
|
-
dragIcon?: false | ReactElement;
|
|
2730
|
+
dragIcon?: false | React$1.ReactElement;
|
|
2727
2731
|
/** 表格数据唯一值字段Key,未填或者无法唯一,都不能拖拽能力 */
|
|
2728
2732
|
uidFieldKey: string;
|
|
2729
2733
|
dataSource?: TPlainObject[];
|
|
@@ -2753,13 +2757,13 @@ export type DragTableProps = Omit<TableProps<TPlainObject>, "dataSource"> & {
|
|
|
2753
2757
|
* 3. Table 参数 components.body.row 被组件内部使用
|
|
2754
2758
|
* ```
|
|
2755
2759
|
*/
|
|
2756
|
-
export declare const DragTable: (props: DragTableProps) => import("react").JSX.Element;
|
|
2760
|
+
export declare const DragTable: (props: DragTableProps) => import("react").React$1.JSX.Element;
|
|
2757
2761
|
export type TDynamicNodeProps = {
|
|
2758
2762
|
className?: string;
|
|
2759
2763
|
getContainer?: HTMLElement | (() => HTMLElement) | string;
|
|
2760
|
-
content?: ReactElement;
|
|
2764
|
+
content?: React$1.ReactElement;
|
|
2761
2765
|
fixed?: boolean;
|
|
2762
|
-
style?: CSSProperties;
|
|
2766
|
+
style?: React$1.CSSProperties;
|
|
2763
2767
|
};
|
|
2764
2768
|
/**
|
|
2765
2769
|
* 动态添加 element 元素
|
|
@@ -2785,7 +2789,7 @@ export type TEasyTableTableColumn<T> = ColumnsType<T>[0] & {
|
|
|
2785
2789
|
*/
|
|
2786
2790
|
tooltip?: string | {
|
|
2787
2791
|
content: string;
|
|
2788
|
-
icon?: ReactElement;
|
|
2792
|
+
icon?: React$1.ReactElement;
|
|
2789
2793
|
hoverArea?: "icon" | "all";
|
|
2790
2794
|
};
|
|
2791
2795
|
dataIndex?: keyof T | (string & {});
|
|
@@ -2810,7 +2814,7 @@ export type TEasyTableTableColumn<T> = ColumnsType<T>[0] & {
|
|
|
2810
2814
|
* 3. respData为异步返回数据
|
|
2811
2815
|
* ```
|
|
2812
2816
|
*/
|
|
2813
|
-
asyncRender?: (value: TAny, record: T, index: number, respData?: TAny) => ReactNode;
|
|
2817
|
+
asyncRender?: (value: TAny, record: T, index: number, respData?: TAny) => React$1.ReactNode;
|
|
2814
2818
|
/** 设置默认值,当数据为【undefined、null、''】时显示;自定义render后失效 */
|
|
2815
2819
|
defaultValue?: string;
|
|
2816
2820
|
};
|
|
@@ -2855,8 +2859,8 @@ export type EasyTableServiceConfig = {
|
|
|
2855
2859
|
};
|
|
2856
2860
|
export type EasyTableProps = {
|
|
2857
2861
|
className?: string;
|
|
2858
|
-
style?: CSSProperties;
|
|
2859
|
-
children: ReactElement | ReactElement[] | ((dataSource?: TAny) => ReactElement);
|
|
2862
|
+
style?: React$1.CSSProperties;
|
|
2863
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((dataSource?: TAny) => React$1.ReactElement);
|
|
2860
2864
|
/**
|
|
2861
2865
|
* EasyTable唯一值,可用于缓存查询条件
|
|
2862
2866
|
* @deprecated 已过时,如果需要缓存数据请设置 cacheKey 参数
|
|
@@ -2956,7 +2960,7 @@ export type EasyTableProps = {
|
|
|
2956
2960
|
/** 隐藏默认触发节点 */
|
|
2957
2961
|
hidden?: boolean;
|
|
2958
2962
|
/** 自定义图标 */
|
|
2959
|
-
icon?: ReactElement;
|
|
2963
|
+
icon?: React$1.ReactElement;
|
|
2960
2964
|
/** 文本 */
|
|
2961
2965
|
text?: string;
|
|
2962
2966
|
/** 鼠标悬浮文案 */
|
|
@@ -3026,7 +3030,7 @@ export type EasyTableRefApi = {
|
|
|
3026
3030
|
/** 修改表格数据源,会触发onDataSourceChange函数 */
|
|
3027
3031
|
onUpdateDataSource: (dataList: TPlainObject[]) => void;
|
|
3028
3032
|
/** 自定义字段折叠触发位置,默认位置在最后一个字段标题右侧 */
|
|
3029
|
-
columnFoldTriggerRender: (children: ReactElement, columns: TEasyTableTableColumn<TPlainObject>[]) => ReactElement;
|
|
3033
|
+
columnFoldTriggerRender: (children: React$1.ReactElement, columns: TEasyTableTableColumn<TPlainObject>[]) => React$1.ReactElement;
|
|
3030
3034
|
/** 查询loading状态 */
|
|
3031
3035
|
loading?: boolean;
|
|
3032
3036
|
/**
|
|
@@ -3043,8 +3047,8 @@ export type EasyTableRefApi = {
|
|
|
3043
3047
|
};
|
|
3044
3048
|
export type FormOperateColProps = {
|
|
3045
3049
|
className?: string;
|
|
3046
|
-
leftList?: Array<ReactElement | null>;
|
|
3047
|
-
rightList?: Array<ReactElement | null>;
|
|
3050
|
+
leftList?: Array<React$1.ReactElement | null>;
|
|
3051
|
+
rightList?: Array<React$1.ReactElement | null>;
|
|
3048
3052
|
justify?: RowProps["justify"];
|
|
3049
3053
|
/** 强制单独一行 */
|
|
3050
3054
|
forceAloneRow?: boolean;
|
|
@@ -3053,7 +3057,7 @@ export type FormOperateColProps = {
|
|
|
3053
3057
|
rightSpaceProps?: SpaceProps;
|
|
3054
3058
|
};
|
|
3055
3059
|
export type FormRowProps = RowProps & {
|
|
3056
|
-
children?: ReactNode | ReactNode[];
|
|
3060
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
3057
3061
|
/**
|
|
3058
3062
|
* default = { xs: 24, sm: 12, md: 8, lg: 8, xl: 8, xxl: 6 };
|
|
3059
3063
|
* small = { xs: 24, sm: 12, md: 8, lg: 6, xl: 6, xxl: 6 };
|
|
@@ -3061,7 +3065,7 @@ export type FormRowProps = RowProps & {
|
|
|
3061
3065
|
gridSize?: "default" | "small";
|
|
3062
3066
|
};
|
|
3063
3067
|
export type EasyTableFilterProps = {
|
|
3064
|
-
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
3068
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance) => React$1.ReactElement);
|
|
3065
3069
|
/** isPure = true时无效 */
|
|
3066
3070
|
filterOperate?: (form: FormInstance) => FormOperateColProps;
|
|
3067
3071
|
/** 是否为纯净模式(查询条件布局是否自定义), */
|
|
@@ -3087,9 +3091,9 @@ export type EasyTableFilterProps = {
|
|
|
3087
3091
|
/**
|
|
3088
3092
|
* @deprecated已过期,使用 easyFormProps.style 配置
|
|
3089
3093
|
*/
|
|
3090
|
-
formStyle?: CSSProperties;
|
|
3094
|
+
formStyle?: React$1.CSSProperties;
|
|
3091
3095
|
/** filter Form 外层 BlockLayout style */
|
|
3092
|
-
filterWrapperStyle?: CSSProperties;
|
|
3096
|
+
filterWrapperStyle?: React$1.CSSProperties;
|
|
3093
3097
|
/** filter Form 外层 BlockLayout className */
|
|
3094
3098
|
filterWrapperClassName?: string;
|
|
3095
3099
|
/**
|
|
@@ -3106,7 +3110,7 @@ export type EasyTableFilterProps = {
|
|
|
3106
3110
|
easyFormProps?: Omit<EasyFormProps, "isPure" | "column" | "forceColumn" | "width" | "gridGutter" | "children">;
|
|
3107
3111
|
};
|
|
3108
3112
|
export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey" | "columns"> & {
|
|
3109
|
-
children?: ReactElement | ReactElement[];
|
|
3113
|
+
children?: React$1.ReactElement | React$1.ReactElement[];
|
|
3110
3114
|
/**
|
|
3111
3115
|
* 表格行 key 的取值,
|
|
3112
3116
|
* ```
|
|
@@ -3118,7 +3122,7 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
3118
3122
|
*/
|
|
3119
3123
|
rowKey: TableProps<TAny>["rowKey"];
|
|
3120
3124
|
/** table Form 外层 SimpleLayout className */
|
|
3121
|
-
tableWrapperStyle?: CSSProperties;
|
|
3125
|
+
tableWrapperStyle?: React$1.CSSProperties;
|
|
3122
3126
|
/** table Form 外层 SimpleLayout className */
|
|
3123
3127
|
tableWrapperClassName?: string;
|
|
3124
3128
|
/**
|
|
@@ -3192,7 +3196,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3192
3196
|
* 8. 通过easyFormProps属性可整体控制子节点FormItem布局
|
|
3193
3197
|
*```
|
|
3194
3198
|
*/
|
|
3195
|
-
Filter: (props: EasyTableFilterProps) => import("react").JSX.Element;
|
|
3199
|
+
Filter: (props: EasyTableFilterProps) => import("react").React$1.JSX.Element;
|
|
3196
3200
|
/**
|
|
3197
3201
|
* 表格渲染
|
|
3198
3202
|
* @param props
|
|
@@ -3201,7 +3205,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3201
3205
|
* 2. 分页功能已内置处理,不调用 onChange
|
|
3202
3206
|
* ```
|
|
3203
3207
|
*/
|
|
3204
|
-
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;
|
|
3205
3209
|
/**
|
|
3206
3210
|
* @deprecated 已过时 4.3.0版本移除,请使用 useEasyTable
|
|
3207
3211
|
*/
|
|
@@ -3224,15 +3228,15 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
3224
3228
|
* https://fex.qa.tcshuke.com/docs/admin/main/form/grid
|
|
3225
3229
|
* ```
|
|
3226
3230
|
*/
|
|
3227
|
-
export declare const EditableCard: (props: EditableCardProps) => import("react").JSX.Element;
|
|
3231
|
+
export declare const EditableCard: (props: EditableCardProps) => import("react").React$1.JSX.Element;
|
|
3228
3232
|
export interface EditableFieldProps {
|
|
3229
3233
|
className?: string;
|
|
3230
|
-
style?: CSSProperties;
|
|
3231
|
-
editRender: ReactElement | ((data: {
|
|
3234
|
+
style?: React$1.CSSProperties;
|
|
3235
|
+
editRender: React$1.ReactElement | ((data: {
|
|
3232
3236
|
value?: TAny;
|
|
3233
3237
|
onChange?: (data?: TAny) => void;
|
|
3234
|
-
}) => ReactElement);
|
|
3235
|
-
viewRender?: (value?: TAny) => ReactNode;
|
|
3238
|
+
}) => React$1.ReactElement);
|
|
3239
|
+
viewRender?: (value?: TAny) => React$1.ReactNode;
|
|
3236
3240
|
value?: TAny;
|
|
3237
3241
|
onChange?: (data?: TAny) => void;
|
|
3238
3242
|
placeholderValue?: string;
|
|
@@ -3254,13 +3258,13 @@ export interface EditableFieldProps {
|
|
|
3254
3258
|
iconConfig?: {
|
|
3255
3259
|
editIcon?: (options: {
|
|
3256
3260
|
onClick: () => void;
|
|
3257
|
-
}) => ReactElement;
|
|
3261
|
+
}) => React$1.ReactElement;
|
|
3258
3262
|
confirmIcon?: (options: {
|
|
3259
3263
|
onClick: () => void;
|
|
3260
|
-
}) => ReactElement;
|
|
3264
|
+
}) => React$1.ReactElement;
|
|
3261
3265
|
cancelIcon?: (options: {
|
|
3262
3266
|
onClick: () => void;
|
|
3263
|
-
}) => ReactElement;
|
|
3267
|
+
}) => React$1.ReactElement;
|
|
3264
3268
|
};
|
|
3265
3269
|
}
|
|
3266
3270
|
/**
|
|
@@ -3277,7 +3281,7 @@ export interface EditableFieldProps {
|
|
|
3277
3281
|
*/
|
|
3278
3282
|
export declare const EditableField: (props: EditableFieldProps) => any;
|
|
3279
3283
|
export interface EditableFieldProviderProps {
|
|
3280
|
-
children: ReactElement;
|
|
3284
|
+
children: React$1.ReactElement;
|
|
3281
3285
|
/** 是否只读 */
|
|
3282
3286
|
readonly?: boolean;
|
|
3283
3287
|
/** 是否编辑状态 */
|
|
@@ -3290,7 +3294,7 @@ export interface EditableFieldProviderProps {
|
|
|
3290
3294
|
* @param props
|
|
3291
3295
|
* @returns
|
|
3292
3296
|
*/
|
|
3293
|
-
export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => import("react").JSX.Element;
|
|
3297
|
+
export declare const EditableFieldProvider: (props: EditableFieldProviderProps) => import("react").React$1.JSX.Element;
|
|
3294
3298
|
export interface ErrorBoundaryProps {
|
|
3295
3299
|
message?: ReactNode;
|
|
3296
3300
|
description?: ReactNode;
|
|
@@ -3320,13 +3324,13 @@ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBou
|
|
|
3320
3324
|
*/
|
|
3321
3325
|
export declare const ErrorBoundaryWrapper: typeof ErrorBoundary;
|
|
3322
3326
|
export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getContainer" | "footer" | "extra"> & {
|
|
3323
|
-
okText?: string | ReactElement;
|
|
3324
|
-
cancelText?: string | ReactElement;
|
|
3325
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3326
|
-
onCancel?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3327
|
-
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: {
|
|
3328
3332
|
onClose: DrawerProps["onClose"];
|
|
3329
|
-
}) => ReactElement);
|
|
3333
|
+
}) => React$1.ReactElement);
|
|
3330
3334
|
okButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children" | "loading">;
|
|
3331
3335
|
cancelButtonExtraProps?: Omit<ButtonWrapperProps, "onClick" | "children">;
|
|
3332
3336
|
okHidden?: boolean;
|
|
@@ -3334,14 +3338,14 @@ export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
|
|
|
3334
3338
|
/** 设置操作区域位置 */
|
|
3335
3339
|
operatePosition?: "header" | "footer";
|
|
3336
3340
|
/** 右上角自定义内容,如果operatePosition=header,此设置无效 */
|
|
3337
|
-
extra?: ReactNode | ((form: FormInstance) => ReactElement);
|
|
3341
|
+
extra?: React$1.ReactNode | ((form: FormInstance) => React$1.ReactElement);
|
|
3338
3342
|
/**
|
|
3339
3343
|
* ```
|
|
3340
3344
|
* 1. 自定义弹框操作区域,通过 operatePosition 配置可以自定义位置
|
|
3341
3345
|
* 2. extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
3342
3346
|
* ```
|
|
3343
3347
|
*/
|
|
3344
|
-
operateRender?: (form: FormInstance, extraData?: TPlainObject) => ReactElement;
|
|
3348
|
+
operateRender?: (form: FormInstance, extraData?: TPlainObject) => React$1.ReactElement;
|
|
3345
3349
|
};
|
|
3346
3350
|
export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
|
|
3347
3351
|
/**
|
|
@@ -3352,12 +3356,12 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
3352
3356
|
* ```
|
|
3353
3357
|
*/
|
|
3354
3358
|
size?: "small" | "middle" | "large" | null;
|
|
3355
|
-
onOk?: (form: FormInstance, e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3356
|
-
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>;
|
|
3357
3361
|
onClose?: () => void;
|
|
3358
|
-
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
3362
|
+
content: string | React$1.ReactElement | ((form: FormInstance, operate: {
|
|
3359
3363
|
onClose: TNoopDefine;
|
|
3360
|
-
}) => ReactElement);
|
|
3364
|
+
}) => React$1.ReactElement);
|
|
3361
3365
|
okHidden?: boolean;
|
|
3362
3366
|
cancelHidden?: boolean;
|
|
3363
3367
|
okButtonProps?: Omit<ButtonWrapperProps, "hidden" | "children" | "onClick">;
|
|
@@ -3371,20 +3375,20 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
3371
3375
|
* ```
|
|
3372
3376
|
*/
|
|
3373
3377
|
bodyHeightPercent?: number;
|
|
3374
|
-
titleExtra?: ReactElement;
|
|
3378
|
+
titleExtra?: React$1.ReactElement;
|
|
3375
3379
|
/**
|
|
3376
3380
|
* null则隐藏footer
|
|
3377
3381
|
* ```
|
|
3378
3382
|
* extraData 为外部通过 useDialogModal.rerenderFooter 重新渲染footer携带的数据
|
|
3379
3383
|
* ```
|
|
3380
3384
|
*/
|
|
3381
|
-
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);
|
|
3382
3386
|
/** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
|
|
3383
3387
|
bodyHeight?: number;
|
|
3384
3388
|
};
|
|
3385
3389
|
export type FbaAppConfirmProps = FbaAppModalProps;
|
|
3386
3390
|
export type FbaAppAlertProps = Omit<FbaAppModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
|
|
3387
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3391
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
3388
3392
|
};
|
|
3389
3393
|
export type FbaAppLoadingProps = {
|
|
3390
3394
|
className?: string;
|
|
@@ -3393,7 +3397,7 @@ export type FbaAppLoadingProps = {
|
|
|
3393
3397
|
};
|
|
3394
3398
|
export declare const FbaApp: ((props: {
|
|
3395
3399
|
children: import("react").ReactNode;
|
|
3396
|
-
}) => import("react").JSX.Element) & {
|
|
3400
|
+
}) => import("react").React$1.JSX.Element) & {
|
|
3397
3401
|
/** 不支持多次弹框,第二个弹框可使用useDialogDrawer2 */
|
|
3398
3402
|
useDialogDrawer: () => {
|
|
3399
3403
|
appDialogDrawer: {
|
|
@@ -3544,11 +3548,11 @@ export declare const fbaUtils: {
|
|
|
3544
3548
|
};
|
|
3545
3549
|
export type FileExportProps = {
|
|
3546
3550
|
/** 触发节点 */
|
|
3547
|
-
action: (ReactElement & {
|
|
3551
|
+
action: (React$1.ReactElement & {
|
|
3548
3552
|
onClick?: (e: any) => void;
|
|
3549
3553
|
}) | ((data: {
|
|
3550
3554
|
onClick: (e: any) => void;
|
|
3551
|
-
}) => ReactElement);
|
|
3555
|
+
}) => React$1.ReactElement);
|
|
3552
3556
|
/**
|
|
3553
3557
|
* 获取文件流数据
|
|
3554
3558
|
* ```
|
|
@@ -3583,14 +3587,14 @@ export type FileExportProps = {
|
|
|
3583
3587
|
/>
|
|
3584
3588
|
* ```
|
|
3585
3589
|
*/
|
|
3586
|
-
export declare const FileExport: (props: FileExportProps) => import("react").JSX.Element;
|
|
3590
|
+
export declare const FileExport: (props: FileExportProps) => import("react").React$1.JSX.Element;
|
|
3587
3591
|
export type FileImportProps = {
|
|
3588
3592
|
/** 上传文件接口返回处理 */
|
|
3589
3593
|
onImportFinish: (data?: TAny) => void;
|
|
3590
|
-
buttonName?: string | ReactElement;
|
|
3591
|
-
children?: ReactNode | ((data: {
|
|
3594
|
+
buttonName?: string | React$1.ReactElement;
|
|
3595
|
+
children?: React$1.ReactNode | ((data: {
|
|
3592
3596
|
loading: boolean;
|
|
3593
|
-
}) => ReactNode);
|
|
3597
|
+
}) => React$1.ReactNode);
|
|
3594
3598
|
} & Omit<UploadProps, "fileList" | "showUploadList" | "itemRender" | "listType" | "multiple" | "previewFile" | "progress" | "onChange" | "onDownload" | "onRemove" | "onPreview" | "directory" | "customRequest" | "defaultFileList" | "iconRender">;
|
|
3595
3599
|
/**
|
|
3596
3600
|
* 文件导入
|
|
@@ -3611,15 +3615,15 @@ export type FileImportProps = {
|
|
|
3611
3615
|
* ```
|
|
3612
3616
|
*/
|
|
3613
3617
|
export declare const FileImport: {
|
|
3614
|
-
(props: FileImportProps): import("react").JSX.Element;
|
|
3618
|
+
(props: FileImportProps): import("react").React$1.JSX.Element;
|
|
3615
3619
|
defaultProps: {
|
|
3616
3620
|
name: string;
|
|
3617
3621
|
accept: string;
|
|
3618
3622
|
};
|
|
3619
3623
|
};
|
|
3620
3624
|
export type FileSelectProps = {
|
|
3621
|
-
buttonName?: string | ReactElement;
|
|
3622
|
-
children?: ReactNode;
|
|
3625
|
+
buttonName?: string | React$1.ReactElement;
|
|
3626
|
+
children?: React$1.ReactNode;
|
|
3623
3627
|
/** 上传按钮与文件排版 默认:horizontal */
|
|
3624
3628
|
direction?: "horizontal" | "hertical";
|
|
3625
3629
|
/** 可选择文件格式,默认:.xlsx,.xls */
|
|
@@ -3633,7 +3637,7 @@ export type FileSelectProps = {
|
|
|
3633
3637
|
* 默认选择文件格式:.xlsx,.xls
|
|
3634
3638
|
* ```
|
|
3635
3639
|
*/
|
|
3636
|
-
export declare const FileSelect: (props: FileSelectProps) => import("react").JSX.Element;
|
|
3640
|
+
export declare const FileSelect: (props: FileSelectProps) => import("react").React$1.JSX.Element;
|
|
3637
3641
|
export type FlexLayoutProps = {
|
|
3638
3642
|
className?: string;
|
|
3639
3643
|
/** 子组件铺满的索引值,从0开始 */
|
|
@@ -3641,10 +3645,10 @@ export type FlexLayoutProps = {
|
|
|
3641
3645
|
/**方向,默认值vertical */
|
|
3642
3646
|
direction?: "vertical" | "horizontal";
|
|
3643
3647
|
onClick?: () => void;
|
|
3644
|
-
style?: CSSProperties;
|
|
3648
|
+
style?: React$1.CSSProperties;
|
|
3645
3649
|
/** 间隙尺寸 */
|
|
3646
3650
|
gap?: number;
|
|
3647
|
-
children?: ReactNode | null | Array<ReactNode | null>;
|
|
3651
|
+
children?: React$1.ReactNode | null | Array<React$1.ReactNode | null>;
|
|
3648
3652
|
};
|
|
3649
3653
|
/**
|
|
3650
3654
|
* flex布局,主要用于Flex结构性布局
|
|
@@ -3652,7 +3656,7 @@ export type FlexLayoutProps = {
|
|
|
3652
3656
|
* 4.2.87版本中将fullIndex改为了必填属性,如果在升级中遇到问题,不确定怎么写,可设置 fullIndex=[] 保持原样
|
|
3653
3657
|
* ```
|
|
3654
3658
|
*/
|
|
3655
|
-
export declare const FlexLayout: (props: FlexLayoutProps) => import("react").JSX.Element;
|
|
3659
|
+
export declare const FlexLayout: (props: FlexLayoutProps) => import("react").React$1.JSX.Element;
|
|
3656
3660
|
export type FormColProps = {
|
|
3657
3661
|
/** 栅格占位格数,替换lg、xl、xxl默认数据 */
|
|
3658
3662
|
span?: number;
|
|
@@ -3670,7 +3674,7 @@ export type FormColProps = {
|
|
|
3670
3674
|
xxl?: number;
|
|
3671
3675
|
/** 强制单独一行 */
|
|
3672
3676
|
forceAloneRow?: boolean;
|
|
3673
|
-
children?: ReactNode | ReactNode[];
|
|
3677
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
3674
3678
|
hidden?: boolean;
|
|
3675
3679
|
};
|
|
3676
3680
|
export declare const FormGrid: {
|
|
@@ -3681,7 +3685,7 @@ export declare const FormGrid: {
|
|
|
3681
3685
|
* 2. 子元素只能是 FormGrid.Col、FormGrid.OperateCol,其他会被忽略
|
|
3682
3686
|
* 3. 所有子元素中只能存在一个 FormGrid.OperateCol
|
|
3683
3687
|
*/
|
|
3684
|
-
Row: (props: FormRowProps) => import("react").JSX.Element;
|
|
3688
|
+
Row: (props: FormRowProps) => import("react").React$1.JSX.Element;
|
|
3685
3689
|
/**
|
|
3686
3690
|
* 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
3687
3691
|
*```
|
|
@@ -3696,7 +3700,7 @@ export declare const FormGrid: {
|
|
|
3696
3700
|
* ```
|
|
3697
3701
|
*/
|
|
3698
3702
|
Col: {
|
|
3699
|
-
(props: FormColProps): import("react").JSX.Element | null;
|
|
3703
|
+
(props: FormColProps): import("react").React$1.JSX.Element | null;
|
|
3700
3704
|
domTypeName: string;
|
|
3701
3705
|
};
|
|
3702
3706
|
/**
|
|
@@ -3709,35 +3713,35 @@ export declare const FormGrid: {
|
|
|
3709
3713
|
* ```
|
|
3710
3714
|
*/
|
|
3711
3715
|
OperateCol: {
|
|
3712
|
-
(props: FormOperateColProps): import("react").JSX.Element | null;
|
|
3716
|
+
(props: FormOperateColProps): import("react").React$1.JSX.Element | null;
|
|
3713
3717
|
domTypeName: string;
|
|
3714
3718
|
};
|
|
3715
3719
|
};
|
|
3716
3720
|
export type FormItemCardProps = {
|
|
3717
|
-
title?: string | ReactElement;
|
|
3718
|
-
children: ReactElement | ReactElement[];
|
|
3721
|
+
title?: string | React$1.ReactElement;
|
|
3722
|
+
children: React$1.ReactElement | React$1.ReactElement[];
|
|
3719
3723
|
className?: string;
|
|
3720
|
-
style?: CSSProperties;
|
|
3724
|
+
style?: React$1.CSSProperties;
|
|
3721
3725
|
titleSign?: boolean;
|
|
3722
3726
|
};
|
|
3723
3727
|
export declare const FormItemGroup: {
|
|
3724
|
-
HorizontalUnion: (props: FormItemHorizontalUnionProps) => import("react").JSX.Element;
|
|
3728
|
+
HorizontalUnion: (props: FormItemHorizontalUnionProps) => import("react").React$1.JSX.Element;
|
|
3725
3729
|
Card: import("react").FC<FormItemCardProps>;
|
|
3726
3730
|
};
|
|
3727
3731
|
export type FormItemHiddenProps = {
|
|
3728
3732
|
name: FormItemProps["name"];
|
|
3729
3733
|
className?: string;
|
|
3730
|
-
style?: CSSProperties;
|
|
3734
|
+
style?: React$1.CSSProperties;
|
|
3731
3735
|
};
|
|
3732
3736
|
export declare const FormItemHidden: {
|
|
3733
|
-
(props: FormItemHiddenProps): import("react").JSX.Element;
|
|
3737
|
+
(props: FormItemHiddenProps): import("react").React$1.JSX.Element;
|
|
3734
3738
|
domTypeName: string;
|
|
3735
3739
|
};
|
|
3736
3740
|
export type FormItemSpanProps = {
|
|
3737
3741
|
span?: number;
|
|
3738
|
-
children?: ReactNode;
|
|
3742
|
+
children?: React$1.ReactNode;
|
|
3739
3743
|
className?: string;
|
|
3740
|
-
style?: CSSProperties;
|
|
3744
|
+
style?: React$1.CSSProperties;
|
|
3741
3745
|
/** 是否移除 */
|
|
3742
3746
|
hidden?: boolean;
|
|
3743
3747
|
};
|
|
@@ -3768,7 +3772,7 @@ export type FormItemSpanProps = {
|
|
|
3768
3772
|
* ```
|
|
3769
3773
|
*/
|
|
3770
3774
|
export declare const FormItemSpan: {
|
|
3771
|
-
(props: FormItemSpanProps): import("react").JSX.Element;
|
|
3775
|
+
(props: FormItemSpanProps): import("react").React$1.JSX.Element;
|
|
3772
3776
|
domTypeName: string;
|
|
3773
3777
|
};
|
|
3774
3778
|
export type FormItemTextServiceConfig = {
|
|
@@ -3786,7 +3790,7 @@ export type FormItemTextProps = Omit<FormItemWrapperProps, "onChange"> & {
|
|
|
3786
3790
|
/** 是否换行,默认不换行,超出省略(鼠标悬浮可显示) */
|
|
3787
3791
|
wrap?: boolean;
|
|
3788
3792
|
/** 自定义数据显示 */
|
|
3789
|
-
render?: (value?: TAny) => ReactNode;
|
|
3793
|
+
render?: (value?: TAny) => React$1.ReactNode;
|
|
3790
3794
|
/** 占位值,当 value 为 ''、undefined、null时显示 */
|
|
3791
3795
|
placeholderValue?: string;
|
|
3792
3796
|
/**
|
|
@@ -3841,17 +3845,17 @@ export type FormItemTextProps = Omit<FormItemWrapperProps, "onChange"> & {
|
|
|
3841
3845
|
* ```
|
|
3842
3846
|
*/
|
|
3843
3847
|
export declare const FormItemText: {
|
|
3844
|
-
(props: FormItemTextProps): import("react").JSX.Element;
|
|
3848
|
+
(props: FormItemTextProps): import("react").React$1.JSX.Element;
|
|
3845
3849
|
domTypeName: string;
|
|
3846
3850
|
};
|
|
3847
3851
|
export type FormItemWrapperDependenciesProps = {
|
|
3848
3852
|
children?: (form: FormInstance, otherProps: {
|
|
3849
|
-
style?: CSSProperties;
|
|
3853
|
+
style?: React$1.CSSProperties;
|
|
3850
3854
|
className?: string;
|
|
3851
|
-
}) => ReactElement;
|
|
3855
|
+
}) => React$1.ReactElement;
|
|
3852
3856
|
dependencies: any[];
|
|
3853
3857
|
className?: string;
|
|
3854
|
-
style?: CSSProperties;
|
|
3858
|
+
style?: React$1.CSSProperties;
|
|
3855
3859
|
};
|
|
3856
3860
|
/**
|
|
3857
3861
|
* FormItem依赖写法包装,当处在EasyForm内部时,不支持 <Form.Item dependencies={['xxx']} noStyle /> 此写法,使用 <FormItemWrapperDependencies dependencies={['xxx']} /> 代替
|
|
@@ -3880,7 +3884,7 @@ export type FormItemWrapperDependenciesProps = {
|
|
|
3880
3884
|
* ```
|
|
3881
3885
|
*/
|
|
3882
3886
|
export declare const FormItemWrapperDependencies: {
|
|
3883
|
-
(props: FormItemWrapperDependenciesProps): import("react").JSX.Element;
|
|
3887
|
+
(props: FormItemWrapperDependenciesProps): import("react").React$1.JSX.Element;
|
|
3884
3888
|
domTypeName: string;
|
|
3885
3889
|
};
|
|
3886
3890
|
export type FormListWrapperContentProps = {
|
|
@@ -3913,7 +3917,7 @@ export type FormListWrapperContentProps = {
|
|
|
3913
3917
|
};
|
|
3914
3918
|
export type FormListWrapperProps = {
|
|
3915
3919
|
className?: string;
|
|
3916
|
-
style?: CSSProperties;
|
|
3920
|
+
style?: React$1.CSSProperties;
|
|
3917
3921
|
/** formList item 数据中的唯一值,默认值:uid */
|
|
3918
3922
|
uidFieldName?: string;
|
|
3919
3923
|
/** formList name */
|
|
@@ -3932,15 +3936,15 @@ export type FormListWrapperProps = {
|
|
|
3932
3936
|
/** 隐藏新增行按钮 */
|
|
3933
3937
|
hiddenAddRowButton?: boolean;
|
|
3934
3938
|
/** 自定义新增行按钮,getAddRowDefaultValues配置失效 */
|
|
3935
|
-
onCustomAddRowButton?: (operation: FormListOperation) => ReactElement;
|
|
3939
|
+
onCustomAddRowButton?: (operation: FormListOperation) => React$1.ReactElement;
|
|
3936
3940
|
/** formListItem 内容 */
|
|
3937
|
-
children: (data: FormListWrapperContentProps) => ReactElement;
|
|
3941
|
+
children: (data: FormListWrapperContentProps) => React$1.ReactElement;
|
|
3938
3942
|
/** 隐藏数据为空渲染 */
|
|
3939
3943
|
hiddenEmptyRender?: boolean;
|
|
3940
3944
|
/** formList内部渲染包装,多用于FormListWrapper嵌套布局 */
|
|
3941
3945
|
formListChildrenWrapper?: (props: {
|
|
3942
|
-
children: ReactElement;
|
|
3943
|
-
}) => ReactElement;
|
|
3946
|
+
children: React$1.ReactElement;
|
|
3947
|
+
}) => React$1.ReactElement;
|
|
3944
3948
|
/**
|
|
3945
3949
|
* Form.List rules
|
|
3946
3950
|
* ```
|
|
@@ -3981,12 +3985,12 @@ export type FormListWrapperProps = {
|
|
|
3981
3985
|
* 2. 通过 itemGap 设置FormList Item 之间间隙
|
|
3982
3986
|
* ```
|
|
3983
3987
|
*/
|
|
3984
|
-
export declare const FormListWrapper: (props: FormListWrapperProps) => import("react").JSX.Element;
|
|
3988
|
+
export declare const FormListWrapper: (props: FormListWrapperProps) => import("react").React$1.JSX.Element;
|
|
3985
3989
|
export type GapProps = {
|
|
3986
3990
|
height?: number;
|
|
3987
3991
|
width?: number;
|
|
3988
3992
|
className?: string;
|
|
3989
|
-
style?: CSSProperties;
|
|
3993
|
+
style?: React$1.CSSProperties;
|
|
3990
3994
|
inline?: boolean;
|
|
3991
3995
|
};
|
|
3992
3996
|
/**
|
|
@@ -3994,17 +3998,17 @@ export type GapProps = {
|
|
|
3994
3998
|
* @param props
|
|
3995
3999
|
* @returns
|
|
3996
4000
|
*/
|
|
3997
|
-
export declare const Gap: (props: GapProps) => import("react").JSX.Element;
|
|
4001
|
+
export declare const Gap: (props: GapProps) => import("react").React$1.JSX.Element;
|
|
3998
4002
|
export type IconWrapperProps = {
|
|
3999
|
-
hoverTips?: string | ReactElement;
|
|
4003
|
+
hoverTips?: string | React$1.ReactElement;
|
|
4000
4004
|
/**
|
|
4001
4005
|
* 提示类型
|
|
4002
4006
|
* @default 'tooltip'
|
|
4003
4007
|
*/
|
|
4004
4008
|
tipsType?: "popover" | "tooltip";
|
|
4005
|
-
icon?: ReactNode;
|
|
4006
|
-
style?: CSSProperties;
|
|
4007
|
-
text?: string | ReactElement;
|
|
4009
|
+
icon?: React$1.ReactNode;
|
|
4010
|
+
style?: React$1.CSSProperties;
|
|
4011
|
+
text?: string | React$1.ReactElement;
|
|
4008
4012
|
className?: string;
|
|
4009
4013
|
size?: "small" | "middle" | "large";
|
|
4010
4014
|
onClick?: (event: any) => void;
|
|
@@ -4015,7 +4019,7 @@ export type IconWrapperProps = {
|
|
|
4015
4019
|
/** 图标与文字之间的间距 */
|
|
4016
4020
|
gap?: number;
|
|
4017
4021
|
};
|
|
4018
|
-
export declare const IconWrapper: (props: IconWrapperProps) => import("react").JSX.Element;
|
|
4022
|
+
export declare const IconWrapper: (props: IconWrapperProps) => import("react").React$1.JSX.Element;
|
|
4019
4023
|
export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
4020
4024
|
/**
|
|
4021
4025
|
* ```
|
|
@@ -4028,7 +4032,7 @@ export type InputSearchWrapperProps = Omit<SearchProps, "defaultValue">;
|
|
|
4028
4032
|
*
|
|
4029
4033
|
* ```
|
|
4030
4034
|
*/
|
|
4031
|
-
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => import("react").JSX.Element;
|
|
4035
|
+
export declare const InputSearchWrapper: (props: InputSearchWrapperProps) => import("react").React$1.JSX.Element;
|
|
4032
4036
|
export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
|
|
4033
4037
|
debounceDuration?: number;
|
|
4034
4038
|
};
|
|
@@ -4043,7 +4047,7 @@ export type InputTextAreaWrapperProps = Omit<TextAreaProps, "defaultValue"> & {
|
|
|
4043
4047
|
*
|
|
4044
4048
|
* ```
|
|
4045
4049
|
*/
|
|
4046
|
-
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => import("react").JSX.Element;
|
|
4050
|
+
export declare const InputTextAreaWrapper: (props: InputTextAreaWrapperProps) => import("react").React$1.JSX.Element;
|
|
4047
4051
|
export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
|
|
4048
4052
|
debounceDuration?: number;
|
|
4049
4053
|
};
|
|
@@ -4058,11 +4062,11 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
|
|
|
4058
4062
|
* 6. 可设置防抖执行时间
|
|
4059
4063
|
* ```
|
|
4060
4064
|
*/
|
|
4061
|
-
export declare const InputWrapper: (props: InputWrapperProps) => import("react").JSX.Element;
|
|
4065
|
+
export declare const InputWrapper: (props: InputWrapperProps) => import("react").React$1.JSX.Element;
|
|
4062
4066
|
export type LabelValueLayoutProps = {
|
|
4063
4067
|
options: {
|
|
4064
|
-
label: string | ReactElement;
|
|
4065
|
-
value?: string | number | ReactElement | null;
|
|
4068
|
+
label: string | React$1.ReactElement;
|
|
4069
|
+
value?: string | number | React$1.ReactElement | null;
|
|
4066
4070
|
span?: number;
|
|
4067
4071
|
hidden?: boolean;
|
|
4068
4072
|
}[];
|
|
@@ -4071,19 +4075,19 @@ export type LabelValueLayoutProps = {
|
|
|
4071
4075
|
/** 添加边框 */
|
|
4072
4076
|
bordered?: boolean;
|
|
4073
4077
|
className?: string;
|
|
4074
|
-
style?: CSSProperties;
|
|
4078
|
+
style?: React$1.CSSProperties;
|
|
4075
4079
|
/** 边框 row 内边距 */
|
|
4076
|
-
borderedRowPadding?: CSSProperties["padding"];
|
|
4080
|
+
borderedRowPadding?: React$1.CSSProperties["padding"];
|
|
4077
4081
|
};
|
|
4078
4082
|
/**
|
|
4079
4083
|
* @deprecated 已过期,请使用 LabelValueRender 组件
|
|
4080
4084
|
* options[].span 是 Description.Item 的数量。 span={2} 会占用两个 DescriptionItem 的宽度
|
|
4081
4085
|
* options[].hidden 是否隐藏 Description.Item
|
|
4082
4086
|
*/
|
|
4083
|
-
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import("react").JSX.Element;
|
|
4087
|
+
export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import("react").React$1.JSX.Element;
|
|
4084
4088
|
export type TLabelValueItem = {
|
|
4085
|
-
label: string | ReactElement;
|
|
4086
|
-
value?: string | number | ReactElement;
|
|
4089
|
+
label: string | React$1.ReactElement;
|
|
4090
|
+
value?: string | number | React$1.ReactElement;
|
|
4087
4091
|
/** 根据LabelValueRender.column配置,当前item占几列 */
|
|
4088
4092
|
span?: 1 | 2 | 3 | 4 | 6;
|
|
4089
4093
|
/** 是否隐藏 */
|
|
@@ -4100,12 +4104,12 @@ export type TLabelValueItem = {
|
|
|
4100
4104
|
hideTip?: boolean;
|
|
4101
4105
|
/** value 渲染不使用 TextOverflow 包裹 */
|
|
4102
4106
|
valueNoWrapper?: boolean;
|
|
4103
|
-
labelStyle?: CSSProperties;
|
|
4104
|
-
valueStyle?: CSSProperties;
|
|
4107
|
+
labelStyle?: React$1.CSSProperties;
|
|
4108
|
+
valueStyle?: React$1.CSSProperties;
|
|
4105
4109
|
};
|
|
4106
4110
|
export type LabelValueRenderProps = {
|
|
4107
4111
|
className?: string;
|
|
4108
|
-
style?: CSSProperties;
|
|
4112
|
+
style?: React$1.CSSProperties;
|
|
4109
4113
|
/**
|
|
4110
4114
|
* 定义一行显示几列, 默认值:4
|
|
4111
4115
|
* ```
|
|
@@ -4160,9 +4164,9 @@ export type LabelValueRenderProps = {
|
|
|
4160
4164
|
labelWidth?: number | "auto";
|
|
4161
4165
|
width?: number;
|
|
4162
4166
|
/** label 样式 */
|
|
4163
|
-
labelStyle?: CSSProperties;
|
|
4167
|
+
labelStyle?: React$1.CSSProperties;
|
|
4164
4168
|
/** value 样式 */
|
|
4165
|
-
valueStyle?: CSSProperties;
|
|
4169
|
+
valueStyle?: React$1.CSSProperties;
|
|
4166
4170
|
size?: "default" | "small";
|
|
4167
4171
|
/**
|
|
4168
4172
|
* label&value 方向布局
|
|
@@ -4192,7 +4196,7 @@ export type LabelValueRenderProps = {
|
|
|
4192
4196
|
* 3. 内置响应式布局
|
|
4193
4197
|
* ```
|
|
4194
4198
|
*/
|
|
4195
|
-
export declare const LabelValueRender: (props: LabelValueRenderProps) => import("react").JSX.Element;
|
|
4199
|
+
export declare const LabelValueRender: (props: LabelValueRenderProps) => import("react").React$1.JSX.Element;
|
|
4196
4200
|
export type LocalLoadingServiceConfig = {
|
|
4197
4201
|
onRequest: (params?: TAny) => Promise<TAny>;
|
|
4198
4202
|
params?: TPlainObject;
|
|
@@ -4203,12 +4207,12 @@ export type LocalLoadingServiceConfig = {
|
|
|
4203
4207
|
};
|
|
4204
4208
|
export interface LocalLoadingProps {
|
|
4205
4209
|
className?: string;
|
|
4206
|
-
style?: CSSProperties;
|
|
4207
|
-
contentStyle?: CSSProperties;
|
|
4210
|
+
style?: React$1.CSSProperties;
|
|
4211
|
+
contentStyle?: React$1.CSSProperties;
|
|
4208
4212
|
/** 接口数据配置 */
|
|
4209
4213
|
serviceConfig: LocalLoadingServiceConfig;
|
|
4210
4214
|
/** children 为函数,参数【respData】为接口返回数据 */
|
|
4211
|
-
children: (respData?: TAny) => ReactElement;
|
|
4215
|
+
children: (respData?: TAny) => React$1.ReactElement;
|
|
4212
4216
|
/**
|
|
4213
4217
|
* 是否异步,默认:false
|
|
4214
4218
|
* ```
|
|
@@ -4224,7 +4228,7 @@ export interface LocalLoadingProps {
|
|
|
4224
4228
|
/** loading tip,默认值:Loading */
|
|
4225
4229
|
tip?: string;
|
|
4226
4230
|
/** loading 内容 */
|
|
4227
|
-
content?: ReactElement;
|
|
4231
|
+
content?: React$1.ReactElement;
|
|
4228
4232
|
/** 背景色,默认值:rgba(0,0,0,0.01) */
|
|
4229
4233
|
bgColor?: string;
|
|
4230
4234
|
};
|
|
@@ -4235,7 +4239,7 @@ export interface LocalLoadingProps {
|
|
|
4235
4239
|
/** 是否显示必填异常 */
|
|
4236
4240
|
showRequiredError?: boolean;
|
|
4237
4241
|
/** 自定义异常渲染处理 */
|
|
4238
|
-
errorRender?: (error?: TAny) => ReactElement;
|
|
4242
|
+
errorRender?: (error?: TAny) => React$1.ReactElement;
|
|
4239
4243
|
/** 设置内部滚动,需要设置 style.height 才能生效,@5.0.16 */
|
|
4240
4244
|
contentScroll?: boolean;
|
|
4241
4245
|
/** 设置高度 */
|
|
@@ -4335,7 +4339,7 @@ export type ParamItem = {
|
|
|
4335
4339
|
} & Record<string, TAny>;
|
|
4336
4340
|
export type OperationPresetProps = {
|
|
4337
4341
|
/** icon */
|
|
4338
|
-
icon: ReactElement;
|
|
4342
|
+
icon: React$1.ReactElement;
|
|
4339
4343
|
/** 模版参数文案 */
|
|
4340
4344
|
label?: string;
|
|
4341
4345
|
/** 模版参数类型 */
|
|
@@ -4366,19 +4370,19 @@ export type MentionEditorProps = Omit<MentionsWrapperProps, "prefix"> & {
|
|
|
4366
4370
|
* 4. 模版参数建议都以${_xxx}为格式
|
|
4367
4371
|
* 5. Demo: https://fex.qa.tcshuke.com/docs/admin/main/widget?key=mention-editor
|
|
4368
4372
|
*/
|
|
4369
|
-
export declare const MentionEditor: (props: MentionEditorProps) => import("react").JSX.Element;
|
|
4373
|
+
export declare const MentionEditor: (props: MentionEditorProps) => import("react").React$1.JSX.Element;
|
|
4370
4374
|
export interface ModalActionProps {
|
|
4371
|
-
children: ReactElement | ((data: {
|
|
4375
|
+
children: React$1.ReactElement | ((data: {
|
|
4372
4376
|
onClose: () => void;
|
|
4373
4377
|
open: boolean;
|
|
4374
|
-
}) => ReactElement);
|
|
4375
|
-
action?: (ReactElement & {
|
|
4378
|
+
}) => React$1.ReactElement);
|
|
4379
|
+
action?: (React$1.ReactElement & {
|
|
4376
4380
|
onClick?: (e: any) => void;
|
|
4377
4381
|
}) | ((data: {
|
|
4378
4382
|
onClick: (e: any) => void;
|
|
4379
4383
|
onClose: () => void;
|
|
4380
4384
|
open: boolean;
|
|
4381
|
-
}) => ReactElement);
|
|
4385
|
+
}) => React$1.ReactElement);
|
|
4382
4386
|
}
|
|
4383
4387
|
/**
|
|
4384
4388
|
* 弹框 触发器
|
|
@@ -4390,7 +4394,7 @@ export interface ModalActionProps {
|
|
|
4390
4394
|
* </ModalAction>
|
|
4391
4395
|
* ```
|
|
4392
4396
|
*/
|
|
4393
|
-
export declare const ModalAction: (props: ModalActionProps) => import("react").JSX.Element;
|
|
4397
|
+
export declare const ModalAction: (props: ModalActionProps) => import("react").React$1.JSX.Element;
|
|
4394
4398
|
type InputNumberProps$1 = GetProps<typeof InputNumber>;
|
|
4395
4399
|
export type NumberRangeFormItemProps = Omit<FormItemWrapperProps, "name" | "rules"> & {
|
|
4396
4400
|
minFormItemName: FormItemNamePath;
|
|
@@ -4415,18 +4419,18 @@ export type NumberRangeFormItemProps = Omit<FormItemWrapperProps, "name" | "rule
|
|
|
4415
4419
|
/**
|
|
4416
4420
|
* 数字输入范围组件
|
|
4417
4421
|
*/
|
|
4418
|
-
export declare const NumberRangeFormItem: (props: NumberRangeFormItemProps) => import("react").JSX.Element;
|
|
4422
|
+
export declare const NumberRangeFormItem: (props: NumberRangeFormItemProps) => import("react").React$1.JSX.Element;
|
|
4419
4423
|
export type PageFixedFooterProps = {
|
|
4420
4424
|
className?: string;
|
|
4421
|
-
style?: CSSProperties;
|
|
4422
|
-
children?: ReactNode | ReactNode[];
|
|
4425
|
+
style?: React$1.CSSProperties;
|
|
4426
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
4423
4427
|
hidden?: boolean;
|
|
4424
4428
|
};
|
|
4425
|
-
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;
|
|
4426
4430
|
export type Page404Props = {
|
|
4427
4431
|
message?: string;
|
|
4428
4432
|
};
|
|
4429
|
-
export declare const Page404: (props: Page404Props) => import("react").JSX.Element;
|
|
4433
|
+
export declare const Page404: (props: Page404Props) => import("react").React$1.JSX.Element;
|
|
4430
4434
|
/**
|
|
4431
4435
|
* 由于 antd 5.3.x 分页Pagination组件,存在点击分页选择框时,一直朝下
|
|
4432
4436
|
* issues:https://github.com/ant-design/ant-design/issues/36866
|
|
@@ -4434,7 +4438,7 @@ export declare const Page404: (props: Page404Props) => import("react").JSX.Eleme
|
|
|
4434
4438
|
* @param props
|
|
4435
4439
|
* @returns
|
|
4436
4440
|
*/
|
|
4437
|
-
export declare const PaginationWrapper: (props: PaginationProps) => import("react").JSX.Element;
|
|
4441
|
+
export declare const PaginationWrapper: (props: PaginationProps) => import("react").React$1.JSX.Element;
|
|
4438
4442
|
/**
|
|
4439
4443
|
* pdf预览
|
|
4440
4444
|
* ```
|
|
@@ -4452,7 +4456,7 @@ export declare const Pdf: {
|
|
|
4452
4456
|
children: import("react").ReactNode;
|
|
4453
4457
|
error?: import("react").ReactElement | ((error: any) => import("react").ReactElement);
|
|
4454
4458
|
className?: string;
|
|
4455
|
-
}) => import("react").JSX.Element;
|
|
4459
|
+
}) => import("react").React$1.JSX.Element;
|
|
4456
4460
|
Page: (props: {
|
|
4457
4461
|
onRenderSuccess?: (pageInstance: any, pdfInstance: any) => void;
|
|
4458
4462
|
onRenderError?: (error: any, pdfInstance: any) => void;
|
|
@@ -4464,7 +4468,7 @@ export declare const Pdf: {
|
|
|
4464
4468
|
onClick?: (e: any) => void;
|
|
4465
4469
|
className?: string;
|
|
4466
4470
|
style?: import("react").CSSProperties;
|
|
4467
|
-
}) => import("react").JSX.Element;
|
|
4471
|
+
}) => import("react").React$1.JSX.Element;
|
|
4468
4472
|
};
|
|
4469
4473
|
export type PdfPreviewProps = {
|
|
4470
4474
|
pdfUrl: string;
|
|
@@ -4487,7 +4491,7 @@ export type PdfPreviewProps = {
|
|
|
4487
4491
|
* Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal
|
|
4488
4492
|
* ```
|
|
4489
4493
|
*/
|
|
4490
|
-
export declare const PdfPreview: (props: PdfPreviewProps) => import("react").JSX.Element;
|
|
4494
|
+
export declare const PdfPreview: (props: PdfPreviewProps) => import("react").React$1.JSX.Element;
|
|
4491
4495
|
export type PdfPreview2Props = {
|
|
4492
4496
|
pdfUrl: string;
|
|
4493
4497
|
/** 网络环境,inner/内网,outer/外网,默认inner */
|
|
@@ -4501,12 +4505,12 @@ export type PdfPreview2Props = {
|
|
|
4501
4505
|
* 3. networkEnv 设置内网、外网,默认内网
|
|
4502
4506
|
* ```
|
|
4503
4507
|
*/
|
|
4504
|
-
export declare const PdfPreview2: (props: PdfPreview2Props) => import("react").JSX.Element;
|
|
4508
|
+
export declare const PdfPreview2: (props: PdfPreview2Props) => import("react").React$1.JSX.Element;
|
|
4505
4509
|
export interface PermissionProps {
|
|
4506
4510
|
name?: string;
|
|
4507
|
-
children?: ReactNode | ReactNode[];
|
|
4511
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
4508
4512
|
}
|
|
4509
|
-
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;
|
|
4510
4514
|
/**
|
|
4511
4515
|
* 预定义className
|
|
4512
4516
|
* ```
|
|
@@ -4587,7 +4591,7 @@ export declare const preDefinedClassName: {
|
|
|
4587
4591
|
};
|
|
4588
4592
|
export type RadioGroupWrapperValue = string | number | boolean;
|
|
4589
4593
|
export type RadioGroupWrapperOptionItem = {
|
|
4590
|
-
label: string | ReactElement;
|
|
4594
|
+
label: string | React$1.ReactElement;
|
|
4591
4595
|
value: RadioGroupWrapperValue;
|
|
4592
4596
|
disabled?: boolean;
|
|
4593
4597
|
};
|
|
@@ -4607,7 +4611,7 @@ export type CustomRadioGroupProps = {
|
|
|
4607
4611
|
* @param props
|
|
4608
4612
|
* @returns
|
|
4609
4613
|
*/
|
|
4610
|
-
export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react").JSX.Element;
|
|
4614
|
+
export declare const RadioGroupWrapper: (props: CustomRadioGroupProps) => import("react").React$1.JSX.Element;
|
|
4611
4615
|
export type RelationProps = {
|
|
4612
4616
|
/** 左侧Tag+线占用宽度 */
|
|
4613
4617
|
tagLineWidth?: number;
|
|
@@ -4623,8 +4627,8 @@ export type RelationProps = {
|
|
|
4623
4627
|
onTagClick?: (tagName?: string) => void;
|
|
4624
4628
|
/**连接线颜色 */
|
|
4625
4629
|
lineColor?: string;
|
|
4626
|
-
solt1: () => ReactElement;
|
|
4627
|
-
solt2?: () => ReactElement | null;
|
|
4630
|
+
solt1: () => React$1.ReactElement;
|
|
4631
|
+
solt2?: () => React$1.ReactElement | null;
|
|
4628
4632
|
className?: string;
|
|
4629
4633
|
onlyOne?: boolean;
|
|
4630
4634
|
onlyNoMainOne?: boolean;
|
|
@@ -4633,7 +4637,7 @@ export type RelationProps = {
|
|
|
4633
4637
|
export type RelationTreeProps = {
|
|
4634
4638
|
className?: string;
|
|
4635
4639
|
dataSource?: TRelationTreeData;
|
|
4636
|
-
children: (data: TRelationTreeCustomData, operate: TRelationTreeOperate, extraData?: TPlainObject) => ReactElement;
|
|
4640
|
+
children: (data: TRelationTreeCustomData, operate: TRelationTreeOperate, extraData?: TPlainObject) => React$1.ReactElement;
|
|
4637
4641
|
onChange?: (dataSource?: TRelationTreeData) => void;
|
|
4638
4642
|
relationProps?: Pick<RelationProps, "tagLineWidth" | "indentWidth" | "tagColor" | "tagWidth" | "lineColor">;
|
|
4639
4643
|
onTagClick?: (uid: string, extraData?: TPlainObject) => void;
|
|
@@ -4660,7 +4664,31 @@ export type TRelationTreeOperate = {
|
|
|
4660
4664
|
remove: (uid: string) => void;
|
|
4661
4665
|
onChange: (name: string, value: TAny) => void;
|
|
4662
4666
|
};
|
|
4663
|
-
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>;
|
|
4664
4692
|
export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"> {
|
|
4665
4693
|
/** 设置高度,默认:500 */
|
|
4666
4694
|
height?: number;
|
|
@@ -4718,14 +4746,14 @@ export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"
|
|
|
4718
4746
|
* 默认比例:[{ min: 0, max: 1000, ratio: 0.5 }, { min: 1000, ratio: 0.3 }]
|
|
4719
4747
|
* ```
|
|
4720
4748
|
*/
|
|
4721
|
-
export declare const RichTextEditor: (props: RichTextEditorProps) => import("react").JSX.Element;
|
|
4749
|
+
export declare const RichTextEditor: (props: RichTextEditorProps) => import("react").React$1.JSX.Element;
|
|
4722
4750
|
export type RichTextViewerProps = {
|
|
4723
4751
|
value: string;
|
|
4724
4752
|
className?: string;
|
|
4725
|
-
style?: CSSProperties;
|
|
4753
|
+
style?: React$1.CSSProperties;
|
|
4726
4754
|
fullscreen?: boolean;
|
|
4727
4755
|
onInit?: (editor: TinyMCEEditor) => void;
|
|
4728
|
-
children?: ReactElement;
|
|
4756
|
+
children?: React$1.ReactElement;
|
|
4729
4757
|
fullscreenIconTips?: string;
|
|
4730
4758
|
};
|
|
4731
4759
|
/**
|
|
@@ -4738,35 +4766,35 @@ export type RichTextViewerProps = {
|
|
|
4738
4766
|
* @param props
|
|
4739
4767
|
* @returns
|
|
4740
4768
|
*/
|
|
4741
|
-
export declare const RichTextViewer: (props: RichTextViewerProps) => import("react").JSX.Element;
|
|
4769
|
+
export declare const RichTextViewer: (props: RichTextViewerProps) => import("react").React$1.JSX.Element;
|
|
4742
4770
|
export type RollLocationCenterProps = {
|
|
4743
4771
|
renderList: {
|
|
4744
4772
|
activeKey: string;
|
|
4745
|
-
render: ReactElement;
|
|
4773
|
+
render: React$1.ReactElement;
|
|
4746
4774
|
}[];
|
|
4747
4775
|
activeKey?: string;
|
|
4748
4776
|
behavior?: ScrollBehavior;
|
|
4749
4777
|
direction?: "horizontal" | "vertical";
|
|
4750
|
-
style?: CSSProperties;
|
|
4778
|
+
style?: React$1.CSSProperties;
|
|
4751
4779
|
className?: string;
|
|
4752
4780
|
};
|
|
4753
|
-
export declare const RollLocationCenter: (props: RollLocationCenterProps) => import("react").JSX.Element;
|
|
4781
|
+
export declare const RollLocationCenter: (props: RollLocationCenterProps) => import("react").React$1.JSX.Element;
|
|
4754
4782
|
export type RollLocationInViewProps = {
|
|
4755
4783
|
renderList: {
|
|
4756
4784
|
activeKey: string;
|
|
4757
|
-
render: ReactElement;
|
|
4785
|
+
render: React$1.ReactElement;
|
|
4758
4786
|
}[];
|
|
4759
4787
|
activeKey?: string;
|
|
4760
4788
|
behavior?: ScrollBehavior;
|
|
4761
4789
|
activeOffset?: number;
|
|
4762
4790
|
direction?: "horizontal" | "vertical";
|
|
4763
|
-
style?: CSSProperties;
|
|
4791
|
+
style?: React$1.CSSProperties;
|
|
4764
4792
|
className?: string;
|
|
4765
4793
|
};
|
|
4766
|
-
export declare const RollLocationInView: (props: RollLocationInViewProps) => import("react").JSX.Element;
|
|
4794
|
+
export declare const RollLocationInView: (props: RollLocationInViewProps) => import("react").React$1.JSX.Element;
|
|
4767
4795
|
export type RuleDataItem = {
|
|
4768
|
-
title?: string | ReactElement;
|
|
4769
|
-
desc?: string | ReactElement;
|
|
4796
|
+
title?: string | React$1.ReactElement;
|
|
4797
|
+
desc?: string | React$1.ReactElement;
|
|
4770
4798
|
};
|
|
4771
4799
|
export type RuleDescribeProps = {
|
|
4772
4800
|
title?: string;
|
|
@@ -4774,13 +4802,13 @@ export type RuleDescribeProps = {
|
|
|
4774
4802
|
ruleDataList: RuleDataItem[];
|
|
4775
4803
|
titleSign?: boolean;
|
|
4776
4804
|
className?: string;
|
|
4777
|
-
ruleItemTitleStyle?: CSSProperties;
|
|
4778
|
-
ruleItemDescStyle?: CSSProperties;
|
|
4779
|
-
ruleItemStyle?: CSSProperties;
|
|
4805
|
+
ruleItemTitleStyle?: React$1.CSSProperties;
|
|
4806
|
+
ruleItemDescStyle?: React$1.CSSProperties;
|
|
4807
|
+
ruleItemStyle?: React$1.CSSProperties;
|
|
4780
4808
|
};
|
|
4781
|
-
export declare const RuleDescribe: (props: RuleDescribeProps) => import("react").JSX.Element;
|
|
4809
|
+
export declare const RuleDescribe: (props: RuleDescribeProps) => import("react").React$1.JSX.Element;
|
|
4782
4810
|
export type SearchFormProps = {
|
|
4783
|
-
children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
|
|
4811
|
+
children: React$1.ReactElement | React$1.ReactElement[] | ((form: FormInstance) => React$1.ReactElement);
|
|
4784
4812
|
/** isPure = true时无效 */
|
|
4785
4813
|
searchOperate?: (form: FormInstance) => FormOperateColProps;
|
|
4786
4814
|
/** 是否为纯净模式(查询条件布局是否自定义), */
|
|
@@ -4800,7 +4828,7 @@ export type SearchFormProps = {
|
|
|
4800
4828
|
*/
|
|
4801
4829
|
formGridSize?: FormRowProps["gridSize"];
|
|
4802
4830
|
formClassName?: string;
|
|
4803
|
-
formStyle?: CSSProperties;
|
|
4831
|
+
formStyle?: React$1.CSSProperties;
|
|
4804
4832
|
/** form 初始值 */
|
|
4805
4833
|
formInitialValues?: TPlainObject;
|
|
4806
4834
|
/** label宽度,Form内部所有FormItem label都生效 */
|
|
@@ -4904,44 +4932,44 @@ export interface ISearchMenuProps {
|
|
|
4904
4932
|
key?: string;
|
|
4905
4933
|
};
|
|
4906
4934
|
/** 自定义渲染条目 */
|
|
4907
|
-
renderItem?: (nodeData: TPlainObject) => ReactElement;
|
|
4935
|
+
renderItem?: (nodeData: TPlainObject) => React$1.ReactElement;
|
|
4908
4936
|
/** 搜索框参数 */
|
|
4909
4937
|
inputProps?: InputSearchWrapperProps;
|
|
4910
4938
|
/** 搜索位置额外元素 */
|
|
4911
|
-
searchExtraElement?: ReactElement;
|
|
4939
|
+
searchExtraElement?: React$1.ReactElement;
|
|
4912
4940
|
placeholder?: string;
|
|
4913
4941
|
className?: string;
|
|
4914
|
-
wrapStyle?: CSSProperties;
|
|
4915
|
-
style?: CSSProperties;
|
|
4916
|
-
searchStyle?: CSSProperties;
|
|
4942
|
+
wrapStyle?: React$1.CSSProperties;
|
|
4943
|
+
style?: React$1.CSSProperties;
|
|
4944
|
+
searchStyle?: React$1.CSSProperties;
|
|
4917
4945
|
/** 是否显示搜索区域 */
|
|
4918
4946
|
showSearch?: boolean;
|
|
4919
4947
|
}
|
|
4920
4948
|
export interface IListViewItem {
|
|
4921
|
-
label: ReactNode;
|
|
4949
|
+
label: React$1.ReactNode;
|
|
4922
4950
|
key: string;
|
|
4923
4951
|
}
|
|
4924
4952
|
export interface IListViewProps {
|
|
4925
4953
|
dataList: IListViewItem[];
|
|
4926
4954
|
value?: string;
|
|
4927
4955
|
onChange?: (key: string, item: IListViewItem) => void;
|
|
4928
|
-
style?: CSSProperties;
|
|
4956
|
+
style?: React$1.CSSProperties;
|
|
4929
4957
|
/** 自定义空数据提示 */
|
|
4930
|
-
emptyView?: ReactElement;
|
|
4958
|
+
emptyView?: React$1.ReactElement;
|
|
4931
4959
|
}
|
|
4932
4960
|
/**
|
|
4933
4961
|
* 列表搜索
|
|
4934
4962
|
* @param props
|
|
4935
4963
|
* @returns
|
|
4936
4964
|
*/
|
|
4937
|
-
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;
|
|
4938
4966
|
/**
|
|
4939
4967
|
* 选择器包装组件
|
|
4940
4968
|
* ```
|
|
4941
4969
|
* 1. 不支持搜索调用服务模式,可使用组件 SelectorWrapperSearch
|
|
4942
4970
|
* ```
|
|
4943
4971
|
*/
|
|
4944
|
-
export declare const SelectorWrapper: (props: SelectorWrapperProps) => import("react").JSX.Element;
|
|
4972
|
+
export declare const SelectorWrapper: (props: SelectorWrapperProps) => import("react").React$1.JSX.Element;
|
|
4945
4973
|
export type SelectorWrapperSearchServiceConfig = {
|
|
4946
4974
|
params?: TPlainObject;
|
|
4947
4975
|
onRequest: (params?: TAny) => TAny;
|
|
@@ -4980,7 +5008,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
4980
5008
|
onSelectorRequestError?: (error: Error) => void;
|
|
4981
5009
|
/** 交互文案配置 */
|
|
4982
5010
|
requestMessageConfig?: TRequestStatusProps["messageConfig"];
|
|
4983
|
-
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | ReactElement;
|
|
5011
|
+
onLabelRenderAdapter?: (dataItem: TPlainObject) => string | React$1.ReactElement;
|
|
4984
5012
|
customKeyword?: string;
|
|
4985
5013
|
};
|
|
4986
5014
|
/**
|
|
@@ -4993,7 +5021,7 @@ export type SelectorWrapperSearchProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
4993
5021
|
* 3. 不会对value、onChange做任何处理
|
|
4994
5022
|
* ```
|
|
4995
5023
|
*/
|
|
4996
|
-
export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => import("react").JSX.Element;
|
|
5024
|
+
export declare const SelectorWrapperSearch: (props: SelectorWrapperSearchProps) => import("react").React$1.JSX.Element;
|
|
4997
5025
|
export type SelectorWrapperSimpleServiceConfig = {
|
|
4998
5026
|
params?: TPlainObject;
|
|
4999
5027
|
onRequest: (params?: TAny) => TAny;
|
|
@@ -5043,12 +5071,12 @@ export type SelectorWrapperSimpleProps = Omit<SelectProps, "onSearch" | "notFoun
|
|
|
5043
5071
|
* 3. 不会对value、onChange做任何处理
|
|
5044
5072
|
* ```
|
|
5045
5073
|
*/
|
|
5046
|
-
export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => import("react").JSX.Element;
|
|
5074
|
+
export declare const SelectorWrapperSimple: (props: SelectorWrapperSimpleProps) => import("react").React$1.JSX.Element;
|
|
5047
5075
|
export type SimpleLayoutProps = {
|
|
5048
5076
|
className?: string;
|
|
5049
|
-
style?: CSSProperties;
|
|
5050
|
-
title?: string | ReactElement;
|
|
5051
|
-
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[];
|
|
5052
5080
|
/**
|
|
5053
5081
|
* @deprecated 已过期,请使用form className 属性 preDefinedClassName.form.xxx
|
|
5054
5082
|
*/
|
|
@@ -5062,14 +5090,14 @@ export type SimpleLayoutProps = {
|
|
|
5062
5090
|
*/
|
|
5063
5091
|
layoutType?: "layer" | "tight";
|
|
5064
5092
|
titleLeftLine?: boolean;
|
|
5065
|
-
titleStyle?: CSSProperties;
|
|
5066
|
-
contentStyle?: CSSProperties;
|
|
5093
|
+
titleStyle?: React$1.CSSProperties;
|
|
5094
|
+
contentStyle?: React$1.CSSProperties;
|
|
5067
5095
|
/** 优先级大于 style padding */
|
|
5068
|
-
padding?: CSSProperties["padding"];
|
|
5096
|
+
padding?: React$1.CSSProperties["padding"];
|
|
5069
5097
|
/** 优先级大于 style width */
|
|
5070
|
-
width?: CSSProperties["width"];
|
|
5071
|
-
children?: ReactNode | ReactNode[];
|
|
5072
|
-
titleExtra?: string | ReactElement;
|
|
5098
|
+
width?: React$1.CSSProperties["width"];
|
|
5099
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
5100
|
+
titleExtra?: string | React$1.ReactElement;
|
|
5073
5101
|
hidden?: boolean;
|
|
5074
5102
|
titleFixed?: boolean;
|
|
5075
5103
|
/**
|
|
@@ -5090,7 +5118,7 @@ export type SimpleLayoutProps = {
|
|
|
5090
5118
|
* ```
|
|
5091
5119
|
*/
|
|
5092
5120
|
export declare const SimpleLayout: {
|
|
5093
|
-
(props: SimpleLayoutProps): import("react").JSX.Element;
|
|
5121
|
+
(props: SimpleLayoutProps): import("react").React$1.JSX.Element;
|
|
5094
5122
|
defaultProps: {
|
|
5095
5123
|
titleLeftLine: boolean;
|
|
5096
5124
|
layoutType: string;
|
|
@@ -5108,9 +5136,9 @@ export interface SmsCountDownProps {
|
|
|
5108
5136
|
onTick?: (time: number) => void;
|
|
5109
5137
|
className?: string;
|
|
5110
5138
|
}
|
|
5111
|
-
export declare const SmsCountDown: FC<SmsCountDownProps>;
|
|
5139
|
+
export declare const SmsCountDown: React$1.FC<SmsCountDownProps>;
|
|
5112
5140
|
export type SplitWrapperProps = SplitProps & {
|
|
5113
|
-
panelStyle?: CSSProperties;
|
|
5141
|
+
panelStyle?: React$1.CSSProperties;
|
|
5114
5142
|
};
|
|
5115
5143
|
/**
|
|
5116
5144
|
* 分屏可拖动组件
|
|
@@ -5125,7 +5153,7 @@ export type SplitWrapperProps = SplitProps & {
|
|
|
5125
5153
|
3. 通过 direction 设置方向
|
|
5126
5154
|
* ```
|
|
5127
5155
|
*/
|
|
5128
|
-
export declare const SplitWrapper: (props: SplitWrapperProps) => import("react").JSX.Element;
|
|
5156
|
+
export declare const SplitWrapper: (props: SplitWrapperProps) => import("react").React$1.JSX.Element;
|
|
5129
5157
|
export declare const styles: () => void;
|
|
5130
5158
|
export type SvgHttpViewProps = {
|
|
5131
5159
|
/**
|
|
@@ -5147,7 +5175,7 @@ export type SvgHttpViewProps = {
|
|
|
5147
5175
|
color?: string;
|
|
5148
5176
|
onClick?: (e: any) => void;
|
|
5149
5177
|
className?: string;
|
|
5150
|
-
style?: CSSProperties;
|
|
5178
|
+
style?: React$1.CSSProperties;
|
|
5151
5179
|
};
|
|
5152
5180
|
/**
|
|
5153
5181
|
* http svg地址解析,可自定义颜色
|
|
@@ -5157,7 +5185,7 @@ export type SvgHttpViewProps = {
|
|
|
5157
5185
|
* 3.
|
|
5158
5186
|
* ```
|
|
5159
5187
|
*/
|
|
5160
|
-
export declare const SvgHttpView: (props: SvgHttpViewProps) => import("react").JSX.Element;
|
|
5188
|
+
export declare const SvgHttpView: (props: SvgHttpViewProps) => import("react").React$1.JSX.Element;
|
|
5161
5189
|
export type SwitchConfirmWrapperValue = string | number | boolean;
|
|
5162
5190
|
export type SwitchConfirmWrapperProps = Omit<SwitchProps, "defaultChecked" | "onChange"> & {
|
|
5163
5191
|
value?: SwitchConfirmWrapperValue;
|
|
@@ -5231,7 +5259,7 @@ export type SwitchConfirmWrapperProps = Omit<SwitchProps, "defaultChecked" | "on
|
|
|
5231
5259
|
* </Form.Item>
|
|
5232
5260
|
* ```
|
|
5233
5261
|
*/
|
|
5234
|
-
export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => import("react").JSX.Element;
|
|
5262
|
+
export declare const SwitchConfirmWrapper: (props: SwitchConfirmWrapperProps) => import("react").React$1.JSX.Element;
|
|
5235
5263
|
export type TagListSelectValue = string | number | boolean;
|
|
5236
5264
|
export type TagListSelectDataItem = {
|
|
5237
5265
|
label: string;
|
|
@@ -5273,10 +5301,10 @@ export type TagListSelectProps = {
|
|
|
5273
5301
|
* <Tag color={'red'}>启用</Tag>
|
|
5274
5302
|
* ```
|
|
5275
5303
|
*/
|
|
5276
|
-
export declare const TagListSelect: FC<TagListSelectProps>;
|
|
5304
|
+
export declare const TagListSelect: React$1.FC<TagListSelectProps>;
|
|
5277
5305
|
export type TableColumnIconRenderProps = {
|
|
5278
5306
|
/** 额外内容,一般为Icon */
|
|
5279
|
-
extra: ReactElement;
|
|
5307
|
+
extra: React$1.ReactElement;
|
|
5280
5308
|
extraPosition?: "before" | "after";
|
|
5281
5309
|
onClick?: (e: any) => void;
|
|
5282
5310
|
/** 是否显示原单元格数据,默认值:true */
|
|
@@ -5357,7 +5385,7 @@ export declare const tableCellRender: {
|
|
|
5357
5385
|
* }))
|
|
5358
5386
|
* ```
|
|
5359
5387
|
*/
|
|
5360
|
-
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;
|
|
5361
5389
|
/**
|
|
5362
5390
|
* 实现字段超出隐藏,默认长度10个字符
|
|
5363
5391
|
* @deprecated 已过期,请使用 TextOverflow 组件实现
|
|
@@ -5366,7 +5394,7 @@ export declare const tableCellRender: {
|
|
|
5366
5394
|
* 2. 会讲字符转出字节进行计算显示
|
|
5367
5395
|
* ```
|
|
5368
5396
|
*/
|
|
5369
|
-
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;
|
|
5370
5398
|
/**
|
|
5371
5399
|
* Tag格式数据渲染,可结合枚举定义数据
|
|
5372
5400
|
* ```
|
|
@@ -5392,7 +5420,7 @@ export declare const tableCellRender: {
|
|
|
5392
5420
|
maxShowCount?: number;
|
|
5393
5421
|
/** 触发maxShowCount后,被折叠的内容是否显示完整tag,默认值:false */
|
|
5394
5422
|
foldShowAllTag?: boolean;
|
|
5395
|
-
}) => (value?: TAny) => import("react").JSX.Element | null;
|
|
5423
|
+
}) => (value?: TAny) => import("react").React$1.JSX.Element | null;
|
|
5396
5424
|
/**
|
|
5397
5425
|
* 单元格对象数据处理,支持多级处理
|
|
5398
5426
|
* ```
|
|
@@ -5423,7 +5451,7 @@ export declare const tableCellRender: {
|
|
|
5423
5451
|
defaultValue?: string | number;
|
|
5424
5452
|
/** 隐藏背景颜色, 默认值:true */
|
|
5425
5453
|
hideBgColor?: boolean;
|
|
5426
|
-
}) => (value?: string | number) => string | number | import("react").JSX.Element | undefined;
|
|
5454
|
+
}) => (value?: string | number) => string | number | import("react").React$1.JSX.Element | undefined;
|
|
5427
5455
|
/**
|
|
5428
5456
|
* 分金额展示,入参分,显示万元(默认添加千分位)
|
|
5429
5457
|
* ```
|
|
@@ -5450,7 +5478,7 @@ export declare const tableCellRender: {
|
|
|
5450
5478
|
showBgColor?: boolean;
|
|
5451
5479
|
/** 移除小数点后末尾零 */
|
|
5452
5480
|
removeTailZero?: boolean;
|
|
5453
|
-
}) => (value?: string | number) => string | number | import("react").JSX.Element | undefined;
|
|
5481
|
+
}) => (value?: string | number) => string | number | import("react").React$1.JSX.Element | undefined;
|
|
5454
5482
|
/**
|
|
5455
5483
|
* 单元格徽标展示数据
|
|
5456
5484
|
* ```
|
|
@@ -5486,10 +5514,10 @@ export declare const tableCellRender: {
|
|
|
5486
5514
|
* }
|
|
5487
5515
|
* ```
|
|
5488
5516
|
*/
|
|
5489
|
-
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;
|
|
5490
5518
|
};
|
|
5491
5519
|
export type TableScrollProps = {
|
|
5492
|
-
children: ReactNode;
|
|
5520
|
+
children: React$1.ReactNode;
|
|
5493
5521
|
/**
|
|
5494
5522
|
* y轴的滚动条
|
|
5495
5523
|
*/
|
|
@@ -5505,33 +5533,33 @@ export type TableScrollProps = {
|
|
|
5505
5533
|
* ```
|
|
5506
5534
|
*/
|
|
5507
5535
|
export declare const TableScrollbar: ({ children, target, ...props }: TableScrollProps) => import("react").FunctionComponentElement<{
|
|
5508
|
-
summary: (...args: any[]) => import("react").JSX.Element;
|
|
5536
|
+
summary: (...args: any[]) => import("react").React$1.JSX.Element;
|
|
5509
5537
|
}>;
|
|
5510
5538
|
export type TableTitleTooltipProps = {
|
|
5511
|
-
title: string | ReactElement;
|
|
5539
|
+
title: string | React$1.ReactElement;
|
|
5512
5540
|
tooltip: string | {
|
|
5513
|
-
icon?: ReactElement;
|
|
5541
|
+
icon?: React$1.ReactElement;
|
|
5514
5542
|
content: string;
|
|
5515
5543
|
hoverArea?: "icon" | "all";
|
|
5516
5544
|
};
|
|
5517
5545
|
gap?: number;
|
|
5518
5546
|
className?: string;
|
|
5519
|
-
style?: CSSProperties;
|
|
5547
|
+
style?: React$1.CSSProperties;
|
|
5520
5548
|
};
|
|
5521
5549
|
/**
|
|
5522
5550
|
* title + tooltip
|
|
5523
5551
|
* @deprecated 已过期,请使用 TipsWrapper 组件
|
|
5524
5552
|
*/
|
|
5525
|
-
export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => import("react").JSX.Element;
|
|
5553
|
+
export declare const TableTitleTooltip: (props: TableTitleTooltipProps) => import("react").React$1.JSX.Element;
|
|
5526
5554
|
export type TabsType = GetProps<typeof Tabs>;
|
|
5527
5555
|
export type TabsStickyProps = {
|
|
5528
5556
|
tabsProps: Omit<TabsType, "tabPosition">;
|
|
5529
5557
|
/** tabs头部布局 */
|
|
5530
|
-
headerRender?: ReactElement;
|
|
5558
|
+
headerRender?: React$1.ReactElement;
|
|
5531
5559
|
/** 点击tabItem后,tab跳到顶部吸顶效果;默认值true */
|
|
5532
5560
|
clickTabToTop?: boolean;
|
|
5533
5561
|
/** 设置tabItem 内容包裹元素的样式 */
|
|
5534
|
-
tabItemContentWrapperStyle?: (key: string) => CSSProperties;
|
|
5562
|
+
tabItemContentWrapperStyle?: (key: string) => React$1.CSSProperties;
|
|
5535
5563
|
};
|
|
5536
5564
|
/**
|
|
5537
5565
|
* Tabs吸顶组件
|
|
@@ -5539,7 +5567,7 @@ export type TabsStickyProps = {
|
|
|
5539
5567
|
* 1. 组件根节点设置了 height: 100%、overflow: auto;所以外部包裹元素必须要有高度
|
|
5540
5568
|
* ```
|
|
5541
5569
|
*/
|
|
5542
|
-
export declare const TabsSticky: (props: TabsStickyProps) => import("react").JSX.Element;
|
|
5570
|
+
export declare const TabsSticky: (props: TabsStickyProps) => import("react").React$1.JSX.Element;
|
|
5543
5571
|
export type TabsWrapperProps = TabsProps & {
|
|
5544
5572
|
/**
|
|
5545
5573
|
* Tabs Header 提供 Sticky 效果,默认值:true
|
|
@@ -5567,7 +5595,7 @@ export type TabsWrapperProps = TabsProps & {
|
|
|
5567
5595
|
* 缓存模式:会话缓存,在浏览器关闭后,会清除
|
|
5568
5596
|
* ```
|
|
5569
5597
|
*/
|
|
5570
|
-
export declare const TabsWrapper: (props: TabsWrapperProps) => import("react").JSX.Element;
|
|
5598
|
+
export declare const TabsWrapper: (props: TabsWrapperProps) => import("react").React$1.JSX.Element;
|
|
5571
5599
|
export type TagGroupDataItem = {
|
|
5572
5600
|
label: string;
|
|
5573
5601
|
value: string | number;
|
|
@@ -5584,7 +5612,7 @@ export type TagGroupProps = {
|
|
|
5584
5612
|
/**
|
|
5585
5613
|
* Tag 列表显示
|
|
5586
5614
|
*/
|
|
5587
|
-
export declare const TagGroup: FC<TagGroupProps>;
|
|
5615
|
+
export declare const TagGroup: React$1.FC<TagGroupProps>;
|
|
5588
5616
|
export type TagListRenderValue = string | number | boolean;
|
|
5589
5617
|
export type TagListRenderDataItem = {
|
|
5590
5618
|
label: string;
|
|
@@ -5629,19 +5657,19 @@ export type TagListRenderProps = {
|
|
|
5629
5657
|
* <Tag color={'red'}>启用</Tag>
|
|
5630
5658
|
* ```
|
|
5631
5659
|
*/
|
|
5632
|
-
export declare const TagListRender: FC<TagListRenderProps>;
|
|
5660
|
+
export declare const TagListRender: React$1.FC<TagListRenderProps>;
|
|
5633
5661
|
export type TagWrapperProps = Omit<TagProps, "onClick"> & {
|
|
5634
|
-
onClick?: (e: React.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
5662
|
+
onClick?: (e: React$1.MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
5635
5663
|
loading?: boolean;
|
|
5636
5664
|
debounceDuration?: number;
|
|
5637
5665
|
};
|
|
5638
5666
|
/**
|
|
5639
5667
|
* 为 Tag 添加 loading 效果
|
|
5640
5668
|
*/
|
|
5641
|
-
export declare const TagWrapper: (props: TagWrapperProps) => import("react").JSX.Element;
|
|
5669
|
+
export declare const TagWrapper: (props: TagWrapperProps) => import("react").React$1.JSX.Element;
|
|
5642
5670
|
export type TextOverflowProps = {
|
|
5643
5671
|
/** text 为ReactElement类型时,maxLength配置无效 */
|
|
5644
|
-
text: string | ReactElement;
|
|
5672
|
+
text: string | React$1.ReactElement;
|
|
5645
5673
|
/** 最大显示宽度 */
|
|
5646
5674
|
maxWidth?: number;
|
|
5647
5675
|
/** 最大显示字数 */
|
|
@@ -5676,19 +5704,19 @@ export type TextOverflowProps = {
|
|
|
5676
5704
|
4. 与 Table columns render结合使用,如果Table配置了 scroll={{ x: 'max-content' }}后,不能与TextOverflow maxWidth结合使用
|
|
5677
5705
|
* ```
|
|
5678
5706
|
*/
|
|
5679
|
-
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>;
|
|
5680
5708
|
export type TextSymbolWrapperProps = {
|
|
5681
5709
|
className?: string;
|
|
5682
|
-
style?: CSSProperties;
|
|
5710
|
+
style?: React$1.CSSProperties;
|
|
5683
5711
|
/** 内置图标类型 */
|
|
5684
5712
|
symbolType?: "required";
|
|
5685
5713
|
/** 自定义标记符号,优先级大于 symbolType */
|
|
5686
|
-
symbol?: ReactNode;
|
|
5714
|
+
symbol?: React$1.ReactNode;
|
|
5687
5715
|
/** 标记位置,默认:brefore */
|
|
5688
5716
|
position?: "before" | "after";
|
|
5689
5717
|
/** 显示文本 */
|
|
5690
|
-
text?: string | ReactElement;
|
|
5691
|
-
symbolStyle?: CSSProperties;
|
|
5718
|
+
text?: string | React$1.ReactElement;
|
|
5719
|
+
symbolStyle?: React$1.CSSProperties;
|
|
5692
5720
|
onSymbolClick?: (event: any) => void;
|
|
5693
5721
|
/** 只隐藏符号,不隐藏文案 */
|
|
5694
5722
|
hiddenSymbol?: boolean;
|
|
@@ -5701,7 +5729,7 @@ export type TextSymbolWrapperProps = {
|
|
|
5701
5729
|
* 例如: <TextSymbolWrapper text={'用户名'} symbolType="required" />
|
|
5702
5730
|
* ```
|
|
5703
5731
|
*/
|
|
5704
|
-
export declare const TextSymbolWrapper: (props: TextSymbolWrapperProps) => import("react").JSX.Element;
|
|
5732
|
+
export declare const TextSymbolWrapper: (props: TextSymbolWrapperProps) => import("react").React$1.JSX.Element;
|
|
5705
5733
|
export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange" | "format"> & {
|
|
5706
5734
|
value?: string;
|
|
5707
5735
|
onChange?: (value?: string) => void;
|
|
@@ -5731,7 +5759,7 @@ export type TimePickerWrapperProps = Omit<TimePickerProps, "value" | "onChange"
|
|
|
5731
5759
|
* 5. 设置disabledTime后,disabledTimeConfig配置将失效
|
|
5732
5760
|
* ```
|
|
5733
5761
|
*/
|
|
5734
|
-
export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => import("react").JSX.Element;
|
|
5762
|
+
export declare const TimePickerWrapper: (props: TimePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
5735
5763
|
export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "onChange" | "format"> & {
|
|
5736
5764
|
value?: [
|
|
5737
5765
|
string,
|
|
@@ -5766,7 +5794,7 @@ export type TimeRangePickerWrapperProps = Omit<TimeRangePickerProps, "value" | "
|
|
|
5766
5794
|
* 4. 设置disabledTime后,disabledTimeConfig配置将失效
|
|
5767
5795
|
* ```
|
|
5768
5796
|
*/
|
|
5769
|
-
export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => import("react").JSX.Element;
|
|
5797
|
+
export declare const TimeRangePickerWrapper: (props: TimeRangePickerWrapperProps) => import("react").React$1.JSX.Element;
|
|
5770
5798
|
export type TimeRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "name"> & {
|
|
5771
5799
|
/**
|
|
5772
5800
|
* 开始的时间name
|
|
@@ -5817,23 +5845,23 @@ export type TimeRangePickerWrapperFormItemProps = Omit<FormItemWrapperProps, "na
|
|
|
5817
5845
|
* </FormListWrapper>
|
|
5818
5846
|
* ```
|
|
5819
5847
|
*/
|
|
5820
|
-
export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => import("react").JSX.Element;
|
|
5848
|
+
export declare const TimeRangePickerWrapperFormItem: (props: TimeRangePickerWrapperFormItemProps) => import("react").React$1.JSX.Element;
|
|
5821
5849
|
export type TipsTitleProps = {
|
|
5822
5850
|
className?: string;
|
|
5823
|
-
style?: CSSProperties;
|
|
5824
|
-
title: string | ReactElement;
|
|
5825
|
-
titleStyle?: CSSProperties;
|
|
5826
|
-
contentStyle?: CSSProperties;
|
|
5827
|
-
children: ReactNode;
|
|
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;
|
|
5828
5856
|
size?: "default" | "small";
|
|
5829
5857
|
/** 自定义 help icon */
|
|
5830
|
-
helpIcon?: ReactElement;
|
|
5858
|
+
helpIcon?: React$1.ReactElement;
|
|
5831
5859
|
/** 配置 helpIcon 后,此参数失效 */
|
|
5832
5860
|
onHelp?: () => void;
|
|
5833
5861
|
hidden?: boolean;
|
|
5834
5862
|
borderColor?: string;
|
|
5835
5863
|
};
|
|
5836
|
-
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;
|
|
5837
5865
|
export type TreeWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
|
|
5838
5866
|
export type TreeServiceConfig = {
|
|
5839
5867
|
params?: TPlainObject;
|
|
@@ -5876,7 +5904,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
5876
5904
|
/**
|
|
5877
5905
|
* useEffect依赖项数组,用于重新发起获取接口数据
|
|
5878
5906
|
*/
|
|
5879
|
-
effectDependencyList?: DependencyList;
|
|
5907
|
+
effectDependencyList?: React$1.DependencyList;
|
|
5880
5908
|
/**
|
|
5881
5909
|
* 请求服务需求的数据,当设置`selectorTreeList`后无效果
|
|
5882
5910
|
*/
|
|
@@ -5971,12 +5999,12 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
5971
5999
|
showSearch?: boolean;
|
|
5972
6000
|
onSearchValueChange?: (searchValue?: string) => void;
|
|
5973
6001
|
searchPlaceholder?: string;
|
|
5974
|
-
searchStyle?: CSSProperties;
|
|
6002
|
+
searchStyle?: React$1.CSSProperties;
|
|
5975
6003
|
icon?: (data: {
|
|
5976
6004
|
isParent: boolean;
|
|
5977
6005
|
isLeaf: boolean;
|
|
5978
6006
|
[key: string]: TAny;
|
|
5979
|
-
}) => ReactElement;
|
|
6007
|
+
}) => React$1.ReactElement;
|
|
5980
6008
|
/**
|
|
5981
6009
|
* 状态文案配置
|
|
5982
6010
|
*/
|
|
@@ -6016,7 +6044,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
6016
6044
|
/** treeItem数据适配器 */
|
|
6017
6045
|
treeItemDataAdapter?: (dataItem: TPlainObject) => TPlainObject;
|
|
6018
6046
|
/** 搜索位置额外元素 */
|
|
6019
|
-
searchExtraElement?: ReactElement;
|
|
6047
|
+
searchExtraElement?: React$1.ReactElement;
|
|
6020
6048
|
/** 有唯一跟节点时,初始化是否展开,默认值:false */
|
|
6021
6049
|
initRootExpand?: boolean;
|
|
6022
6050
|
/** 搜素过滤方式,高亮 | 过滤;默认:filter */
|
|
@@ -6051,7 +6079,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
6051
6079
|
* b. 设置 titleRender 后,menuLayout失效
|
|
6052
6080
|
* ```
|
|
6053
6081
|
*/
|
|
6054
|
-
labelRender?: (nodeData: TPlainObject) => ReactElement;
|
|
6082
|
+
labelRender?: (nodeData: TPlainObject) => React$1.ReactElement;
|
|
6055
6083
|
/**
|
|
6056
6084
|
* 自定义搜索规则
|
|
6057
6085
|
*/
|
|
@@ -6118,7 +6146,7 @@ export type TreeWrapperRefApi = {
|
|
|
6118
6146
|
* 6. 内置 onDrop 事件已处理数组排序,通过 onDropNodeHandle 事件可获取操作节点排序数据;自定义onDrop后,内置onDrop失效
|
|
6119
6147
|
* ```
|
|
6120
6148
|
*/
|
|
6121
|
-
export declare const TreeWrapper: ForwardRefExoticComponent<TreeWrapperProps & RefAttributes<TreeWrapperRefApi>> & {
|
|
6149
|
+
export declare const TreeWrapper: React$1.ForwardRefExoticComponent<TreeWrapperProps & React$1.RefAttributes<TreeWrapperRefApi>> & {
|
|
6122
6150
|
getTreeDataList: (modelKey: string) => TPlainObject[];
|
|
6123
6151
|
};
|
|
6124
6152
|
export type TreeModelSelectItem = {
|
|
@@ -6163,7 +6191,7 @@ export type TreeModalContentProps = {
|
|
|
6163
6191
|
treeProps?: Pick<TreeWrapperProps, "showSearch" | "searchResultType" | "searchPlaceholder" | "searchValue" | "loadDataFlag" | "loadDataServiceConfig" | "icon" | "disabledCanUse" | "treeItemDataAdapter" | "searchExtraElement" | "initRootExpand" | "searchResultType" | "labelRender" | "customSearchRule" | "checkableType" | "checkStrictly" | "defaultExpandAll" | "clickParentNodeToggleExpand" | "disableNodeSelect">;
|
|
6164
6192
|
};
|
|
6165
6193
|
export type TreeModalProps = TreeModalContentProps & {
|
|
6166
|
-
children: ReactElement & {
|
|
6194
|
+
children: React$1.ReactElement & {
|
|
6167
6195
|
onClick?: (e: any) => void | Promise<void>;
|
|
6168
6196
|
};
|
|
6169
6197
|
modalClassName?: string;
|
|
@@ -6171,8 +6199,8 @@ export type TreeModalProps = TreeModalContentProps & {
|
|
|
6171
6199
|
modalBodyHeight?: number;
|
|
6172
6200
|
disabled?: boolean;
|
|
6173
6201
|
};
|
|
6174
|
-
export declare const TreeModal: ((props: TreeModalProps) => import("react").JSX.Element) & {
|
|
6175
|
-
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;
|
|
6176
6204
|
};
|
|
6177
6205
|
export type TreeModalSelectorProps = Omit<TreeModalProps, "children" | "forceRender" | "onChange"> & {
|
|
6178
6206
|
placeholder?: string;
|
|
@@ -6247,7 +6275,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
6247
6275
|
/**
|
|
6248
6276
|
* useEffect依赖项数组,用于重新发起获取接口数据
|
|
6249
6277
|
*/
|
|
6250
|
-
effectDependencyList?: DependencyList;
|
|
6278
|
+
effectDependencyList?: React$1.DependencyList;
|
|
6251
6279
|
/**
|
|
6252
6280
|
* 请求服务需求的数据,当设置`treeSelectorList`后无效果
|
|
6253
6281
|
*/
|
|
@@ -6346,7 +6374,7 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
6346
6374
|
* 2. 父节点默认不返回,需要返回请设置showCheckedStrategy
|
|
6347
6375
|
* ```
|
|
6348
6376
|
*/
|
|
6349
|
-
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react").JSX.Element;
|
|
6377
|
+
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react").React$1.JSX.Element;
|
|
6350
6378
|
export type TXMindTreeItem = {
|
|
6351
6379
|
data: {
|
|
6352
6380
|
/** 节点文本 */
|
|
@@ -6362,7 +6390,7 @@ export type TXMindTreeItem = {
|
|
|
6362
6390
|
export interface IXMindPreviewProps {
|
|
6363
6391
|
data?: TXMindTreeItem;
|
|
6364
6392
|
className?: string;
|
|
6365
|
-
style?: CSSProperties;
|
|
6393
|
+
style?: React$1.CSSProperties;
|
|
6366
6394
|
/**
|
|
6367
6395
|
* 自定义节点渲染内容:
|
|
6368
6396
|
* 默认情况 xmind 会自动计算节点的宽高,
|
|
@@ -6375,9 +6403,9 @@ export interface IXMindPreviewProps {
|
|
|
6375
6403
|
renderNode?: (node: TXMindTreeItem) => {
|
|
6376
6404
|
width?: number;
|
|
6377
6405
|
height?: number;
|
|
6378
|
-
reactNode: ReactNode;
|
|
6406
|
+
reactNode: React$1.ReactNode;
|
|
6379
6407
|
} | void;
|
|
6380
6408
|
}
|
|
6381
|
-
export declare const XMindPreview: FC<IXMindPreviewProps>;
|
|
6409
|
+
export declare const XMindPreview: React$1.FC<IXMindPreviewProps>;
|
|
6382
6410
|
|
|
6383
6411
|
export {};
|