如圖:這個(gè)列表是v-for循環(huán)出來的,我想點(diǎn)擊箭頭就會(huì)展開內(nèi)容,但是我點(diǎn)擊任意一個(gè),其余的都會(huì)展開,這個(gè)要怎么解決呢,剛接觸vue,求指教<view class="showhide" @click="isshowClick(index)"><image :class="{ rotate: isrotate }" src="../../static/temp/xia.png"></image></view>export default{data() { return { isrotate: true, }; },methods: { isshowClick(e) { this.isrotate = !this.isrotate; },}
vue for循環(huán),點(diǎn)擊單個(gè)dom,其余dom也會(huì)隨之響應(yīng),這個(gè)怎么解決,求教
慕仙森
2019-05-14 17:13:52