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

yzb-components

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yzb-components

一直播前端ui库

latest
npmnpm
Version
0.2.3
Version published
Weekly downloads
0
-100%
Maintainers
5
Weekly downloads
 
Created
Source

1.安装

npm install yzb-components --registry http://10.211.163.156:4873 -D

2.在main.js中引用组件,因为ui组件不是所有组件都用,以下提供两种方案按需加载方案,以apng为例:

1)在main.js中添加

      import Apng from 'yzb-components/lib/apng';

      Vue.use(Apng);

      在页面中使用:<yzb-apng src="http://fe.yizhibo.com/style/images/apng/icon10.png"/>

    2)安装 babel-plugin-import 插件:npm i babel-plugin-import -D   

     babel.config.js配置文件中添加配置:

       plugins: [

         ['import', {
           libraryName: 'yzb-components',
           libraryDirectory: 'lib',
           style: false
         }]
       ]
     在main.js中添加            
        import {Apng} from 'yzb-components';
        Vue.use(Apng);

       在页面中使用:<yzb-apng src="http://fe.yizhibo.com/style/images/apng/icon10.png"/> 

Keywords

一直播前端ui库

FAQs

Package last updated on 02 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