1***@qq.com
1***@qq.com
  • 发布:2024-10-16 23:26
  • 更新:2024-10-17 10:48
  • 阅读:141

组件 v-model="date" type="date" 后,给 date 变量设置值为 "2024-10-16",安卓APP这边没有回显

分类:HBuilderX

<uni-datetime-picker type="date" v-model="date" @change="handleSearch" />

    async mounted() {  
        // this.date = getFormattedDate(new Date())  
        this.date = "2024-10-15"  
    },
2024-10-16 23:26 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

range 模式下也是,设置为 ["2024-10-01", "2024-10-31"] 就是没有显示在 UI 界面上

DCloud_UNI_yuhe

DCloud_UNI_yuhe

你好,你这样做应该是可以正常显示的,如果不能正常显示,可能是执行的声明周期有问题或者是其它原因导致没有赋值成功

要回复问题请先登录注册