From 91a795f55f3f8139dd608e29cb408eb8020bda81 Mon Sep 17 00:00:00 2001 From: zsmj Date: Sat, 22 Oct 2022 13:22:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=97=A0JIRA=20=E6=B7=BB=E5=8A=A0BI.execWi?= =?UTF-8?q?thContext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index bca87b9fc..8be3a9058 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -927,6 +927,16 @@ return vm; }; + BI.execWithContext = function (_context, fn) { + BI.Widget.pushContext(_context); + try { + fn(); + } catch (e) { + // nothing + } + BI.Widget.popContext(); + }; + BI.watch = function (vm, watch, handler) { // 必须要保证组件当前环境存在 if (BI.Widget.current) { From 501657c9cfe83d8470a6eae5aeafee2334ccfb27 Mon Sep 17 00:00:00 2001 From: data Date: Sat, 22 Oct 2022 18:34:38 +0800 Subject: [PATCH 2/3] auto upgrade version to 2.0.20221022183431 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b468a5c37..be2ef018d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20221022172437", + "version": "2.0.20221022183431", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts", From d0273e0849e22e1e62b4f6cdc77cd5de03304956 Mon Sep 17 00:00:00 2001 From: data Date: Sat, 22 Oct 2022 20:24:42 +0800 Subject: [PATCH 3/3] auto upgrade version to 2.0.20221022202435 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be2ef018d..20d118ed6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fineui", - "version": "2.0.20221022183431", + "version": "2.0.20221022202435", "description": "fineui", "main": "dist/fineui_without_conflict.min.js", "types": "dist/lib/index.d.ts",