@keyueclaw/web-sdk 0.1.8 → 0.1.9
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.
|
@@ -843,9 +843,9 @@ else:
|
|
|
843
843
|
</div>
|
|
844
844
|
</section>
|
|
845
845
|
</div>
|
|
846
|
-
`}var BA=null,VA=8;function HA(e){if(BA?.disconnect(),BA=null,!(e instanceof HTMLElement))return;let t=()=>{let t=e.parentElement;if(!t)return;let n=0;for(let r of Array.from(t.children)){if(r===e)break;n+=r.offsetHeight}let r=getComputedStyle(t),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=Math.max(t.clientHeight-n-i,100);if(e.style.height===a+`px`)return;e.style.height=a+`px`;let o=e.querySelector(`thead`),s=e.querySelector(`tbody`);o&&s&&(s.style.height=Math.max(a-o.offsetHeight-VA,50)+`px`)};BA=new ResizeObserver(t),BA.observe(e.parentElement
|
|
847
|
-
<section class="card">
|
|
848
|
-
<div style="display:flex;align-items:center;gap:12px;margin-bottom:16px;">
|
|
846
|
+
`}var BA=null,VA=8;function HA(e){if(BA?.disconnect(),BA=null,!(e instanceof HTMLElement))return;let t=()=>{let t=e.parentElement;if(!t)return;let n=0;for(let r of Array.from(t.children)){if(r===e)break;n+=r.offsetHeight}let r=getComputedStyle(t),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=Math.max(t.clientHeight-n-i,100);if(e.style.height===a+`px`)return;e.style.height=a+`px`;let o=e.querySelector(`thead`),s=e.querySelector(`tbody`);o&&s&&(s.style.height=Math.max(a-o.offsetHeight-VA,50)+`px`)};BA=new ResizeObserver(t),BA.observe(e.parentElement),t()}function UA(e){let t=`background:none;border:none;padding:4px 6px;cursor:pointer;color:#3658ff;display:inline-flex;align-items:center;gap:4px;border-radius:4px;font-size:13px;`,n=new Set(e.selectedIds),r=e.items.filter(e=>n.has(e.id)).length,i=e.items.length>0&&r===e.items.length;return S`
|
|
847
|
+
<section class="card" style="height:100%;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;">
|
|
848
|
+
<div style="display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-shrink:0;">
|
|
849
849
|
<input class="input"
|
|
850
850
|
style="flex:1;max-width:300px;height:32px;padding:0 8px;border-radius:8px;box-sizing:border-box;border:1px solid var(--keyueclaw-border-strong);outline:none;box-shadow:none;"
|
|
851
851
|
.value=${e.query} placeholder="搜索接口名称、URL、描述"
|
|
@@ -921,7 +921,7 @@ else:
|
|
|
921
921
|
</div>
|
|
922
922
|
</div>
|
|
923
923
|
|
|
924
|
-
${e.error?S`<div class="callout danger" style="margin-bottom:12px;">${e.error}</div>`:null}
|
|
924
|
+
${e.error?S`<div class="callout danger" style="margin-bottom:12px;flex-shrink:0;">${e.error}</div>`:null}
|
|
925
925
|
|
|
926
926
|
<div ${Ft(HA)} style="overflow:hidden;border:1px solid var(--keyueclaw-border);border-radius:var(--keyueclaw-radius-md);">
|
|
927
927
|
<table style="width:100%;border-collapse:collapse;min-width:960px;table-layout:fixed;">
|