代码改变世界

jsx render

2020-08-24 15:46  改吧  阅读(198)  评论(0编辑  收藏  举报
        render: (text, row, index) => {
                        return this.$createElement("div", {
                            domProps: {
                                innerHTML: row.articlesTitle,
                                className: "articles-title",
                            },
                        });
                    },
 
 
引用组件render
this.$createElement(
                            ToolTip,
                            {
                                attrs: {
                                    content: this.getHintContent(row),
                                    openDelay: 200,
                                    position: "top"
                                }
                            },
                            [this.$createElement("span", [row.name])],
                            1
                        );