You can add: before active-value and inactive-value
The Vue elementui switch button uses an int type value
You can add: before active-value and inactive-value
Vue + Element, SCSS plus /deep/ style does not work
For example: To adjust the style of. El-collapse-item__header
/deep/.el-collapse-item__header{
background-color: red;
}
Don’t take effect.
Replace /deep/ with ::v-deep
::v-deep .el-collapse-item__header{
background-color: red;
}
Feel free to set the style you want ^ _^
Simply set ref= “table” to the table and execute the following method on the Vue life cycle updated
updated() {
this.$nextTick(() => {
this.$refs.table.doLayout();
})
},
div>