gaoshp
2024-03-23 bb130af2a7516017e584e4cc5f6fbf8ec2edbd36
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
31
32
33
<template>
    <el-main style="padding:0 20px;">
        <el-card shadow="never">
            <el-descriptions title="Table row data" :column="2" border>
                <el-descriptions-item v-for=" (val, key) in data" :key="key" :label="key" width="150px">{{val}}</el-descriptions-item>
            </el-descriptions>
        </el-card>
    </el-main>
</template>
 
<script>
    export default {
        data() {
            return {
                data: {
                    id: ""
                }
            }
        },
        mounted() {
 
        },
        methods: {
            //注入数据
            setData(data){
                this.data = data
            }
        }
    }
</script>
 
<style>
</style>