vueダイナミック追加プロパティスタイル(style)とクラス名(class)
1015 ワード
fontSize
backgroundColor:'#00a2ff'
のように引用符で囲む.
ccc
export default{
data(){
return {
bgColor:'#C7CA56'
};
}
}
classの動的バインド
オブジェクト
ccc
export default{
data(){
return {
test1:true,
};
}
}
はいれつ
ccc
export default{
data(){
return {
test:test1,
};
}
}