storybook-vue3-router
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ /** |
@@ -13,6 +13,4 @@ import { app } from "@storybook/vue3"; | ||
if (context.viewMode === 'story' && !vueRouterGlobalProperty && !vueRouteGlobalProperty) { | ||
console.log(app); | ||
if (!vueRouterGlobalProperty && !vueRouteGlobalProperty) { | ||
/* get routes from either `routesParam` or use `defaultRoutes` */ | ||
var routes = routesParam || defaultRoutes; | ||
@@ -19,0 +17,0 @@ /* create vue router */ |
export declare const ADDON_ID = "vue3-router"; |
import type { RouteRecordRaw } from "vue-router"; | ||
export declare const defaultRoutes: RouteRecordRaw[]; |
import vueRouter from './withVueRouter'; | ||
export default vueRouter; |
@@ -0,0 +0,0 @@ /** |
import { RouteRecordRaw } from "vue-router"; | ||
export declare const withVueRouter: (routesParam?: Array<RouteRecordRaw>, beforeEach?: Function) => (...args: any) => any; | ||
export default withVueRouter; |
{ | ||
"name": "storybook-vue3-router", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A Storybook decorator that allows you to build stories for your routing-aware components.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ function setup(entry = []) { |
@@ -0,0 +0,0 @@ # Storybook Vue 3 Router |
Sorry, the diff of this file is not supported yet
19477
27
252