diff --git a/packages/components/form/src/form.type.ts b/packages/components/form/src/form.type.ts index ab3811a32a7f5..7f109b78dbdfe 100644 --- a/packages/components/form/src/form.type.ts +++ b/packages/components/form/src/form.type.ts @@ -1,9 +1,9 @@ import type { RuleItem } from 'async-validator' -export declare interface FormItemRule extends RuleItem { +export interface FormItemRule extends RuleItem { trigger?: string } -export declare interface FormRulesMap { +export interface FormRulesMap { [key: string]: FormItemRule | FormItemRule[] } diff --git a/packages/element-plus/package.json b/packages/element-plus/package.json index 89824fde33f58..3af885e8ca2ea 100644 --- a/packages/element-plus/package.json +++ b/packages/element-plus/package.json @@ -35,7 +35,7 @@ "dependencies": { "@popperjs/core": "^2.10.1", "@vueuse/core": "~6.1.0", - "async-validator": "^3.4.0", + "async-validator": "^4.0.3", "dayjs": "^1.10.7", "lodash": "^4.17.21", "memoize-one": "^5.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c648b870bfb41..69f760196379a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -192,7 +192,7 @@ importers: specifiers: '@popperjs/core': ^2.10.1 '@vueuse/core': ~6.1.0 - async-validator: ^3.4.0 + async-validator: ^4.0.3 dayjs: ^1.10.7 lodash: ^4.17.21 memoize-one: ^5.2.1 @@ -201,7 +201,7 @@ importers: dependencies: '@popperjs/core': 2.10.1 '@vueuse/core': 6.1.0_vue@3.2.18 - async-validator: 3.4.0 + async-validator: 4.0.3 dayjs: 1.10.7 lodash: 4.17.21 memoize-one: 5.2.1 @@ -2539,10 +2539,6 @@ packages: async-done: 1.3.2 dev: true - /async-validator/3.4.0: - resolution: {integrity: sha512-VrFk4eYiJAWKskEz115iiuCf9O0ftnMMPXrOFMqyzGH2KxO7YwncKyn/FgOOP+0MDHMfXL7gLExagCutaZGigA==} - dev: false - /async-validator/3.5.2: resolution: {integrity: sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ==} dev: false