1.1.10 • Published 7 years ago

wpy-wx-datepicker v1.1.10

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

微信小程序 wepyjs 第三方datePicker组件

datePicker

说明

官方的datPicker只有time和date两种模式。没有组合形式。所有开发了一个格式YYYY-MM-DD HH:MM的日期组件。 此组件依赖于wepyjs v1.5.2+

使用

有隐藏,有赋值,有事件触发,比较复杂。请看示例吧

安装组件

npm install wpy-wx-datepicker --save-dev

引入组件

// index.wpy
<template>
    <DatePicker :hidden.sync="hidden" :curPickTime.sync="curPickTime" @initDateemit="nitDateemitHandle" > </DatePicker>
</template>
<script>
    import wepy from 'wepy';
    import datePicker from 'wpy-wx-datepicker';

    export default class Index extends wepy.page {
        components = {
            datePicker: datePicker
        }

    }
</script>

调用方法(初始化默认值)

this.$broadcast('broadcast-initDatePicker', {
          curPickTime: this.curPickTime
        })

更多说明

参考github源码地址

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago