@flatbiz/antd 4.0.6 → 4.0.8

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
@@ -58,10 +58,10 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "loading"> & {
58
58
  * @returns
59
59
  */
60
60
  export declare const ButtonWrapper: (props: ButtonWrapperProps) => JSX.Element | null;
61
- export type TAny = any;
62
- export type TPlainObject<T = TAny> = Record<string, T>;
63
- export type TNoopDefine = () => void;
64
- export type DateFormatType = "YYYY-MM" | "YYYY-MM-DD" | "YYYY-MM-DD hh:mm" | "YYYY-MM-DD hh:mm:ss" | "MM-DD" | "YYYY/MM" | "YYYY/MM/DD" | "YYYY/MM/DD hh:mm" | "YYYY/MM/DD hh:mm:ss" | "MM/DD" | "YYYY.MM" | "YYYY.MM.DD" | "YYYY.MM.DD hh:mm" | "YYYY.MM.DD hh:mm:ss" | "MM.DD" | "YYYY\u5E74MM\u6708" | "YYYY\u5E74MM\u6708DD\u65E5" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm:ss" | "MM\u6708DD\u65E5" | "hh:mm" | "hh:mm:ss" | "YYYYMM" | "YYYYMMDD" | "YYYYMMDD hh:mm" | "YYYYMMDD hh:mm:ss";
61
+ export declare type TAny = any;
62
+ export declare type TPlainObject<T = TAny> = Record<string, T>;
63
+ export declare type TNoopDefine = () => void;
64
+ export declare type DateFormatType = "YYYY-MM" | "YYYY-MM-DD" | "YYYY-MM-DD hh:mm" | "YYYY-MM-DD hh:mm:ss" | "MM-DD" | "YYYY/MM" | "YYYY/MM/DD" | "YYYY/MM/DD hh:mm" | "YYYY/MM/DD hh:mm:ss" | "MM/DD" | "YYYY.MM" | "YYYY.MM.DD" | "YYYY.MM.DD hh:mm" | "YYYY.MM.DD hh:mm:ss" | "MM.DD" | "YYYY\u5E74MM\u6708" | "YYYY\u5E74MM\u6708DD\u65E5" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm" | "YYYY\u5E74MM\u6708DD\u65E5 hh:mm:ss" | "MM\u6708DD\u65E5" | "hh:mm" | "hh:mm:ss" | "YYYYMM" | "YYYYMMDD" | "YYYYMMDD hh:mm" | "YYYYMMDD hh:mm:ss";
65
65
  export type RequestStatus = "request-init" | "request-progress" | "request-success" | "request-error" | "no-dependencies-params";
66
66
  export type RequestStatusRenderProps = {
67
67
  status?: RequestStatus;
@@ -309,8 +309,8 @@ export declare const dialogModal: {
309
309
  */
310
310
  close: () => void;
311
311
  };
312
- export type DialogAlertProps = Omit<DialogModalProps, "onOk"> & {
313
- onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
312
+ export type DialogAlertProps = Omit<DialogModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
313
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
314
314
  };
315
315
  export declare const dialogAlert: {
316
316
  open: (props: DialogAlertProps) => {
@@ -1389,7 +1389,7 @@ export declare const tableCellRender: {
1389
1389
  * 4. showMaxNumber 显示最大长度,作用于原单元格字符串数据
1390
1390
  * ```
1391
1391
  */
1392
- extraContentRender: (options: TableColumnIconRenderProps) => (value?: TAny) => JSX.Element;
1392
+ extraContentRender: (handle: (item: TPlainObject) => TableColumnIconRenderProps) => (value: TAny, item: TPlainObject) => JSX.Element;
1393
1393
  /**
1394
1394
  * table 索引展示,如果存在pageSize、pageNo参数可分页展示索引,否则每页都从1开始
1395
1395
  */
@@ -1448,7 +1448,7 @@ export declare const tableCellRender: {
1448
1448
  * tableCellRender.objectCell('a.b.c')
1449
1449
  * ```
1450
1450
  */
1451
- objectCell: (key: string) => (value?: TPlainObject) => any;
1451
+ objectCell: (key: string, defaultValue?: string) => (value?: TPlainObject) => any;
1452
1452
  };
1453
1453
  export type TableTitleTooltipProps = {
1454
1454
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.6",
3
+ "version": "4.0.8",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",