{"action":"opened","issue":{"url":"https://api.github.com/repos/mipengine/mip2/issues/145","repository_url":"https://api.github.com/repos/mipengine/mip2","labels_url":"https://api.github.com/repos/mipengine/mip2/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/mipengine/mip2/issues/145/comments","events_url":"https://api.github.com/repos/mipengine/mip2/issues/145/events","html_url":"https://github.com/mipengine/mip2/issues/145","id":348274342,"node_id":"MDU6SXNzdWUzNDgyNzQzNDI=","number":145,"title":"m-bind 改为绑定属性值本身，而不是字符串","user":{"login":"yenshih","id":14069488,"node_id":"MDQ6VXNlcjE0MDY5NDg4","avatar_url":"https://avatars3.githubusercontent.com/u/14069488?v=4","gravatar_id":"","url":"https://api.github.com/users/yenshih","html_url":"https://github.com/yenshih","followers_url":"https://api.github.com/users/yenshih/followers","following_url":"https://api.github.com/users/yenshih/following{/other_user}","gists_url":"https://api.github.com/users/yenshih/gists{/gist_id}","starred_url":"https://api.github.com/users/yenshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenshih/subscriptions","organizations_url":"https://api.github.com/users/yenshih/orgs","repos_url":"https://api.github.com/users/yenshih/repos","events_url":"https://api.github.com/users/yenshih/events{/privacy}","received_events_url":"https://api.github.com/users/yenshih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T11:09:09Z","updated_at":"2018-08-07T11:09:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**要解决什么问题**\r\n\r\n在使用 Vue CustomElement 时，有如下情况\r\n```html\r\n<mip-data>\r\n  <script type=\"application/json\">\r\n    {\"current\": 1}\r\n  </script>\r\n</mip-data>\r\n\r\n<mip-v-btn-toggle m-bind:input-value=\"current\">\r\n  <!-- ... -->\r\n</mip-v-btn-toggle>\r\n```\r\n此时对应的 Vue Component 中，`this.inputValue` 的值为 `'1'`，而不是期望的 `1`，导致后续逻辑错误。\r\n\r\n**描述一下你理想中的解决方案**\r\n\r\n目前类型转换逻辑在 [此处](https://github.com/mipengine/mip2/blob/dev/packages/mip/src/vue-custom-element/index.js#L75)。\r\n考虑将 `convertAttributeValue` 的调用提前。\r\n"}}
{"actor":{"display_login":"yenshih"}}