mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-09-07 00:09:49 +08:00
parent
ede3a674ae
commit
16be4f7171
@ -133,7 +133,7 @@ VantComponent({
|
|||||||
const { clearable, readonly } = this.data;
|
const { clearable, readonly } = this.data;
|
||||||
const { focused, value } = this;
|
const { focused, value } = this;
|
||||||
this.setData({
|
this.setData({
|
||||||
showClear: clearable && focused && !!value && !readonly
|
showClear: !!clearable && !!focused && !!value && !readonly
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user