update
This commit is contained in:
21
src/components/XFormItem.vue
Normal file
21
src/components/XFormItem.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<script setup>
|
||||
const {label} = defineProps({
|
||||
label: {
|
||||
type: String,
|
||||
default: null,
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="x-form-item">
|
||||
<view class="!mb-[8rpx]" v-if="label">{{ label }}</view>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.x-form-item {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user