浏览代码

feat(schematable): support selection column

Casper Dai 3 年之前
父节点
当前提交
7e48282328
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/components/table/Table/Column.vue

+ 7 - 0
src/components/table/Table/Column.vue

@@ -180,6 +180,13 @@ export default {
         return this.renderExpandColumn(h, props)
       case 'asset':
         return this.renderAssetColumn(h, props)
+      case 'selection':
+        return h('el-table-column', {
+          props: {
+            type,
+            width: 50
+          }
+        })
       case 'tag':
         break
       case 'invoke':