Blame view

examples/components/tableExpand.vue 1.26 KB
55f90d87   梁灏   fixed #1648
1
2
3
4
5
  <style scoped>
      .expand-row{
          margin-bottom: 16px;
      }
  </style>
718e773f   刘荣   -
6
  <template>
55f90d87   梁灏   fixed #1648
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
      <div>
          <Row class="expand-row">
              <Col span="8">
              <span class="expand-key">Job: </span>
              <span class="expand-value">{{ row.job }}</span>
              </Col>
              <Col span="8">
              <span class="expand-key">Interest: </span>
              <span class="expand-value">{{ row.interest }}</span>
              </Col>
              <Col span="8">
              <span class="expand-key">Birthday: </span>
              <span class="expand-value">{{ row.birthday }}</span>
              </Col>
          </Row>
          <Row>
              <Col span="8">
              <span class="expand-key">Favorite book: </span>
              <span class="expand-value">《{{ row.book }}》</span>
              </Col>
              <Col span="8">
              <span class="expand-key">Favorite movie: </span>
              <span class="expand-value">{{ row.movie }}</span>
              </Col>
              <Col span="8">
              <span class="expand-key">Favorite music: </span>
              <span class="expand-value">{{ row.music }}</span>
              </Col>
          </Row>
      </div>
718e773f   刘荣   -
37
38
39
40
  </template>
  <script>
      export default {
          props: {
55f90d87   梁灏   fixed #1648
41
              row: Object
718e773f   刘荣   -
42
          }
55f90d87   梁灏   fixed #1648
43
      };
718e773f   刘荣   -
44
  </script>