From 4a4f04970d07f6ac6a22627625fe8591d0bb8dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 28 Sep 2021 11:58:16 +0800 Subject: [PATCH] fix(components): [el-form] fix async-validator version (#3697) --- packages/components/form/src/form.type.ts | 4 ++-- packages/element-plus/package.json | 2 +- pnpm-lock.yaml | 8 ++------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/components/form/src/form.type.ts b/packages/components/form/src/form.type.ts index ab3811a32a..7f109b78db 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 89824fde33..3af885e8ca 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 c648b870bf..69f7601963 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