From f7bf20af97e5c4364a14b04f1bbb55b9a2c84b88 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 15 Nov 2025 08:07:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=AF=BC=E5=85=A5`element-plus`?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=E7=9A=84=E6=96=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/elementPlus.ts | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/plugins/elementPlus.ts b/src/plugins/elementPlus.ts index 8363187c1..48e98bc49 100644 --- a/src/plugins/elementPlus.ts +++ b/src/plugins/elementPlus.ts @@ -3,15 +3,13 @@ import type { App, Component } from "vue"; import { /** * 为了方便演示平台将 element-plus 导出的所有组件引入,实际使用中如果你没用到哪个组件,将其注释掉就行 - * 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/component.ts#L111-L211 + * 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/component.ts#L116-L226 * */ ElAffix, ElAlert, ElAutocomplete, ElAutoResizer, ElAvatar, - ElAnchor, - ElAnchorLink, ElBacktop, ElBadge, ElBreadcrumb, @@ -32,6 +30,7 @@ import { ElCollapse, ElCollapseItem, ElCollapseTransition, + ElColorPickerPanel, ElColorPicker, ElConfigProvider, ElContainer, @@ -40,6 +39,7 @@ import { ElHeader, ElMain, ElDatePicker, + ElDatePickerPanel, ElDescriptions, ElDescriptionsItem, ElDialog, @@ -56,6 +56,7 @@ import { ElImageViewer, ElInput, ElInputNumber, + ElInputTag, ElLink, ElMenu, ElMenuItem, @@ -107,17 +108,22 @@ import { ElWatermark, ElTour, ElTourStep, + ElAnchor, + ElAnchorLink, ElSegmented, + ElMention, + ElSplitter, + ElSplitterPanel, /** * 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行 * 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16 * */ - ElLoading, // v-loading 指令 ElInfiniteScroll, // v-infinite-scroll 指令 - ElPopoverDirective, // v-popover 指令 + ElLoading, // v-loading 指令 ElMessage, // $message 全局属性对象globalProperties ElMessageBox, // $msgbox、$alert、$confirm、$prompt 全局属性对象globalProperties - ElNotification // $notify 全局属性对象globalProperties + ElNotification, // $notify 全局属性对象globalProperties + ElPopoverDirective // v-popover 指令 } from "element-plus"; const components = [ @@ -126,8 +132,6 @@ const components = [ ElAutocomplete, ElAutoResizer, ElAvatar, - ElAnchor, - ElAnchorLink, ElBacktop, ElBadge, ElBreadcrumb, @@ -148,6 +152,7 @@ const components = [ ElCollapse, ElCollapseItem, ElCollapseTransition, + ElColorPickerPanel, ElColorPicker, ElConfigProvider, ElContainer, @@ -156,6 +161,7 @@ const components = [ ElHeader, ElMain, ElDatePicker, + ElDatePickerPanel, ElDescriptions, ElDescriptionsItem, ElDialog, @@ -172,6 +178,7 @@ const components = [ ElImageViewer, ElInput, ElInputNumber, + ElInputTag, ElLink, ElMenu, ElMenuItem, @@ -223,16 +230,21 @@ const components = [ ElWatermark, ElTour, ElTourStep, - ElSegmented + ElAnchor, + ElAnchorLink, + ElSegmented, + ElMention, + ElSplitter, + ElSplitterPanel ]; const plugins = [ - ElLoading, ElInfiniteScroll, - ElPopoverDirective, + ElLoading, ElMessage, ElMessageBox, - ElNotification + ElNotification, + ElPopoverDirective ]; /** 按需引入`element-plus` */