Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

InputITtem 清空内容的icon一直存在的问题 #196

@MickeyMouse623

Description

@MickeyMouse623

问题:InputITtem 设置 clearable 属性后, 清空内容的icon一直存在的问题

解决:

在 mand-mobile/lib/input-item/index.js 文件 406 行

_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isInputEmpty)

// 修改为
_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isInputEmpty && _vm.isInputFocus)

修改后的状态为:聚焦且有内容时显示clear,丢失焦点则display: none

Metadata

Metadata

Assignees

Labels

@ComponentsComponents relatedbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions