
微信小程序之重写Vant Weapp组件样式
在微信小程序中,若封装组件内部有使用到 Vant 组件,且想重写样式,需在 options 配置 styleIsolation: ‘shared’
·
在微信小程序中,若封装组件内部有使用到 Vant 组件,且想重写样式,需在 options 配置 styleIsolation: ‘shared’
Component({
options: {
styleIsolation: 'shared',
}
})
更多推荐

在微信小程序中,若封装组件内部有使用到 Vant 组件,且想重写样式,需在 options 配置 styleIsolation: ‘shared’
在微信小程序中,若封装组件内部有使用到 Vant 组件,且想重写样式,需在 options 配置 styleIsolation: ‘shared’
Component({
options: {
styleIsolation: 'shared',
}
})
更多推荐
所有评论(0)