在methods同级下设置:
options: { styleIsolation: 'shared' },
且在修改样式前加上 ::v-deep或者/deep/
例如:(在微信小程序中必须是类选择器,否则不生效)
::v-deep .uni-dialog-input {
font-size: 40rpx;
height: 270rpx;
text-indent: 2em;
}
在methods同级下设置:
options: { styleIsolation: 'shared' },
且在修改样式前加上 ::v-deep或者/deep/
例如:(在微信小程序中必须是类选择器,否则不生效)
::v-deep .uni-dialog-input {
font-size: 40rpx;
height: 270rpx;
text-indent: 2em;
}