@xto/data 1.6.2 → 1.6.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.
@@ -16,8 +16,7 @@ export interface CarouselProps {
16
16
  /** 走马灯的高度 */
17
17
  height?: string | number;
18
18
  }
19
- export interface CarouselItemProps {
20
- }
19
+ export type { CarouselItemProps } from './types';
21
20
  export interface CarouselEmits {
22
21
  'update:activeIndex': (index: number) => void;
23
22
  'change': (current: number, prev: number) => void;
@@ -8,7 +8,6 @@ declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
9
  slots: {
10
10
  default?(_: {}): any;
11
- default?(_: {}): any;
12
11
  };
13
12
  refs: {};
14
13
  rootEl: any;
@@ -34,14 +34,14 @@ type __VLS_Props = {
34
34
  declare function __VLS_template(): {
35
35
  attrs: Partial<{}>;
36
36
  slots: Partial<Record<`column-${string}`, (_: {
37
+ $index: number;
37
38
  row: any;
38
39
  column: TableColumn;
39
- $index: number;
40
40
  }) => any>> & {
41
41
  toolbar?(_: {}): any;
42
42
  operation?(_: {
43
- row: any;
44
43
  $index: number;
44
+ row: any;
45
45
  deleteRow: () => void;
46
46
  }): any;
47
47
  empty?(_: {}): any;
@@ -1,3 +1,4 @@
1
+ import { TreeTableColumnSlot } from './types';
1
2
  export interface TreeTableColumnConfig {
2
3
  prop: string;
3
4
  label: string;
@@ -7,7 +8,7 @@ export interface TreeTableColumnConfig {
7
8
  sortable?: boolean | 'custom';
8
9
  fixed?: 'left' | 'right' | true;
9
10
  formatter?: (row: any, column: TreeTableColumnConfig, cellValue: any, index: number) => string;
10
- slot?: Function;
11
+ slot?: TreeTableColumnSlot;
11
12
  }
12
13
  export interface TreeTableProps {
13
14
  data: any[];
@@ -51,7 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<TreeTableProps, {
51
52
  sortable?: boolean | "custom" | undefined;
52
53
  fixed?: "left" | "right" | true | undefined;
53
54
  formatter?: ((row: any, column: TreeTableColumnConfig, cellValue: any, index: number) => string) | undefined;
54
- slot?: Function | undefined;
55
+ slot?: TreeTableColumnSlot | undefined;
55
56
  }[], TreeTableColumnConfig[] | {
56
57
  prop: string;
57
58
  label: string;
@@ -61,7 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<TreeTableProps, {
61
62
  sortable?: boolean | "custom" | undefined;
62
63
  fixed?: "left" | "right" | true | undefined;
63
64
  formatter?: ((row: any, column: TreeTableColumnConfig, cellValue: any, index: number) => string) | undefined;
64
- slot?: Function | undefined;
65
+ slot?: TreeTableColumnSlot | undefined;
65
66
  }[]>;
66
67
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
67
68
  "sort-change": (sort: {
@@ -40,8 +40,16 @@ export interface TreeTableColumnConfig {
40
40
  /**
41
41
  * 自定义插槽
42
42
  */
43
- slot?: Function;
43
+ slot?: TreeTableColumnSlot;
44
44
  }
45
+ /**
46
+ * 列自定义插槽渲染函数(与模板中 columnSlots[prop]({ row, column, $index }) 的调用方式对应)
47
+ */
48
+ export type TreeTableColumnSlot = (scope: {
49
+ row: any;
50
+ column: TreeTableColumnConfig;
51
+ $index: number;
52
+ }) => unknown;
45
53
  /**
46
54
  * TreeTable 树形属性配置
47
55
  */