Iview this.$Message.info reported an error

Click on a button rendered with render in the < H2 > table, and the button pops up a text prompt bubble (Poptip-- confirm), clicks OK and reports an error < / H2 > The
  • code is as follows
render: (h, params) => {
            return h("div", [
                h("Button",{
                    props: {
                        type: "primary"
                    },
                    style: {
                        marginRight: "8px"
                    },
                    on: {
                        click: () => {
                            this.$Message.info("");
                        }
                    }
                }, ""),
                h("Poptip",{
                    props: {
                        confirm: true,
                        title: "",
                        placement: "bottom"
                    },
                    on: {
                        "on-ok": () => {
                            this.$Message.info("");
                        },
                        "on-cancel": () => {
                        }
                    }
                }, [
                    h("Button",{ props: { type: "error" } },"")
                ])
            ]);
        }
  • the error is as follows

  • does not report an error when used in methods. Is there a big god to solve it? Thank you!
Feb.28,2021

on: {
    'on-ok': () => {
        this.$Message.info('');
    },
    'on-cancel': () => {
    }
}

on-ok events cannot be bound here, only click events can be bound

Menu