New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wind-components

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wind-components

vue components

latest
npmnpm
Version
1.0.7
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

wind-components

vue component

引入组件

main.js中

  • 全局引入
import Vue from 'vue'
// 引入
import WindComponents from 'wind-components'
import App from './App.vue'

// 注册全局组件
Vue.use(WindComponents)

new Vue({
  el: '#app',
  render: h => h(App)
})
  • 局部引用
import Vue from 'vue'
import { Header, Footer } from 'wind-components'
import App from './App.vue'

Vue.component(Header.name, Header)
Vue.component(Footer.name, Footer)
/* 或写为
 * Vue.use(Header)
 * Vue.use(Footer)
 */

new Vue({
  el: '#app',
  render: h => h(App)
})

FAQs

Package last updated on 29 Mar 2018

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