#
whycq
2023-12-01 f979ed5a82e2038b96ea7eb2063fcf08a6ba1bf8
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<template>
    <view>
        <view class="box">
            <view class="item" v-for="item in data" v-show="!item.hide">
                <!-- key -->
                <view class="item-key">{{item.title}}</view>
                <!-- value -->
                <view class="item-val">{{item.value}}</view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                data: [
                    {
                        title: '物料名称物',
                        field: 'maktx',
                        hied: false,
                        value: '123456'
                    },
                    {
                        title: '物料编号',
                        field: 'maktx',
                        hied: false,
                        value: '温度。空调用来控制数据中心的温度和湿度,制冷与空调'
                    },
                    {
                        title: '物料名称物物料名称物',
                        field: 'maktx',
                        hied: false,
                        value: '123456'
                    },
                ]
            }
        },
        methods: {
            
        }
    }
</script>
 
<style scoped>
    .box {
        min-height: 50rpx;
        background-color: antiquewhite;
        margin: 16rpx;
    }
    .item {
        display: flex;
        align-items: center;
        margin: 8rpx;
    }
    .item-key{
        background-color: #888;
        min-width: 6em;
        max-width: 6em;
        align-self: center;
    }
    .item-val {
        flex: 1;
        border: 1px solid #999;
        border-radius: 16rpx;
        padding: 4rpx;
        align-self: center;
        
        
    }
</style>