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
    })
  • 相关阅读:
    Go断后,Dart冲前,Google的野心
    gcc dynamic load library
    Go http server 高并发
    还是Go 为了伟大的未来
    windows go dll 框架
    Go cookie
    Go web ajax project
    hdoj 2844 Coins
    hdoj 1203 I NEED A OFFER!
    hdoj 2546 饭卡
  • 原文地址:https://www.cnblogs.com/wssdx/p/13321355.html
Copyright © 2011-2022 走看看