From 630e87d00b5207e95a30eaba3bc63862cc3bb011 Mon Sep 17 00:00:00 2001 From: fennghuang <89014758+fennghuang@users.noreply.github.com> Date: Tue, 7 Nov 2023 08:52:53 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20lodash=20=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/message/message.vue | 3 ++- src/upload/hooks/useUpload.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/message/message.vue b/src/message/message.vue index 423729b96..354b027f2 100644 --- a/src/message/message.vue +++ b/src/message/message.vue @@ -38,7 +38,8 @@ import { onMounted, } from 'vue'; import { CheckCircleFilledIcon, CloseIcon, InfoCircleFilledIcon } from 'tdesign-icons-vue-next'; -import { isObject, isString } from 'lodash'; +import isObject from 'lodash/isObject'; +import isString from 'lodash/isString'; import Link from '../link'; import messageProps from './props'; diff --git a/src/upload/hooks/useUpload.ts b/src/upload/hooks/useUpload.ts index 5082cc9cf..5241b5972 100644 --- a/src/upload/hooks/useUpload.ts +++ b/src/upload/hooks/useUpload.ts @@ -1,5 +1,6 @@ import { computed, h, ref, toRefs, ComputedRef } from 'vue'; -import { isFunction, isString } from 'lodash'; +import isFunction from 'lodash/isFunction'; +import isString from 'lodash/isString'; import { SizeLimitObj, TdUploadProps, UploadChangeContext, UploadFile, UploadRemoveContext } from '../type'; import { useVModel } from '../../shared'; import {