uni-app u-picker组件mode为"time"时间格式时,只展示时分秒,默认时间不回显
uni-app u-picker组件mode为"time"时间格式时,只展示时分秒,默认时间不回显
示例代码:
<u-picker :default-time="defaultTime" mode="time"
v-model="showTime" :params="timeParams" @confirm="timeChange"></u-picker>
timeParams 的值为 {
year: false,
month: false,
day: false,
hour: true,
minute: true,
second: true,
},
defaultTime:"09:15:10", 为默认值.
showTime打开为true时,弹窗没有默认值
操作步骤:
<u-picker :default-time="defaultTime" mode="time"
v-model="showTime" :params="timeParams" @confirm="timeChange"></u-picker>
timeParams 的值为 {
year: false,
month: false,
day: false,
hour: true,
minute: true,
second: true,
},
defaultTime:"09:15:10", 为默认值.
showTime打开为true时,弹窗没有默认值
预期结果:
打开有默认值
实际结果:
打开有默认值
bug描述:
u-picker组件mode为"time"时间格式时,params参数只有时分秒为true,其他只false,页面只展示时分秒,default-time设置为一个默认时间"09:15:10",结果打开不回显
更多关于uni-app u-picker组件mode为"time"时间格式时,只展示时分秒,默认时间不回显的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于uni-app u-picker组件mode为"time"时间格式时,只展示时分秒,默认时间不回显的实战教程也可以访问 https://www.itying.com/category-93-b0.html
你的picker用的是官方的uni-ui里面的picker吗,还是用的uview的