From d85ac2c9761de24194bb1c60f8cdacc6b7094384 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 6 Jun 2026 19:33:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20form=20=E8=A1=A8=E5=8D=95=E8=B5=8B?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/src/adapter/form.ts | 2 +- playground/src/views/examples/modal/form-modal-demo.vue | 1 + playground/src/views/examples/modal/index.vue | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/playground/src/adapter/form.ts b/playground/src/adapter/form.ts index 809edbede..f535d02c9 100644 --- a/playground/src/adapter/form.ts +++ b/playground/src/adapter/form.ts @@ -11,7 +11,7 @@ import { $t } from '@vben/locales'; async function initSetupVbenForm() { setupVbenForm({ config: { - // ant design vue组件库默认都是 v-model:value + // antdv-next 组件库默认都是 v-model:value baseModelPropName: 'value', // 一些组件是 v-model:checked 或者 v-model:fileList modelPropNameMap: { diff --git a/playground/src/views/examples/modal/form-modal-demo.vue b/playground/src/views/examples/modal/form-modal-demo.vue index 8e15bbb21..725d86d6a 100644 --- a/playground/src/views/examples/modal/form-modal-demo.vue +++ b/playground/src/views/examples/modal/form-modal-demo.vue @@ -33,6 +33,7 @@ const [Form, formApi] = useVbenForm({ { component: 'Select', componentProps: { + class: 'w-full', options: [ { label: '选项1', value: '1' }, { label: '选项2', value: '2' }, diff --git a/playground/src/views/examples/modal/index.vue b/playground/src/views/examples/modal/index.vue index f8425d153..7b659e4ce 100644 --- a/playground/src/views/examples/modal/index.vue +++ b/playground/src/views/examples/modal/index.vue @@ -108,7 +108,7 @@ function openFormModal() { formModalApi .setData({ // 表单值 - values: { field1: 'abc', field2: '123' }, + values: { field1: 'abc', field2: '123', field3: '1' }, }) .open(); }