{"action":"created","issue":{"url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/306","repository_url":"https://api.github.com/repos/hinesboy/mavonEditor","labels_url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/306/comments","events_url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/306/events","html_url":"https://github.com/hinesboy/mavonEditor/issues/306","id":351976632,"node_id":"MDU6SXNzdWUzNTE5NzY2MzI=","number":306,"title":"非全屏单页，全屏双页","user":{"login":"jinkun2014","id":11567175,"node_id":"MDQ6VXNlcjExNTY3MTc1","avatar_url":"https://avatars0.githubusercontent.com/u/11567175?v=4","gravatar_id":"","url":"https://api.github.com/users/jinkun2014","html_url":"https://github.com/jinkun2014","followers_url":"https://api.github.com/users/jinkun2014/followers","following_url":"https://api.github.com/users/jinkun2014/following{/other_user}","gists_url":"https://api.github.com/users/jinkun2014/gists{/gist_id}","starred_url":"https://api.github.com/users/jinkun2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinkun2014/subscriptions","organizations_url":"https://api.github.com/users/jinkun2014/orgs","repos_url":"https://api.github.com/users/jinkun2014/repos","events_url":"https://api.github.com/users/jinkun2014/events{/privacy}","received_events_url":"https://api.github.com/users/jinkun2014/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-20T03:56:35Z","updated_at":"2018-08-20T07:18:05Z","closed_at":"2018-08-20T07:16:11Z","author_association":"NONE","body":"默认非全屏下显示单页编辑模式，当点击全屏时期望自动切换为双页模式，通过监听\r\n@fullScreen=\"$fullScreen\" 时动态改变:subfield=\"subfield\"的值时，发现只是工具栏状态变了，但是编辑区域没呈现双页效果。\r\n```\r\n<mavon-editor\r\n      :toolbars=\"toolbars\"\r\n      :subfield=\"subfield\"\r\n      :scrollStyle=\"false\"\r\n      @fullScreen=\"$fullScreen\"\r\n      style=\"height: 100%\"/>\r\n```\r\n\r\n```\r\n$fullScreen(status, value) {\r\n        let vm = this;\r\n        console.info(status)\r\n        vm.subfield = status;\r\n      }\r\n```\r\n实际效果：\r\n![qq 20180820115409](https://user-images.githubusercontent.com/11567175/44319662-db28a800-a46f-11e8-8838-56c9af518216.png)\r\n期望效果：\r\n![qq 20180820115420](https://user-images.githubusercontent.com/11567175/44319673-e8de2d80-a46f-11e8-8dc6-8e511729d9e6.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/comments/414220175","html_url":"https://github.com/hinesboy/mavonEditor/issues/306#issuecomment-414220175","issue_url":"https://api.github.com/repos/hinesboy/mavonEditor/issues/306","id":414220175,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDIyMDE3NQ==","user":{"login":"jinkun2014","id":11567175,"node_id":"MDQ6VXNlcjExNTY3MTc1","avatar_url":"https://avatars0.githubusercontent.com/u/11567175?v=4","gravatar_id":"","url":"https://api.github.com/users/jinkun2014","html_url":"https://github.com/jinkun2014","followers_url":"https://api.github.com/users/jinkun2014/followers","following_url":"https://api.github.com/users/jinkun2014/following{/other_user}","gists_url":"https://api.github.com/users/jinkun2014/gists{/gist_id}","starred_url":"https://api.github.com/users/jinkun2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinkun2014/subscriptions","organizations_url":"https://api.github.com/users/jinkun2014/orgs","repos_url":"https://api.github.com/users/jinkun2014/repos","events_url":"https://api.github.com/users/jinkun2014/events{/privacy}","received_events_url":"https://api.github.com/users/jinkun2014/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T07:18:05Z","updated_at":"2018-08-20T07:18:05Z","author_association":"NONE","body":"通过设置:subfield=\"true\"，然后监听全屏\r\n```\r\n$fullScreen(status, value) {\r\n        let vm = this;\r\n        if (status) {\r\n          vm.defaultOpen = 'preview';\r\n        } else {\r\n          vm.defaultOpen = 'edit';\r\n        }\r\n      }\r\n```\r\n已经解决"}}
{"actor":{"display_login":"jinkun2014"}}