Weex中写一个布满全屏的遮罩层

export default {

props: {

rgba: {

type: [String, Number],

default: '0.5'

}

},

computed: {

newRgba () {

return this.rgba+ '';

}

},

methods: {

_click () {

this.$emit('click');

}

}

}

.bui-mask{

position: fixed;

left: 0px;

right: 0px;

top: 0px;

bottom: 0px;

background-color:rgba(0,0,0,0.2);

}

你可能感兴趣的:(Weex中写一个布满全屏的遮罩层)