changePage()函數(shù)里面執(zhí)行了console.log但是<Page :total="page.total" :page-size="page.pageSize" :current="page.page" show-total show-elevator show-sizer @on-change="changePage()"></Page>如果這樣寫代碼,那么報(bào)TypeError: _vm.changePage is not a function at on-change (eval at ./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-a4e6edc6","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/index/TaskList.vue (0.3529ec41d52ff9a2feda.hot-update.js:14), <anonymous>:39:21) at VueComponent.invoker (vue.esm.js:2003) at VueComponent.Vue.$emit (vue.esm.js:2514) at VueComponent.changePage (iview.js:14756) at VueComponent.boundFn [as changePage] (vue.esm.js:191) at VueComponent.next (iview.js:14771) at boundFn (vue.esm.js:191) at invoker (vue.esm.js:2003) at HTMLLIElement.fn._withTask.fn._withTask (vue.esm.js:1801) 如果這樣寫代碼<Page :total="page.total" :page-size="page.pageSize" :current="page.page" show-total show-elevator show-sizer @on-change="changePage"></Page>那么什么都不會(huì)輸出所以這個(gè)是什么情況呢?
iview分頁組件的on-change事件無法觸發(fā)
翻翻過去那場雪
2019-03-05 13:12:38