update
This commit is contained in:
parent
f3dc447b43
commit
4258a559c2
3 changed files with 9 additions and 9 deletions
|
@ -9,7 +9,7 @@
|
|||
<Cell title="标题二">
|
||||
<Icon type="trash-a" slot="icon"></Icon>
|
||||
</Cell>
|
||||
<Cell title="标题三">六七十</Cell>
|
||||
<Cell><span style="color: #ff6600">六七十111</span></Cell>
|
||||
<Cell title="标题四" selected></Cell>
|
||||
<Cell title="标题五"></Cell>
|
||||
<Cell title="标题六" disabled></Cell>
|
||||
|
|
|
@ -4,13 +4,11 @@
|
|||
<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 class="ivu-cell-title"><slot>{{ title }}</slot></div>
|
||||
<div class="ivu-cell-label"><slot name="label">{{ label }}</slot></div>
|
||||
</div>
|
||||
<div class="ivu-cell-footer">
|
||||
<span class="ivu-cell-extra" v-if="extra !== ''">{{ extra }}</span>
|
||||
<slot name="extra" v-else></slot>
|
||||
<span class="ivu-cell-extra"><slot name="extra">{{ extra }}</slot></span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
<template>
|
||||
<div :class="classes" tabindex="0">
|
||||
<div :class="classes">
|
||||
<a v-if="to" :href="linkUrl" class="ivu-cell-link" @click.prevent="handleClick">
|
||||
<CellItem :title="title" :label="label" :extra="extra">
|
||||
<slot name="icon" slot="icon"></slot>
|
||||
<slot></slot>
|
||||
<slot slot="default"></slot>
|
||||
<slot name="extra" slot="extra"></slot>
|
||||
<slot name="label" slot="label"></slot>
|
||||
</CellItem>
|
||||
</a>
|
||||
<div class="ivu-cell-link" v-else>
|
||||
<CellItem :title="title" :label="label" :extra="extra">
|
||||
<slot name="icon" slot="icon"></slot>
|
||||
<slot></slot>
|
||||
<slot slot="default"></slot>
|
||||
<slot name="extra" slot="extra"></slot>
|
||||
<slot name="label" slot="label"></slot>
|
||||
</CellItem>
|
||||
</div>
|
||||
<div class="ivu-cell-arrow" v-if="to">
|
||||
|
|
Loading…
Add table
Reference in a new issue