Secondary encapsulation of elementUI table components. Parent-child component method transfer problem

problem description

elementUItableelement

related codes

in subcomponents

{
  label: "",
  prop: ["rentOrder", "id"],
  filter: "zeroFmt",
  filters: [
    { text: "", value: "" },
    { text: "", value: "" },
    { text: "", value: "" },
    { text: "", value: "" }
  ],
  filterMethod(value, row, column) {
    console.log(value);
  }
}

how should it be delivered in such a way that no method is accepted and there is no console output? Ask for help


you just passed the parent component method to the child component, but you haven't called it yet.
where should I execute this.filterMethod () ?

Menu