@ntbl/ga-two

1.0.0 • Public • Published

ga-two

GitHub npm MIT

@ntbl/ga 插件,生成漂亮的顶底部模板。

目前,包括:

  • logo
  • 面包屑导航
  • 菜单

Installation

npm i @ntbl/ga-two --save

Usage

const Ga = require('@ntbl/ga')
const Ga = require('@ntbl/ga-two')
const router = require('./router')
const options = require('./package.json')

const app = new Ga({
  router,
  plugins: [ two(options) ]
})

app.$mount()

在路由(router)声明。

{
  path: '/',
  name: 'home',
  // 必须指定这个字段
  // 提示菜单的显示名
  alias: '首页',
  component: home
}

底部菜单会正确的显示 返回(ESC) 提示。

Options

  • name - 项目名

Store

two 存储在 app.store 对象上的全局数据:

  • app.store.layout.header 顶部模板
  • app.store.layout.footer 底部模板

Readme

Keywords

Package Sidebar

Install

npm i @ntbl/ga-two

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

6.47 kB

Total Files

4

Last publish

Collaborators

  • yeshimei