{"id":3275,"date":"2024-11-08T15:32:03","date_gmt":"2024-11-08T07:32:03","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=3275"},"modified":"2024-11-08T15:32:04","modified_gmt":"2024-11-08T07:32:04","slug":"%e5%a6%82%e4%bd%95%e7%9b%91%e5%90%ac%e4%be%a7%e8%be%b9%e6%a0%8f%e4%b8%ad%e4%b8%8d%e5%90%8c%e9%9d%a2%e6%9d%bf%e7%9a%84%e6%89%a9%e5%b1%95%e6%88%96%e6%94%b6%e7%bc%a9%e4%ba%8b%e4%bb%b6%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=3275","title":{"rendered":"\u5982\u4f55\u76d1\u542c\u4fa7\u8fb9\u680f\u4e2d\u4e0d\u540c\u9762\u677f\u7684\u6269\u5c55\u6216\u6536\u7f29\u4e8b\u4ef6\uff1f"},"content":{"rendered":"\n<h1 class=\"wp-block-heading has-body-font-family has-medium-font-size\">1. \u83b7\u53d6\u76f8\u5173\u7ec4\u4ef6\u7684\u540d\u79f0<\/h1>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u53f3\u952e\u70b9\u51fb\u8be5\u7ec4\u4ef6\uff0c\u9009\u62e9 \u201c\u5ba1\u67e5\u201d\uff1b\u7136\u540e\u5728\u5bf9\u5e94\u7684 &lt;a>\u6807\u7b7e\u4e2d\u627e\u5230 component-name \u5c5e\u6027\u7684\u503c\u3002\u5bf9\u4e8e\u5bb9\u5668\u7ec4\u4ef6\uff0c\u6bd4\u5982target: &#8216;hometab-group-hand&#8217;\uff0c\u60a8\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u53f3\u952e\u70b9\u51fb\u5176\u4e2d\u4e00\u4e2a\u5b50\u7ec4\u4ef6\uff0c\u9009\u62e9 \u201c\u5ba1\u67e5\u201d\uff1b\u7136\u540e\u5728\u76f8\u5173\u7684&lt;div>\u6807\u7b7e\u4e2d\u627e\u5230 component-name \u5c5e\u6027\u7684\u503c\u3002<\/p>\n\n\n\n<p>\u4fa7\u8fb9\u680f\u76f8\u5173\u7684\u7ec4\u4ef6\u540d\u79f0\u6c47\u603b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7ec4\u4ef6\u540d\u79f0<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>sidebar<\/td><td>\u6574\u4f53\u4fa7\u8fb9\u680f\u7684\u5916\u5c42\u5bb9\u5668<\/td><\/tr><tr><td>sidebar-bookmark-v2<\/td><td>\u4e66\u7b7e\u9762\u677f<\/td><\/tr><tr><td>sidebar-thumbnail-panel<\/td><td>\u9875\u9762\u7f29\u7565\u56fe\u9762\u677f<\/td><\/tr><tr><td>comment-list-sidebar-panel<\/td><td>\u6ce8\u91ca\u5217\u8868\u9762\u677f<\/td><\/tr><tr><td>sidebar-layers<\/td><td>\u56fe\u5c42\u9762\u677f<\/td><\/tr><tr><td>sidebar-attachment<\/td><td>PDF\u9644\u4ef6\u9762\u677f<\/td><\/tr><tr><td>sidebar-field<\/td><td>\u8868\u5355\u57df\u9762\u677f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading has-body-font-family has-medium-font-size\">2. \u83b7\u53d6\u76f8\u5173\u7ec4\u4ef6\u5bf9\u8c61\uff0c\u5e76\u5728\u5176\u56de\u8c03\u51fd\u6570\u4e2d\u8fdb\u884c\u4e8b\u4ef6\u76d1\u542c<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u53ea\u60f3\u8981\u76d1\u542c\u6574\u4f53\u4fa7\u8fb9\u680f\u7684\u6269\u5c55\u6216\u6536\u7f29\u4e8b\u4ef6\uff0c\u53ea\u9700\u62ff\u5230sidebar\u7ec4\u4ef6\u5bf9\u8c61\uff0c\u901a\u8fc7\u5176\u63d0\u4f9b\u7684expand \u548ccollapse\u4e8b\u4ef6\u56de\u8c03\u5373\u53ef\u6ee1\u8db3\u4e1a\u52a1\u529f\u80fd\u7684\u63d2\u5165\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>pdfui.getComponentByName(\"sidebar\").then(com =&gt; {\n    com.on('expand', () =&gt; {\n        console.log(\"sidebar\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('collapse', () =&gt; {\n        console.log(\"sidebar\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u9700\u8981\u5bf9\u4fa7\u8fb9\u680f\u4e2d\u7684\u5177\u4f53\u67d0\u4e2a\u6216\u67d0\u51e0\u4e2a\u9762\u677f\u7684\u6269\u5c55\/\u6536\u7f29\u4e8b\u4ef6\u8fdb\u884c\u76d1\u542c\uff0c\u5219\u9700\u62ff\u5230\u5bf9\u5e94\u7684\u7ec4\u4ef6\u5bf9\u8c61\uff0c\u7136\u540e\u518d\u901a\u8fc7\u5176\u63d0\u4f9b\u7684expand \u548ccollapse\u4e8b\u4ef6\u56de\u8c03\u5373\u53ef\u6ee1\u8db3\u4e1a\u52a1\u529f\u80fd\u7684\u63d2\u5165\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code has-body-font-family has-medium-font-size\"><code>pdfui.getComponentByName(\"sidebar-bookmark-v2\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u4e66\u7b7e\u5217\u8868panel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u4e66\u7b7e\u5217\u8868panel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName(\"sidebar-thumbnail-panel\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u9875\u9762\u7f29\u7565\u56fepanel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u9875\u9762\u7f29\u7565\u56fepanel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName(\"comment-list-sidebar-panel\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u6ce8\u91ca\u5217\u8868panel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u6ce8\u91ca\u5217\u8868panel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName(\"sidebar-layers\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u56fe\u5c42panel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u56fe\u5c42panel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName(\"sidebar-attachment\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u9644\u4ef6panel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u9644\u4ef6panel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName(\"sidebar-field\").then(com =&gt; {\n    com.on('active', () =&gt; {\n        console.log(\"\u8868\u5355\u5217\u8868panel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n    })\n    com.on('deactive', () =&gt; {\n        console.log(\"\u8868\u5355\u5217\u8868panel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n    })\n});\npdfui.getComponentByName('diy-sidebar-panel').then(com =&gt; {\n    com.on('active', () =&gt; {\n            console.log(\"\u81ea\u5b9a\u4e49\u4fa7\u8fb9\u680fpanel\u6fc0\u6d3b\uff0c\u4fa7\u8fb9\u680f\u6269\u5c55\u3002\")\n        })\n        com.on('deactive', () =&gt; {\n            console.log(\"\u81ea\u5b9a\u4e49\u4fa7\u8fb9\u680fpanel\u505c\u7528\uff0c\u4fa7\u8fb9\u680f\u6536\u7f29\u3002\")\n        })\n})<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-verse\"> \u66f4\u591a\u5185\u5bb9\u53ef\u67e5\u9605\u5f00\u53d1\u8005\u624b\u518c\u4e2d\uff1a\u201c\u7ec4\u4ef6\u201d-\u201c\u57fa\u7840\u7ec4\u4ef6\u201d-\u201cSidebar\u7ec4\u4ef6\u201d\u7ae0\u8282\u7684\u5185\u5bb9\u3002<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \u83b7\u53d6\u76f8\u5173\u7ec4\u4ef6\u7684\u540d\u79f0 \u60a8\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u53f3\u952e\u70b9\u51fb\u8be5\u7ec4\u4ef6\uff0c\u9009\u62e9 \u201c\u5ba1\u67e5\u201d\uff1b\u7136\u540e\u5728\u5bf9\u5e94\u7684 &lt;a>\u6807\u7b7e\u4e2d\u627e\u5230 [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-3275","post","type-post","status-publish","format-standard","hentry","category-websdk"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3275"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3275\/revisions"}],"predecessor-version":[{"id":3292,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/3275\/revisions\/3292"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}