feat: 添加 Divider 和 Input 组件,更新主题变量

This commit is contained in:
2025-12-12 00:11:27 +07:00
parent 98b8b1aab6
commit 088ebf1f76
3 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<script lang='ts' setup>
defineProps<{ text?: string }>();
</script>
<template>
<div class="divider ion-margin-vertical" v-bind="$attrs">
<span>{{ text }}</span>
</div>
</template>
<style scoped>
.divider {
display: flex;
align-items: center;
text-align: center;
margin: 20px 0;
}
.divider::before,
.divider::after {
content: "";
flex: 1;
border-bottom: 1px solid var(--ion-color-medium);
}
.divider span {
padding: 0 10px;
color: var(--ion-color-medium);
font-size: 14px;
}
</style>