1.0.7 • Published 4 years ago
matrix3-uniapp v1.0.7
matrix3-uni
基于uni-app的UI组件库&展示网站
目录
组件、展示网站开发
安装
1. git clone git@172.31.13.131:matrix/uni.git
2. yarn
启动展示网站
yarn serve
开发组件
packages/ 组件本体存放目录
src/pages/ 组件example查看目录
构建组件
yarn build-lib
开发展示网站
src/pages 同常规vue项目
构建展示网站
yarn build:h5
上传
git push
组件库引用
安装
cd 业务项目根目录
yarn add git+http://域账号:域密码@172.31.13.131:8088/matrix/uni.git
使用
// src/main.js
// 1.全局注册
import Vue from 'vue'
import App from './App'
>>> import matrix3 from 'matrix3'
Vue.config.productionTip = false
>>> Vue.use(matrix3)
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// src/pages/*/*.vue
// 2.直接使用
<template>
>>> <DatePicker></DatePicker>
</template>
<script>
//...
</script>