{"action":"created","issue":{"url":"https://api.github.com/repos/miniflycn/Ques/issues/35","labels_url":"https://api.github.com/repos/miniflycn/Ques/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/miniflycn/Ques/issues/35/comments","events_url":"https://api.github.com/repos/miniflycn/Ques/issues/35/events","html_url":"https://github.com/miniflycn/Ques/issues/35","id":92905497,"number":35,"title":"参考至polymer的组件自定义extend方案","user":{"login":"miniflycn","id":2239584,"avatar_url":"https://avatars.githubusercontent.com/u/2239584?v=3","gravatar_id":"","url":"https://api.github.com/users/miniflycn","html_url":"https://github.com/miniflycn","followers_url":"https://api.github.com/users/miniflycn/followers","following_url":"https://api.github.com/users/miniflycn/following{/other_user}","gists_url":"https://api.github.com/users/miniflycn/gists{/gist_id}","starred_url":"https://api.github.com/users/miniflycn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miniflycn/subscriptions","organizations_url":"https://api.github.com/users/miniflycn/orgs","repos_url":"https://api.github.com/users/miniflycn/repos","events_url":"https://api.github.com/users/miniflycn/events{/privacy}","received_events_url":"https://api.github.com/users/miniflycn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T16:29:02Z","updated_at":"2015-07-12T16:25:08Z","closed_at":null,"body":"element允许设置几样东西：\r\n1. 允许设置key = value，例如：<ele key=\"value\"></ele>\r\n2. 允许设置data，例如：<ele data=\"./xxx.json\"></ele>\r\n3. 允许设置内部元素，例如：\r\n```\r\n<ele>\r\n    <img src=\"xxx.jpg\">\r\n</ele>\r\n```"},"comment":{"url":"https://api.github.com/repos/miniflycn/Ques/issues/comments/120738555","html_url":"https://github.com/miniflycn/Ques/issues/35#issuecomment-120738555","issue_url":"https://api.github.com/repos/miniflycn/Ques/issues/35","id":120738555,"user":{"login":"miniflycn","id":2239584,"avatar_url":"https://avatars.githubusercontent.com/u/2239584?v=3","gravatar_id":"","url":"https://api.github.com/users/miniflycn","html_url":"https://github.com/miniflycn","followers_url":"https://api.github.com/users/miniflycn/followers","following_url":"https://api.github.com/users/miniflycn/following{/other_user}","gists_url":"https://api.github.com/users/miniflycn/gists{/gist_id}","starred_url":"https://api.github.com/users/miniflycn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miniflycn/subscriptions","organizations_url":"https://api.github.com/users/miniflycn/orgs","repos_url":"https://api.github.com/users/miniflycn/repos","events_url":"https://api.github.com/users/miniflycn/events{/privacy}","received_events_url":"https://api.github.com/users/miniflycn/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T16:25:08Z","updated_at":"2015-07-12T16:25:08Z","body":"这个功能已经finish。具体参考：\r\nhttps://github.com/miniflycn/Ques/blob/master/src/ui.html\r\n\r\n例如组件ui-button，其模板为：\r\n```\r\n<button class=\"ui-button\"><content></content></button>\r\n```\r\n\r\n则可以如此使用该组件：\r\n```\r\n<ui-button class=\"ui-info\">我是按钮</ui-button>\r\n```\r\n\r\n将会构编译成下面内容：\r\n```\r\n<button class=\"ui-button ui-info\">我是按钮</button>\r\n```"}}