
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
yzb-components
Advanced tools
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"/>
FAQs
一直播前端ui库
The npm package yzb-components receives a total of 0 weekly downloads. As such, yzb-components popularity was classified as not popular.
We found that yzb-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.