init project
This commit is contained in:
commit
eb81760f47
679 changed files with 125497 additions and 0 deletions
42
examples/routers/cell.vue
Normal file
42
examples/routers/cell.vue
Normal file
|
@ -0,0 +1,42 @@
|
|||
<template>
|
||||
<div style="margin: 100px;background: #f8f8f9;padding: 100px;">
|
||||
<Card title="选项" :padding="0" shadow style="width: 300px;">
|
||||
<CellGroup @on-click="handleClick">
|
||||
<Cell title="标题一" name="a1" label="附属内容" to="/button">
|
||||
<Badge count="10" slot="extra"></Badge>
|
||||
</Cell>
|
||||
<Cell title="标题一" name="a2" label="附属内容" extra="详细信息"></Cell>
|
||||
<Cell title="标题一" name="a3" label="附属内容" extra="详细信息" to="/button"></Cell>
|
||||
<Cell title="标题一" name="a4" label="附属内容" selected></Cell>
|
||||
<Cell title="标题二">
|
||||
<Icon type="trash-a" slot="icon"></Icon>
|
||||
</Cell>
|
||||
<Cell><span style="color: #ff6600">六七十111</span></Cell>
|
||||
<Cell title="标题四" selected></Cell>
|
||||
<Cell title="标题五"></Cell>
|
||||
<Cell title="标题六" disabled></Cell>
|
||||
<Cell title="标题七" extra="详细信息" to="/icon"></Cell>
|
||||
<Cell title="标题七" extra="详细信息" selected></Cell>
|
||||
<Cell title="标题七" label="附属内容" extra="详细信息"></Cell>
|
||||
<Cell title="标题八">
|
||||
<i-switch v-model="switch1" slot="extra"></i-switch>
|
||||
</Cell>
|
||||
<Cell title="标题九" to="/button" target="_blank"></Cell>
|
||||
</CellGroup>
|
||||
</Card>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
switch1: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClick (name) {
|
||||
console.log(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue