iview-weapp icon indicating copy to clipboard operation
iview-weapp copied to clipboard

提个建议,所有组件加上styleIsolation:'apply-shared'

Open cos800 opened this issue 5 years ago • 0 comments

改成这样:

Component({
    options: {
        styleIsolation: 'apply-shared'
    }
});

然后就支持 直接在页面wxss文件里 修改组件的样式了。 比如我对modal的高度不满意,我直接在页面的wxss文件里加上:

.i-modal-body{
    min-height: 20vh;
    max-height: 40vh !important;
}

modal高度就变了。

cos800 avatar Sep 20 '19 07:09 cos800