vue3-router-tab 1.0.2 → 1.0.4
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/lib/index.ts +4 -8
- package/package.json +7 -7
package/lib/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { App } from 'vue'
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
2
|
import RouterTab from './components/RouterTab.vue'
|
|
3
3
|
import RouterTabsPinia from './components/RouterTabsPinia.vue'
|
|
4
4
|
import { routerTabsKey } from './constants'
|
|
@@ -9,15 +9,11 @@ import type { RouterTabsContext } from './core/types'
|
|
|
9
9
|
|
|
10
10
|
export type { TabRecord, TabInput, RouterTabsOptions, CloseTabOptions } from './core/types'
|
|
11
11
|
|
|
12
|
-
export { routerTabsKey, useRouterTabs, useRouterTabsPiniaPersistence, RouterTabsPinia
|
|
12
|
+
export { routerTabsKey, useRouterTabs, useRouterTabsPiniaPersistence, RouterTabsPinia }
|
|
13
13
|
|
|
14
14
|
import "./scss/index.scss";
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
install(app: App): void
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const plugin: RouterTabPlugin = {
|
|
16
|
+
const plugin: Plugin = {
|
|
21
17
|
install(app: App) {
|
|
22
18
|
if ((plugin as any)._installed) return
|
|
23
19
|
;(plugin as any)._installed = true
|
|
@@ -49,4 +45,4 @@ const plugin: RouterTabPlugin = {
|
|
|
49
45
|
|
|
50
46
|
export default plugin
|
|
51
47
|
|
|
52
|
-
export { RouterTab }
|
|
48
|
+
export { RouterTab, RouterTabsPinia as RouterTabs }
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-router-tab",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"lib",
|
|
8
8
|
"index.d.ts"
|
|
9
9
|
],
|
|
10
|
-
"main": "dist/vue3-router-tab.
|
|
11
|
-
"module": "dist/vue3-router-tab.js",
|
|
10
|
+
"main": "dist/vue3-router-tab.cjs.js",
|
|
11
|
+
"module": "dist/vue3-router-tab.es.js",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./index.d.ts",
|
|
15
|
-
"import": "./dist/vue3-router-tab.js",
|
|
16
|
-
"require": "./dist/vue3-router-tab.
|
|
15
|
+
"import": "./dist/vue3-router-tab.es.js",
|
|
16
|
+
"require": "./dist/vue3-router-tab.cjs.js"
|
|
17
17
|
},
|
|
18
|
-
"./style": "./dist/
|
|
18
|
+
"./style": "./dist/vue3-router-tab.css"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "vite build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"pinia": "^3.0.3",
|
|
24
25
|
"vue": "^3.5.22",
|
|
25
26
|
"vue-router": "^4.5.1"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
29
|
-
"pinia": "^3.0.3",
|
|
30
30
|
"sass": "^1.93.2",
|
|
31
31
|
"sass-loader": "^16.0.5",
|
|
32
32
|
"typescript": "^5.9.2",
|