Commit 5d6bf568e728398e4e1447b64b1cb0f5f494b1f7

Authored by 梁灏
1 parent 9b914cc5

update Cell

Showing 1 changed file with 10 additions and 3 deletions   Show diff stats
src/components/cell/cell.vue
1 1 <template>
2 2 <div :class="classes">
3   - <a v-if="to" :href="linkUrl" :target="target" class="ivu-cell-link" @click="handleClickItem">
  3 + <a
  4 + v-if="to"
  5 + :href="linkUrl"
  6 + :target="target"
  7 + class="ivu-cell-link"
  8 + @click.exact="handleClickItem($event, false)"
  9 + @click.ctrl="handleClickItem($event, true)"
  10 + @click.meta="handleClickItem($event, true)">
4 11 <CellItem :title="title" :label="label" :extra="extra">
5 12 <slot name="icon" slot="icon"></slot>
6 13 <slot slot="default"></slot>
... ... @@ -78,10 +85,10 @@
78 85 },
79 86 },
80 87 methods: {
81   - handleClickItem (event) {
  88 + handleClickItem (event, new_window) {
82 89 this.cellGroup.handleClick(this.name);
83 90  
84   - this.handleCheckClick(event);
  91 + this.handleCheckClick(event, new_window);
85 92 }
86 93 }
87 94 };
... ...