uni-app-uni ui

零。官方文档

一。例子:日历

  1. 文档选择扩展组件
  2. 点击使用hbuilderX导入插件
  3. 导入成功后,查看组件使用方法
  4. 使用组件
<template>
    <view class="content">
        <view>
            <uni-calendar 
            :insert="true"
            :lunar="true" 
            :start-date="'2019-3-2'"
            :end-date="'2019-5-20'"
            @change="change"
             />
        </view>
    </view>
</template>

<script>
    import calendar from '../../components/uni-calendar/uni-calendar.vue'
    export default {
        data() {
            return {}
        },
        methods: {
            change(e) {
                console.log("收到",e)
            }
        },
        components: {
            calendar
        }
    }
</script>

 

posted @ 2020-09-03 17:57  ♥之  阅读(198)  评论(0编辑  收藏  举报