0.1.7 • Published 7 years ago

wepy-calendar-range v0.1.7

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

微信小程序 wepy-calendar-range 插件

说明

一个很小的日历选择插件

npm.io

使用

安装组件

npm install wepy-calendar-range --save

引入组件

// index.wpy
<template>
    <calendar class="calendar" :minDate.sync = "minDate" :startDay.sync = "startDay" :endDay.sync = "endDay" :period.sync = "period" :showPeriod = "showPeriod" :startDayText = "startDayText" :endDayText = "endDayText"></calendar>
</template>
<script>
    import wepy from 'wepy';
    import calendar from 'wepy-calendar-range';

    export default class Index extends wepy.page {
        data = {
          startDay: '2018-3-28', //开始时间
          endDay: '2018-4-5', //结束时间
          period: '', //选择周期
          minDate: '2018-3-20', //最小时间
        },
        components = {
            calendar: calendar
        };
    }
</script>

属性说明

属性/方法必填默认值备注
startDaynull开始时间
endDaynull结束时间
periodnull选择周期
minDatenull最小时间
showPeriodfalse是否显示区间值
startDayText开始日期开始显示文案
endDayText结束日期结束显示文案

更多说明

现在还很初级,后续会不断完善

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago