Skip to content

Commit f7bf20a

Browse files
committed
chore: 导入element-plus最新版本的新组件
1 parent 1b7c057 commit f7bf20a

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

src/plugins/elementPlus.ts

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import type { App, Component } from "vue";
33
import {
44
/**
55
* 为了方便演示平台将 element-plus 导出的所有组件引入,实际使用中如果你没用到哪个组件,将其注释掉就行
6-
* 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/component.ts#L111-L211
6+
* 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/component.ts#L116-L226
77
* */
88
ElAffix,
99
ElAlert,
1010
ElAutocomplete,
1111
ElAutoResizer,
1212
ElAvatar,
13-
ElAnchor,
14-
ElAnchorLink,
1513
ElBacktop,
1614
ElBadge,
1715
ElBreadcrumb,
@@ -32,6 +30,7 @@ import {
3230
ElCollapse,
3331
ElCollapseItem,
3432
ElCollapseTransition,
33+
ElColorPickerPanel,
3534
ElColorPicker,
3635
ElConfigProvider,
3736
ElContainer,
@@ -40,6 +39,7 @@ import {
4039
ElHeader,
4140
ElMain,
4241
ElDatePicker,
42+
ElDatePickerPanel,
4343
ElDescriptions,
4444
ElDescriptionsItem,
4545
ElDialog,
@@ -56,6 +56,7 @@ import {
5656
ElImageViewer,
5757
ElInput,
5858
ElInputNumber,
59+
ElInputTag,
5960
ElLink,
6061
ElMenu,
6162
ElMenuItem,
@@ -107,17 +108,22 @@ import {
107108
ElWatermark,
108109
ElTour,
109110
ElTourStep,
111+
ElAnchor,
112+
ElAnchorLink,
110113
ElSegmented,
114+
ElMention,
115+
ElSplitter,
116+
ElSplitterPanel,
111117
/**
112118
* 为了方便演示平台将 element-plus 导出的所有插件引入,实际使用中如果你没用到哪个插件,将其注释掉就行
113119
* 导出来源:https://github.com/element-plus/element-plus/blob/dev/packages/element-plus/plugin.ts#L11-L16
114120
* */
115-
ElLoading, // v-loading 指令
116121
ElInfiniteScroll, // v-infinite-scroll 指令
117-
ElPopoverDirective, // v-popover 指令
122+
ElLoading, // v-loading 指令
118123
ElMessage, // $message 全局属性对象globalProperties
119124
ElMessageBox, // $msgbox、$alert、$confirm、$prompt 全局属性对象globalProperties
120-
ElNotification // $notify 全局属性对象globalProperties
125+
ElNotification, // $notify 全局属性对象globalProperties
126+
ElPopoverDirective // v-popover 指令
121127
} from "element-plus";
122128

123129
const components = [
@@ -126,8 +132,6 @@ const components = [
126132
ElAutocomplete,
127133
ElAutoResizer,
128134
ElAvatar,
129-
ElAnchor,
130-
ElAnchorLink,
131135
ElBacktop,
132136
ElBadge,
133137
ElBreadcrumb,
@@ -148,6 +152,7 @@ const components = [
148152
ElCollapse,
149153
ElCollapseItem,
150154
ElCollapseTransition,
155+
ElColorPickerPanel,
151156
ElColorPicker,
152157
ElConfigProvider,
153158
ElContainer,
@@ -156,6 +161,7 @@ const components = [
156161
ElHeader,
157162
ElMain,
158163
ElDatePicker,
164+
ElDatePickerPanel,
159165
ElDescriptions,
160166
ElDescriptionsItem,
161167
ElDialog,
@@ -172,6 +178,7 @@ const components = [
172178
ElImageViewer,
173179
ElInput,
174180
ElInputNumber,
181+
ElInputTag,
175182
ElLink,
176183
ElMenu,
177184
ElMenuItem,
@@ -223,16 +230,21 @@ const components = [
223230
ElWatermark,
224231
ElTour,
225232
ElTourStep,
226-
ElSegmented
233+
ElAnchor,
234+
ElAnchorLink,
235+
ElSegmented,
236+
ElMention,
237+
ElSplitter,
238+
ElSplitterPanel
227239
];
228240

229241
const plugins = [
230-
ElLoading,
231242
ElInfiniteScroll,
232-
ElPopoverDirective,
243+
ElLoading,
233244
ElMessage,
234245
ElMessageBox,
235-
ElNotification
246+
ElNotification,
247+
ElPopoverDirective
236248
];
237249

238250
/** 按需引入`element-plus` */

0 commit comments

Comments
 (0)