JD style lightweight Vue component library, supporting mobile H5 and mini program development
VinUI refers to the design and implementation of NutUI (JD-style lightweight mobile component library), and the uniapp version implemented based on the Taro applet component library version NutUI-Vue
Modifications and adjustments have been made to some features of uniapp, and some new components have been added, which has also enhanced the functions of some components.
You can refer to the project documentation: Quick Start
VinUI provides the npm package and uni_modules package to install components.
# Using npm
npm install @vingogo/uni-ui
# Using yarn
yarn add @vingogo/uni-ui
# Using pnpm
pnpm add @vingogo/uni-uiUniapp Market Plugin Address: https://ext.dcloud.net.cn/plugin?id=11187
Download the VinUI code through Github, and then copy the packaged code to your own project:
git clone https://github.com/vingogo/vin-ui.gitpnpm ipackages/uni-ui directory, make personalized adjustments to the VinUI code that suits the businesspnpm run build:uni Generate files for copying under packages/uni-ui/uni_modules
pages.json : {
"easycom" : {
// 此处根据实际文件位置进行修改,如下为通过 npm 包安装的方式配置
"^vin-(.*)" : " @vingogo/uni-ui/lib/components/$1/index.vue "
},
// 此为本身已有的内容
"pages" : [
// ......
]
}Add the following code to the project entrance file main.ts or main.js file:
import '@vingogo/uni-ui/lib/style.css' ;< vin-button type="primary">button</ vin-button >The project is recommended to use pnpm to install and run, and start the project:
pnpm ipnpm run devpnpm run build:lib After executing the above command, the code for publishing npm will be generated under packages/uni-ui/lib
pnpm run build:uni After executing the above command, the code for publishing the uniapp market will be generated under packages/uni-ui/uni_modules
Regarding VinUI issues, please add WeChat to exchange. Please note: VinUI