第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

怎么添加了點(diǎn)擊事件,主題沒(méi)有變色。

MenuBar:

<div class="setting-theme" v-else-if="showTag === 1">

<div class="setting-theme-item" v-for="(item,index) in themeList" :key="index" @click="setTheme(index)">

<div class="preview" :style="{background: item.style.body.background}" :class="{'no-border': item.style.body.background !== '#fff'}"></div>

<div class="text" :class="{'selected': index === defaultTheme}">{{item.name}}</div>

</div>

</div>

props:{

themeList:Array,

defaultTheme:Number

},

函數(shù):

setTheme(index){

this.$emit('setTheme',index);

},


Ebook:

數(shù)組和變量:

themeList:[

{

name:'default',

style:{

body:{

'color':'#000',

'background':'#fff'

}

}

},

{

name:'eye',

style:{

body:{

'color':'#000',

'background':'#ceeaba'

}

}

},

{

name:'night',

style:{

body:{

'color':'#fff',

'background':'#000'

}

}

},

{

name:'gold',

style:{

body:{

'color':'#000',

'background':'rgb(241,236,226)'

}

}

}

],

defaultTheme: 0

函數(shù):

setTheme(index){

this.themes.select(this.themeList[index].name);

console.log(index);

this.defaultTheme = index;

},

添加了主題點(diǎn)擊事件后一直不生效,沒(méi)找到原因是怎么回事

正在回答

2 回答

什么原因,我也遇到一樣的問(wèn)題了,還沒(méi)找到原因

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

懶姑娘要學(xué)習(xí)了

為什么themeList下的背景色必須為background,寫成backgroundColor就不行。
2019-11-08 回復(fù) 有任何疑惑可以回復(fù)我~

找到問(wèn)題啦,嘻嘻嘻。

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Sam

很棒,繼續(xù)加油!
2018-09-11 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕婉清9409249

請(qǐng)問(wèn)是怎么解決的呢
2022-03-14 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

怎么添加了點(diǎn)擊事件,主題沒(méi)有變色。

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)