@flatbiz/antd 4.4.11 → 4.4.13
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/esm/ace-editor-groovy/index.js +1 -1
- package/esm/ace-editor-groovy/index.js.map +1 -1
- package/esm/ace-editor-java/index.js +1 -1
- package/esm/ace-editor-java/index.js.map +1 -1
- package/esm/ace-editor-json/index.js +1 -1
- package/esm/ace-editor-json/index.js.map +1 -1
- package/esm/ace-editor-mysql/index.js +1 -1
- package/esm/ace-editor-mysql/index.js.map +1 -1
- package/esm/ace-editor-xml/index.js +1 -1
- package/esm/ace-editor-xml/index.js.map +1 -1
- package/esm/card-layout/index.css +1 -1
- package/esm/date-picker-wrapper/index.js +1 -1
- package/esm/date-picker-wrapper/index.js.map +1 -1
- package/esm/date-range-picker-wrapper/index.js +1 -1
- package/esm/date-range-picker-wrapper/index.js.map +1 -1
- package/esm/easy-form/index.css +1 -1
- package/esm/easy-form/index.js +1 -1
- package/esm/easy-form/index.js.map +1 -1
- package/esm/form-item-group/index.js +1 -1
- package/esm/form-item-group/index.js.map +1 -1
- package/esm/form-item-wrapper/index.js.map +1 -1
- package/esm/form-wrapper/index.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/mention-editor/index.js +2 -1
- package/esm/mention-editor/index.js.map +1 -1
- package/esm/mentions-wrapper/index.js +2 -1
- package/esm/mentions-wrapper/index.js.map +1 -1
- package/esm/pre-defined-class-name/index.css +1 -1
- package/esm/tree-wrapper/index.js.map +1 -1
- package/esm/upload-wrapper/index.js +1 -1
- package/esm/upload-wrapper/index.js.map +1 -1
- package/index.d.ts +46 -27
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { IAceEditorProps } from 'react-ace';
|
|
|
21
21
|
import { SplitProps } from 'react-split';
|
|
22
22
|
import { Editor as TinyMCEEditor } from 'tinymce';
|
|
23
23
|
|
|
24
|
-
export type AceEditorGroovyProps = Omit<IAceEditorProps, "
|
|
24
|
+
export type AceEditorGroovyProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
25
25
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
26
26
|
height?: string;
|
|
27
27
|
value?: string | TPlainObject | TPlainObject[];
|
|
@@ -53,7 +53,7 @@ export type AceEditorGroovyProps = Omit<IAceEditorProps, "onLoad" | "mode" | "va
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
export declare const AceEditorGroovy: (props: AceEditorGroovyProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export type AceEditorJavaProps = Omit<IAceEditorProps, "
|
|
56
|
+
export type AceEditorJavaProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
57
57
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
58
58
|
height?: string;
|
|
59
59
|
value?: string | TPlainObject | TPlainObject[];
|
|
@@ -85,7 +85,7 @@ export type AceEditorJavaProps = Omit<IAceEditorProps, "onLoad" | "mode" | "valu
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
export declare const AceEditorJava: (props: AceEditorJavaProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
|
-
export type AceEditorJsonProps = Omit<IAceEditorProps, "
|
|
88
|
+
export type AceEditorJsonProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
89
89
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
90
90
|
height?: string;
|
|
91
91
|
value?: string | TPlainObject | TPlainObject[];
|
|
@@ -122,7 +122,7 @@ export type AceEditorJsonProps = Omit<IAceEditorProps, "onLoad" | "mode" | "valu
|
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
124
|
export declare const AceEditorJson: (props: AceEditorJsonProps) => import("react/jsx-runtime").JSX.Element;
|
|
125
|
-
export type AceEditorMysqlProps = Omit<IAceEditorProps, "
|
|
125
|
+
export type AceEditorMysqlProps = Omit<IAceEditorProps, "theme" | "mode" | "value" | "onChange"> & {
|
|
126
126
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
127
127
|
height?: string;
|
|
128
128
|
value?: string;
|
|
@@ -147,7 +147,7 @@ export type AceEditorMysqlProps = Omit<IAceEditorProps, "onLoad" | "theme" | "mo
|
|
|
147
147
|
footerStyle?: CSSProperties;
|
|
148
148
|
};
|
|
149
149
|
export declare const AceEditorMysql: (props: AceEditorMysqlProps) => import("react/jsx-runtime").JSX.Element;
|
|
150
|
-
export type AceEditorXmlProps = Omit<IAceEditorProps, "
|
|
150
|
+
export type AceEditorXmlProps = Omit<IAceEditorProps, "mode" | "value" | "onChange" | "theme"> & {
|
|
151
151
|
/** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
|
|
152
152
|
height?: string;
|
|
153
153
|
value?: string | TPlainObject | TPlainObject[];
|
|
@@ -861,6 +861,7 @@ export declare const DataRender: (props: DataRenderProps) => import("react/jsx-r
|
|
|
861
861
|
export type TDayjsDateType = "YYYY-MM-DD HH:mm:ss" | "YYYY-MM-DD HH:mm" | "YYYY-MM-DD HH" | "YYYY-MM-DD" | (string & {});
|
|
862
862
|
export type TDayjsTimeType = "HH:mm:ss" | "HH:mm" | "HH" | "mm:ss" | "mm" | "ss" | (string & {});
|
|
863
863
|
export type DatePickerWrapperProps = Omit<PickerDateProps<TAny>, "value" | "onChange" | "format"> & {
|
|
864
|
+
/** 默认格式为 'YYYY-MM-DD' */
|
|
864
865
|
value?: string;
|
|
865
866
|
onChange?: (value?: string) => void;
|
|
866
867
|
disabledDateConfig?: {
|
|
@@ -875,12 +876,16 @@ export type DatePickerWrapperProps = Omit<PickerDateProps<TAny>, "value" | "onCh
|
|
|
875
876
|
};
|
|
876
877
|
/** 可自定义格式 */
|
|
877
878
|
format?: TDayjsDateType;
|
|
879
|
+
/** value 输出适配 */
|
|
880
|
+
outputNormalize?: (value?: any) => any;
|
|
881
|
+
/** value 输入适配 */
|
|
882
|
+
inputNormalize?: (value?: any) => string | undefined;
|
|
878
883
|
};
|
|
879
884
|
/**
|
|
880
885
|
* DatePicker包装组件
|
|
881
886
|
* ```
|
|
882
|
-
* 1. value
|
|
883
|
-
* 2. onChange返回类型 string
|
|
887
|
+
* 1. value 默认格式为 'YYYY-MM-DD',可以通过 inputNormalize 来进行自定义转换
|
|
888
|
+
* 2. onChange返回类型 string,可以通过 outputNormalize 来进行自定义转换
|
|
884
889
|
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型 DayjsDateTypeEnum.YMDHms;其他格式化类型自定义format
|
|
885
890
|
* 4. 设置 disabledDate 后,disabledDateConfig配置将失效
|
|
886
891
|
* 5. 设置 disabledTime 后,内置的disabledTime逻辑将失效
|
|
@@ -912,12 +917,22 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<TAny>, "valu
|
|
|
912
917
|
disabledSecondList?: number[];
|
|
913
918
|
};
|
|
914
919
|
format?: TDayjsDateType;
|
|
920
|
+
/** value 输出适配 */
|
|
921
|
+
outputNormalize?: (value: [
|
|
922
|
+
string,
|
|
923
|
+
string
|
|
924
|
+
]) => any;
|
|
925
|
+
/** value 输入适配 */
|
|
926
|
+
inputNormalize?: (value?: any) => [
|
|
927
|
+
string,
|
|
928
|
+
string
|
|
929
|
+
] | undefined;
|
|
915
930
|
};
|
|
916
931
|
/**
|
|
917
932
|
* DatePicker.RangePicker包装组件
|
|
918
933
|
* ```
|
|
919
|
-
* 1. value类型为 [string, string]
|
|
920
|
-
* 2. onChange返回类型 [string, string]
|
|
934
|
+
* 1. value类型为 [string, string],可以通过 inputNormalize来进行自定义转换
|
|
935
|
+
* 2. onChange返回类型 [string, string],可以通过 outputNormalize来进行自定义转换
|
|
921
936
|
* 3. 默认格式化类型 YYYY-MM-DD; 当showTime===true时,默认格式化类型YYYY-MM-DD HH:mm:ss;其他格式化类型自定义format
|
|
922
937
|
* 4. 可设置disabledDateConfig,来控制日期项的disbaled状态
|
|
923
938
|
* 5. 设置 disabledDate 后,disabledDateConfig配置将失效
|
|
@@ -947,6 +962,7 @@ export interface FormItemWrapperProps extends FormItemProps {
|
|
|
947
962
|
* label宽度
|
|
948
963
|
* ```
|
|
949
964
|
* 1. 如果想控制Form下所有label,可使用FormWrapper组件 替换 Form组件,在FormWrapper上设置属性
|
|
965
|
+
* 2. 可设置`auto`自适应
|
|
950
966
|
* ```
|
|
951
967
|
*/
|
|
952
968
|
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
@@ -956,7 +972,7 @@ export interface FormItemWrapperProps extends FormItemProps {
|
|
|
956
972
|
* 1. 如果想控制Form下所有labelItem,可使用FormWrapper组件 替换 Form组件,在FormWrapper上设置属性
|
|
957
973
|
* ```
|
|
958
974
|
*/
|
|
959
|
-
labelItemVertical?:
|
|
975
|
+
labelItemVertical?: boolean;
|
|
960
976
|
/**
|
|
961
977
|
* label 对齐方式
|
|
962
978
|
* ```
|
|
@@ -1914,10 +1930,16 @@ export declare const dynamicNode: {
|
|
|
1914
1930
|
};
|
|
1915
1931
|
export type FormWrapperProps<Values = any> = FormProps<Values> & {
|
|
1916
1932
|
children: ReactNode;
|
|
1917
|
-
/**
|
|
1933
|
+
/**
|
|
1934
|
+
* label宽度,Form内部所有FormItem label都生效
|
|
1935
|
+
* ```
|
|
1936
|
+
* 1. 可设置数值
|
|
1937
|
+
* 2. 可设置`auto`自适应
|
|
1938
|
+
* ```
|
|
1939
|
+
*/
|
|
1918
1940
|
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
1919
1941
|
/** labelItem 竖直布局 */
|
|
1920
|
-
labelItemVertical?:
|
|
1942
|
+
labelItemVertical?: boolean;
|
|
1921
1943
|
/** label 对齐方式 */
|
|
1922
1944
|
labelAlign?: "left" | "right";
|
|
1923
1945
|
/** formItem之间竖直间距,默认值:24 */
|
|
@@ -1966,20 +1988,21 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1966
1988
|
width?: number | string;
|
|
1967
1989
|
/** 网格间距 */
|
|
1968
1990
|
gridGutter?: BoxRowProps["gutter"];
|
|
1969
|
-
children:
|
|
1991
|
+
children: ReactNode;
|
|
1970
1992
|
};
|
|
1971
1993
|
/**
|
|
1972
1994
|
* 简单Form布局,可自定义网格布局
|
|
1973
1995
|
* ```
|
|
1974
|
-
* 1. demo:https://fex.qa.tcshuke.com/docs/admin/main/form/
|
|
1975
|
-
* 2.
|
|
1976
|
-
* 3.
|
|
1977
|
-
* 4.
|
|
1978
|
-
* 5. 通过
|
|
1979
|
-
* 6. 通过
|
|
1980
|
-
* 7. 通过
|
|
1981
|
-
* 8. 通过
|
|
1982
|
-
* 9.
|
|
1996
|
+
* 1. demo:https://fex.qa.tcshuke.com/docs/admin/main/form/grid
|
|
1997
|
+
* 2. EasyForm可嵌套使用,嵌套内部的<EasyForm />节点Form属性失效,例如属性form、initialValues等都失效
|
|
1998
|
+
* 3. 布局网格以当前节点的宽度来计算的,不是屏幕宽度
|
|
1999
|
+
* 4. EasyForm 子节点包含 hidden = true 会被忽略
|
|
2000
|
+
* 5. 通过 column 可定义一行显示几列FormItem
|
|
2001
|
+
* 6. 通过 labelItemVertical 可定义 formitem 竖直布局
|
|
2002
|
+
* 7. 通过 formItemGap 可定义 formItem竖直方向间隙
|
|
2003
|
+
* 8. 通过 forceColumn 可强制定义一行显示几列,不考虑响应式
|
|
2004
|
+
* 9. 通过 labelWidth 可控制Form内部所有label的宽度(可实现整齐效果)
|
|
2005
|
+
* 10. 自定义栅格占位格数,见下方`例如`
|
|
1983
2006
|
|
|
1984
2007
|
* 例如
|
|
1985
2008
|
* <EasyForm column={3}>
|
|
@@ -2735,6 +2758,7 @@ export type FormItemHorizontalUnionProps = {
|
|
|
2735
2758
|
}[];
|
|
2736
2759
|
gap?: number;
|
|
2737
2760
|
flexLayoutStyle?: CSSProperties;
|
|
2761
|
+
flexLayoutClassName?: string;
|
|
2738
2762
|
hidden?: boolean;
|
|
2739
2763
|
required?: boolean;
|
|
2740
2764
|
colon?: boolean;
|
|
@@ -4595,11 +4619,6 @@ export type TreeLoadDataServiceConfig = {
|
|
|
4595
4619
|
*/
|
|
4596
4620
|
onRequestResultAdapter?: (respData: TAny) => TPlainObject[];
|
|
4597
4621
|
};
|
|
4598
|
-
export type TreeWrapperMenuItem = {
|
|
4599
|
-
title: string;
|
|
4600
|
-
onClick: (dataItem: TPlainObject, event: any) => void;
|
|
4601
|
-
icon?: ReactElement;
|
|
4602
|
-
};
|
|
4603
4622
|
export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "selectedKeys" | "checkedKeys" | "onCheck" | "onSelect" | "fieldNames" | "multiple" | "loadData" | "icon" | "defaultCheckedKeys" | "defaultExpandParent" | "defaultSelectedKeys"> & {
|
|
4604
4623
|
/** 唯一值,用于缓存数据 */
|
|
4605
4624
|
modelKey: string;
|