微信小程序自定义组件无法使用全局样式问题

此问题只需在组件js内使用全局样式即可:

options: {
    
    
    addGlobalClass: true
  },
Component({
    
    
  options: {
    
    
    addGlobalClass: true
  },
  properties: {
    
    

  },
  data: {
    
    

  },
  methods: {
    
    
  }
})

猜你喜欢

转载自blog.csdn.net/weixin_43729943/article/details/115279881