更新记录
1.0.4(2022-03-26) 下载此版本
布局优化
1.0.3(2022-03-26) 下载此版本
修改兼容平台信息
1.0.2(2022-03-26) 下载此版本
修复部分已知bug
查看更多平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | √ | √ | √ | √ | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | - | - | - | √ | - | √ | √ |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
介绍
lotusCalendar 日期选择控件,适用于H5、小程序、app端
插件的方式引入使用
1.xx.vue页面
import lotusCalendar from "../../components/Winglau14-lotusCalendar/Winglau14-lotusCalendar.vue";
2.vue页面内引用:该组件因放在根节点的最外层,不要放在当前input节点里面,不然会失效!!!
<lotusCalendar :calendarData="calendarData" @returnDate="calendarChange" @closeCalendar="closeCalendar"></lotusCalendar>
3.参数说明:
export default{
components:{
lotusCalendar
},
data () {
return {
calendarData:{
isShow: false,
choseTime: '2022-03-26'
},
form:{
businessDate:''
}
}
},
methods:{
// 日期选择
calendarChange(res){
if(res.time){
this.form.businessDate = res.time;
}
this.calendarData.isShow = res.isShow;
},
// 关闭日期控件
closeCalendar(res){
if(res.time){
this.form.businessDate = res.time;
}
this.calendarData.isShow = res.isShow;
}
}
}