UI流程完善

This commit is contained in:
kron
2025-05-10 16:57:36 +08:00
parent a8834ad899
commit 0ce3b77f0a
32 changed files with 896 additions and 68 deletions

View File

@@ -0,0 +1,38 @@
<script setup>
const props = defineProps({
width: {
type: String,
default: "calc(100vw - 20px)",
},
rounded: {
type: Number,
default: 10,
},
onClick: {
type: Function,
default: () => {},
},
});
</script>
<template>
<view
class="container"
:style="{ width: width, borderRadius: rounded + 'px' }"
@click="onClick"
>
<slot />
</view>
</template>
<style scoped>
.container {
margin: 0 auto;
height: 40px;
line-height: 40px;
font-weight: bold;
background-color: #fed847;
font-size: 15px;
text-align: center;
}
</style>