
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@21cnfe/vui
Advanced tools
🚩 BREAKING CHANGESv1.2.0版本对组件名前缀进行统一,原 am 前缀组件更改为 ok 前缀。组件库内部 class 类名由 am- 前缀调整为 ok-。若在旧项目中对组件样式做过调整,在使用新版本组件时,注意要更改对应使用组件的前缀名为 ok-。
npm i @21cnfe/vui全量引入方式:
import Vui from '@21cnfe/vui'
import '@21cnfe/vui/styles/antd-mobile.css'
Vue.use(Vui)
按需引入方式:
安装 babel-plugin-component
npm i babel-plugin-component
在 babel.config.js 中加入以下代码:
plugins: [[
// 配置按需引入插件babel-plugin-component
"component",
{
// 库的名字
"libraryName": ""@21cnfe/vui",
// 存放库文件的文件夹
"libDir": "dist/lib/components",
}
]]
最后按照如下方式引入,插件会自动帮你转换路径
-1、全局注册
import { Actionsheet } from '@21cnfe/vui'
Vue.component('actionsheet', Actionsheet)
-2、局部注册
import { Actionsheet } from '@21cnfe/vui'
export default {
components: {
Actionsheet
}
}
FAQs
基于 Ant Design 和 Vue 的移动端UI组件库。
The npm package @21cnfe/vui receives a total of 26 weekly downloads. As such, @21cnfe/vui popularity was classified as not popular.
We found that @21cnfe/vui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.