You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
833 B
46 lines
833 B
<template>
|
|
<div>
|
|
<el-table :data="data" style="width: 100%">
|
|
<el-table-column
|
|
:prop="item.field"
|
|
:label="item.label"
|
|
v-for="(item, index) in columns"
|
|
:key="index"
|
|
align="center"
|
|
>
|
|
<slot name="action" v-if="item.field == 'action'"></slot>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineOptions({ name: 'DetailTable' })
|
|
const props = defineProps({
|
|
columns: {
|
|
type: Array,
|
|
required: true,
|
|
default: null
|
|
},
|
|
data: {
|
|
type: Array,
|
|
required: true,
|
|
default: null
|
|
},
|
|
// 获取接口列表集合
|
|
allList: {
|
|
type: Object,
|
|
required: true,
|
|
default: null
|
|
},
|
|
countScopeType: {
|
|
type: Array,
|
|
required: false,
|
|
default: null
|
|
}
|
|
})
|
|
//
|
|
|
|
</script>
|
|
<style lang="scss">
|
|
</style>
|
|
|