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

1725
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -82,7 +82,7 @@ catalog:
'@types/json-bigint': ^1.0.4
'@types/jsonwebtoken': ^9.0.10
'@types/lodash.clonedeep': ^4.5.9
'@types/node': ^25.9.2
'@types/node': ^25.9.3
'@types/nprogress': ^0.2.3
'@types/qrcode': ^1.5.6
'@types/qs': ^6.15.1
@@ -121,7 +121,7 @@ catalog:
echarts: ^6.1.0
element-plus: ^2.14.1
es-toolkit: ^1.47.0
eslint: ^10.4.1
eslint: ^10.5.0
eslint-plugin-better-tailwindcss: ^4.5.0
eslint-plugin-command: ^3.5.2
eslint-plugin-jsonc: ^3.2.0
@@ -137,7 +137,7 @@ catalog:
get-port: ^7.2.0
globals: ^17.6.0
h3: ^1.15.11
happy-dom: ^20.10.2
happy-dom: ^20.10.4
html-minifier-terser: ^7.2.0
is-ci: ^4.1.0
json-bigint: ^1.0.0
@@ -151,12 +151,12 @@ catalog:
nprogress: ^0.2.0
ora: ^9.4.0
oxfmt: ^0.53.0
oxlint: ^1.68.0
oxlint: ^1.70.0
oxlint-tsgolint: ^0.23.0
pinia: ^3.0.4
pinia-plugin-persistedstate: ^4.7.1
pkg-types: ^2.3.1
playwright: ^1.60.0
playwright: ^1.61.0
postcss: ^8.5.15
postcss-html: ^1.8.1
postcss-scss: ^4.0.9
@@ -180,12 +180,12 @@ catalog:
stylelint-order: ^8.1.1
stylelint-scss: ^7.2.0
tailwind-merge: ^3.6.0
tailwindcss: ^4.3.0
tailwindcss: ^4.3.1
tdesign-vue-next: ^1.20.1
theme-colors: ^0.1.0
tippy.js: ^6.3.7
tsdown: ^0.22.2
turbo: ^2.9.16
turbo: ^2.9.18
tw-animate-css: ^1.4.0
typescript: ^6.0.3
unplugin-dts: ^1.0.2
@@ -199,14 +199,14 @@ catalog:
vite-plugin-vue-devtools: ^8.1.2
vitepress: ^2.0.0-alpha.17
vitepress-plugin-group-icons: ^1.7.5
vitest: ^4.1.8
vitest: ^4.1.9
vue: ^3.5.35
vue-eslint-parser: ^10.4.1
vue-i18n: ^11.4.4
vue-json-pretty: ^2.6.0
vue-router: ^5.1.0
vue-tippy: ^6.7.1
vue-tsc: ^3.3.3
vue-tsc: ^3.3.5
vxe-pc-ui: ^4.14.30
vxe-table: ^4.19.7
watermark-js-plus: ^1.6.3