更新记录

1.0.0(2021-03-24)

日期范围选择组件


平台兼容性

time-horizon是一个使用在微信小程序端的时间范围选择组件

<template>
    <view class="content">
        <timeHorizon ref='timeHorizon' @submitFun='submitFun'></timeHorizon>
        <!-- 组件使用 -->
    </view>
</template>

<script>
    import timeHorizon from '@/components/time-horizon/time-horizon.vue'//引入组件
    export default {
        data() {
            return {
                title: 'Hello'
            }
        },
        components:{
            timeHorizon //注册组件
        },
        onLoad() {

        },
        methods: {
            submitFun(obj){ //组件点击回调
                console.log(obj)
            }
        },
        onPullDownRefresh() { //下拉获取上一个月日历
            this.$refs.timeHorizon.showMoreMonth({key:-1}) 
            uni.stopPullDownRefresh()
        },
        onReachBottom(){//触底获取下一个月日历
            this.$refs.timeHorizon.showMoreMonth({key:1})
        }
    }
</script>

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问