Commit dff62142 by yuwei

项目初始化

parent 6a8f3555
<template>
<el-table-column :prop="col.prop" :label="col.label" align="center" show-overflow-tooltip>
<template v-if="col.children">
<my-chart-column v-for="(item, index) in col.children" :key="index" :col="item" />
</template>
</el-table-column>
</template>
<script>
export default {
name: 'MyChartColumn',
props: {
col: {
type: Object,
required: true,
default: () => {
return {}
}
}
}
}
</script>
<style lang="scss" scoped>
</style>
<template>
<div>
<el-table :data="data">
<my-chart-column v-for="(item, index) in col" :key="index" :col="item" />
</el-table>
</div>
</template>
<script>
import MyChartColumn from './MyChartColumn'
export default {
name: 'MyChartTable',
components: {
MyChartColumn
},
props: {
col: {
type: Array,
required: true,
default: () => {
return []
}
},
data: {
type: Array,
required: true,
default: () => {
return []
}
}
}
}
</script>
<style lang="scss" scoped>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment