From f45039002868a989e4127612fd44336a18bfe12f Mon Sep 17 00:00:00 2001 From: zbf Date: Sun, 8 Dec 2024 22:50:28 +0800 Subject: [PATCH] fix: icon type definition for copy code is incorrect --- packages/MdEditor/components/Icon/Icon.tsx | 7 ++----- packages/MdEditor/type.ts | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/MdEditor/components/Icon/Icon.tsx b/packages/MdEditor/components/Icon/Icon.tsx index 1c46e7da..afc1f226 100644 --- a/packages/MdEditor/components/Icon/Icon.tsx +++ b/packages/MdEditor/components/Icon/Icon.tsx @@ -1,7 +1,6 @@ import { Bold, ChartArea, - CircleChevronDown, Code, Expand, Eye, @@ -71,8 +70,7 @@ export type IconName = | 'formula' | 'close' | 'delete' - | 'upload' - | 'collapse-tips'; + | 'upload'; const iconMaps: { [key in IconName]: Component } = { bold: Bold, @@ -108,8 +106,7 @@ const iconMaps: { [key in IconName]: Component } = { formula: SquareSigma, close: X, delete: Trash2, - upload: Upload, - 'collapse-tips': CircleChevronDown + upload: Upload }; export default defineComponent({ diff --git a/packages/MdEditor/type.ts b/packages/MdEditor/type.ts index 983259f9..2ab37535 100644 --- a/packages/MdEditor/type.ts +++ b/packages/MdEditor/type.ts @@ -568,4 +568,5 @@ export type CustomIcon = { }; } & { copy?: string; + 'collapse-tips'?: string; };