微信小程序 wepyjs 第三方datePicker组件
说明
官方的datPicker只有time和date两种模式。没有组合形式。所有开发了一个格式YYYY-MM-DD HH:MM的日期组件。 此组件依赖于wepyjs v1.5.2+。
使用
有隐藏,有赋值,有事件触发,比较复杂。请看示例吧
安装组件
npm install wpy-wx-datepicker --save-dev
引入组件
// index.wpy<template> <DatePicker :hiddensync="hidden" :curPickTimesync="curPickTime" @initDateemit="nitDateemitHandle" > </DatePicker></template><script> ; ; page components = datePicker: datePicker </script>
调用方法(初始化默认值)
this
更多说明
参考github源码地址。