update Cell component
This commit is contained in:
parent
3fe51bfca2
commit
b216f33c74
3 changed files with 6 additions and 11 deletions
|
@ -21,7 +21,7 @@
|
|||
<Cell title="标题八">
|
||||
<i-switch v-model="switch1" slot="extra"></i-switch>
|
||||
</Cell>
|
||||
<Cell title="标题九" to="/button"></Cell>
|
||||
<Cell title="标题九" to="/button" target="_blank"></Cell>
|
||||
</CellGroup>
|
||||
</Card>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="classes">
|
||||
<a v-if="to" :href="linkUrl" class="ivu-cell-link" @click.prevent="handleClick" @click="handleClickItem">
|
||||
<a v-if="to" :href="linkUrl" :target="target" class="ivu-cell-link" @click="handleClickItem">
|
||||
<CellItem :title="title" :label="label" :extra="extra">
|
||||
<slot name="icon" slot="icon"></slot>
|
||||
<slot slot="default"></slot>
|
||||
|
@ -58,13 +58,6 @@
|
|||
selected: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
to: {
|
||||
type: [Object, String]
|
||||
},
|
||||
replace: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
@ -85,8 +78,10 @@
|
|||
},
|
||||
},
|
||||
methods: {
|
||||
handleClickItem () {
|
||||
handleClickItem (event) {
|
||||
this.cellGroup.handleClick(this.name);
|
||||
|
||||
this.handleCheckClick(event);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
a[target="_blank"]:after{
|
||||
a:not([class^="ivu-"])[target="_blank"]:after{
|
||||
content: "\F24C";
|
||||
font-family: Ionicons;
|
||||
color: #aaa;
|
||||
|
|
Loading…
Add table
Reference in a new issue