puan-vue2-uni
v1.3.3
Published
``` npm init -y ```
Downloads
32
Readme
使用说明
使用前说明如果项目中还没有package.json文件则需要先进行初始化
npm init -y
安装
npm i puan-vue2-uni -S
在main.js中引入
import PuanUni from "puan-vue2-uni"
// 下面部分代码需放在 import Vue from 'vue'之后
Vue.use(PuanUni)
样式导入
@import "puan-vue2-uni/css/index.css";
配置组件自动加载
在pages.json文件中的easycom数据加入以下代码
"system-(.*)": "puan-vue2-uni/components/$1/$1.vue"