@blueking/ai-ui-sdk 0.0.2-beta.6 → 0.0.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -52,13 +52,12 @@ url(${m}) format("embedded-opentype");
|
|
52
52
|
</section>
|
53
53
|
<ul class="knowledge-body">`;return A.forEach(A=>{let{path:t,file_path:n,preview_path:i}=A.metadata,o=n.split("/").pop();e+=`<li
|
54
54
|
class="knowledge-item"
|
55
|
-
title="${o} (${i})"
|
56
55
|
>
|
57
56
|
<i class="ai-ui-sdk-icon ai-ui-sdk-zhishiku"></i>
|
58
|
-
<a href="${i
|
57
|
+
<a href="${i}" title="${o} (${i})" target="_blank" class="knowledge-link g-flex-truncate">
|
59
58
|
${o}
|
60
59
|
</a>
|
61
|
-
<a href="${t}" title="
|
60
|
+
<a href="${t}" title="预览原文" target="_blank" class="knowledge-link hover-show">
|
62
61
|
<i class="ai-ui-sdk-icon ai-ui-sdk-yanjing-kejian"></i>
|
63
62
|
</a>
|
64
63
|
</li>`}),e+="</ul>"},g=A=>A.replace(/<section class="knowledge-head click-close">[\s\S]*?<\/section>/,"").replace(/<ul class="knowledge-body">[\s\S]*?<\/ul>/,"").replace(/<section class="knowledge-tips">[\s\S]*?<\/section>/,""),h=()=>{let A=null,e=()=>{let e=`.knowledge-tips {
|