{"action":"opened","issue":{"url":"https://api.github.com/repos/lmk123/selection-widget/issues/4","labels_url":"https://api.github.com/repos/lmk123/selection-widget/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/lmk123/selection-widget/issues/4/comments","events_url":"https://api.github.com/repos/lmk123/selection-widget/issues/4/events","html_url":"https://github.com/lmk123/selection-widget/issues/4","id":119968176,"number":4,"title":"它应该是一个 Vuejs mixin","user":{"login":"lmk123","id":5035625,"avatar_url":"https://avatars.githubusercontent.com/u/5035625?v=3","gravatar_id":"","url":"https://api.github.com/users/lmk123","html_url":"https://github.com/lmk123","followers_url":"https://api.github.com/users/lmk123/followers","following_url":"https://api.github.com/users/lmk123/following{/other_user}","gists_url":"https://api.github.com/users/lmk123/gists{/gist_id}","starred_url":"https://api.github.com/users/lmk123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmk123/subscriptions","organizations_url":"https://api.github.com/users/lmk123/orgs","repos_url":"https://api.github.com/users/lmk123/repos","events_url":"https://api.github.com/users/lmk123/events{/privacy}","received_events_url":"https://api.github.com/users/lmk123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T15:35:04Z","updated_at":"2015-12-02T15:35:04Z","closed_at":null,"body":"而不是现在“不伦不类”的基础配置。它使用起来应该是这个样子：\r\n\r\n```js\r\nimport stMixin from 'selection-widget';\r\n\r\nconst st = new Vue({\r\n  data:{\r\n    myData:null\r\n  },\r\n  mixins:[ stMixin ]\r\n});\r\n```\r\n\r\n作为 mixin 的话，就能给当前组件添加额外的方法，但模板则由当前组件提供。"}}