首页 > 编程语言 > 详细

js数组对象转化为数组包含多个数组结构,应用场景DavaV的表单滚动

时间:2021-06-15 16:45:14      阅读:30      评论:0      收藏:0      [点我收藏+]
        // 表单
        listData (val) {
            // console.log(val)
            this.config.data = []
            val.forEach(item => {
                // [‘<span style="color:rgba(255,255,255,0.80);">item.title</span>‘, ‘<span style="color:rgba(218,255,254,0.65);">行2列2</span>‘]
                this.config.data.push([item.title, item.sent_time])
            })
            this.config.data = this.config.data.map((item) => {
                item.push("<i style=‘color:#ff1d57‘ class=‘el-icon-warning-outline‘></i>")
                return item
            })
            this.configList = this.config
        },

结构:[ {},{} ]=>[ [],[] ]

js数组对象转化为数组包含多个数组结构,应用场景DavaV的表单滚动

原文:https://www.cnblogs.com/huoshengmiao/p/14884334.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!