zoukankan      html  css  js  c++  java
  • this.$createElement用法

    this.$createElement创建元素

    import CfUpload from '_cf/CfUpload/index'//图片组件 
     
    detailColumns: [
                        {
                            title: '图片',
                            key: 'img',
                            align: 'center',
                            100,
                            render: (h, params) => {
                                return this.$createElement(CfUpload, {
                                    props: {
                                        imgCodeList: [params.row.img],
                                        isView: true
                                    },
                                    key: `Img${params.index}${params.row.accessoryRequisitionsId}`
                                })
                            }
                        },
    ]
     
     
    const h=this.$createElement
    this.$notify({
      title:'标题',
      message:h('div',{on:{click:handleClick},'查看详情'),
      dangerouslyUseHTMLString:true
    })
  • 相关阅读:
    js(5)关于this的指代值
    bootstrap(2)关于表单
    bootstrap(1)关于排版
    bootstrap基础(0)写在前面的一些话
    js(4) 继承
    js(3)面向对象的程序设计
    js(2)关于作用域和作用域链
    鼠标事件(jQuery方法)
    鼠标事件(JS原生方法)
    键盘事件(在输入框中输入内容后按回车键)
  • 原文地址:https://www.cnblogs.com/wssdx/p/13321355.html
Copyright © 2011-2022 走看看