|
@@ -62,9 +62,9 @@ export default function () {
|
|
|
const me = this
|
|
|
this.on({
|
|
|
change(sender, newVal) {
|
|
|
- const {hideTrigger, disabled, readOnly} = sender
|
|
|
- if (hideTrigger || disabled || readOnly) {
|
|
|
- // 禁用、隐藏、只读状态下,不需要显示清空按钮
|
|
|
+ const {hideTrigger, disabled, readOnly, hideClear} = sender
|
|
|
+ if (hideTrigger || disabled || readOnly || hideClear) {
|
|
|
+ // 禁用、隐藏、只读、隐藏清空状态下,不需要显示清空按钮
|
|
|
return
|
|
|
}
|
|
|
|