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