You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
436 B
Vue
27 lines
436 B
Vue
<template>
|
|
<view class="uni-form-item uni-column">
|
|
<view class="title">{{title}}</view>
|
|
<view class="item">
|
|
<slot></slot>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
const props = defineProps(['title'])
|
|
console.log(props);
|
|
</script>
|
|
|
|
<style scoped>
|
|
.title {
|
|
display: inline-block;
|
|
}
|
|
|
|
.item {
|
|
width: 200rpx;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
border: 1px solid #ddd;
|
|
border-radius: 10rpx;
|
|
}
|
|
</style> |