update Cell component

This commit is contained in:
梁灏 2018-06-29 18:16:18 +08:00
parent 3fe51bfca2
commit b216f33c74
3 changed files with 6 additions and 11 deletions

View file

@ -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);
}
}
};