1.1.0 • Published 4 years ago
abm-h5-components v1.1.0
ABM H5 基于VantUI组件库
Node版本需要大于10.19.0
组件 需要将 JS 和 CSS 解耦,实现主题定制等功能,在编写代码时就要使用独立的 JS 和 CSS 文件,如下:
button
├─ demo # 组件示例
│ └─ index.vue # 组件示例入口
├─ index.js # 组件入口
├─ index.less # 组件样式,可以为 less 或 scss
└─ README.md # 组件文档
参考:
- https://github.com/youzan/vant/blob/dev/packages/vant-cli/docs/directory.md
- nuxt 项目中需要在 plugin中导入 import 'abm-h5-components/lib/index.less'
安装
nvm use 12.10.0
yarn install --registry=https://registry.npm.taobao.org
yarn build