j***@163.com
j***@163.com
  • 发布:2024-06-28 21:12
  • 更新:2024-06-29 17:22
  • 阅读:50

uni-datetime-picker组件如何取消“确定”按钮

分类:uni-app

<uni-datetime-picker type="date" return-type="string" v-model="htParam.htDeadline" />

这个控件 如何设置才能 不出现 确定按钮,并且 点击日期 即可选择当前点击的日期?就像
https://zh.uniapp.dcloud.io/component/uniui/uni-datetime-picker.html
这个例子 显示的样子

2024-06-28 21:12 负责人:无 分享
已邀请:
ipink

ipink - 全栈

41

DCloud_UNI_yuhe

DCloud_UNI_yuhe

暂不支持弹出框弹出同时去掉确定按钮,如果确有需求可以在 uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vueclass="uni-date-changed uni-date-btn--ok" 的标签去掉

BeardYound

BeardYound

玩个花的,当选择框打开定位一个元素上去,白色背景遮住按钮,或者里面放个话术说明试试

要回复问题请先登录注册