This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复layer的radius参数无效的bug

old
宇天 2019-12-23 23:51:51 +08:00
parent 89dd67647b
commit cf610e9d72
1 changed files with 7 additions and 5 deletions

View File

@ -289,6 +289,7 @@ class Layer {
blur: false,
background: null,
mask: false,
radius: null,
'mask-close': false,
'mask-color': null,
fixed: true //是否固定位置
@ -606,15 +607,16 @@ class Layer {
case 'blur':
this.props[name] = true
break
case 'radius':
this.props.radius = val
break
case 'left':
case 'right':
case 'top':
case 'bottom':
if (val !== null) {
this.props.from[name] = val
this.props.to = this.props.from
this.removeAttribute(name)
}
break
case 'fixed':
this.fixed = true