{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/4433","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/4433/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/4433/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/4433/events","html_url":"https://github.com/vuejs/vue/issues/4433","id":194749224,"number":4433,"title":"transition的根元素如果样式表中有display:none，将导致过渡效果失效","user":{"login":"heroazure","id":10336121,"avatar_url":"https://avatars.githubusercontent.com/u/10336121?v=3","gravatar_id":"","url":"https://api.github.com/users/heroazure","html_url":"https://github.com/heroazure","followers_url":"https://api.github.com/users/heroazure/followers","following_url":"https://api.github.com/users/heroazure/following{/other_user}","gists_url":"https://api.github.com/users/heroazure/gists{/gist_id}","starred_url":"https://api.github.com/users/heroazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroazure/subscriptions","organizations_url":"https://api.github.com/users/heroazure/orgs","repos_url":"https://api.github.com/users/heroazure/repos","events_url":"https://api.github.com/users/heroazure/events{/privacy}","received_events_url":"https://api.github.com/users/heroazure/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-10T06:43:59Z","updated_at":"2016-12-10T08:39:06Z","closed_at":"2016-12-10T08:39:06Z","body":"以模态框举例，比如：.modal-mask {\r\n  display: none;//其他样式省略\r\n  transition: opacity 3s ease;\r\n}\r\n由于v-show仅仅只是添加或者移除内联的style=\"display:none;\"，由于样式表中的display: none元素一直处于不可见状态"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/266190222","html_url":"https://github.com/vuejs/vue/issues/4433#issuecomment-266190222","issue_url":"https://api.github.com/repos/vuejs/vue/issues/4433","id":266190222,"user":{"login":"fnlctrl","id":5557143,"avatar_url":"https://avatars.githubusercontent.com/u/5557143?v=3","gravatar_id":"","url":"https://api.github.com/users/fnlctrl","html_url":"https://github.com/fnlctrl","followers_url":"https://api.github.com/users/fnlctrl/followers","following_url":"https://api.github.com/users/fnlctrl/following{/other_user}","gists_url":"https://api.github.com/users/fnlctrl/gists{/gist_id}","starred_url":"https://api.github.com/users/fnlctrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnlctrl/subscriptions","organizations_url":"https://api.github.com/users/fnlctrl/orgs","repos_url":"https://api.github.com/users/fnlctrl/repos","events_url":"https://api.github.com/users/fnlctrl/events{/privacy}","received_events_url":"https://api.github.com/users/fnlctrl/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T08:39:06Z","updated_at":"2016-12-10T08:39:06Z","body":"如果使用v-show，就不能用样式表的display: none来设置初始状态，应该直接让v-show绑定的表达式的初始值为false。"}}
{"actor":{"display_login":"fnlctrl"}}