
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
bk-magic-vue
Advanced tools
English | 简体中文
基于蓝鲸 Magicbox 和 Vue 的前端组件库
$ npm install --save bk-magic-vue
import bkMagicVue from 'bk-magic-vue'
import 'bk-magic-vue/dist/bk-magic-vue.min.css'
Vue.use(bkMagicVue)
按需引入我们需要借助 babel-plugin-import-bk-magic-vue 来实现。
首先,安装 babel-plugin-import-bk-magic-vue
npm i babel-plugin-import-bk-magic-vue -D
然后需要在项目的 .babelrc
文件中 plugins
增加配置
// baseLibName 是 bk-magic-vue 组件库的 package name,默认值为 bk-magic-vue
{
"presets": ...,
"plugins": [
...
["import-bk-magic-vue", {
"baseLibName": "bk-magic-vue"
}]
]
}
之后就可以用如下语法形式来实现按需引用了
import { bkButton } from 'bk-magic-vue'
import { bkButton as cc } from 'bk-magic-vue'
import { bkButton, bkDropdownMenu } from 'bk-magic-vue'
import { bkButton as cc, bkDropdownMenu as dd } from 'bk-magic-vue'
console.log(bkButton)
console.log(cc)
console.log(bkDropdownMenu)
console.log(dd)
npm run dev
npm run build
对于项目感兴趣,想一起贡献并完善项目请参阅Contributing Guide。
腾讯开源激励计划 鼓励开发者的参与和贡献,期待你的加入。
基于 MIT 协议, 详细请参考LICENSE
FAQs
基于蓝鲸 Magicbox 和 Vue 的前端组件库
The npm package bk-magic-vue receives a total of 380 weekly downloads. As such, bk-magic-vue popularity was classified as not popular.
We found that bk-magic-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.