feat:关于页面&对接websocket
This commit is contained in:
25
frontend/src/components/card/card.vue
Normal file
25
frontend/src/components/card/card.vue
Normal file
@@ -0,0 +1,25 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
title: { type: String },
|
||||
style: {
|
||||
default: () => ({
|
||||
padding: '0'
|
||||
})
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="card">
|
||||
<a-card :bodyStyle="style" :title="title">
|
||||
<slot></slot>
|
||||
</a-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
width: 100%;
|
||||
margin: 10px;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user