1.2.3 • Published 10 months ago

@dabobo/utils v1.2.3

Weekly downloads
-
License
-
Repository
gitlab
Last release
10 months ago

Install

yarn add @dabobo/utils 或者 npm i @dabobo/utils

Useage

/**
  declare module 'utils' {
    export function createRouterMap(context: typeof require.context, exclude?: RegExp) : routerMap;

    type routerMap = {
      routes: Array<router>;
      map: {
        path: string;
        uri: string;
        component: object;
      }
    }

    type router = {
      path: string;
      uri: string;
      component: any; 
      children: Array<router>
    }
  }
**/

import { createRouterMap } from '@dabobo/utils';

const { routes } = createRouterMap(
  require.context('./src/views', true, /\.vue/, 'lazy'),
  /\/404\.vue/
);
1.2.3

10 months ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago