当前位置: 代码迷 >> 综合 >> render 渲染组件并添加事件
  详细解决方案

render 渲染组件并添加事件

热度:53   发布时间:2023-10-25 01:49:54.0

 import materialChoose from "@/views/my-components/xboot/material-choose";

components: {

    materialChoose,

  },

    {

          title: "选择",

          key: "dep",

          minWidth: 120,

          fixed: "left",

        render: (h, params) => {

            return h(

              materialChoose,//组件名称

              {

                props: {

                 

                },

                on: {

                  "on-change": (e) => {

                    this.handleSelectMaterial(e)//组件事件

                  },

                },

              }

            )

        },

        },

  相关解决方案