feat: form colon support (#5156)

This commit is contained in:
Netfan
2024-12-16 22:37:29 +08:00
committed by GitHub
parent 38805a0e1f
commit 593916d6aa
5 changed files with 33 additions and 11 deletions

View File

@@ -16,6 +16,8 @@ const activeTab = ref('basic');
const [BaseForm, baseFormApi] = useVbenForm({
// 所有表单项共用,可单独在表单内覆盖
commonConfig: {
// 在label后显示一个冒号
colon: true,
// 所有表单项
componentProps: {
class: 'w-full',
@@ -40,6 +42,7 @@ const [BaseForm, baseFormApi] = useVbenForm({
fieldName: 'username',
// 界面显示的label
label: '字符串',
rules: 'required',
},
{
// 组件需要在 #/adapter.ts内注册并加上类型