perf[treeTable]

This commit is contained in:
Pan
2018-01-23 15:12:17 +08:00
parent 3253a91a7e
commit 0d47e3454e
7 changed files with 46 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-table :data="formatData" :row-style="showRow">
<el-table :data="formatData" :row-style="showRow" v-bind="$attrs">
<el-table-column v-if="columns.length===0" width="150">
<template slot-scope="scope">
<span v-for="space in scope.row._level" class="ms-tree-space" :key="space"></span>

View File

@@ -1,8 +1,8 @@
## 写在前面
此组件仅提供一个创建TreeTable的解决方案
##prop说明
###data
## prop说明
### data
**必填**
原始数据,要求是一个数组或者对象
@@ -35,7 +35,7 @@
}
```
###columns
### columns
列属性,要求是一个数组
1. text: 显示在表头