add image blur

This commit is contained in:
pengfei.zhou 2019-12-21 18:53:53 +08:00
parent 2f311f4c25
commit 20ea0841bc

View File

@ -43,6 +43,13 @@ export class DoricImageNode extends DoricViewNode {
break
}
break
case 'isBlur':
if (prop) {
v.style.filter = 'blur(8px)'
} else {
v.style.filter = ''
}
break
default:
super.blendProps(v, propName, prop)
break