1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| <template>
| <div class="eltablecolumn">
| <template v-if="!itemcolumn.children">
| <el-table-column
| align="center"
| :prop="itemcolumn.columnName"
| :label="itemcolumn.columnDescription"
| :width="itemcolumn.width ? itemcolumn.width : ''"
| >
| </el-table-column>
| </template>
| <el-table-column
| v-else
| align="center"
| :label="itemcolumn.columnDescription"
| :width="itemcolumn.width ? itemcolumn.width : ''"
| >
| <eltablecolumn v-for="(item, index) in itemcolumn.children" :itemcolumn="item" :key="index" />
| </el-table-column>
| </div>
| </template>
|
| <script>
| export default {
| name: 'eltablecolumn',
| props: ['itemcolumn']
| };
| </script>
|
| <style></style>
|
|