refactor: instance export modal (#6543)

* refactor: export modal w the design system

* fix: lint

* fix: rev

* fix: lint

* fix: qa
This commit is contained in:
Calum H.
2026-06-29 17:01:00 +00:00
committed by GitHub
parent c2f4835fe7
commit 862b54f00d
33 changed files with 857 additions and 290 deletions
+13 -1
View File
@@ -126,7 +126,7 @@
<div
v-if="$slots.actions"
:class="{ 'pt-4 border-0 border-t border-solid border-surface-5': actionsDivider }"
class="p-4 pt-0"
class="p-4"
>
<slot name="actions" />
</div>
@@ -292,10 +292,22 @@ function hide() {
}, 300)
}
async function scrollToBottom(behavior: ScrollBehavior = 'smooth') {
await nextTick()
if (!scrollContainer.value) return
scrollContainer.value.scrollTo({
top: scrollContainer.value.scrollHeight,
behavior,
})
requestAnimationFrame(checkScrollState)
}
defineExpose({
show,
hide,
checkScrollState,
scrollToBottom,
})
const mouseX = ref(0)