添加项目文件。
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<script setup lang="ts">
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
items: string[]
|
||||
icon?: 'laser' | 'info'
|
||||
}>(),
|
||||
{ icon: undefined },
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<footer class="status-footer">
|
||||
<span v-if="icon" class="status-footer__icon" aria-hidden="true">
|
||||
<svg v-if="icon === 'laser'" viewBox="0 0 24 24">
|
||||
<path d="M4 17.5h8.5l2-3H22" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
|
||||
<path d="M4 17.5v2.2M9 17.5v2.2M14 17.5v2.2M19 17.5v2.2" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" />
|
||||
<path d="m15 4 3 3M18 4l-3 3M12 7h3M13.5 5.5v3" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
|
||||
</svg>
|
||||
<svg v-else viewBox="0 0 24 24">
|
||||
<circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="1.6" />
|
||||
<path d="M12 10.5v5.5M12 7.5v.6" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
|
||||
</svg>
|
||||
</span>
|
||||
|
||||
<span class="status-footer__text">
|
||||
<template v-for="(item, index) in items" :key="item">
|
||||
<span>{{ item }}</span>
|
||||
<span v-if="index < items.length - 1" class="status-footer__sep" aria-hidden="true">|</span>
|
||||
</template>
|
||||
</span>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.status-footer {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: 62px;
|
||||
padding: 0 42px;
|
||||
border-top: 1px solid #dde3eb;
|
||||
background: #fff;
|
||||
color: #4d5968;
|
||||
font-size: 20px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.status-footer__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: #7d8a99;
|
||||
}
|
||||
|
||||
.status-footer__icon svg {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.status-footer__text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.status-footer__sep {
|
||||
color: #c5cdd8;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user