Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
inputIcon没有判断disabled属性,导致在禁用时也能清空内容
  • Loading branch information
jiawulin001 committed Aug 9, 2019
1 parent a2ed16d commit 3373659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/auto-complete/auto-complete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
computed: {
inputIcon () {
let icon = '';
if (this.clearable && this.currentValue) {
if (this.clearable && this.currentValue && !this.disabled) {
icon = 'ios-close';
} else if (this.icon) {
icon = this.icon;
Expand Down

0 comments on commit 3373659

Please sign in to comment.