@wx-design/components 0.8.7 → 0.8.8

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.
@@ -0,0 +1,32 @@
1
+ import { App, Ref } from "vue";
2
+ import type { InjectionKey } from "vue";
3
+ export declare const injectSabDesignLocaleKey: InjectionKey<Ref<{
4
+ sabDesign: {
5
+ table: {
6
+ set: {
7
+ selectAll: string;
8
+ tableConfig: string;
9
+ };
10
+ loadingText: string;
11
+ emptyText: string;
12
+ };
13
+ };
14
+ }>>;
15
+ export declare const useConfigProvide: () => {
16
+ locale: {
17
+ sabDesign: {
18
+ table: {
19
+ set: {
20
+ selectAll: string;
21
+ tableConfig: string;
22
+ };
23
+ loadingText: string;
24
+ emptyText: string;
25
+ };
26
+ };
27
+ };
28
+ };
29
+ export declare const ConfigProvider: {
30
+ install(app: App): any;
31
+ useLocale(lang: Ref<string>): void;
32
+ };
@@ -2,12 +2,13 @@ import { VxeTableInstance } from "vxe-table";
2
2
  import type { SabTableProps } from "../../types/table";
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>, {
4
4
  getInstance: () => VxeTableInstance | undefined;
5
+ reloadRows: (rows: any) => void;
5
6
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
7
  [x: string]: (...args: unknown[]) => void;
7
8
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabTableProps>, Partial<SabTableProps>>>>, {
9
+ class: any;
8
10
  name: string;
9
11
  data: import("vxe-table").VxeTablePropTypes.Data<import("vxe-table").VxeTableDataRow>;
10
- class: any;
11
12
  id: string;
12
13
  size: import("vxe-table").SizeType;
13
14
  cellClassName: import("vxe-table").VxeTablePropTypes.CellClassName<import("vxe-table").VxeTableDataRow>;
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from "./core/Table";
2
2
  export { default as SabTable } from "./core/Table";
3
3
  export { default as SabTableSet } from "./core/Table/components/TableSet/index.vue";
4
- export { default as SabDesignConfigProvider } from "./core/SabDesignConfigProvider/index.vue";
4
+ export { default as SabDesignConfigProvider } from "./core/ConfigProvider/index.vue";