
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@21cnfe/vui
Advanced tools
v1.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 37 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
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.