The problem with the Element UI paging method call, why not execute the method written in @ size-change?

  1. because I have multiple data lists on my page, I integrate the corresponding data methods into one method, and then return the methods in the integration method. The code goes like this:

script

template

  1. usecaseMetheds().pageSizeChange :


1/

limit


bind event listeners. The event type is specified by the parameter. The expression can be the name of a method or an inline statement , which can be omitted if there is no modifier.

if vue when you are the name of the method, methods ['usecaseMetheds (). PageSizeChange'] is undefined , not Function then continue parsing, vue when you are inline usecaseMetheds (). PageSizeChange property access returns Function , it will not be executed.

usecaseMetheds().pageSizeChange()

v-on


yesterday's problem has been solved!
solution:
pass the original event event in the paging event, that is, the $event keyword, @ size-change= "usecaseMethods (). PageSizeChange ($event)"

Menu