@oiij/naive-ui 0.0.13 → 0.0.15

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.
@@ -29,11 +29,11 @@ declare const _default: <P extends Record<string, any> = Record<string, any>, D
29
29
  (e: "contextMenuSelect", data: ContextMenuSelectType<R>): void;
30
30
  (e: "load", row: R): Promise<void>;
31
31
  (e: "scroll", ev: Event): void;
32
- (e: "update:checkedRowKeys", keys: keyof R[], rows: R[], meta: {
32
+ (e: "update:checkedRowKeys", keys: (string | number)[], rows: R[], meta: {
33
33
  row: R | undefined;
34
34
  action: "check" | "uncheck" | "checkAll" | "uncheckAll";
35
35
  }): void;
36
- (e: "update:expandedRowKeys", keys: R[]): void;
36
+ (e: "update:expandedRowKeys", keys: (string | number)[]): void;
37
37
  (e: "update:filters", filterState: FilterState, sourceColumn: TableBaseColumn): void;
38
38
  (e: "update:sorter", options: DataTableSortState | DataTableSortState[] | null): void;
39
39
  (e: "update:page", page: number): void;
@@ -11,9 +11,9 @@ export interface DataTablePlusExposeActions<P extends Record<string, any>, D ext
11
11
  refreshAsync: () => Promise<D>;
12
12
  cancel: () => void;
13
13
  mutate: (data?: D | ((oldData?: D | undefined) => D | undefined) | undefined) => void;
14
- setParam: (params: Partial<P>) => void;
15
- runParam: (params: Partial<P>) => void;
16
- runParamAsync: (params: Partial<P>) => Promise<D>;
14
+ setParams: (params: Partial<P>) => void;
15
+ runParams: (params: Partial<P>) => void;
16
+ runParamsAsync: (params: Partial<P>) => Promise<D>;
17
17
  }
18
18
  export interface DataTablePlusPagination {
19
19
  page: number;
@@ -44,11 +44,6 @@ export interface ContextMenuSelectType<R extends Record<string, any>> {
44
44
  row?: R;
45
45
  }
46
46
  export type DataTablePlusFields = Partial<Record<'page' | 'pageSize' | 'filter' | 'sorter' | 'list' | 'count' | 'rowKey', string>>;
47
- export type OnUpdateCheckedRowKeysParams<R extends Record<string, any>> = (keys: keyof R[], rows: R[], meta: {
48
- row: R | undefined;
49
- action: 'check' | 'uncheck' | 'checkAll' | 'uncheckAll';
50
- }) => void;
51
- export type OnUpdateExpandedRowKeysParams<R extends Record<string, any>> = (keys: R[]) => void;
52
47
  export type DataTablePlusProps<P extends Record<string, any> = Record<string, any>, D extends Record<string, any> = Record<string, any>, R extends Record<string, any> = Record<string, any>> = RemoteRequestProps<P, D> & {
53
48
  columns?: DataTableColumns<R>;
54
49
  filterOptions?: DataTablePlusFilterOptions<P, D, R>;