@flatbiz/antd 4.2.76 → 4.2.77
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/drag-collapse-form-list/index.css +1 -1
- package/esm/drag-collapse-form-list/index.js +1 -1
- package/esm/drag-collapse-form-list/index.js.map +1 -1
- package/esm/easy-table/index.js +1 -1
- package/esm/easy-table/index.js.map +1 -1
- package/esm/editable-field/index.css +1 -1
- package/esm/editable-field/index.js +1 -1
- package/esm/editable-field/index.js.map +1 -1
- package/esm/form-grid/index.js.map +1 -1
- package/esm/label-value-layout/index.js +1 -1
- package/esm/label-value-layout/index.js.map +1 -1
- package/esm/pre-defined-class-name/index.css +1 -1
- package/esm/simple-layout/index.js +1 -1
- package/esm/simple-layout/index.js.map +1 -1
- package/esm/tree-wrapper/index.js +1 -1
- package/esm/tree-wrapper/index.js.map +1 -1
- package/index.d.ts +31 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -813,6 +813,8 @@ export type EasyTableRefApi = {
|
|
|
813
813
|
onFilterDataSource: (dataSource: TPlainObject[]) => void;
|
|
814
814
|
/** 清空表格数据 */
|
|
815
815
|
onClearDataSource: () => void;
|
|
816
|
+
/** 修改表格数据源,会触发onDataSourceChange函数 */
|
|
817
|
+
onUpdateDataSource: (dataList: TPlainObject[]) => void;
|
|
816
818
|
};
|
|
817
819
|
export type EasyTableServiceConfig = {
|
|
818
820
|
/** 接口配置 */
|
|
@@ -835,8 +837,18 @@ export type EasyTableProps = {
|
|
|
835
837
|
className?: string;
|
|
836
838
|
style?: CSSProperties;
|
|
837
839
|
children: ReactElement | ReactElement[] | ((dataSource?: TAny) => ReactElement);
|
|
838
|
-
/**
|
|
839
|
-
|
|
840
|
+
/**
|
|
841
|
+
* EasyTable唯一值,可用于缓存查询条件
|
|
842
|
+
* @deprecated 已过时,如果需要缓存数据请设置 cacheSwitch 参数
|
|
843
|
+
*/
|
|
844
|
+
modelKey?: string;
|
|
845
|
+
/**
|
|
846
|
+
* 缓存查询条件开关,默认false
|
|
847
|
+
* ```
|
|
848
|
+
* 是否缓存表格查询条件,在路由跳转回来时,不会丢失
|
|
849
|
+
* ```
|
|
850
|
+
*/
|
|
851
|
+
cacheSwitch?: boolean;
|
|
840
852
|
/** 接口数据配置 */
|
|
841
853
|
serviceConfig: EasyTableServiceConfig;
|
|
842
854
|
/**
|
|
@@ -980,14 +992,16 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
980
992
|
/**
|
|
981
993
|
* 对 查询条件+表格数据 进行深度封装,内置数据交互处理
|
|
982
994
|
* ```
|
|
983
|
-
* 1.
|
|
984
|
-
* 2.
|
|
985
|
-
* 3.
|
|
986
|
-
* 4.
|
|
987
|
-
* 5.
|
|
988
|
-
* 6.
|
|
989
|
-
* 7.
|
|
990
|
-
* 8.
|
|
995
|
+
* 1. 废弃modelKey参数
|
|
996
|
+
* 2. 如果需要在路由跳转回退中缓存查询条件,设置cacheSwitch=true
|
|
997
|
+
* 3. 需要获取查询条件、主动发起请求等可通过ref、useEasyTable操作
|
|
998
|
+
* 4. 可通过属性 initRequest 设置初始化是否请求数据
|
|
999
|
+
* 5. 可通过属性 fieldNames 来设置自定义变量,默认值为:list、total、pageNo、pageSize
|
|
1000
|
+
* 6. isFull=true,设置【在父节点高度下,上下铺满】(默认值:true)
|
|
1001
|
+
* 7. filterFixed=true,设置查询条件固定,不随滚动条滚动
|
|
1002
|
+
* 8. paginationFixed=true,可设置分页条件在底部固定,不随滚动条滚动
|
|
1003
|
+
* 9. foldKeys=string[],查询条件展开、收起,被收起数组内容为EasyTable.Filter 子节点key值
|
|
1004
|
+
* 10. windows环境下,会在EasyTable.Table外部包装一下 TableScrollbar,提示高windows下table左右滚动体验
|
|
991
1005
|
*
|
|
992
1006
|
* Demo https://fex.qa.tcshuke.com/docs/admin/main/crud/easy-table
|
|
993
1007
|
* ```
|
|
@@ -1042,6 +1056,7 @@ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTa
|
|
|
1042
1056
|
};
|
|
1043
1057
|
export interface EditableFieldProps {
|
|
1044
1058
|
className?: string;
|
|
1059
|
+
style?: CSSProperties;
|
|
1045
1060
|
editRender: ReactElement | ((data: {
|
|
1046
1061
|
value?: TAny;
|
|
1047
1062
|
onChange?: (data?: TAny) => void;
|
|
@@ -1634,6 +1649,7 @@ export type FlexLayoutProps = {
|
|
|
1634
1649
|
*/
|
|
1635
1650
|
export declare const FlexLayout: (props: FlexLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
1636
1651
|
export type FormColProps = {
|
|
1652
|
+
/** 栅格占位格数,替换lg、xl、xxl默认数据 */
|
|
1637
1653
|
span?: number;
|
|
1638
1654
|
/** 屏幕 < 576px */
|
|
1639
1655
|
xs?: number;
|
|
@@ -1823,12 +1839,13 @@ export type InputWrapperProps = Omit<InputProps, "defaultValue"> & {
|
|
|
1823
1839
|
export declare const InputWrapper: (props: InputWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
1824
1840
|
export type LabelValueLayoutProps = {
|
|
1825
1841
|
options: {
|
|
1842
|
+
key: string | number;
|
|
1826
1843
|
label: string | ReactElement;
|
|
1827
1844
|
value?: string | number | ReactElement;
|
|
1828
1845
|
span?: number;
|
|
1829
1846
|
hidden?: boolean;
|
|
1830
1847
|
}[];
|
|
1831
|
-
labelWidth?: number;
|
|
1848
|
+
labelWidth?: number | "auto";
|
|
1832
1849
|
column?: number;
|
|
1833
1850
|
bordered?: boolean;
|
|
1834
1851
|
className?: string;
|
|
@@ -2326,6 +2343,7 @@ export type SimpleLayoutProps = {
|
|
|
2326
2343
|
* 2. small = 8
|
|
2327
2344
|
*/
|
|
2328
2345
|
size?: "default" | "small";
|
|
2346
|
+
onClick?: (event: any) => void;
|
|
2329
2347
|
};
|
|
2330
2348
|
/**
|
|
2331
2349
|
* 简单布局
|
|
@@ -3007,7 +3025,7 @@ export type TreeWrapperProps = Omit<TreeProps, "treeData" | "onExpand" | "select
|
|
|
3007
3025
|
*/
|
|
3008
3026
|
onSelectorTreeListChange?: (dataList: TPlainObject[]) => void;
|
|
3009
3027
|
onRequestResponseChange?: (data: TAny) => void;
|
|
3010
|
-
onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[]) => void;
|
|
3028
|
+
onChange?: (selectedKey?: TreeWrapperValue, operateNodeData?: TPlainObject[] | TPlainObject, operateAllNodeDataList?: TPlainObject[], extraData?: TPlainObject) => void;
|
|
3011
3029
|
fieldNames?: {
|
|
3012
3030
|
label?: string;
|
|
3013
3031
|
value?: string;
|
|
@@ -3173,7 +3191,7 @@ export declare const TreeWrapper: import("react").ForwardRefExoticComponent<Omit
|
|
|
3173
3191
|
selectorTreeList?: import("@flatbiz/utils").TPlainObject[] | undefined;
|
|
3174
3192
|
onSelectorTreeListChange?: ((dataList: import("@flatbiz/utils").TPlainObject[]) => void) | undefined;
|
|
3175
3193
|
onRequestResponseChange?: ((data: any) => void) | undefined;
|
|
3176
|
-
onChange?: ((selectedKey?: (string | number | (string | number)[] | import("@flatbiz/utils").TPlainObject<string | number> | import("@flatbiz/utils").TPlainObject<string | number>[]) | undefined, operateNodeData?: import("@flatbiz/utils").TPlainObject | import("@flatbiz/utils").TPlainObject[] | undefined, operateAllNodeDataList?: import("@flatbiz/utils").TPlainObject[] | undefined) => void) | undefined;
|
|
3194
|
+
onChange?: ((selectedKey?: (string | number | (string | number)[] | import("@flatbiz/utils").TPlainObject<string | number> | import("@flatbiz/utils").TPlainObject<string | number>[]) | undefined, operateNodeData?: import("@flatbiz/utils").TPlainObject | import("@flatbiz/utils").TPlainObject[] | undefined, operateAllNodeDataList?: import("@flatbiz/utils").TPlainObject[] | undefined, extraData?: import("@flatbiz/utils").TPlainObject | undefined) => void) | undefined;
|
|
3177
3195
|
fieldNames?: {
|
|
3178
3196
|
label?: string | undefined;
|
|
3179
3197
|
value?: string | undefined;
|