perf[treeTable]
This commit is contained in:
@@ -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>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
## 写在前面
|
||||
此组件仅提供一个创建TreeTable的解决方案
|
||||
|
||||
##prop说明
|
||||
###data
|
||||
## prop说明
|
||||
### data
|
||||
**必填**
|
||||
|
||||
原始数据,要求是一个数组或者对象
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
```
|
||||
|
||||
###columns
|
||||
### columns
|
||||
列属性,要求是一个数组
|
||||
|
||||
1. text: 显示在表头
|
||||
|
Reference in New Issue
Block a user