@flatbiz/antd 4.0.27 → 4.0.28

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
@@ -533,14 +533,22 @@ export type EasyTableServiceConfig = {
533
533
  };
534
534
  export type EasyTableRefApi = {
535
535
  onRequest: (params?: TPlainObject) => void;
536
- queryCondition: TPlainObject;
537
- clearQueryCondition: (values?: TPlainObject) => void;
536
+ getRequestParams: () => TPlainObject;
537
+ clearQueryCondition: (values?: TPlainObject) => Promise<void>;
538
+ form: FormInstance;
539
+ onResetRequest: (params?: TPlainObject) => void;
538
540
  };
539
541
  export type EasyTableProps = {
540
542
  children: ReactElement | ReactElement[];
541
543
  modelKey: string;
542
544
  serviceConfig: EasyTableServiceConfig;
545
+ /** Form initialValues、其他接口参数 */
543
546
  initialValues?: TPlainObject;
547
+ /** 分页初始化参数,默认值: pageSiz = 10 */
548
+ initialPaginationParams?: {
549
+ pageSize?: number;
550
+ };
551
+ /** 字段映射 */
544
552
  fieldNames?: {
545
553
  list?: string;
546
554
  total?: string;
@@ -948,23 +956,24 @@ export type FieldSingleConfig = {
948
956
  */
949
957
  formItemProps?: Omit<FormItemProps, "name">;
950
958
  /**
959
+ * 自定义非编辑渲染
951
960
  * 1. 当editableConfig type=custom时,此配置无效
952
961
  * 2. 只在editable=false的情况下有效
953
962
  * 3. 同级配置 editableConfigList后,同级render配置失效
954
963
  */
955
- render?: (params?: any) => ReactNode;
964
+ render?: (params?: TAny, other?: TAny) => ReactNode;
956
965
  };
957
966
  export type FormListItemMethodOperateProps = {
958
967
  tableRowIndex: number;
959
968
  add: FormListOperation["add"];
960
969
  remove: () => void;
961
970
  formListItemIndex: number;
962
- value: any;
971
+ value: TAny;
963
972
  };
964
973
  export type FormListMethodOperateProps = {
965
974
  tableRowIndex: number;
966
975
  add: FormListOperation["add"];
967
- value: any;
976
+ value: TAny;
968
977
  };
969
978
  export type FormListConfig = {
970
979
  editableConfigList: Array<FieldSingleConfig & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",