@blueking/ai-ui-sdk 0.0.1 → 0.0.2-beta.2
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 +8 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -50,13 +50,16 @@ url(${E}) format("embedded-opentype");
|
|
50
50
|
找到 ${A.length} 篇资料参考
|
51
51
|
<i class="ai-ui-sdk-icon ai-ui-sdk-angle-up"></i>
|
52
52
|
</section>
|
53
|
-
<ul class="knowledge-body">`;return A.forEach(A=>{let{
|
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="${
|
55
|
+
title="${o} (${i})"
|
56
56
|
>
|
57
|
-
<i class="ai-ui-sdk-icon
|
58
|
-
<a href="${
|
59
|
-
${
|
57
|
+
<i class="ai-ui-sdk-icon icon-zhishiku"></i>
|
58
|
+
<a href="${i}" target="_blank" class="knowledge-link g-flex-truncate">
|
59
|
+
${o}
|
60
|
+
</a>
|
61
|
+
<a href="${t}" title="预览知识" target="_blank" class="knowledge-link g-flex-truncate">
|
62
|
+
<i class="ai-ui-sdk-icon ai-ui-sdk-yanjing-kejian"></i>
|
60
63
|
</a>
|
61
64
|
</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 {
|
62
65
|
position: relative;
|