Fix:修复在节点文本编辑中调用destroy方法时setBackgroundStyle方法会报错的问题
This commit is contained in:
parent
b895a58194
commit
dd3e169946
@ -12,6 +12,7 @@ const backgroundStyleProps = [
|
|||||||
class Style {
|
class Style {
|
||||||
// 设置背景样式
|
// 设置背景样式
|
||||||
static setBackgroundStyle(el, themeConfig) {
|
static setBackgroundStyle(el, themeConfig) {
|
||||||
|
if (!this.el) return
|
||||||
// 缓存容器元素原本的样式
|
// 缓存容器元素原本的样式
|
||||||
if (!Style.cacheStyle) {
|
if (!Style.cacheStyle) {
|
||||||
Style.cacheStyle = {}
|
Style.cacheStyle = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user