更新记录
1.0(2025-04-22) 下载此版本
u-search改进,禁用时候可以触发点击事件,自定义文字说明
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | - | - | - | - |
第一步,下载后将u-search-disabled文件夹放入uview-ui\components下
第二步,前端使用
<u-search-disabled :show-action="true" action-text="搜索" disabled :animation="false" placeholder="选择日期" @click="searchCalendar" @custom="onSearch">
<text slot="disabledText">{{disabledText}}</text>
</u-search-disabled>
......
data() {
return {
disabledText:'请选择日期',
machineShow:false,
}
},
methods: {
searchCalendar(){
console.log(1)
},
onSearch(){
console.log(2)
},