hzzt-table 1.0.5 → 2.0.0

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "dist/index.css",
6
6
  "types": "types/index.d.ts",
7
7
  "license": "MIT",
8
- "version": "1.0.5",
8
+ "version": "2.0.0",
9
9
  "description": "A Table Component Library for Vue 3",
10
10
  "type": "module",
11
11
  "scripts": {
@@ -1,3 +1,4 @@
1
1
  export declare const I18N_INJECT_KEY: unique symbol;
2
2
  export declare const SIZE_INJECT_KEY: unique symbol;
3
3
  export declare const SETTING_INJECT_KEY: unique symbol;
4
+ export declare const HTTP_INJECT_KEY: unique symbol;
package/types/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { I18N_INJECT_KEY, SETTING_INJECT_KEY, SIZE_INJECT_KEY } from "./const";
1
+ import { I18N_INJECT_KEY, SETTING_INJECT_KEY, SIZE_INJECT_KEY, HTTP_INJECT_KEY } from "./const";
2
2
  import { install, setConfig, setLanguage, HzztTable, VxeJsxTable, JsxTable, TableMenu, SimpleTable, ConfigButton } from "./plugins";
3
3
  import { useButton } from './hooks/useButton';
4
4
  import { useMenu } from './hooks/useMenu';
5
5
  export * from './types/instances.ts';
6
- export { install, I18N_INJECT_KEY, SIZE_INJECT_KEY, SETTING_INJECT_KEY, setConfig, setLanguage, HzztTable, VxeJsxTable, JsxTable, TableMenu, SimpleTable, ConfigButton, useButton, useMenu, };
6
+ export { install, I18N_INJECT_KEY, SIZE_INJECT_KEY, SETTING_INJECT_KEY, HTTP_INJECT_KEY, setConfig, setLanguage, HzztTable, VxeJsxTable, JsxTable, TableMenu, SimpleTable, ConfigButton, useButton, useMenu, };
7
7
  declare const _default: {
8
8
  install: (app: import("vue").App, options?: import("./plugins").InstallOptions) => void;
9
9
  };
@@ -7,12 +7,13 @@ import HzztTable from "../components/HzztTable.vue";
7
7
  import TableMenu from "../components/TableMenu.vue";
8
8
  import SimpleTable from "../components/SimpleTable.vue";
9
9
  import ConfigButton from "../components/ConfigButton.vue";
10
+ import { AxiosInstance } from "axios";
10
11
  export interface InstallOptions {
11
12
  i18n?: HzztI18n;
12
13
  size?: TableSize;
14
+ http?: AxiosInstance;
13
15
  config?: Record<string, any>;
14
16
  setting?: Record<string, any>;
15
17
  }
16
18
  declare const install: (app: App, options?: InstallOptions) => void;
17
- export declare function getApp(): App<any>;
18
19
  export { install, setConfig, setLanguage, HzztTable, VxeJsxTable, JsxTable, TableMenu, SimpleTable, ConfigButton, };