<uni-datetime-picker type="date" v-model="date" @change="handleSearch" />
async mounted() {
// this.date = getFormattedDate(new Date())
this.date = "2024-10-15"
},
<uni-datetime-picker type="date" v-model="date" @change="handleSearch" />
async mounted() {
// this.date = getFormattedDate(new Date())
this.date = "2024-10-15"
},
2 个回复
1***@qq.com (作者)
range 模式下也是,设置为 ["2024-10-01", "2024-10-31"] 就是没有显示在 UI 界面上
DCloud_UNI_yuhe
你好,你这样做应该是可以正常显示的,如果不能正常显示,可能是执行的声明周期有问题或者是其它原因导致没有赋值成功