浏览代码

fix: s-table tree dislocation #243

wzh 6 年之前
父节点
当前提交
db1b074ed0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Table/index.js

+ 1 - 1
src/components/Table/index.js

@@ -287,7 +287,7 @@ export default {
           return props[k]
         }
       }
-      props[k] = this[k]
+      this[k] && (props[k] = this[k])
       return props[k]
     })
     const table = (