weex-eros

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

2018-05-29  本文已影响0人  Echo_前端

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);

}

上一篇下一篇

猜你喜欢

热点阅读