
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
冠美基础组件库。
本项目 copy 自vant-weapp@1.10.16。通过转换工具扩展到【京东】、【支付宝/淘宝】、【飞书/抖音】3 个平台版本。自第一次构建后,4 个平台独立维护。
使用 Vant Weapp 前,请确保你已经学习过微信官方的 小程序简易教程 和 自定义组件介绍。
小程序已经支持使用 npm 安装第三方包,详见 npm 支持
# 安装 支付宝/淘宝
npm i @gmkj/vant-my -S --production
# 安装 微信
npm i @gmkj/vant-wx -S --production
# 安装 飞书/抖音
npm i @gmkj/vant-tt -S --production
# 安装 京东
npm i @gmkj/vant-jd -S --production
直接通过 git 下载 Vant Weapp 源代码,并将 dist
目录拷贝到自己的项目中。
git clone https://gitee.com/chongqings_crown_and_beauty/gm-vant.git
以按钮组件为例,只需要在 json 文件中引入按钮对应的自定义组件即可
{
"usingComponents": {
"van-button": "/path/to/vant-weapp/dist/button/index"
}
}
接着就可以在 wxml 中直接使用组件
<van-button type="primary">按钮</van-button>
# 安装项目依赖
npm install
# 执行组件copy
npm run build
打开微信开发者工具,把/examples/wecaht
目录添加进去就可以预览示例了。
FAQs
#### 介绍
We found that @gmkj/vant 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.