vue3-router-tab 1.3.7 → 1.3.9
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/index.d.ts +25 -1
- package/package.json +2 -12
package/index.d.ts
CHANGED
|
@@ -15,6 +15,28 @@ import type {
|
|
|
15
15
|
} from './lib/core/types'
|
|
16
16
|
import type { ColorStyle, RouterTabsThemeOptions } from './lib/theme'
|
|
17
17
|
|
|
18
|
+
export interface RouterTabsPluginOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Whether to initialise the theme system automatically during install.
|
|
21
|
+
* Defaults to `true`.
|
|
22
|
+
*/
|
|
23
|
+
initTheme?: boolean
|
|
24
|
+
/**
|
|
25
|
+
* Theme options passed to `initRouterTabsTheme` when `initTheme` is enabled.
|
|
26
|
+
*/
|
|
27
|
+
themeOptions?: RouterTabsThemeOptions
|
|
28
|
+
/**
|
|
29
|
+
* Global component name used when registering `RouterTab`.
|
|
30
|
+
* Defaults to the component's `name` option or `"RouterTab"`.
|
|
31
|
+
*/
|
|
32
|
+
componentName?: string
|
|
33
|
+
/**
|
|
34
|
+
* Global component name used when registering `RouterTabs`.
|
|
35
|
+
* Defaults to the component's `name` option or `"RouterTabs"`.
|
|
36
|
+
*/
|
|
37
|
+
tabsComponentName?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
18
40
|
export type {
|
|
19
41
|
TabRecord,
|
|
20
42
|
TabInput,
|
|
@@ -95,7 +117,9 @@ export declare const RouterTab: DefineComponent<{
|
|
|
95
117
|
persistence: RouterTabsPersistenceOptions | null
|
|
96
118
|
}>
|
|
97
119
|
|
|
98
|
-
export interface RouterTabPlugin
|
|
120
|
+
export interface RouterTabPlugin {
|
|
121
|
+
install: (app: App, options?: RouterTabsPluginOptions) => void
|
|
122
|
+
}
|
|
99
123
|
|
|
100
124
|
declare const plugin: RouterTabPlugin
|
|
101
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-router-tab",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -9,16 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"main": "dist/vue3-router-tab.umd.cjs",
|
|
11
11
|
"module": "dist/vue3-router-tab.js",
|
|
12
|
-
"
|
|
13
|
-
".": {
|
|
14
|
-
"types": "./index.d.ts",
|
|
15
|
-
"import": "./dist/vue3-router-tab.js",
|
|
16
|
-
"require": "./dist/vue3-router-tab.umd.cjs",
|
|
17
|
-
"default": "./dist/vue3-router-tab.js"
|
|
18
|
-
},
|
|
19
|
-
"./style": "./dist/vue3-router-tab.css",
|
|
20
|
-
"./package.json": "./package.json"
|
|
21
|
-
},
|
|
12
|
+
"types": "index.d.ts",
|
|
22
13
|
"scripts": {
|
|
23
14
|
"build": "vite build",
|
|
24
15
|
"prepublishOnly": "npm run build"
|
|
@@ -60,7 +51,6 @@
|
|
|
60
51
|
"bugs": {
|
|
61
52
|
"url": "https://github.com/anilshr25/vue3-router-tab/issues"
|
|
62
53
|
},
|
|
63
|
-
"types": "index.d.ts",
|
|
64
54
|
"pnpm": {
|
|
65
55
|
"onlyBuiltDependencies": [
|
|
66
56
|
"@parcel/watcher",
|