This problem only needs to use the global style in the component js:
options: {
addGlobalClass: true
},
Component({
options: {
addGlobalClass: true
},
properties: {
},
data: {
},
methods: {
}
})