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
    })
  • 相关阅读:
    1:4 UI标签和通用标签
    1:3访问 servlet API 的两种方式(request,session等内置对象)
    1 :2 Strust2—Demo
    1:1 Struts2概述
    mysql索引原理与慢查询优化1
    mysql流程控制
    mysql函数
    mysql存储过程
    mysql事务
    mysql触发器
  • 原文地址:https://www.cnblogs.com/wssdx/p/13321355.html
Copyright © 2011-2022 走看看