{"action":"opened","issue":{"url":"https://api.github.com/repos/museui/muse-ui/issues/52","repository_url":"https://api.github.com/repos/museui/muse-ui","labels_url":"https://api.github.com/repos/museui/muse-ui/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/museui/muse-ui/issues/52/comments","events_url":"https://api.github.com/repos/museui/muse-ui/issues/52/events","html_url":"https://github.com/museui/muse-ui/issues/52","id":189956977,"number":52,"title":"mu-text-field设置type为number后，maxLength显示错误","user":{"login":"mokaikai","id":11897616,"avatar_url":"https://avatars.githubusercontent.com/u/11897616?v=3","gravatar_id":"","url":"https://api.github.com/users/mokaikai","html_url":"https://github.com/mokaikai","followers_url":"https://api.github.com/users/mokaikai/followers","following_url":"https://api.github.com/users/mokaikai/following{/other_user}","gists_url":"https://api.github.com/users/mokaikai/gists{/gist_id}","starred_url":"https://api.github.com/users/mokaikai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mokaikai/subscriptions","organizations_url":"https://api.github.com/users/mokaikai/orgs","repos_url":"https://api.github.com/users/mokaikai/repos","events_url":"https://api.github.com/users/mokaikai/events{/privacy}","received_events_url":"https://api.github.com/users/mokaikai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T06:56:56Z","updated_at":"2016-11-17T06:56:56Z","closed_at":null,"body":"```\r\n<mu-text-field \r\nhintText=\"输入手机号\" \r\n:fullWidth=\"true\"\r\nicon=\"phone\" \r\nerrorText=\"\" \r\n:maxLength=\"11\" \r\ntype=\"number\"/>\r\n```\r\n![screen shot 2016-11-17 at 14 53 34](https://cloud.githubusercontent.com/assets/11897616/20379189/d81b9aca-acd5-11e6-849f-b5064e180f96.png)\r\n\r\n```\r\n inputValue (val) {\r\n      this.charLength = this.maxLength && this.inputValue ? this.inputValue.length : 0\r\n      this.$emit('input', val)\r\n      this.$emit('change', val)\r\n    }\r\n```\r\n直接用this.inputValue.length无法获得number的长度。\r\n"}}
{"actor":{"display_login":"mokaikai"}}