@flatbiz/antd 4.0.12 → 4.0.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/index.d.ts CHANGED
@@ -30,7 +30,7 @@ export interface ButtonOperateItem extends ButtonProps {
30
30
  }
31
31
  export interface ButtonOperateProps {
32
32
  /**
33
- * 如果数组中使用ReactElement类型
33
+ * 如果数组中元素为ReactElement类型
34
34
  * 1. 一般为antd Button组件,如果组件存在属性hidden=true,则会隐藏
35
35
  * 2. 可配置 v-permission 权限值,例如 v-permission="add"
36
36
  * 3. 任何confirm、disabled等状态在外部控制
@@ -484,6 +484,27 @@ export interface DropdownMenuWrapperProps extends Omit<DropdownProps, "menu"> {
484
484
  menuList: Array<DropdownMenuItem | null>;
485
485
  }
486
486
  export declare const DropdownMenuWrapper: (props: DropdownMenuWrapperProps) => JSX.Element;
487
+ export type EasyTableServiceConfig = {
488
+ onRequest: (params?: TPlainObject) => Promise<TPlainObject>;
489
+ };
490
+ export type EasyTableRefApi = {
491
+ onRequest: (params?: TPlainObject) => void;
492
+ };
493
+ export type EasyTableProps = {
494
+ children: ReactElement | ReactElement[];
495
+ modelKey: string;
496
+ serviceConfig: EasyTableServiceConfig;
497
+ initialValues?: TPlainObject;
498
+ fieldNames?: {
499
+ list?: string;
500
+ total?: string;
501
+ pageNo?: string;
502
+ pageSize?: string;
503
+ };
504
+ /** 初始化是否请求,默认值:true */
505
+ initRequest?: boolean;
506
+ };
507
+ export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>>;
487
508
  export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
488
509
  export type SelectorServiceConfig = {
489
510
  params?: TPlainObject;
@@ -1482,7 +1503,7 @@ export type TableTitleTooltipProps = {
1482
1503
  title: string;
1483
1504
  tooltip: string | {
1484
1505
  icon: ReactElement;
1485
- content: string;
1506
+ content?: string;
1486
1507
  };
1487
1508
  gap?: number;
1488
1509
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.12",
3
+ "version": "4.0.14",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",