@wx-design/components 0.8.29 → 0.8.31

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,5 +1,3 @@
1
- import { Ref } from "vue";
2
- import { VxeTableInstance } from "vxe-table";
3
1
  import type { SabTableProps } from "../../../types/table";
4
2
  export declare const defaultTableConfig: Partial<SabTableProps>;
5
3
  /**
@@ -9,4 +7,3 @@ export declare const defaultTableConfig: Partial<SabTableProps>;
9
7
  * @returns
10
8
  */
11
9
  export declare const modifyTableConfig: (config: Partial<SabTableProps>, config2?: Partial<SabTableProps>) => SabTableProps;
12
- export declare const listenTableEvents: (emit: Function, tableConfig: Ref<Partial<SabTableProps>>, xTable: Ref<VxeTableInstance | undefined>) => Record<string, Function>;
@@ -1,4 +1,12 @@
1
1
  import { Ref } from "vue";
2
+ import { VxeTableDataRow, VxeTableInstance } from "vxe-table";
3
+ import type { SabTableProps } from "../../../types/table";
4
+ export declare const EVENTS: string[];
2
5
  export declare const useTableEvents: (params: {
3
- checkboxRecords: Ref;
4
- }) => void;
6
+ checkboxRecords: Ref<VxeTableDataRow[]>;
7
+ emit: Function;
8
+ xTable: Ref<VxeTableInstance | undefined>;
9
+ tableConfig: Ref<Partial<SabTableProps>>;
10
+ }) => {
11
+ onEvents: Record<string, Function>;
12
+ };
@@ -1,5 +1,4 @@
1
1
  import SabTable from './index.vue';
2
2
  export default SabTable;
3
3
  export * from './constants';
4
- export * from './hooks';
5
4
  export { SabTable };
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
5
5
  reloadRow: (rows: any) => void;
6
6
  getCheckedFilters(): import("vxe-table").VxeTableDefines.FilterCheckedParams<any>[] | undefined;
7
7
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- [x: string]: (...args: unknown[]) => void;
8
+ [x: string]: (...args: any[]) => void;
9
9
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>>>, {
10
10
  class: any;
11
11
  name: string;
@@ -100,12 +100,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
100
100
  headerFilterConfig: import("../../types/table").SabHeaderFilterProps;
101
101
  headerFilterModel: any;
102
102
  wrapClassName: any;
103
+ checkboxRecords: import("vxe-table").VxeTableDataRow[];
103
104
  withSeq: boolean;
104
105
  withCheckbox: boolean;
105
106
  showToolbar: boolean;
106
107
  autoClearSelected: boolean;
107
108
  autoColumnWidth: boolean;
108
- selectWhenClickRow: boolean;
109
109
  rowBackgroundHighlight: boolean;
110
110
  rowBorderHighlight: boolean;
111
111
  }, {}>, Partial<Record<string, (_: any) => any>> & {