From ad24b97f7c3bdfaff0434643857ebaa7d7493435 Mon Sep 17 00:00:00 2001 From: Fifteen <66454152+QFifteen@users.noreply.github.com> Date: Fri, 7 Jun 2024 09:59:38 +0800 Subject: [PATCH 1/2] chore: update `plugins/elementPlus.ts` --- src/plugins/elementPlus.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/elementPlus.ts b/src/plugins/elementPlus.ts index 2ff3b5b978..8363187c19 100644 --- a/src/plugins/elementPlus.ts +++ b/src/plugins/elementPlus.ts @@ -107,6 +107,7 @@ import { ElWatermark, ElTour, ElTourStep, + ElSegmented, /** * 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行 * 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16 @@ -221,7 +222,8 @@ const components = [ ElUpload, ElWatermark, ElTour, - ElTourStep + ElTourStep, + ElSegmented ]; const plugins = [ From a00ff76682207cfe41e85b467993ed1362b404d9 Mon Sep 17 00:00:00 2001 From: Fifteen <66454152+QFifteen@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:32:02 +0800 Subject: [PATCH 2/2] types: update`global-components.d` --- types/global-components.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/global-components.d.ts b/types/global-components.d.ts index fc8f56ab67..71314d4a81 100644 --- a/types/global-components.d.ts +++ b/types/global-components.d.ts @@ -115,6 +115,7 @@ declare module "vue" { ElWatermark: (typeof import("element-plus"))["ElWatermark"]; ElTour: (typeof import("element-plus"))["ElTour"]; ElTourStep: (typeof import("element-plus"))["ElTourStep"]; + ElSegmented: (typeof import("element-plus"))["ElSegmented"]; } interface ComponentCustomProperties {