@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.
- package/es/core/Table/configs/table.d.ts +0 -3
- package/es/core/Table/hooks/useTableEvents.d.ts +10 -2
- package/es/core/Table/index.d.ts +0 -1
- package/es/core/Table/index.vue.d.ts +2 -2
- package/es/index.mjs +1078 -1081
- package/es/style.css +1 -1
- package/lib/core/Table/configs/table.d.ts +0 -3
- package/lib/core/Table/hooks/useTableEvents.d.ts +10 -2
- package/lib/core/Table/index.d.ts +0 -1
- package/lib/core/Table/index.vue.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/types/table/column.d.ts +2 -2
- package/types/table/index.d.ts +3 -4
- package/types/table/table.d.ts +13 -4
- package/es/core/Table/hooks/index.d.ts +0 -1
- package/es/core/Table/hooks/useSabTable.d.ts +0 -7
- package/lib/core/Table/hooks/index.d.ts +0 -1
- package/lib/core/Table/hooks/useSabTable.d.ts +0 -7
- package/types/table/hooks/index.d.ts +0 -1
- package/types/table/hooks/useSabTable.d.ts +0 -7
|
@@ -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
|
-
|
|
6
|
+
checkboxRecords: Ref<VxeTableDataRow[]>;
|
|
7
|
+
emit: Function;
|
|
8
|
+
xTable: Ref<VxeTableInstance | undefined>;
|
|
9
|
+
tableConfig: Ref<Partial<SabTableProps>>;
|
|
10
|
+
}) => {
|
|
11
|
+
onEvents: Record<string, Function>;
|
|
12
|
+
};
|
package/es/core/Table/index.d.ts
CHANGED
|
@@ -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:
|
|
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>> & {
|