提交 1e51f3b7 编写于 作者: Neuromancer255's avatar Neuromancer255

卡片视图点击触发方法调整

上级 7ab2e4bf
<template> <template>
<div class = "card-view "> <div class = "card-view ">
<div v-if="dataViewMode==='DATAVIEWEXPVIEW'"> <div v-if="dataViewMode==='DATAVIEWEXPVIEW'">
<ion-card :class="[size == '12'? 'ios hydrated ibz-card-12':' ios hydrated ibz-card-6']" v-for="(item,index) in items" :key="index" @click="SwitchView(index)"> <ion-card :class="[size == '12'? 'ios hydrated ibz-card-12':' ios hydrated ibz-card-6']" v-for="(item,index) in items" :key="index" @click="switchView(index)">
<ion-card-header class="ibz-header"> <ion-card-header class="ibz-header">
<ion-card-title class="ibz-title">{{item.srfkey}}</ion-card-title> <ion-card-title class="ibz-title">{{item.srfkey}}</ion-card-title>
</ion-card-header> </ion-card-header>
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
* *
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public SwitchView(listIndex: number) { public switchView(listIndex: number) {
this.items.findIndex((item, index) => { this.items.findIndex((item, index) => {
if (index === listIndex) { if (index === listIndex) {
this.$emit("selectionchange", item); this.$emit("selectionchange", item);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册