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(); }