mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-10 00:23:15 +08:00
chore: 更新表单描述显示样式 (#6938)
This commit is contained in:
@@ -381,10 +381,10 @@ onUnmounted(() => {
|
|||||||
<div v-if="suffix" class="ml-1">
|
<div v-if="suffix" class="ml-1">
|
||||||
<VbenRenderContent :content="suffix" />
|
<VbenRenderContent :content="suffix" />
|
||||||
</div>
|
</div>
|
||||||
<FormDescription v-if="description" class="ml-1">
|
|
||||||
<VbenRenderContent :content="description" />
|
|
||||||
</FormDescription>
|
|
||||||
</div>
|
</div>
|
||||||
|
<FormDescription v-if="description" class="text-xs">
|
||||||
|
<VbenRenderContent :content="description" />
|
||||||
|
</FormDescription>
|
||||||
|
|
||||||
<Transition name="slide-up" v-if="!compact">
|
<Transition name="slide-up" v-if="!compact">
|
||||||
<FormMessage class="absolute" />
|
<FormMessage class="absolute" />
|
||||||
|
|||||||
@@ -67,6 +67,13 @@ const [BaseForm, baseFormApi] = useVbenForm({
|
|||||||
label: '字符串',
|
label: '字符串',
|
||||||
rules: 'required',
|
rules: 'required',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
component: 'Input',
|
||||||
|
fieldName: 'desc',
|
||||||
|
// 界面显示的description
|
||||||
|
description: '这是表单描述',
|
||||||
|
label: '字符串(带描述)',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
// 组件需要在 #/adapter.ts内注册,并加上类型
|
// 组件需要在 #/adapter.ts内注册,并加上类型
|
||||||
component: 'ApiSelect',
|
component: 'ApiSelect',
|
||||||
|
|||||||
Reference in New Issue
Block a user