New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ntbl/ga-two

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ntbl/ga-two

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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

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 底部模板

Keywords

FAQs

Package last updated on 24 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc