From d55461efb3da43035c24b812ff39f8e2ee4650ec Mon Sep 17 00:00:00 2001 From: mantou132 <709922234@qq.com> Date: Thu, 27 Jun 2024 01:09:21 +0800 Subject: [PATCH] [gem] Improve async render element Closed #174, #173 --- packages/gem-devtools/package.json | 1 + packages/gem-devtools/src/sidebarpanel.ts | 3 +++ packages/gem-devtools/src/test.html | 29 +++++++++++++++++++++++ packages/gem-examples/src/async/index.ts | 3 +-- packages/gem/src/lib/element.ts | 2 ++ 5 files changed, 36 insertions(+), 2 deletions(-) diff --git a/packages/gem-devtools/package.json b/packages/gem-devtools/package.json index 932395c3..196686f0 100644 --- a/packages/gem-devtools/package.json +++ b/packages/gem-devtools/package.json @@ -4,6 +4,7 @@ "description": "Gem devtools", "scripts": { "update:version": "node ./scripts/update.js", + "serve": "vite", "build": "vite build", "watch": "yarn build --watch", "build:zip": "yarn build && web-ext build", diff --git a/packages/gem-devtools/src/sidebarpanel.ts b/packages/gem-devtools/src/sidebarpanel.ts index 9e04ca5c..4018294c 100644 --- a/packages/gem-devtools/src/sidebarpanel.ts +++ b/packages/gem-devtools/src/sidebarpanel.ts @@ -34,6 +34,9 @@ setInterval(updateElementProperties, 300); render( html`