How can render call methods in methods using anonymous functions in iview table

                render: function(h,params) {                                      
                    return h("div", [

                        h("Button", {
                            props: {
                                type: "primary",
                                size: "small"
                            },
                            style: {
                                marginRight: "5px"
                            },
                            on: {
                                click: function() {                                    
                                    console.log(this);
                                    this.show(params.index) 
                                }
                            }
                        }, ""),
                        
                    ]);
                }
                
            
methods: {
    show: function(index) {
   alert(index);

}
}

Mar.09,2021

1:click uses the arrow function.
2: let self = this under render on return; so receiving this, can be used


how to solve this problem. Now we are running into this problem

Menu