Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@bnfe/bm-vue
Advanced tools
npm install @bnfe/bm-vue -S
全组件引入
import Vue from "vue";
import bmVue from "@bnfe/bm-vue";
// 引入全局样式
import "@bnfe/bm-vue/bm-vue.default.css";
Vue.use(bmVue);
按需引入
借助ElementUI
提供的babel-plugin-component,我们可以只引入需要的组件,以达到减小项目体积的目的。
首先,安装 babel-plugin-component:
npm install babel-plugin-component -D
然后,将 .babelrc 添加:
{
// ...
"plugins": [["component", {
"libraryName": "@bnfe/bm-vue",
"styleLibraryName": "theme"
}
]]
}
接下来,如果你只希望引入部分组件,那么只需要写入以下内容:
import { Button } from "@bnfe/bm-vue";
Vue.use(Button);
也可以通过 cdn 引入 umd 模块
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- import CSS -->
<link rel="stylesheet" href="//xxx/@bnfe/bm-vue/bm-vue.default.css" />
<!-- import JS -->
<script src="//cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
<script src="//xxx/@bnfe/bm-vue/bm-vue.umd.js"></script>
</head>
<body>
<div id="app">
<bm-button theme="primary">普通按钮</bm-button>
</div>
</body>
<script>
new Vue({
el: "#app",
});
</script>
</html>
FAQs
We found that @bnfe/bm-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.