From fb943c530e57deb3a81a169dc706b878312aa40d Mon Sep 17 00:00:00 2001 From: "zude.hzd" Date: Thu, 19 Nov 2020 23:03:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=9D=99=E6=80=81=E5=87=BD=E6=95=B0onInit,=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E6=8F=92=E4=BB=B6=E5=AE=89=E8=A3=85=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E4=BC=9A=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-skeleton/src/widget/panel.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor-skeleton/src/widget/panel.ts b/packages/editor-skeleton/src/widget/panel.ts index 25eecb78d..40fbaead4 100644 --- a/packages/editor-skeleton/src/widget/panel.ts +++ b/packages/editor-skeleton/src/widget/panel.ts @@ -109,6 +109,10 @@ export default class Panel implements IWidget { if (props.onInit) { props.onInit.call(this, this); } + + if (content.onInit) { + content.onInit.call(this, this); + } // todo: process shortcut }