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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34794-2bf45.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34794-2bf45.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?