{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/esui/issues/488","labels_url":"https://api.github.com/repos/ecomfe/esui/issues/488/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/esui/issues/488/comments","events_url":"https://api.github.com/repos/ecomfe/esui/issues/488/events","html_url":"https://github.com/ecomfe/esui/issues/488","id":91402240,"number":488,"title":"增加对custom tag非data-ui-前缀的attribtue解析支持","user":{"login":"Exodia","id":2111298,"avatar_url":"https://avatars.githubusercontent.com/u/2111298?v=3","gravatar_id":"","url":"https://api.github.com/users/Exodia","html_url":"https://github.com/Exodia","followers_url":"https://api.github.com/users/Exodia/followers","following_url":"https://api.github.com/users/Exodia/following{/other_user}","gists_url":"https://api.github.com/users/Exodia/gists{/gist_id}","starred_url":"https://api.github.com/users/Exodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exodia/subscriptions","organizations_url":"https://api.github.com/users/Exodia/orgs","repos_url":"https://api.github.com/users/Exodia/repos","events_url":"https://api.github.com/users/Exodia/events{/privacy}","received_events_url":"https://api.github.com/users/Exodia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-27T02:22:55Z","updated_at":"2015-07-04T06:53:27Z","closed_at":null,"body":"用 custom tag 意味着这个标签有区别于标准 html 标签的含义，自然也不需要 data-ui 前缀来和 html 标准属性区分了，同时也能够让整个标签的书写更加简化和利于阅读。\r\n\r\n为了向后兼容，可以保留对 custom tag，data-ui-*的支持，同时增加非 data-ui 前缀的解析。\r\n\r\n两者并存时，个人觉得以非 data-ui前缀的属性为准，主要是觉得 data-有自定义数据的语义存在。"},"comment":{"url":"https://api.github.com/repos/ecomfe/esui/issues/comments/118473087","html_url":"https://github.com/ecomfe/esui/issues/488#issuecomment-118473087","issue_url":"https://api.github.com/repos/ecomfe/esui/issues/488","id":118473087,"user":{"login":"otakustay","id":639549,"avatar_url":"https://avatars.githubusercontent.com/u/639549?v=3","gravatar_id":"","url":"https://api.github.com/users/otakustay","html_url":"https://github.com/otakustay","followers_url":"https://api.github.com/users/otakustay/followers","following_url":"https://api.github.com/users/otakustay/following{/other_user}","gists_url":"https://api.github.com/users/otakustay/gists{/gist_id}","starred_url":"https://api.github.com/users/otakustay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakustay/subscriptions","organizations_url":"https://api.github.com/users/otakustay/orgs","repos_url":"https://api.github.com/users/otakustay/repos","events_url":"https://api.github.com/users/otakustay/events{/privacy}","received_events_url":"https://api.github.com/users/otakustay/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T06:53:27Z","updated_at":"2015-07-04T06:53:27Z","body":"好像如你所说放在原型上确实有些问题，不过不在原型上就没办法继承，只能选择控件自己的和一个默认的实现\r\n\r\n如果这样，我建议默认实现放在`main`上就好了，`main`更容易重写甚至整个替换，而`Control`作为参与继承链的一部分很能替换\r\n\r\n另外一个办法，就是改控件构造函数，传一个`htmlAttributes`进去，不过这个变化太大，不推荐"}}