Blame view

examples/routers/cell.vue 1.68 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
5
6
7
8
              <CellGroup @on-click="handleClick">
                  <Cell title="标题一" name="a1" label="附属内容" to="/button"></Cell>
                  <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
9
10
11
                  <Cell title="标题二">
                      <Icon type="trash-a" slot="icon"></Icon>
                  </Cell>
4258a559   梁灏   update
12
                  <Cell><span style="color: #ff6600">六七十111</span></Cell>
da76a284   梁灏   update Cell
13
14
15
                  <Cell title="标题四" selected></Cell>
                  <Cell title="标题五"></Cell>
                  <Cell title="标题六" disabled></Cell>
f3dc447b   梁灏   update Cell
16
                  <Cell title="标题七" extra="详细信息" to="/icon"></Cell>
da76a284   梁灏   update Cell
17
18
                  <Cell title="标题七" extra="详细信息" selected></Cell>
                  <Cell title="标题七" label="附属内容" extra="详细信息"></Cell>
f3dc447b   梁灏   update Cell
19
20
21
22
                  <Cell title="标题八">
                      <i-switch v-model="switch1" slot="extra"></i-switch>
                  </Cell>
                  <Cell title="标题九" to="/button"></Cell>
da76a284   梁灏   update Cell
23
24
25
              </CellGroup>
          </Card>
      </div>
59a3b893   梁灏   add Cell componen...
26
27
28
29
30
  </template>
  <script>
      export default {
          data(){
              return {
f3dc447b   梁灏   update Cell
31
                  switch1: false
59a3b893   梁灏   add Cell componen...
32
              }
9c529885   梁灏   Cell component ad...
33
34
35
36
37
          },
          methods: {
              handleClick (name) {
                  console.log(name);
              }
59a3b893   梁灏   add Cell componen...
38
39
40
          }
      }
  </script>