update
This commit is contained in:
@@ -9,7 +9,8 @@ const {label} = defineProps({
|
||||
|
||||
<template>
|
||||
<view class="x-form-item">
|
||||
<view class="!mb-[8rpx] x-form-item-label" v-if="label">{{ label }}</view>
|
||||
<view class="!mb-[8rpx] x-form-item-label" v-if="!$slots.label && label">{{ label }}</view>
|
||||
<slot name="label" v-else></slot>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user