{"action":"opened","issue":{"url":"https://api.github.com/repos/ElemeFE/mint-ui/issues/523","repository_url":"https://api.github.com/repos/ElemeFE/mint-ui","labels_url":"https://api.github.com/repos/ElemeFE/mint-ui/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/mint-ui/issues/523/comments","events_url":"https://api.github.com/repos/ElemeFE/mint-ui/issues/523/events","html_url":"https://github.com/ElemeFE/mint-ui/issues/523","id":195973518,"number":523,"title":"Swiper 组件能添加一个change事件吗?","user":{"login":"signer","id":543170,"avatar_url":"https://avatars.githubusercontent.com/u/543170?v=3","gravatar_id":"","url":"https://api.github.com/users/signer","html_url":"https://github.com/signer","followers_url":"https://api.github.com/users/signer/followers","following_url":"https://api.github.com/users/signer/following{/other_user}","gists_url":"https://api.github.com/users/signer/gists{/gist_id}","starred_url":"https://api.github.com/users/signer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/signer/subscriptions","organizations_url":"https://api.github.com/users/signer/orgs","repos_url":"https://api.github.com/users/signer/repos","events_url":"https://api.github.com/users/signer/events{/privacy}","received_events_url":"https://api.github.com/users/signer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-16T03:31:20Z","updated_at":"2016-12-16T03:31:20Z","closed_at":null,"body":"一个很常见的场景是切换 Swiper 切换 Item 后, 需要去更新页面信息.\r\n建议 Swiper 增加一个 change 事件, 例子如下:\r\n```\r\n<mt-swipe @change='onSwiperItemChange'>\r\n  <mt-swipe-item>1</mt-swipe-item>\r\n  <mt-swipe-item>2</mt-swipe-item>\r\n  <mt-swipe-item>3</mt-swipe-item>\r\n</mt-swipe>\r\n\r\n<script>\r\nexport default {\r\n  methods {\r\n    onSwiperItemChange(itemIndex) {\r\n      // do something\r\n    }\r\n  } \r\n}\r\n</script>\r\n```\r\n"}}
{"actor":{"display_login":"signer"}}