Blame view

examples/routers/cell.vue 1.77 KB
59a3b893   梁灏   add Cell componen...
1
  <template>
da76a284   梁灏   update Cell
2
3
      <div style="margin: 100px;background: #f8f8f9;padding: 100px;">
          <Card title="选项" :padding="0" shadow style="width: 300px;">
9c529885   梁灏   Cell component ad...
4
              <CellGroup @on-click="handleClick">
fdafcd2c   梁灏   Badge add text prop
5
                  <Cell title="标题一" name="a1" label="附属内容" to="/button">
2ef1b05f   梁灏   Cell add globl se...
6
                      <Badge :count="10" slot="extra"></Badge>
fdafcd2c   梁灏   Badge add text prop
7
                  </Cell>
9c529885   梁灏   Cell component ad...
8
9
10
                  <Cell title="标题一" name="a2" label="附属内容" extra="详细信息"></Cell>
                  <Cell title="标题一" name="a3" label="附属内容" extra="详细信息" to="/button"></Cell>
                  <Cell title="标题一" name="a4" label="附属内容" selected></Cell>
da76a284   梁灏   update Cell
11
12
13
                  <Cell title="标题二">
                      <Icon type="trash-a" slot="icon"></Icon>
                  </Cell>
4258a559   梁灏   update
14
                  <Cell><span style="color: #ff6600">六七十111</span></Cell>
da76a284   梁灏   update Cell
15
16
17
                  <Cell title="标题四" selected></Cell>
                  <Cell title="标题五"></Cell>
                  <Cell title="标题六" disabled></Cell>
f3dc447b   梁灏   update Cell
18
                  <Cell title="标题七" extra="详细信息" to="/icon"></Cell>
da76a284   梁灏   update Cell
19
20
                  <Cell title="标题七" extra="详细信息" selected></Cell>
                  <Cell title="标题七" label="附属内容" extra="详细信息"></Cell>
f3dc447b   梁灏   update Cell
21
22
23
                  <Cell title="标题八">
                      <i-switch v-model="switch1" slot="extra"></i-switch>
                  </Cell>
b216f33c   梁灏   update Cell compo...
24
                  <Cell title="标题九" to="/button" target="_blank"></Cell>
da76a284   梁灏   update Cell
25
26
27
              </CellGroup>
          </Card>
      </div>
59a3b893   梁灏   add Cell componen...
28
29
30
31
32
  </template>
  <script>
      export default {
          data(){
              return {
f3dc447b   梁灏   update Cell
33
                  switch1: false
59a3b893   梁灏   add Cell componen...
34
              }
9c529885   梁灏   Cell component ad...
35
36
37
38
39
          },
          methods: {
              handleClick (name) {
                  console.log(name);
              }
59a3b893   梁灏   add Cell componen...
40
41
42
          }
      }
  </script>