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
    })
  • 相关阅读:
    线程的创建和运行
    Spring SpringMvc Mybatis Maven整合
    使用 Redis 缓存来实现用户最近浏览的商品列表
    Java泛型
    HDFS的HA集群原理分析
    MapReduce-自动化运行配置
    大数据-HDFS 集群搭建的配置文件
    鼠标线状移动特效
    Mac 终端 Tomcat 环境配置过程
    oracle列转行
  • 原文地址:https://www.cnblogs.com/wssdx/p/13321355.html
Copyright © 2011-2022 走看看