美文网首页iView Design
iView table设置默认选中

iView table设置默认选中

作者: 东方晓 | 来源:发表于2022-08-25 15:57 被阅读0次

    2022-08-25
    文档地址

    • 通过给 columns 数据设置一项,指定 type: 'selection',即可自动开启多选功能。
     columns: [
      {
        type: 'selection',
      }
    ]
    
    • 给 data 项设置特殊 key _checked: true 可以默认选中当前项。
    data: [
      {
        id:0,
        title:'xx',
        _checked:true
      },
      {
        id:1,
        title:'yy',
        _checked:false
      }
    ]
    

    相关文章

      网友评论

        本文标题:iView table设置默认选中

        本文链接:https://www.haomeiwen.com/subject/mvfzgrtx.html