更新记录
1.0.0(2025-04-24) 下载此版本
第一版,入参有点少,希望大家可以多提意见,我会优化的!
平台兼容性
Vue2 | Vue3 |
---|---|
√ | × |
App | 快应用 | 微信小程序 | 支付宝小程序 | 百度小程序 | 字节小程序 | QQ小程序 |
---|---|---|---|---|---|---|
× | × | √ | √ | × | √ | × |
钉钉小程序 | 快手小程序 | 飞书小程序 | 京东小程序 | 鸿蒙元服务 |
---|---|---|---|---|
× | × | × | × | × |
H5-Safari | Android Browser | 微信浏览器(Android) | QQ浏览器(Android) | Chrome | IE | Edge | Firefox | PC-Safari |
---|---|---|---|---|---|---|---|---|
× | × | × | × | × | × | × | × | × |
插件使用
index.vue中引入组件 import timeRangePicker from '../../components/timeRangePicker.vue';
<timeRangePicker @cancel='cancel' @confirm='confirm' :defaultValue='defaultValue' :showMark='true'>
showM(){
this.showMark = true
},
cancel(){
this.showMark = false
},
confirm(e){
console.log(e); //e 开始时间 结束时间 [{start:[2000,1,1],end:[2000,12,31]}]
this.showMark = false
},