@wx-design/components 0.2.3 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wx-design/components",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -1,4 +1,4 @@
1
- import { VxeTableProps, VxeTableDataRow } from "vxe-table";
1
+ import { VxeTableProps, VxeTableDataRow, VxeTableInstance } from "vxe-table";
2
2
  import { SabColumnProps, SabPopoverParams } from "./";
3
3
 
4
4
  export type SabTableProps<D = VxeTableDataRow> = VxeTableProps<D> & {
@@ -18,8 +18,10 @@ export type SabTableProps<D = VxeTableDataRow> = VxeTableProps<D> & {
18
18
  showToolbar?: boolean;
19
19
  // 点击未选中行的单元格自动取消选择选中行
20
20
  autoClearSelected?: boolean;
21
- // 单元格弹出层配置
21
+ // TODO: 单元格弹出层配置
22
22
  popoverConfig?: SabPopoverParams;
23
+ // 自动列宽赋值,允许在column中 width 覆盖
24
+ autoColumnWidth?: boolean;
23
25
  }
24
26
 
25
27
  // 表格插槽
@@ -32,4 +34,10 @@ export interface TableSlots {
32
34
  * 表格底部插槽
33
35
  */
34
36
  tableFooter?: () => any;
35
- }
37
+ }
38
+
39
+ // sab table 实例
40
+ export interface SabTableInstance<D = VxeTableDataRow> {
41
+ // 获取vxe-table实例
42
+ getInstance(): VxeTableInstance<D>;
43
+ }