优化店铺装修

This commit is contained in:
gyq 2024-10-10 11:22:29 +08:00
parent 940ceee222
commit abd6385f02
1 changed files with 2 additions and 6 deletions

View File

@ -1,13 +1,8 @@
<template>
<div class="app-container">
<!-- <el-radio-group v-model="tableActive" @change="selectItemChange">
<el-radio-button :label="item.autokey" v-for="item in tableData" :key="item.autokey">
{{ item.title }}
</el-radio-button>
</el-radio-group> -->
<div class="btn_wraps">
<div class="btn" :class="{ active: tableActive == item.autokey }" v-for="item in tableData"
:key="item.autokey" @click="tableActive = item.autokey">
:key="item.autokey" @click="selectItemChange(item.autokey)">
{{ item.title }}
</div>
</div>
@ -223,6 +218,7 @@ export default {
},
//
selectItemChange(key) {
this.tableActive = key
this.selectItem = { ...this.tableData.find(item => item.autokey == key) }
},
//