diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-18 18:36:34 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-18 18:36:34 +0800 |
| commit | b2c2f9db4b334427c34b2111a4b6609b7af0339b (patch) | |
| tree | 10aefefa7f7498fe1061cbd3a0febfac5296e172 /frontend/src/lib/components/ui/collapsible/collapsible-content.svelte | |
| parent | ef81ecafcb5a07efd557e15fe686cb434cf45261 (diff) | |
| download | strategy-lab-b2c2f9db4b334427c34b2111a4b6609b7af0339b.tar.gz | |
[实现方案] 结果页默认折叠 Collapsible「技术口径」渲染 result.assumptions 键值对;warnings Alert 仅显示真实警告(无 assumptions 字段不渲染)
Diffstat (limited to 'frontend/src/lib/components/ui/collapsible/collapsible-content.svelte')
| -rw-r--r-- | frontend/src/lib/components/ui/collapsible/collapsible-content.svelte | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/src/lib/components/ui/collapsible/collapsible-content.svelte b/frontend/src/lib/components/ui/collapsible/collapsible-content.svelte new file mode 100644 index 0000000..bdabb55 --- /dev/null +++ b/frontend/src/lib/components/ui/collapsible/collapsible-content.svelte @@ -0,0 +1,7 @@ +<script lang="ts"> + import { Collapsible as CollapsiblePrimitive } from "bits-ui"; + + let { ref = $bindable(null), ...restProps }: CollapsiblePrimitive.ContentProps = $props(); +</script> + +<CollapsiblePrimitive.Content bind:ref data-slot="collapsible-content" {...restProps} /> |
