@wx-design/components 0.3.2 → 0.4.1

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.
@@ -1,14 +1,14 @@
1
1
  /**
2
- * 单元格编辑-轻弹窗 Popover
2
+ * TODO: 单元格编辑-轻弹窗 Popover
3
3
  */
4
4
  import { PopoverProps } from "element-plus";
5
- import { SabColumnProps } from "../../types";
5
+ import type { SabColumnProps, VxeColumnSlotTypes, VxeTableDataRow } from "../../../../types/table";
6
6
  type SabCellEditPopoverProps = PopoverProps & {
7
7
  column: SabColumnProps;
8
+ scope: VxeColumnSlotTypes.DefaultSlotParams<VxeTableDataRow>;
8
9
  };
9
10
  declare const SabCellEditPopover: import("vue").DefineComponent<Partial<SabCellEditPopoverProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<Partial<SabCellEditPopoverProps>>, {
10
11
  readonly popperOptions?: any;
11
- column?: any;
12
12
  readonly placement?: any;
13
13
  }, {}>;
14
14
  export default SabCellEditPopover;
@@ -1,4 +1,5 @@
1
- import type { SabColumnProps } from "../../../types/table";
1
+ import type { SabColumnProps, SabTableProps } from "../../../types/table";
2
2
  export declare const defaultColumnConfig: Partial<SabColumnProps>;
3
3
  export declare const modifyColumnConfig: (column: SabColumnProps) => SabColumnProps;
4
- export declare const setDefaultColumnConfigs: (columns: SabColumnProps[]) => SabColumnProps[];
4
+ export declare const setColumnWidth: (column: SabColumnProps, tableConfig: Partial<SabTableProps>) => SabColumnProps;
5
+ export declare const setDefaultColumnConfigs: (columns: SabColumnProps[], tableConfig: Partial<SabTableProps>) => SabColumnProps[];
@@ -5,5 +5,6 @@ export declare enum SabCellType {
5
5
  DatePciker = "date-picker",
6
6
  Image = "image",
7
7
  Color = "color",
8
- Boolean = "boolean"
8
+ Boolean = "boolean",
9
+ Popover = "popover"
9
10
  }
@@ -1 +1,2 @@
1
- export declare const autoColumnWidth: (text: string) => number;
1
+ import type { SabColumnProps } from "../../../types/table";
2
+ export declare const autoColumnWidth: (column: SabColumnProps) => number;