@flatbiz/antd 4.0.14 → 4.0.16

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
@@ -489,6 +489,8 @@ export type EasyTableServiceConfig = {
489
489
  };
490
490
  export type EasyTableRefApi = {
491
491
  onRequest: (params?: TPlainObject) => void;
492
+ queryCondition: TPlainObject;
493
+ clearQueryCondition: (values?: TPlainObject) => void;
492
494
  };
493
495
  export type EasyTableProps = {
494
496
  children: ReactElement | ReactElement[];
@@ -505,6 +507,92 @@ export type EasyTableProps = {
505
507
  initRequest?: boolean;
506
508
  };
507
509
  export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>>;
510
+ export type FormColProps = {
511
+ /** 屏幕 < 576px */
512
+ xs?: number;
513
+ /** 屏幕 ≥ 576px */
514
+ sm?: number;
515
+ /** 屏幕 ≥ 768px */
516
+ md?: number;
517
+ /** 屏幕 ≥ 992px */
518
+ lg?: number;
519
+ /** 屏幕 ≥ 1200px */
520
+ xl?: number;
521
+ /** 屏幕 ≥ 1600px */
522
+ xxl?: number;
523
+ /** 强制单独一行 */
524
+ forceAloneRow?: boolean;
525
+ children?: ReactNode | ReactNode[];
526
+ };
527
+ /**
528
+ * 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
529
+ *```
530
+ * grid
531
+ * xs: 屏幕 < 576px
532
+ * sm: 屏幕 ≥ 576px
533
+ * md: 屏幕 ≥ 768px
534
+ * lg: 屏幕 ≥ 992px
535
+ * xl: 屏幕 ≥ 1200px
536
+ * xxl: 屏幕 ≥ 1600px
537
+ * ```
538
+ *
539
+ * @returns
540
+ */
541
+ export declare const FormCol: {
542
+ (props: FormColProps): JSX.Element;
543
+ domTypeName: string;
544
+ };
545
+ export type FormOperateColProps = {
546
+ className?: string;
547
+ leftList?: ReactElement[];
548
+ rightList?: ReactElement[];
549
+ justify?: RowProps["justify"];
550
+ /** 强制单独一行 */
551
+ forceAloneRow?: boolean;
552
+ };
553
+ /**
554
+ * FormOperateCol 布局说明
555
+ * ```
556
+ * 1. 网格数以及位置为动态计算,不支持 xs、sm、md等
557
+ * 2. 如果FormRow只有一行col,则OperateCol会在当前行剩余网格内居左对齐
558
+ * 3. 如果同时设置 leftList、rightList,则此cell会强制独占一行,并左右布局
559
+ * 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
560
+ * ```
561
+ */
562
+ export declare const FormOperateCol: {
563
+ (props: FormOperateColProps): JSX.Element;
564
+ domTypeName: string;
565
+ };
566
+ export type FormRowProps = RowProps & {
567
+ children?: ReactNode | ReactNode[];
568
+ };
569
+ /**
570
+ * FormItem网格响应式布局
571
+ *```
572
+ * 1. 应用场景:Form条件布局
573
+ * 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
574
+ * 3. 所有子元素中只能存在一个 FormOperateCol
575
+ */
576
+ export declare const FormRow: (props: FormRowProps) => JSX.Element;
577
+ export type EasyTableFilterProps = {
578
+ children: ReactElement | ReactElement[] | ((form: FormInstance) => ReactElement);
579
+ /** isPure = true时无效 */
580
+ filterOperate?: (form: FormInstance) => FormOperateColProps;
581
+ /** 是否为纯净模式(查询条件布局是否自定义), */
582
+ isPure?: boolean;
583
+ queryButtonProps?: Omit<ButtonProps, "onClick"> & {
584
+ text?: string;
585
+ };
586
+ resetButtonProps?: Omit<ButtonProps, "onClick"> & {
587
+ text?: string;
588
+ };
589
+ };
590
+ export declare const EasyTableFilter: (props: EasyTableFilterProps) => JSX.Element;
591
+ export type EasyTableTableProps = Omit<TableProps<TAny>, "dataSource" | "loading" | "pagination"> & {
592
+ children?: ReactElement;
593
+ pagination?: false;
594
+ };
595
+ export declare const EasyTableTable: (props: EasyTableTableProps) => JSX.Element;
508
596
  export type SelectorWrapperValue = string | number | Array<string | number> | TPlainObject<string | number> | Array<TPlainObject<string | number>>;
509
597
  export type SelectorServiceConfig = {
510
598
  params?: TPlainObject;
@@ -868,73 +956,6 @@ export type FlexLayoutProps = {
868
956
  * @returns
869
957
  */
870
958
  export declare const FlexLayout: (props: FlexLayoutProps) => JSX.Element;
871
- export type FormColProps = {
872
- /** 屏幕 < 576px */
873
- xs?: number;
874
- /** 屏幕 ≥ 576px */
875
- sm?: number;
876
- /** 屏幕 ≥ 768px */
877
- md?: number;
878
- /** 屏幕 ≥ 992px */
879
- lg?: number;
880
- /** 屏幕 ≥ 1200px */
881
- xl?: number;
882
- /** 屏幕 ≥ 1600px */
883
- xxl?: number;
884
- /** 强制单独一行 */
885
- forceAloneRow?: boolean;
886
- children?: ReactNode | ReactNode[];
887
- };
888
- /**
889
- * 网格响应式布局,默认值:{ xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 }
890
- *```
891
- * grid
892
- * xs: 屏幕 < 576px
893
- * sm: 屏幕 ≥ 576px
894
- * md: 屏幕 ≥ 768px
895
- * lg: 屏幕 ≥ 992px
896
- * xl: 屏幕 ≥ 1200px
897
- * xxl: 屏幕 ≥ 1600px
898
- * ```
899
- *
900
- * @returns
901
- */
902
- export declare const FormCol: {
903
- (props: FormColProps): JSX.Element;
904
- domTypeName: string;
905
- };
906
- export type FormOperateColProps = {
907
- className?: string;
908
- leftList?: ReactElement[];
909
- rightList?: ReactElement[];
910
- justify?: RowProps["justify"];
911
- /** 强制单独一行 */
912
- forceAloneRow?: boolean;
913
- };
914
- /**
915
- * FormOperateCol 布局说明
916
- * ```
917
- * 1. 网格数以及位置为动态计算,不支持 xs、sm、md等
918
- * 2. 如果FormRow只有一行col,则OperateCol会在当前行剩余网格内居左对齐
919
- * 3. 如果同时设置 leftList、rightList,则此cell会强制独占一行,并左右布局
920
- * 4. 如果只设置 leftList、rightList其中一个,则会在最后一行剩余网格内居右对齐
921
- * ```
922
- */
923
- export declare const FormOperateCol: {
924
- (props: FormOperateColProps): JSX.Element;
925
- domTypeName: string;
926
- };
927
- export type FormRowProps = RowProps & {
928
- children?: ReactNode | ReactNode[];
929
- };
930
- /**
931
- * FormItem网格响应式布局
932
- *```
933
- * 1. 应用场景:Form条件布局
934
- * 2. 子元素只能是 FormCol、FormOperateCol,其他会被忽略
935
- * 3. 所有子元素中只能存在一个 FormOperateCol
936
- */
937
- export declare const FormRow: (props: FormRowProps) => JSX.Element;
938
959
  export type FormItemHorizontalUnionProps = {
939
960
  className?: string;
940
961
  style?: CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.0.14",
3
+ "version": "4.0.16",
4
4
  "description": "flat-biz oss ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -31,9 +31,9 @@
31
31
  "@dimjs/model": ">=1.1.8",
32
32
  "@dimjs/model-react": ">=1.1.8",
33
33
  "@dimjs/utils": ">=1.2.23",
34
- "@flatbiz/utils": ">=4.0.1",
34
+ "@flatbiz/utils": ">=4.0.2",
35
35
  "@wove/react": ">=1.2.22",
36
- "antd": ">=5.0.6",
36
+ "antd": ">=5.1.2",
37
37
  "dayjs": ">=1.11.7",
38
38
  "react": ">=18.2.0",
39
39
  "react-dom": ">=18.2.0"
@@ -44,9 +44,9 @@
44
44
  "@dimjs/model": "^1.1.8",
45
45
  "@dimjs/model-react": "^1.1.8",
46
46
  "@dimjs/utils": "^1.2.23",
47
- "@flatbiz/utils": "^4.0.0",
47
+ "@flatbiz/utils": "^4.0.2",
48
48
  "@wove/react": "^1.2.22",
49
- "antd": "^5.0.4",
49
+ "antd": "^5.1.2",
50
50
  "dayjs": "1.11.7",
51
51
  "dequal": "^2.0.3",
52
52
  "react": "18.2.0",