{"action":"created","issue":{"url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/2522","repository_url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd","labels_url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/2522/labels{/name}","comments_url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/2522/comments","events_url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/2522/events","html_url":"https://github.com/NG-ZORRO/ng-zorro-antd/issues/2522","id":383978706,"node_id":"MDU6SXNzdWUzODM5Nzg3MDY=","number":2522,"title":"nz-tab 中当页面首次加载时默认选中的Tab 的nzDisabled = true 时，它仍然是被选中状态。","user":{"login":"liubinduo","id":4187922,"node_id":"MDQ6VXNlcjQxODc5MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/4187922?v=4","gravatar_id":"","url":"https://api.github.com/users/liubinduo","html_url":"https://github.com/liubinduo","followers_url":"https://api.github.com/users/liubinduo/followers","following_url":"https://api.github.com/users/liubinduo/following{/other_user}","gists_url":"https://api.github.com/users/liubinduo/gists{/gist_id}","starred_url":"https://api.github.com/users/liubinduo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liubinduo/subscriptions","organizations_url":"https://api.github.com/users/liubinduo/orgs","repos_url":"https://api.github.com/users/liubinduo/repos","events_url":"https://api.github.com/users/liubinduo/events{/privacy}","received_events_url":"https://api.github.com/users/liubinduo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T10:43:35Z","updated_at":"2018-11-24T11:18:24Z","closed_at":"2018-11-24T11:18:24Z","author_association":"NONE","body":"## Version\r\n1.8.0\r\n## Environment\r\n1.8.0   \r\n## Reproduction link\r\n[https://ng-zorro-antd-start-yx5dpn.stackblitz.io](https://ng-zorro-antd-start-yx5dpn.stackblitz.io)\r\n## Steps to reproduce\r\n1. 在nz-tab中设置 nzSelect .\r\n1. 当页面首次加载时，默认选中nz-tab\r\n1. 默认选中的nz-tab中的nzSelect没有回调\r\n\r\n```html\r\n <nz-tabset>\r\n    <nz-tab [nzTitle]=\"'test'\"  [nzDisabled]=\"true\" (nzClick)=\"clickTab($event)\" (nzSelect)=\"selectedTab($event)\">\r\n      test\r\n    </nz-tab>\r\n\r\n    <nz-tab [nzTitle]=\"'test2'\" (nzClick)=\"clickTab($event)\" (nzSelect)=\"selectedTab($event)\">\r\n      test2\r\n    </nz-tab>\r\n  </nz-tabset>\r\n```\r\n\r\n## What is expected?\r\n当nzDisabled为true时不能做为默认选中的Tab\r\n## What is actually happening?\r\n当nzDisabled为true时，仍然可以做为默认选中的Tab\r\n## Other?\r\n目前貌似nzClick和nzSelect没有什么区别。\r\n我的应用场景是，根据权限设置，禁用了Index为第0个的Tab.  目前它在页面首次加载时，仍然是做为被选中状态。\r\n<!-- generated by ng-zorro-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/comments/441360571","html_url":"https://github.com/NG-ZORRO/ng-zorro-antd/issues/2522#issuecomment-441360571","issue_url":"https://api.github.com/repos/NG-ZORRO/ng-zorro-antd/issues/2522","id":441360571,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTM2MDU3MQ==","user":{"login":"vthinkxie","id":1506722,"node_id":"MDQ6VXNlcjE1MDY3MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1506722?v=4","gravatar_id":"","url":"https://api.github.com/users/vthinkxie","html_url":"https://github.com/vthinkxie","followers_url":"https://api.github.com/users/vthinkxie/followers","following_url":"https://api.github.com/users/vthinkxie/following{/other_user}","gists_url":"https://api.github.com/users/vthinkxie/gists{/gist_id}","starred_url":"https://api.github.com/users/vthinkxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vthinkxie/subscriptions","organizations_url":"https://api.github.com/users/vthinkxie/orgs","repos_url":"https://api.github.com/users/vthinkxie/repos","events_url":"https://api.github.com/users/vthinkxie/events{/privacy}","received_events_url":"https://api.github.com/users/vthinkxie/received_events","type":"User","site_admin":false},"created_at":"2018-11-24T11:18:24Z","updated_at":"2018-11-24T11:18:24Z","author_association":"MEMBER","body":"所有的组件都是数据驱动的，你设定了两个互相冲突的数据，组件是无法帮你解决冲突的，nzClick 和 nzSelect 的回调内容是完全不一样的"}}
{"actor":{"display_login":"vthinkxie"}}