Blame view

src/components/cell/cell-item.vue 921 Bytes
da76a284   梁灏   update Cell
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
  <template>
      <div class="ivu-cell-item">
          <div class="ivu-cell-icon">
              <slot name="icon"></slot>
          </div>
          <div class="ivu-cell-main">
              <div class="ivu-cell-title" v-if="title !== ''">{{ title }}</div>
              <div class="ivu-cell-label" v-if="label !== ''">{{ label }}</div>
              <slot></slot>
          </div>
          <div class="ivu-cell-footer">
              <span class="ivu-cell-extra" v-if="extra !== ''">{{ extra }}</span>
              <slot name="extra" v-else></slot>
          </div>
      </div>
  </template>
  <script>
      export default {
          props: {
              title: {
                  type: String,
                  default: ''
              },
              label: {
                  type: String,
                  default: ''
              },
              extra: {
                  type: String,
                  default: ''
              },
          }
      }
  </script>