update Cell
This commit is contained in:
parent
9b914cc568
commit
5d6bf568e7
1 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="classes">
|
<div :class="classes">
|
||||||
<a v-if="to" :href="linkUrl" :target="target" class="ivu-cell-link" @click="handleClickItem">
|
<a
|
||||||
|
v-if="to"
|
||||||
|
:href="linkUrl"
|
||||||
|
:target="target"
|
||||||
|
class="ivu-cell-link"
|
||||||
|
@click.exact="handleClickItem($event, false)"
|
||||||
|
@click.ctrl="handleClickItem($event, true)"
|
||||||
|
@click.meta="handleClickItem($event, true)">
|
||||||
<CellItem :title="title" :label="label" :extra="extra">
|
<CellItem :title="title" :label="label" :extra="extra">
|
||||||
<slot name="icon" slot="icon"></slot>
|
<slot name="icon" slot="icon"></slot>
|
||||||
<slot slot="default"></slot>
|
<slot slot="default"></slot>
|
||||||
|
@ -78,10 +85,10 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClickItem (event) {
|
handleClickItem (event, new_window) {
|
||||||
this.cellGroup.handleClick(this.name);
|
this.cellGroup.handleClick(this.name);
|
||||||
|
|
||||||
this.handleCheckClick(event);
|
this.handleCheckClick(event, new_window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue