@flatbiz/antd 4.5.1 → 4.5.3

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
@@ -432,10 +432,10 @@ export type ButtonWrapperProps = Omit<ButtonProps, "onClick"> & {
432
432
  export declare const ButtonWrapper: (props: ButtonWrapperProps) => import("react/jsx-runtime").JSX.Element | null;
433
433
  export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "open" | "open" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
434
434
  /**
435
- * 内置尺寸,根据比例固定高度、宽度,默认:middle
435
+ * 内置尺寸,根据比例固定高度、宽度,默认:无
436
436
  * ```
437
- * 1. 如果自定义了width、styles.body.height属性,size中的height、width将对应失效
438
- * 2. 可传 null 值,取消内置尺寸
437
+ * 1. 如果自定义了width、bodyHeight属性,size中的height、width将对应失效
438
+ * 2. 不传、传null值可取消内置尺寸
439
439
  * ```
440
440
  */
441
441
  size?: "small" | "middle" | "large" | null;
@@ -963,9 +963,9 @@ export type DateRangePickerWrapperProps = Omit<RangePickerDateProps<TAny>, "valu
963
963
  outputNormalize?: (value: [
964
964
  string,
965
965
  string
966
- ]) => any;
966
+ ]) => TAny;
967
967
  /** value 输入适配 */
968
- inputNormalize?: (value?: any) => [
968
+ inputNormalize?: (value?: TAny) => [
969
969
  string,
970
970
  string
971
971
  ] | undefined;
@@ -1782,11 +1782,11 @@ export type EditableTableProps = {
1782
1782
  * 可编辑表格(通过FormList实现)
1783
1783
  * demo:https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable1
1784
1784
  * ```
1785
- * 1. 通过 tableProps 设置Table属性,table size默认:small
1786
- * 2. Table children column 不可编辑
1787
- * 3. 当存在折叠children数据时,组件会在children中内置_isChildrenItem字段
1788
- * 4. 可通过tableChildrenColumnRender自定义渲染 table children column 显示
1789
- * 5. 设置 rowSelection 后,rowSelection.onChange 通过 ref 的 getTableItemDataByFormListItemKey获取数据
1785
+ * 1. 表格数据必须要有唯一值字段,通过属性uidFieldKey设置
1786
+ * 2. 通过 tableProps 设置Table属性,table size默认:small
1787
+ * 3. Table children column 不可编辑
1788
+ * 4. 当存在折叠children数据时,组件会在children中内置_isChildrenItem字段
1789
+ * 5. 可通过tableChildrenColumnRender自定义渲染 table children column 显示
1790
1790
  * 6. 4.5.0版本移除 ref.getTableItemDataByFormListItemKey 功能,可选择表格参考(https://fex.qa.tcshuke.com/docs/admin/main/table/row-editable2)
1791
1791
  * ```
1792
1792
  */
@@ -2701,10 +2701,10 @@ export type FbaAppDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
2701
2701
  };
2702
2702
  export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContainer" | "okButtonProps" | "cancelButtonProps" | "footer"> & {
2703
2703
  /**
2704
- * 内置尺寸,根据比例固定高度、宽度,默认:middle
2704
+ * 内置尺寸,根据比例固定高度、宽度
2705
2705
  * ```
2706
- * 1. 如果自定义了width、styles.body.height属性,size中的height、width将对应失效
2707
- * 2. 可传 null 值,取消内置尺寸
2706
+ * 1. 如果自定义了width、bodyHeight属性,size中的height、width将对应失效
2707
+ * 2. 不传、传null值可取消内置尺寸
2708
2708
  * ```
2709
2709
  */
2710
2710
  size?: "small" | "middle" | "large" | null;
@@ -2735,6 +2735,8 @@ export type FbaAppModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
2735
2735
  * ```
2736
2736
  */
2737
2737
  footer?: null | ReactElement | ReactElement[] | ((form: FormInstance, extraData?: TPlainObject) => ReactElement);
2738
+ /** 内容高度,为styles.body.height快捷配置,优先级低于styles.body.height */
2739
+ bodyHeight?: number;
2738
2740
  };
2739
2741
  export type FbaAppAlertProps = Omit<FbaAppModalProps, "onOk" | "cancelHidden" | "cancelButtonProps" | "onCancel" | "onClick"> & {
2740
2742
  onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
@@ -3363,8 +3365,8 @@ export declare const LabelValueLayout: (props: LabelValueLayoutProps) => import(
3363
3365
  export type TLabelValueItem = {
3364
3366
  label: string | ReactElement;
3365
3367
  value?: string | number | ReactElement;
3366
- /** 一行有4列,当前labelValue数据占用的列数,默认是根据LabelValueRender.column配置来 */
3367
- span?: 1 | 2 | 3 | 4;
3368
+ /** 根据LabelValueRender.column配置,当前item占几列 */
3369
+ span?: 1 | 2 | 3 | 4 | 6;
3368
3370
  /** 是否隐藏 */
3369
3371
  hidden?: boolean;
3370
3372
  /** 超出宽度是否隐藏 */
@@ -3380,25 +3382,27 @@ export type LabelValueRenderProps = {
3380
3382
  /**
3381
3383
  * 定义一行显示几列, 默认值:4
3382
3384
  * ```
3383
- * 1. 当外层宽度尺寸大于 992px(lg) 时,一行显示几列
3384
- * 1. 当外层宽度尺寸小于992px(lg),为xs、sm、md情况下不受column值影响,响应式布局
3385
- * 2. 宽度尺寸定义
3385
+ * 1. label+value 一组为一列
3386
+ * 2. 当外层宽度尺寸大于 992px(lg) 时,一行显示几列
3387
+ * 3. 当外层宽度尺寸小于992px(lg),为xs、sm、md情况下不受column值影响,响应式布局
3388
+ * 4. 宽度尺寸定义
3386
3389
  * xs: 宽度 < 576px
3387
3390
  * sm: 宽度 ≥ 576px
3388
3391
  * md: 宽度 ≥ 768px
3389
3392
  * lg: 宽度 ≥ 992px
3390
3393
  * xl: 宽度 ≥ 1200px
3391
3394
  * xxl: 宽度 ≥ 1600px
3392
- * 3. 列数尺寸定义
3395
+ * 5. 列数尺寸定义
3393
3396
  * {
3394
3397
  * 1: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
3395
3398
  * 2: { xs: 24, sm: 12, md: 12, lg: 12, xl: 12, xxl: 12 },
3396
3399
  * 3: { xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 8 },
3397
3400
  * 4: { xs: 24, sm: 12, md: 12, lg: 6, xl: 6, xxl: 6 },
3401
+ * 6: { xs: 24, sm: 12, md: 8, lg: 6, xl: 4, xxl: 4 },
3398
3402
  * };
3399
3403
  * ```
3400
3404
  */
3401
- column?: 1 | 2 | 3 | 4;
3405
+ column?: 1 | 2 | 3 | 4 | 6;
3402
3406
  /**
3403
3407
  * 强制定义一行显示几列,不考虑响应式
3404
3408
  * ```
@@ -3406,12 +3410,10 @@ export type LabelValueRenderProps = {
3406
3410
  * 2. 建议优先使用column配置
3407
3411
  * ```
3408
3412
  */
3409
- forceColumn?: 1 | 2 | 3 | 4;
3413
+ forceColumn?: 1 | 2 | 3 | 4 | 6;
3410
3414
  /** 数据源配置 */
3411
3415
  options: TLabelValueItem[];
3412
- /**
3413
- * 超过宽度将自动省略,默认值:true
3414
- */
3416
+ /** 超过宽度将自动省略,默认值:true */
3415
3417
  ellipsis?: boolean;
3416
3418
  /** 是否添加边框 */
3417
3419
  border?: boolean;
@@ -3424,6 +3426,7 @@ export type LabelValueRenderProps = {
3424
3426
  labelStyle?: CSSProperties;
3425
3427
  /** value 样式 */
3426
3428
  valueStyle?: CSSProperties;
3429
+ size?: "default" | "small";
3427
3430
  };
3428
3431
  /**
3429
3432
  * label+value 列表布局
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "description": "flat-biz ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",