Blame view

pc-master/src/views/orderDetail/components/prodcutlist.vue 795 Bytes
3f535f30   杨鑫   '初始'
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>
    <div class="orderDetailList">
      <!-- 表头 -->
      <nav></nav>
      <section>
        <div class="productItem"></div>
      </section>
      <el-table
        :data="tableData"
        border
        style="width: 100%"
      >
        <el-table-column v-for="item in title"
          :key="item.value"
          :prop="item.prop"
          :label="item.label"
        />
      </el-table>
    </div>
  </template>
  
  <script>
  export default {
    props: {
      title: {
        type: Array,
        default: () => [
          {
            value: 0,
            prop: '',
            label: ''
          }
        ]
      },
      tableList: {
        type: Array,
        default: () => []
      }
    }
  }
  </script>
  
  <style lang="scss" scoped>
  .orderDetailList{
    nav{}
    section{
      .productItem{
        display: flex;
      }
    }
  }
  </style>