chore: update deps && lint

This commit is contained in:
金毛88
2026-06-16 16:24:50 +08:00
parent 741cbb3794
commit 769791351f
5 changed files with 1348 additions and 422 deletions

View File

@@ -476,6 +476,10 @@ export interface VbenFormProps<
*/
arrayToStringFields?: ArrayToStringFields;
/**
* submitOnChange改变时防抖时间 | 默认300ms
*/
changeDebouncedTime?: number;
/**
* 表单字段映射
*/
@@ -499,6 +503,7 @@ export interface VbenFormProps<
values: Record<string, any>,
fieldsChanged: string[],
) => void;
/**
* 重置按钮参数
*/
@@ -527,11 +532,6 @@ export interface VbenFormProps<
*/
submitOnChange?: boolean;
/**
* submitOnChange改变时防抖时间 | 默认300ms
*/
changeDebouncedTime?: number;
/**
* 是否在回车时提交表单
* @default false

View File

@@ -11,9 +11,17 @@ import { cloneDeep, get, isEqual, set } from '@vben-core/shared/utils';
import { useDebounceFn } from '@vueuse/core';
import FormActions from './components/form-actions.vue';
import { COMPONENT_BIND_EVENT_MAP, COMPONENT_MAP, DEFAULT_FORM_COMMON_CONFIG } from './config';
import {
COMPONENT_BIND_EVENT_MAP,
COMPONENT_MAP,
DEFAULT_FORM_COMMON_CONFIG,
} from './config';
import { Form } from './form-render';
import { provideComponentRefMap, provideFormProps, useFormInitial } from './use-form-context';
import {
provideComponentRefMap,
provideFormProps,
useFormInitial,
} from './use-form-context';
// 通过 extends 会导致热更新卡死,所以重复写了一遍
interface Props extends VbenFormProps {

View File

@@ -92,7 +92,10 @@ onMounted(() => {
</div>
</div>
<div :class="cn(autoContentHeight ? 'h-full' : 'flex-1', 'p-4', contentClass)" :style="contentStyle">
<div
:class="cn(autoContentHeight ? 'h-full' : 'flex-1', 'p-4', contentClass)"
:style="contentStyle"
>
<slot></slot>
</div>
<div