v1.0
This commit is contained in:
26
components/card/card.vue
Normal file
26
components/card/card.vue
Normal file
@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<view
|
||||
:class="['card', props.class]"
|
||||
:style="{ width: width ? width + 'rpx' : '100%' }"
|
||||
>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
const props = defineProps(['class', 'width'])
|
||||
console.log("gxs --> % props:\n", props)
|
||||
const className = ref(props.class)
|
||||
const width = ref(props.width)
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.card {
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
border-radius: 7.5rpx;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user