chore: update deps && lint
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user