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
| <template>
| <view>
| <view v-for="k in info" class="item">
| <view class="item1-l">{{k.name}}</view>
| <view class="item-r">{{k.val}}</view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| name:"plan-detail",
| props: {
| info: {
| type: [Array],
| default: [{name: 'yyy'}]
| },
| },
| computed: {
| itemInfo() {
| console.log(this.info);
| return this.info
| },
| },
| data() {
| return {
|
| };
| }
| }
| </script>
|
| <style>
| .item {
| padding: 10rpx 20rpx 0 20rpx;
| min-height: 60rpx;
| width: 100%;
| display: grid;
| grid-template-columns: 2fr 3fr;
| }
| .item1-l {
| min-height: 45rpx;
| line-height: 45rpx;
| color: #909399;
| text-indent: 30rpx;
| }
| .item-r {
| min-height: 45rpx;
| line-height: 45rpx;
| color: black;
| }
| </style>
|
|