初始化
This commit is contained in:
23
easyflow-ui-usercenter/app/src/components/card/Card.vue
Normal file
23
easyflow-ui-usercenter/app/src/components/card/Card.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import { cn } from '@easyflow/utils';
|
||||
|
||||
interface CardProps {
|
||||
class?: string;
|
||||
}
|
||||
|
||||
defineOptions({ name: 'Card' });
|
||||
const props = defineProps<CardProps>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
:class="
|
||||
cn(
|
||||
'flex w-full max-w-60 cursor-pointer items-start gap-2.5 rounded-lg pb-2.5 pl-2.5 pr-5 pt-3.5',
|
||||
props.class,
|
||||
)
|
||||
"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user