fix: empty list don't render placeholder

This commit is contained in:
xukuanzhuo
2023-12-05 21:15:32 +08:00
committed by Hufe
parent 1487033d75
commit 910f75662f
+1 -1
View File
@@ -1823,7 +1823,7 @@ export class Draw {
this.waterMark.render(ctx)
}
// 绘制空白占位符
if (this.elementList.length <= 1) {
if (this.elementList.length <= 1 && !this.elementList[0]?.listId) {
this.placeholder.render(ctx)
}
}