@flatbiz/antd 4.4.13 → 4.4.14
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/date-range-picker-wrapper-form-item/index.js +2 -1
- package/esm/date-range-picker-wrapper-form-item/index.js.map +1 -1
- package/esm/drag-form-list/index.css +1 -1
- package/esm/drag-form-list/index.js +4 -1
- package/esm/drag-form-list/index.js.map +1 -1
- package/esm/easy-form/index.js +2 -1
- package/esm/easy-form/index.js.map +1 -1
- package/esm/easy-table/index.js +5 -2
- package/esm/easy-table/index.js.map +1 -1
- package/esm/file-export/index.js +1 -1
- package/esm/file-export/index.js.map +1 -1
- package/esm/file-import/index.js.map +1 -1
- package/esm/form-item-text/index.js +2 -1
- package/esm/form-item-text/index.js.map +1 -1
- package/esm/form-item-wrapper/index.css +1 -0
- package/esm/form-item-wrapper/index.js +2 -1
- package/esm/form-item-wrapper/index.js.map +1 -1
- package/esm/form-list-wrapper/index.js +4 -1
- package/esm/form-list-wrapper/index.js.map +1 -1
- package/esm/form-wrapper/index.css +1 -0
- package/esm/form-wrapper/index.js +2 -1
- package/esm/form-wrapper/index.js.map +1 -1
- package/esm/index.js +5 -4
- package/esm/modal-action/index.js.map +1 -1
- package/esm/pre-defined-class-name/index.js +1 -1
- package/esm/pre-defined-class-name/index.js.map +1 -1
- package/esm/upload-wrapper/index.js.map +1 -1
- package/index.d.ts +211 -68
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -943,7 +943,45 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<TAny>, "valu
|
|
|
943
943
|
* ```
|
|
944
944
|
*/
|
|
945
945
|
export declare const DateRangePickerWrapper: (props: DateRangePickerWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
946
|
-
export
|
|
946
|
+
export type TFormLayoutPreClassNameProps = {
|
|
947
|
+
/**
|
|
948
|
+
* label宽度,Form内部所有FormItem label都生效
|
|
949
|
+
* ```
|
|
950
|
+
* 1. 可设置数值
|
|
951
|
+
* 2. 可设置`auto`自适应
|
|
952
|
+
* ```
|
|
953
|
+
*/
|
|
954
|
+
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
955
|
+
/** labelItem 竖直布局 */
|
|
956
|
+
labelItemVertical?: boolean;
|
|
957
|
+
/** label 对齐方式 */
|
|
958
|
+
labelAlign?: "left" | "right";
|
|
959
|
+
/** formItem之间竖直间距,默认值:24 */
|
|
960
|
+
formItemGap?: "15" | "8" | "5" | "0";
|
|
961
|
+
/**
|
|
962
|
+
* className 中可能会包含 preDefinedClassName.form.xx,优先级大于 labelWidth、labelItemVertical、labelAlign、formItemGap
|
|
963
|
+
*/
|
|
964
|
+
className?: string;
|
|
965
|
+
};
|
|
966
|
+
export type TFormItemLayoutPreClassNameProps = {
|
|
967
|
+
/**
|
|
968
|
+
* label宽度,Form内部所有FormItem label都生效
|
|
969
|
+
* ```
|
|
970
|
+
* 1. 可设置数值
|
|
971
|
+
* 2. 可设置`auto`自适应
|
|
972
|
+
* ```
|
|
973
|
+
*/
|
|
974
|
+
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
975
|
+
/** labelItem 竖直布局 */
|
|
976
|
+
labelItemVertical?: boolean;
|
|
977
|
+
/** label 对齐方式 */
|
|
978
|
+
labelAlign?: "left" | "right";
|
|
979
|
+
/**
|
|
980
|
+
* className 中可能会包含 preDefinedClassName.formItem.xx,优先级大于 labelWidth、labelItemVertical、labelAlign
|
|
981
|
+
*/
|
|
982
|
+
className?: string;
|
|
983
|
+
};
|
|
984
|
+
export type FormItemWrapperProps = FormItemProps & TFormItemLayoutPreClassNameProps & {
|
|
947
985
|
wrapper?: (children: ReactNode) => ReactElement;
|
|
948
986
|
/** 设置wrapper后,before、after失效 */
|
|
949
987
|
before?: ReactNode;
|
|
@@ -958,28 +996,6 @@ export interface FormItemWrapperProps extends FormItemProps {
|
|
|
958
996
|
outputNormalize?: (value?: TAny) => TAny;
|
|
959
997
|
/** 是否清除 Form.Item */
|
|
960
998
|
isClear?: boolean;
|
|
961
|
-
/**
|
|
962
|
-
* label宽度
|
|
963
|
-
* ```
|
|
964
|
-
* 1. 如果想控制Form下所有label,可使用FormWrapper组件 替换 Form组件,在FormWrapper上设置属性
|
|
965
|
-
* 2. 可设置`auto`自适应
|
|
966
|
-
* ```
|
|
967
|
-
*/
|
|
968
|
-
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
969
|
-
/**
|
|
970
|
-
* labelItem 竖直布局
|
|
971
|
-
* ```
|
|
972
|
-
* 1. 如果想控制Form下所有labelItem,可使用FormWrapper组件 替换 Form组件,在FormWrapper上设置属性
|
|
973
|
-
* ```
|
|
974
|
-
*/
|
|
975
|
-
labelItemVertical?: boolean;
|
|
976
|
-
/**
|
|
977
|
-
* label 对齐方式
|
|
978
|
-
* ```
|
|
979
|
-
* 1. 如果想控制Form下所有labelAlign,可使用FormWrapper组件 替换 Form组件,在FormWrapper上设置属性
|
|
980
|
-
* ```
|
|
981
|
-
*/
|
|
982
|
-
labelAlign?: "left" | "right";
|
|
983
999
|
/**
|
|
984
1000
|
* 栅格占位格数,最大值:24
|
|
985
1001
|
* ```
|
|
@@ -987,7 +1003,7 @@ export interface FormItemWrapperProps extends FormItemProps {
|
|
|
987
1003
|
* ```
|
|
988
1004
|
*/
|
|
989
1005
|
span?: number;
|
|
990
|
-
}
|
|
1006
|
+
};
|
|
991
1007
|
/**
|
|
992
1008
|
* 对 Form.Item 包装处理
|
|
993
1009
|
* ```
|
|
@@ -1454,6 +1470,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
1454
1470
|
/**
|
|
1455
1471
|
* 文件上传
|
|
1456
1472
|
* ```
|
|
1473
|
+
* demo: https://fex.qa.tcshuke.com/docs/admin/main/file/upload
|
|
1457
1474
|
* 1. 可通过配置children替换默认上传触发布局
|
|
1458
1475
|
* 2. 接口返回结构:
|
|
1459
1476
|
* formData上传接口返回值
|
|
@@ -1471,6 +1488,14 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
1471
1488
|
* <Form.Item name="attachmentList" label="附件">
|
|
1472
1489
|
* <UploadWrapper action={uploadUrl} />
|
|
1473
1490
|
* </Form.Item>
|
|
1491
|
+
*
|
|
1492
|
+
* 5. 回填数据结构
|
|
1493
|
+
* [{
|
|
1494
|
+
* uid: '唯一值',
|
|
1495
|
+
* name(非必填): 'image.png',
|
|
1496
|
+
* url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
|
|
1497
|
+
* }]
|
|
1498
|
+
* 其中 uid、name、url 可为其他命名,通过 fieldNames 进行映射即可
|
|
1474
1499
|
* ```
|
|
1475
1500
|
*
|
|
1476
1501
|
*/
|
|
@@ -1820,6 +1845,20 @@ export type DragFormListProps = {
|
|
|
1820
1845
|
children: ReactElement;
|
|
1821
1846
|
}) => ReactElement;
|
|
1822
1847
|
rules?: FormListProps["rules"];
|
|
1848
|
+
/**
|
|
1849
|
+
* 设置FormList字段标题&必填标志
|
|
1850
|
+
* ```
|
|
1851
|
+
* demo: http://dev.flatjs.com:6007/pages/flat/oss-demo/main/form/list?env=me
|
|
1852
|
+
* 1. 会根据数组顺序进行渲染
|
|
1853
|
+
* ```
|
|
1854
|
+
*/
|
|
1855
|
+
formListItemTitleList?: {
|
|
1856
|
+
title: string;
|
|
1857
|
+
required?: boolean;
|
|
1858
|
+
width?: number;
|
|
1859
|
+
}[];
|
|
1860
|
+
formListItemTitleClassName?: string;
|
|
1861
|
+
formListItemTitleStyle?: CSSProperties;
|
|
1823
1862
|
};
|
|
1824
1863
|
/**
|
|
1825
1864
|
* 可拖拽FormList
|
|
@@ -1928,22 +1967,8 @@ export declare const dynamicNode: {
|
|
|
1928
1967
|
};
|
|
1929
1968
|
remove: (elementId?: string) => void;
|
|
1930
1969
|
};
|
|
1931
|
-
export type FormWrapperProps<Values = any> = FormProps<Values> & {
|
|
1970
|
+
export type FormWrapperProps<Values = any> = TFormLayoutPreClassNameProps & FormProps<Values> & {
|
|
1932
1971
|
children: ReactNode;
|
|
1933
|
-
/**
|
|
1934
|
-
* label宽度,Form内部所有FormItem label都生效
|
|
1935
|
-
* ```
|
|
1936
|
-
* 1. 可设置数值
|
|
1937
|
-
* 2. 可设置`auto`自适应
|
|
1938
|
-
* ```
|
|
1939
|
-
*/
|
|
1940
|
-
labelWidth?: "auto" | "70" | "80" | "90" | "100" | "110" | "120" | "130" | "140" | "150" | "160" | "170" | "180" | "190" | "200";
|
|
1941
|
-
/** labelItem 竖直布局 */
|
|
1942
|
-
labelItemVertical?: boolean;
|
|
1943
|
-
/** label 对齐方式 */
|
|
1944
|
-
labelAlign?: "left" | "right";
|
|
1945
|
-
/** formItem之间竖直间距,默认值:24 */
|
|
1946
|
-
formItemGap?: "15" | "8" | "5" | "0";
|
|
1947
1972
|
};
|
|
1948
1973
|
/**
|
|
1949
1974
|
* Form 包装组件,添加对formItem的布局控制
|
|
@@ -1989,12 +2014,14 @@ export type EasyFormProps = Omit<FormWrapperProps, "children"> & {
|
|
|
1989
2014
|
/** 网格间距 */
|
|
1990
2015
|
gridGutter?: BoxRowProps["gutter"];
|
|
1991
2016
|
children: ReactNode;
|
|
2017
|
+
/** 是否为纯净模式,对EasyForm的子节点不做任何包装处理 */
|
|
2018
|
+
isPure?: boolean;
|
|
1992
2019
|
};
|
|
1993
2020
|
/**
|
|
1994
2021
|
* 简单Form布局,可自定义网格布局
|
|
1995
2022
|
* ```
|
|
1996
2023
|
* 1. demo:https://fex.qa.tcshuke.com/docs/admin/main/form/grid
|
|
1997
|
-
* 2. EasyForm可嵌套使用,嵌套内部的<EasyForm />节点Form
|
|
2024
|
+
* 2. EasyForm可嵌套使用,嵌套内部的<EasyForm />节点Form相关属性失效,例如属性form、initialValues等都失效
|
|
1998
2025
|
* 3. 布局网格以当前节点的宽度来计算的,不是屏幕宽度
|
|
1999
2026
|
* 4. EasyForm 子节点包含 hidden = true 会被忽略
|
|
2000
2027
|
* 5. 通过 column 可定义一行显示几列FormItem
|
|
@@ -2228,7 +2255,13 @@ export type EasyTableFilterProps = {
|
|
|
2228
2255
|
* small = { xs: 24, sm: 8, md: 8, lg: 6, xl: 6, xxl: 6 };
|
|
2229
2256
|
*/
|
|
2230
2257
|
formGridSize?: FormRowProps["gridSize"];
|
|
2258
|
+
/**
|
|
2259
|
+
* @deprecated已过期,使用 easyFormProps.className 配置
|
|
2260
|
+
*/
|
|
2231
2261
|
formClassName?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* @deprecated已过期,使用 easyFormProps.style 配置
|
|
2264
|
+
*/
|
|
2232
2265
|
formStyle?: CSSProperties;
|
|
2233
2266
|
/** filter Form 外层 BlockLayout style */
|
|
2234
2267
|
filterWrapperStyle?: CSSProperties;
|
|
@@ -2245,6 +2278,7 @@ export type EasyTableFilterProps = {
|
|
|
2245
2278
|
rightOperateAreaAppendType?: "cover" | "beforeAppend" | "afterAppend";
|
|
2246
2279
|
/** 默认重启按钮触发请求,默认值:true */
|
|
2247
2280
|
defaultResetButtonTriggerRequest?: boolean;
|
|
2281
|
+
easyFormProps?: Omit<EasyFormProps, "isPure" | "column" | "forceColumn" | "width" | "gridGutter" | "children">;
|
|
2248
2282
|
};
|
|
2249
2283
|
export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "loading" | "rowKey" | "columns"> & {
|
|
2250
2284
|
children?: ReactElement | ReactElement[];
|
|
@@ -2280,6 +2314,8 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
2280
2314
|
/**
|
|
2281
2315
|
* 对 查询条件+表格数据 进行深度封装,内置数据交互处理
|
|
2282
2316
|
* ```
|
|
2317
|
+
* Demo https://fex.qa.tcshuke.com/docs/admin/main/crud/easy-table
|
|
2318
|
+
*
|
|
2283
2319
|
* 1. 废弃modelKey参数
|
|
2284
2320
|
* 2. 如果需要在路由跳转回退中缓存查询条件,设置cacheSwitch=true
|
|
2285
2321
|
* 3. 需要获取查询条件、主动发起请求等可通过ref、useEasyTable操作
|
|
@@ -2289,41 +2325,38 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
2289
2325
|
* 7. filterFixed=true,设置查询条件固定,不随滚动条滚动
|
|
2290
2326
|
* 8. paginationFixed=true,可设置分页条件在底部固定,不随滚动条滚动
|
|
2291
2327
|
* 9. foldKeys=string[],查询条件展开、收起,被收起数组内容为EasyTable.Filter 子节点key值
|
|
2292
|
-
* 10. windows环境下,会在EasyTable.Table外部包装一下 TableScrollbar
|
|
2293
|
-
*
|
|
2294
|
-
* Demo https://fex.qa.tcshuke.com/docs/admin/main/crud/easy-table
|
|
2328
|
+
* 10. windows环境下,会在EasyTable.Table外部包装一下 TableScrollbar,提高windows下table左右滚动体验
|
|
2295
2329
|
* ```
|
|
2296
2330
|
*/
|
|
2297
2331
|
export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>> & {
|
|
2298
2332
|
/**
|
|
2299
2333
|
* 过滤条件
|
|
2300
|
-
* @param props
|
|
2301
|
-
* @returns
|
|
2302
|
-
*
|
|
2303
2334
|
*```
|
|
2304
|
-
*1. 用法1
|
|
2335
|
+
* 1. 用法1
|
|
2305
2336
|
* -- 默认网格布局 规则:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
|
|
2306
2337
|
* <EasyTable.Filter>
|
|
2307
|
-
* <
|
|
2338
|
+
* <FormItemWrapper name="field1" label="条件1">xxx</FormItemWrapper>
|
|
2308
2339
|
* </EasyTable.Filter>
|
|
2309
2340
|
*
|
|
2310
|
-
* -- 自定义网格布局 使用 FormCol组件包装
|
|
2341
|
+
* -- 自定义网格布局 使用 FormCol组件包装 FormItemWrapper
|
|
2311
2342
|
* <EasyTable.Filter>
|
|
2312
|
-
* <FormCol span={12}><
|
|
2343
|
+
* <FormCol span={12}><FormItemWrapper name="field1" label="条件1">xxx</FormItemWrapper></FormCol>
|
|
2313
2344
|
* </EasyTable.Filter>
|
|
2314
2345
|
*
|
|
2315
2346
|
* -- children 可为 function
|
|
2316
2347
|
* <EasyTable.Filter>
|
|
2317
2348
|
* {(form) => {
|
|
2318
|
-
* return <
|
|
2349
|
+
* return <FormItemWrapper name="field1" label="条件1">xxx</FormItemWrapper>
|
|
2319
2350
|
* }}
|
|
2320
2351
|
* </EasyTable.Filter>
|
|
2321
|
-
*2. 用户2(自定义布局)
|
|
2322
|
-
*
|
|
2323
|
-
*3. EasyTable.Filter中内置了 Form 标签,当children为函数时,可获取form实例
|
|
2324
|
-
*4. 默认布局下,可通过设置 filterOperate 设置操作按钮
|
|
2325
|
-
*5. Filter 子节点包含 hidden = true 会被忽略
|
|
2326
|
-
*6. 如果想隐藏【查询、重置】按钮中的某一个,可设置 queryButtonProps.hidden、resetButtonProps.hidden
|
|
2352
|
+
* 2. 用户2(自定义布局)
|
|
2353
|
+
* EasyTable.Filter设置 isPure = true,FormItem无布局规则
|
|
2354
|
+
* 3. EasyTable.Filter中内置了 Form 标签,当children为函数时,可获取form实例
|
|
2355
|
+
* 4. 默认布局下,可通过设置 filterOperate 设置操作按钮
|
|
2356
|
+
* 5. Filter 子节点包含 hidden = true 会被忽略
|
|
2357
|
+
* 6. 如果想隐藏【查询、重置】按钮中的某一个,可设置 queryButtonProps.hidden、resetButtonProps.hidden
|
|
2358
|
+
* 7. EasyTableFilter 子节点可使用 FormItemWrapper,FormItemWrapper中可配置label宽度等
|
|
2359
|
+
* 8. 通过easyFormProps属性可整体控制子节点FormItem布局
|
|
2327
2360
|
*```
|
|
2328
2361
|
*/
|
|
2329
2362
|
Filter: (props: EasyTableFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2617,6 +2650,48 @@ export declare const fbaUtils: {
|
|
|
2617
2650
|
attachPropertiesToComponent: typeof attachPropertiesToComponent;
|
|
2618
2651
|
getModelKey: () => string;
|
|
2619
2652
|
};
|
|
2653
|
+
export type FileExportProps = {
|
|
2654
|
+
/** 触发节点 */
|
|
2655
|
+
action: (ReactElement & {
|
|
2656
|
+
onClick?: (e: any) => void;
|
|
2657
|
+
}) | ((data: {
|
|
2658
|
+
onClick: (e: any) => void;
|
|
2659
|
+
}) => ReactElement);
|
|
2660
|
+
/**
|
|
2661
|
+
* 获取文件流数据
|
|
2662
|
+
* ```
|
|
2663
|
+
* 1. fileName 文件名称
|
|
2664
|
+
* 2. data 文件流
|
|
2665
|
+
* ```
|
|
2666
|
+
*/
|
|
2667
|
+
onRequest: () => Promise<{
|
|
2668
|
+
fileName: string;
|
|
2669
|
+
data: Blob;
|
|
2670
|
+
}>;
|
|
2671
|
+
/** 导出操作前 */
|
|
2672
|
+
onExportPre?: () => void;
|
|
2673
|
+
/** 导出操作后 */
|
|
2674
|
+
onExportNext?: () => void;
|
|
2675
|
+
/** 导出操作失败,隐藏默认失败效果 */
|
|
2676
|
+
onExportError?: (error?: any) => void;
|
|
2677
|
+
};
|
|
2678
|
+
/**
|
|
2679
|
+
* 文件导出
|
|
2680
|
+
* ```
|
|
2681
|
+
* demo:https://fex.qa.tcshuke.com/docs/admin/main/widget?key=file-export
|
|
2682
|
+
* 例如:
|
|
2683
|
+
<FileExport
|
|
2684
|
+
action={<Button>下载</Button>}
|
|
2685
|
+
onRequest={() => {
|
|
2686
|
+
return serviceHandle.fileExport('/export/file', {});
|
|
2687
|
+
}}
|
|
2688
|
+
onExportNext={() => {
|
|
2689
|
+
message.success('导出成功...');
|
|
2690
|
+
}}
|
|
2691
|
+
/>
|
|
2692
|
+
* ```
|
|
2693
|
+
*/
|
|
2694
|
+
export declare const FileExport: (props: FileExportProps) => import("react/jsx-runtime").JSX.Element;
|
|
2620
2695
|
export type FileImportProps = {
|
|
2621
2696
|
/** 上传文件接口返回处理 */
|
|
2622
2697
|
onImportFinish: (data?: TAny) => void;
|
|
@@ -2628,9 +2703,19 @@ export type FileImportProps = {
|
|
|
2628
2703
|
/**
|
|
2629
2704
|
* 文件导入
|
|
2630
2705
|
* ```
|
|
2631
|
-
*
|
|
2632
|
-
*
|
|
2633
|
-
*
|
|
2706
|
+
* demo:https://fex.qa.tcshuke.com/docs/admin/main/widget?key=file-export
|
|
2707
|
+
* 1. accept默认值 '.xlsx,.xls',
|
|
2708
|
+
* 2. formData 上传key默认值 file
|
|
2709
|
+
*
|
|
2710
|
+
* 例如:
|
|
2711
|
+
<FileImport
|
|
2712
|
+
action={'https://xxx/xxx/xx'}
|
|
2713
|
+
onImportFinish={(data) => {
|
|
2714
|
+
console.log('上传接口响应数据', data);
|
|
2715
|
+
}}
|
|
2716
|
+
>
|
|
2717
|
+
<Button>文件上传</Button>
|
|
2718
|
+
</FileImport>
|
|
2634
2719
|
* ```
|
|
2635
2720
|
*/
|
|
2636
2721
|
export declare const FileImport: {
|
|
@@ -2780,12 +2865,11 @@ export type FormItemHiddenProps = {
|
|
|
2780
2865
|
export declare const FormItemHidden: (props: FormItemHiddenProps) => import("react/jsx-runtime").JSX.Element;
|
|
2781
2866
|
export type FormItemTextServiceConfig = {
|
|
2782
2867
|
onRequest: (params?: TAny) => Promise<TAny>;
|
|
2868
|
+
/** 接口参数,当params发生变化后,会主动发送查询请求 */
|
|
2783
2869
|
params?: TPlainObject;
|
|
2784
2870
|
/** 标记serviceConfig.params中无效参数,被设置的params key 不传入服务接口入参 */
|
|
2785
2871
|
invalidParamKey?: string[];
|
|
2786
|
-
/**
|
|
2787
|
-
* 如果没有配置 render,返回结果会直接进行dom渲染,如果非string类型会进行JSON.stringify处理
|
|
2788
|
-
*/
|
|
2872
|
+
/** 如果没有配置 render,返回结果会直接进行dom渲染,如果非string类型会进行JSON.stringify处理 */
|
|
2789
2873
|
onResponseAdapter?: (respData?: TAny, value?: TAny) => TAny;
|
|
2790
2874
|
/** 必须参数key列表,与params配合使用 */
|
|
2791
2875
|
requiredParamsKeys?: string[];
|
|
@@ -2797,6 +2881,12 @@ export type FormItemTextProps = FormItemWrapperProps & {
|
|
|
2797
2881
|
render?: (value?: TAny) => ReactNode;
|
|
2798
2882
|
/** 占位值,当 value 为 ''、undefined、null时显示 */
|
|
2799
2883
|
placeholderValue?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* 发起服务调用显示数据,例如:数据为key,通过key查询text显示
|
|
2886
|
+
* ```
|
|
2887
|
+
* 1. 当serviceConfig.params发生变化后,会主动发送查询请求
|
|
2888
|
+
* ```
|
|
2889
|
+
*/
|
|
2800
2890
|
serviceConfig?: FormItemTextServiceConfig;
|
|
2801
2891
|
};
|
|
2802
2892
|
/**
|
|
@@ -2903,6 +2993,20 @@ export type FormListWrapperProps = {
|
|
|
2903
2993
|
}) => ReactElement;
|
|
2904
2994
|
/** FormList rules */
|
|
2905
2995
|
rules?: FormListProps["rules"];
|
|
2996
|
+
/**
|
|
2997
|
+
* 设置FormList字段标题&必填标志
|
|
2998
|
+
* ```
|
|
2999
|
+
* demo: http://dev.flatjs.com:6007/pages/flat/oss-demo/main/form/list?env=me
|
|
3000
|
+
* 1. 会根据数组顺序进行渲染
|
|
3001
|
+
* ```
|
|
3002
|
+
*/
|
|
3003
|
+
formListItemTitleList?: {
|
|
3004
|
+
title: string;
|
|
3005
|
+
required?: boolean;
|
|
3006
|
+
width?: number;
|
|
3007
|
+
}[];
|
|
3008
|
+
formListItemTitleClassName?: string;
|
|
3009
|
+
formListItemTitleStyle?: CSSProperties;
|
|
2906
3010
|
};
|
|
2907
3011
|
/**
|
|
2908
3012
|
* FormList
|
|
@@ -3194,16 +3298,15 @@ export type MetionEditorProps = Omit<MentionsWrapperProps, "prefix"> & {
|
|
|
3194
3298
|
* 5. Demo: https://fex.qa.tcshuke.com/docs/admin/main/widget?key=mention-editor
|
|
3195
3299
|
*/
|
|
3196
3300
|
export declare const MetionEditor: (props: MetionEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
3197
|
-
export type onClick = (e?: React.MouseEvent<HTMLElement>) => void;
|
|
3198
3301
|
export interface ModalActionProps {
|
|
3199
3302
|
children: ReactElement | ((data: {
|
|
3200
3303
|
onClose: () => void;
|
|
3201
3304
|
open: boolean;
|
|
3202
3305
|
}) => ReactElement);
|
|
3203
3306
|
action?: (ReactElement & {
|
|
3204
|
-
onClick?:
|
|
3307
|
+
onClick?: (e: any) => void;
|
|
3205
3308
|
}) | ((data: {
|
|
3206
|
-
onClick:
|
|
3309
|
+
onClick: (e: any) => void;
|
|
3207
3310
|
onClose: () => void;
|
|
3208
3311
|
open: boolean;
|
|
3209
3312
|
}) => ReactElement);
|
|
@@ -3289,6 +3392,9 @@ export declare const Permission: (props: PermissionProps) => import("react/jsx-r
|
|
|
3289
3392
|
* ```
|
|
3290
3393
|
*/
|
|
3291
3394
|
export declare const preDefinedClassName: {
|
|
3395
|
+
/**
|
|
3396
|
+
* @deprecated,已过期,使用preDefinedClassName.getFormLayoutClassName(...)
|
|
3397
|
+
*/
|
|
3292
3398
|
form: {
|
|
3293
3399
|
label_width_70: string;
|
|
3294
3400
|
label_width_80: string;
|
|
@@ -3299,12 +3405,27 @@ export declare const preDefinedClassName: {
|
|
|
3299
3405
|
label_width_130: string;
|
|
3300
3406
|
label_width_140: string;
|
|
3301
3407
|
label_width_150: string;
|
|
3302
|
-
label_width_160: string;
|
|
3408
|
+
label_width_160: string; /**
|
|
3409
|
+
* 获取针对Form下全部label布局的预设className,包括
|
|
3410
|
+
* ```
|
|
3411
|
+
* 1. formLabel宽度
|
|
3412
|
+
* 2. formLabel对齐方式
|
|
3413
|
+
* 3. form label value的竖直布局
|
|
3414
|
+
* 4. formItem之间的间距
|
|
3415
|
+
* ```
|
|
3416
|
+
*/
|
|
3303
3417
|
label_width_170: string;
|
|
3304
3418
|
label_width_180: string;
|
|
3305
3419
|
label_width_190: string;
|
|
3306
3420
|
label_width_200: string;
|
|
3307
|
-
label_width_auto: string;
|
|
3421
|
+
label_width_auto: string; /**
|
|
3422
|
+
* 获取针对单个FormItem label布局的预设className,包括
|
|
3423
|
+
* ```
|
|
3424
|
+
* 1. formLabel宽度
|
|
3425
|
+
* 2. formLabel对齐方式
|
|
3426
|
+
* 3. form label value的竖直布局
|
|
3427
|
+
* ```
|
|
3428
|
+
*/
|
|
3308
3429
|
label_align_left: string;
|
|
3309
3430
|
label_align_right: string;
|
|
3310
3431
|
label_value_vertical: string;
|
|
@@ -3313,6 +3434,9 @@ export declare const preDefinedClassName: {
|
|
|
3313
3434
|
formItemGap5: string;
|
|
3314
3435
|
formItemGap0: string;
|
|
3315
3436
|
};
|
|
3437
|
+
/**
|
|
3438
|
+
* @deprecated 已过期,使用preDefinedClassName.getFormItemLayoutClassName(...)
|
|
3439
|
+
*/
|
|
3316
3440
|
formItem: {
|
|
3317
3441
|
label_width_70: string;
|
|
3318
3442
|
label_width_80: string;
|
|
@@ -3333,6 +3457,25 @@ export declare const preDefinedClassName: {
|
|
|
3333
3457
|
label_align_right: string;
|
|
3334
3458
|
label_value_vertical: string;
|
|
3335
3459
|
};
|
|
3460
|
+
/**
|
|
3461
|
+
* 获取针对Form下全部label布局的预设className,包括
|
|
3462
|
+
* ```
|
|
3463
|
+
* 1. formLabel宽度
|
|
3464
|
+
* 2. formLabel对齐方式
|
|
3465
|
+
* 3. form label value的竖直布局
|
|
3466
|
+
* 4. formItem之间的间距
|
|
3467
|
+
* ```
|
|
3468
|
+
*/
|
|
3469
|
+
getFormLayoutClassName: (props: TFormLayoutPreClassNameProps) => string;
|
|
3470
|
+
/**
|
|
3471
|
+
* 获取针对单个FormItem label布局的预设className,包括
|
|
3472
|
+
* ```
|
|
3473
|
+
* 1. formLabel宽度
|
|
3474
|
+
* 2. formLabel对齐方式
|
|
3475
|
+
* 3. form label value的竖直布局
|
|
3476
|
+
* ```
|
|
3477
|
+
*/
|
|
3478
|
+
getFormItemLayoutClassName: (props: TFormItemLayoutPreClassNameProps) => string;
|
|
3336
3479
|
};
|
|
3337
3480
|
export type RadioGroupWrapperValue = string | number | boolean;
|
|
3338
3481
|
export type RadioGroupWrapperOptionItem = {
|