chore: 导入element-plus最新版本的新组件

This commit is contained in:
xiaoxian521
2025-11-15 08:07:26 +08:00
parent 1b7c0577d9
commit f7bf20af97

View File

@@ -3,15 +3,13 @@ import type { App, Component } from "vue";
import { import {
/** /**
* 为了方便演示平台将 element-plus 导出的所有组件引入,实际使用中如果你没用到哪个组件,将其注释掉就行 * 为了方便演示平台将 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, ElAffix,
ElAlert, ElAlert,
ElAutocomplete, ElAutocomplete,
ElAutoResizer, ElAutoResizer,
ElAvatar, ElAvatar,
ElAnchor,
ElAnchorLink,
ElBacktop, ElBacktop,
ElBadge, ElBadge,
ElBreadcrumb, ElBreadcrumb,
@@ -32,6 +30,7 @@ import {
ElCollapse, ElCollapse,
ElCollapseItem, ElCollapseItem,
ElCollapseTransition, ElCollapseTransition,
ElColorPickerPanel,
ElColorPicker, ElColorPicker,
ElConfigProvider, ElConfigProvider,
ElContainer, ElContainer,
@@ -40,6 +39,7 @@ import {
ElHeader, ElHeader,
ElMain, ElMain,
ElDatePicker, ElDatePicker,
ElDatePickerPanel,
ElDescriptions, ElDescriptions,
ElDescriptionsItem, ElDescriptionsItem,
ElDialog, ElDialog,
@@ -56,6 +56,7 @@ import {
ElImageViewer, ElImageViewer,
ElInput, ElInput,
ElInputNumber, ElInputNumber,
ElInputTag,
ElLink, ElLink,
ElMenu, ElMenu,
ElMenuItem, ElMenuItem,
@@ -107,17 +108,22 @@ import {
ElWatermark, ElWatermark,
ElTour, ElTour,
ElTourStep, ElTourStep,
ElAnchor,
ElAnchorLink,
ElSegmented, ElSegmented,
ElMention,
ElSplitter,
ElSplitterPanel,
/** /**
* 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行 * 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行
* 导出来源https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16 * 导出来源https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16
* */ * */
ElLoading, // v-loading 指令
ElInfiniteScroll, // v-infinite-scroll 指令 ElInfiniteScroll, // v-infinite-scroll 指令
ElPopoverDirective, // v-popover 指令 ElLoading, // v-loading 指令
ElMessage, // $message 全局属性对象globalProperties ElMessage, // $message 全局属性对象globalProperties
ElMessageBox, // $msgbox、$alert、$confirm、$prompt 全局属性对象globalProperties ElMessageBox, // $msgbox、$alert、$confirm、$prompt 全局属性对象globalProperties
ElNotification // $notify 全局属性对象globalProperties ElNotification, // $notify 全局属性对象globalProperties
ElPopoverDirective // v-popover 指令
} from "element-plus"; } from "element-plus";
const components = [ const components = [
@@ -126,8 +132,6 @@ const components = [
ElAutocomplete, ElAutocomplete,
ElAutoResizer, ElAutoResizer,
ElAvatar, ElAvatar,
ElAnchor,
ElAnchorLink,
ElBacktop, ElBacktop,
ElBadge, ElBadge,
ElBreadcrumb, ElBreadcrumb,
@@ -148,6 +152,7 @@ const components = [
ElCollapse, ElCollapse,
ElCollapseItem, ElCollapseItem,
ElCollapseTransition, ElCollapseTransition,
ElColorPickerPanel,
ElColorPicker, ElColorPicker,
ElConfigProvider, ElConfigProvider,
ElContainer, ElContainer,
@@ -156,6 +161,7 @@ const components = [
ElHeader, ElHeader,
ElMain, ElMain,
ElDatePicker, ElDatePicker,
ElDatePickerPanel,
ElDescriptions, ElDescriptions,
ElDescriptionsItem, ElDescriptionsItem,
ElDialog, ElDialog,
@@ -172,6 +178,7 @@ const components = [
ElImageViewer, ElImageViewer,
ElInput, ElInput,
ElInputNumber, ElInputNumber,
ElInputTag,
ElLink, ElLink,
ElMenu, ElMenu,
ElMenuItem, ElMenuItem,
@@ -223,16 +230,21 @@ const components = [
ElWatermark, ElWatermark,
ElTour, ElTour,
ElTourStep, ElTourStep,
ElSegmented ElAnchor,
ElAnchorLink,
ElSegmented,
ElMention,
ElSplitter,
ElSplitterPanel
]; ];
const plugins = [ const plugins = [
ElLoading,
ElInfiniteScroll, ElInfiniteScroll,
ElPopoverDirective, ElLoading,
ElMessage, ElMessage,
ElMessageBox, ElMessageBox,
ElNotification ElNotification,
ElPopoverDirective
]; ];
/** 按需引入`element-plus` */ /** 按需引入`element-plus` */