更改页面的内容
Some checks failed
CI / lint (push) Failing after 29m56s
CI / typecheck (push) Failing after 8m26s
CI / build (ubuntu-latest) (push) Failing after 18s

This commit is contained in:
2025-07-31 15:04:22 +08:00
parent a301b4c692
commit ce50120e40
39 changed files with 2692 additions and 110 deletions

View File

@@ -0,0 +1,26 @@
<script setup>
const props = defineProps({
type: {
type: String,
default: () => '',
},
})
const alertClass = computed(() => {
return {
warning: 'bg-orange-100 border-orange-200 dark:bg-orange-900 dark:border-orange-800',
info: 'bg-blue-100 border-blue-200 dark:bg-blue-900 dark:border-blue-800',
success: 'bg-green-100 border-green-200 dark:bg-green-900 dark:border-green-800',
}[props.type]
})
</script>
<template>
<div
class="text-black p-2 border dark:text-white rounded"
:class="alertClass"
>
<slot mdc-unwrap="p" />
</div>
</template>