From b5edc4b140f18e3224e659f64ae3de6f11a652a7 Mon Sep 17 00:00:00 2001 From: "lihao.ylh" Date: Thu, 24 Jun 2021 14:32:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E5=88=B6=E7=94=BB=E5=B8=83=E4=B8=AD=E8=A2=AB=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=9A=84=E8=8A=82=E7=82=B9=E9=80=89=E6=8B=A9=E5=99=A8=20-=20cu?= =?UTF-8?q?stomizeIgnoreSelectors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/builtin-simulator/host.ts | 4 +++- packages/engine/src/engine-core.ts | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/designer/src/builtin-simulator/host.ts b/packages/designer/src/builtin-simulator/host.ts index 7ad6547bb..09080c7a8 100644 --- a/packages/designer/src/builtin-simulator/host.ts +++ b/packages/designer/src/builtin-simulator/host.ts @@ -695,8 +695,9 @@ export class BuiltinSimulatorHost implements ISimulatorHost defaultSelectors); // TODO: need more elegant solution to ignore click events of components in designer - const ignoreSelectors: any = [ + const defaultIgnoreSelectors: any = [ '.next-input-group', '.next-checkbox-group', '.next-checkbox-wrapper', @@ -718,6 +719,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost selectors + */ + customizeIgnoreSelectors?: (defaultIgnoreSelectors: string[]) => string[]; /** * Vision-polyfill settings */