数据的双向绑定v-model
属性绑定v-bind。
v-bind绑定样式动态变化。
方式1:
在组件文件中新建style标签。
.myinputOn{
border-bottom:1px solid#afafb1;
}
.myinputOff{
border-bottom:1px solid#3db551;
}
.mybutton1{
background-color:#afafb1
}
.mybutton2{
background-color:#3db551
}
数据的双向绑定v-model
属性绑定v-bind。
v-bind绑定样式动态变化。
方式1:
在组件文件中新建style标签。
.myinputOn{
border-bottom:1px solid#afafb1;
}
.myinputOff{
border-bottom:1px solid#3db551;
}
.mybutton1{
background-color:#afafb1
}
.mybutton2{
background-color:#3db551
}