{"action":"opened","issue":{"url":"https://api.github.com/repos/didi/mand-mobile/issues/196","repository_url":"https://api.github.com/repos/didi/mand-mobile","labels_url":"https://api.github.com/repos/didi/mand-mobile/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/didi/mand-mobile/issues/196/comments","events_url":"https://api.github.com/repos/didi/mand-mobile/issues/196/events","html_url":"https://github.com/didi/mand-mobile/issues/196","id":356298420,"node_id":"MDU6SXNzdWUzNTYyOTg0MjA=","number":196,"title":"InputITtem 清空内容的icon一直存在的问题","user":{"login":"MickeyMouse623","id":18524460,"node_id":"MDQ6VXNlcjE4NTI0NDYw","avatar_url":"https://avatars0.githubusercontent.com/u/18524460?v=4","gravatar_id":"","url":"https://api.github.com/users/MickeyMouse623","html_url":"https://github.com/MickeyMouse623","followers_url":"https://api.github.com/users/MickeyMouse623/followers","following_url":"https://api.github.com/users/MickeyMouse623/following{/other_user}","gists_url":"https://api.github.com/users/MickeyMouse623/gists{/gist_id}","starred_url":"https://api.github.com/users/MickeyMouse623/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MickeyMouse623/subscriptions","organizations_url":"https://api.github.com/users/MickeyMouse623/orgs","repos_url":"https://api.github.com/users/MickeyMouse623/repos","events_url":"https://api.github.com/users/MickeyMouse623/events{/privacy}","received_events_url":"https://api.github.com/users/MickeyMouse623/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-02T17:13:58Z","updated_at":"2018-09-02T17:13:58Z","closed_at":null,"author_association":"NONE","body":"### 问题：InputITtem 设置 clearable 属性后， 清空内容的icon一直存在的问题\r\n### 解决：\r\n在 mand-mobile/lib/input-item/index.js 文件 406 行\r\n```javascript\r\n_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isInputEmpty)\r\n\r\n// 修改为\r\n_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isInputEmpty && _vm.isInputFocus)\r\n```\r\n修改后的状态为：聚焦且有内容时显示clear，丢失焦点则display: none"}}
{"actor":{"display_login":"MickeyMouse623"}}