{"action":"created","issue":{"url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/2","repository_url":"https://api.github.com/repos/mvpleung/vue-flipclock","labels_url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/2/comments","events_url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/2/events","html_url":"https://github.com/mvpleung/vue-flipclock/issues/2","id":335085580,"node_id":"MDU6SXNzdWUzMzUwODU1ODA=","number":2,"title":"可否通过动态修改 options 中的参数，来切换不同的时钟显示样式","user":{"login":"MiGongOrg","id":10278269,"node_id":"MDQ6VXNlcjEwMjc4MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/10278269?v=4","gravatar_id":"","url":"https://api.github.com/users/MiGongOrg","html_url":"https://github.com/MiGongOrg","followers_url":"https://api.github.com/users/MiGongOrg/followers","following_url":"https://api.github.com/users/MiGongOrg/following{/other_user}","gists_url":"https://api.github.com/users/MiGongOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/MiGongOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiGongOrg/subscriptions","organizations_url":"https://api.github.com/users/MiGongOrg/orgs","repos_url":"https://api.github.com/users/MiGongOrg/repos","events_url":"https://api.github.com/users/MiGongOrg/events{/privacy}","received_events_url":"https://api.github.com/users/MiGongOrg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-23T09:39:40Z","updated_at":"2018-06-24T08:39:43Z","closed_at":null,"author_association":"NONE","body":"如：初始化时（显示当前时间）\r\n\r\n```javascript\r\nthis.options.clockFace = 'TwentyFourHourClock'\r\nthis.options.showSeconds = show\r\n```\r\n\r\n之后通过事件去修改 `options` 中的参数 （想将显示当前时间的时钟样式改变为一个10秒倒计时的样式）\r\n\r\n```javascript\r\nthis.options.clockFace = 'Counter'\r\nthis.diff = 10\r\nthis.options.countdown = true\r\n```\r\n\r\n> 测试这样修改是不行的，是否有相应参数可以初始化？或是有其它方法可以实现。"},"comment":{"url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/comments/399739649","html_url":"https://github.com/mvpleung/vue-flipclock/issues/2#issuecomment-399739649","issue_url":"https://api.github.com/repos/mvpleung/vue-flipclock/issues/2","id":399739649,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTczOTY0OQ==","user":{"login":"MiGongOrg","id":10278269,"node_id":"MDQ6VXNlcjEwMjc4MjY5","avatar_url":"https://avatars3.githubusercontent.com/u/10278269?v=4","gravatar_id":"","url":"https://api.github.com/users/MiGongOrg","html_url":"https://github.com/MiGongOrg","followers_url":"https://api.github.com/users/MiGongOrg/followers","following_url":"https://api.github.com/users/MiGongOrg/following{/other_user}","gists_url":"https://api.github.com/users/MiGongOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/MiGongOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiGongOrg/subscriptions","organizations_url":"https://api.github.com/users/MiGongOrg/orgs","repos_url":"https://api.github.com/users/MiGongOrg/repos","events_url":"https://api.github.com/users/MiGongOrg/events{/privacy}","received_events_url":"https://api.github.com/users/MiGongOrg/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T08:39:43Z","updated_at":"2018-06-24T08:39:43Z","author_association":"NONE","body":"0.0.3 更新到 0.0.4 编译报错 ：Couldn't find preset \"es2015\" relative to directory\r\n\r\n通过 `npm install -D babel-preset-es2015` 解决\r\n\r\n测试通过  `reset` 重置方法可以实现时钟的功能与样式切换\r\n\r\n如果可以通过 `v-model` 绑定 options 数据，实现修改数据驱动功能与样式的切换，这样就可以使用 Vuex 直接管理，不需要过多的额外代码去处理这一部分的业务逻辑就更好了，期待后续更新。"}}
{"actor":{"display_login":"MiGongOrg"}}