优化店铺装修
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<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_wraps">
|
||||||
<div class="btn" :class="{ active: tableActive == item.autokey }" v-for="item in tableData"
|
<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 }}
|
{{ item.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -223,6 +218,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换类型
|
// 切换类型
|
||||||
selectItemChange(key) {
|
selectItemChange(key) {
|
||||||
|
this.tableActive = key
|
||||||
this.selectItem = { ...this.tableData.find(item => item.autokey == key) }
|
this.selectItem = { ...this.tableData.find(item => item.autokey == key) }
|
||||||
},
|
},
|
||||||
// 获取装修数据
|
// 获取装修数据
|
||||||
|
|||||||
Reference in New Issue
Block a user