Socket
Socket
Sign inDemoInstall

zhoubd-npm-demo

Package Overview
Dependencies
10
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zhoubd-npm-demo

A Vue-npm package project


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
12.2 MB
Created
Weekly downloads
 

Readme

Source

zhoubd-npm-demo

A Vue.js project

安装方法

# 安装方法
1.npm安装:
npm install zhoubd-npm-demo
1.yarn安装:
yarn add zhoubd-npm-demo
# 引用zhoubd-npm-demo.js,使用方法见下文

使用方法

# 1.组件内使用

<template>
    <Main :propData="propData"></Main>
</template>
<script>
    import Main from 'zhoubd-npm-demo';

    components: {
        Main
    }
</script>

#2.全局使用

在main.js下
import Main from 'zhoubd-npm-demo'
Vue.use(Main)
然后在其他.vue文件里面,直接使用组件 <zhoubd-npm-demo/> 即可

FAQs

Last updated on 25 Sep 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc