From 4df6165fa93c7caeea86385312415e312de4d11f Mon Sep 17 00:00:00 2001 From: Moli <13026959681@163.com> Date: 星期二, 05 五月 2026 01:10:39 +0800 Subject: [PATCH] 暂存 --- docs/ops/user-manual/plugins/sample.webview-test.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/docs/ops/user-manual/plugins/sample.webview-test.md b/docs/ops/user-manual/plugins/sample.webview-test.md new file mode 100644 index 0000000..3827184 --- /dev/null +++ b/docs/ops/user-manual/plugins/sample.webview-test.md @@ -0,0 +1,47 @@ +# sample.webview-test WebView 娴嬭瘯鎻掍欢鎵嬪唽 + +鏃ユ湡锛�2026-05-04 + +## 鎻掍欢鐢ㄩ�� + +`sample.webview-test` 鏄紑鍙戝拰鎵嬪伐楠岃瘉鐢ㄦ彃浠讹紝鐢ㄤ簬妫�鏌� WebView2 鍔犺浇銆佸涓绘ˉ鎺ャ�佹彃浠� manifest銆侀�忔槑鑳屾櫙鍜屽熀纭�杩愯鏃剁姸鎬併�� + +璇ユ彃浠朵笉鏄潰鍚戞櫘閫氱敤鎴风殑榛樿鍔熻兘鎻掍欢锛岄�氬父鐢ㄤ簬寮�鍙戙�丵A 鎴栫幇鍦烘帓闅溿�� + +## 浣跨敤鏂瑰紡 + +1. 灏嗘彃浠剁洰褰曞鍒跺埌 `%AppData%\DesktopEnhancer\plugins\sample.webview-test`銆� +2. 鎵撳紑绠$悊绐楀彛銆� +3. 鐐瑰嚮鈥滈噸杞芥彃浠垛�濄�� +4. 鍦ㄢ�滄彃浠垛�濋〉闈㈢‘璁� `sample.webview-test` 鐘舵�併�� +5. 濡傞渶鏄剧ず涓虹粍浠讹紝纭 `plugins.json` 鍜� `layout.json` 涓湁瀵瑰簲鍚敤鐘舵�佸拰甯冨眬瀹炰緥銆� + +## 鎻掍欢鏂囦欢 + +婧愮爜鏍蜂緥鐩綍锛� + +```text +samples\plugins\sample.webview-test +``` + +鍏抽敭鏂囦欢锛� + +| 鏂囦欢 | 璇存槑 | +| --- | --- | +| `plugin.json` | 鎻掍欢 manifest | +| `index.html` | WebView 娴嬭瘯鍏ュ彛 | + +## 甯歌闂 + +### 鎻掍欢娌℃湁鍑虹幇鍦ㄥ垪琛ㄤ腑 + +- 纭鎻掍欢鐩綍鍚嶅拰 `plugin.json` 瀛樺湪銆� +- 鐐瑰嚮鈥滈噸杞芥彃浠垛�濄�� +- 鏌ョ湅绠$悊绐楀彛鈥滆瘖鏂�濋〉闈€�� + +### 椤甸潰鍔犺浇澶辫触 + +- 妫�鏌� `plugin.json` 涓殑 `entry` 鏄惁鎸囧悜瀛樺湪鐨勫叆鍙f枃浠躲�� +- 纭 WebView2 Runtime 宸插畨瑁呫�� +- 鏌ョ湅鏃ュ織鐩綍 `%LocalAppData%\DesktopEnhancer\logs`銆� + -- Gitblit v1.9.1