{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/esui/issues/430","labels_url":"https://api.github.com/repos/ecomfe/esui/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/esui/issues/430/comments","events_url":"https://api.github.com/repos/ecomfe/esui/issues/430/events","html_url":"https://github.com/ecomfe/esui/issues/430","id":59924659,"number":430,"title":"control.styleType是不是类似TextBox.mode的功能？","user":{"login":"uraincay","id":10464981,"avatar_url":"https://avatars.githubusercontent.com/u/10464981?v=3","gravatar_id":"","url":"https://api.github.com/users/uraincay","html_url":"https://github.com/uraincay","followers_url":"https://api.github.com/users/uraincay/followers","following_url":"https://api.github.com/users/uraincay/following{/other_user}","gists_url":"https://api.github.com/users/uraincay/gists{/gist_id}","starred_url":"https://api.github.com/users/uraincay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uraincay/subscriptions","organizations_url":"https://api.github.com/users/uraincay/orgs","repos_url":"https://api.github.com/users/uraincay/repos","events_url":"https://api.github.com/users/uraincay/events{/privacy}","received_events_url":"https://api.github.com/users/uraincay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-05T09:17:59Z","updated_at":"2015-03-05T10:09:22Z","closed_at":null,"body":"整个库的控件都没用到styleType(helper/dom中有控制classes的逻辑)，我想知道这个属性当时是怎么设计的，是类似TextBox.mode的功能吗？他和mode之间表达的意思有啥区别么？"},"comment":{"url":"https://api.github.com/repos/ecomfe/esui/issues/comments/77338034","html_url":"https://github.com/ecomfe/esui/issues/430#issuecomment-77338034","issue_url":"https://api.github.com/repos/ecomfe/esui/issues/430","id":77338034,"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-03-05T10:09:22Z","updated_at":"2015-03-05T10:09:22Z","body":"1. 没错，样式上完全就是与基类相同的了，具体你可以参考这个控件，是个典型的应用：https://github.com/ecomfe/ef/blob/master/src/ActionDialog.js\r\n\r\n    如果有些场景需要子类和父类都有class标识，需要子类自己加额外逻辑实现。现在没有遇到类似的需求，如果此类需求较多的话我们会考虑增加相关的逻辑\r\n\r\n2. 嗯……毕竟太久了我也没记清。`mode`应该确实和class无关，原因是没有这个的需求，且`mode`是`TextBox`特有的，不能用于作为一个接口"}}