uni-ui的使用
当uni-app提供的基础组件不够使用时,比如像日历组件是基础组件没有的,这个时候我们就可以从uni-ui中去找我们要的日历组件,uni-ui类似于elemnet,antd vue一样是个组件库。
uni-ui官方文档
1、进入日历宫格组件
2、使用HBuilderX导入该组件
3、导入该组件
import uniCalendar from '@/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue'
4、注册组件
components: {uniCalendar}
5、使用组件
<uni-calendar :insert="true":lunar="true" :start-date="'2019-3-2'":end-date="'2019-5-20'"@change="change"></uni-calendar>