####安装依赖 npm install particle-effect-bg
- 导入
import ParticleEffect from 'particle-effect-bg'
- 局部注册或全局注册组件
全局
Vue.component('particle-effect-bg',ParticleEffect)
局部
components: {
'particle-effect': ParticleEffect
},
<particle-effect></particle-effect>