<el-tree
          :data="data2"
          show-checkbox
          default-expand-all
          node-key="id"
          ref="tree"
          highlight-current
          check-on-click-node
          :props="defaultProps">
        </el-tree>
        data2: [{
          label: '全选',
          children: [
            {
              label: "_id",
              disabled: true
            }
            , {
              label: 'name'
            }, {
              label: 'sex'
            }, {
              label: 'address'
            }, {
              label: "mobile"
            }, {
              label: "year"
            }, {
              label: "nation"
            }, {
              label: "major"
            }, {
              label: "username"
            }, {
              label: "headPicture"
            }
          ]
        }],
        defaultProps: {
          children: this.children,
          label: 'label'
        },
Logo

前往低代码交流专区

更多推荐