perf: 同步主分支代码

This commit is contained in:
xiaoxian521
2021-11-18 08:34:35 +08:00
parent 4ef4768c65
commit c2aa7d9428
8 changed files with 458 additions and 7 deletions

View File

@@ -23,7 +23,6 @@ import {
ElInput,
ElForm,
ElFormItem,
ElLoading,
ElPopover,
ElPopper,
ElTooltip,
@@ -36,7 +35,15 @@ import {
ElDescriptions,
ElDescriptionsItem,
ElBacktop,
ElSwitch
ElSwitch,
ElBadge,
ElTabs,
ElTabPane,
ElAvatar,
ElEmpty,
// 指令
ElLoading,
ElInfiniteScroll
} from "element-plus";
// https://element-plus.org/zh-CN/component/icon.html
@@ -54,7 +61,8 @@ import {
RefreshRight,
ArrowDown,
Close,
CloseBold
CloseBold,
Bell
} from "@element-plus/icons";
const components = [
@@ -93,9 +101,13 @@ const components = [
ElDescriptions,
ElDescriptionsItem,
ElBacktop,
ElSwitch
ElSwitch,
ElBadge,
ElTabs,
ElTabPane,
ElAvatar,
ElEmpty
];
// icon
export const iconComponents = [
Check,
@@ -111,10 +123,11 @@ export const iconComponents = [
RefreshRight,
ArrowDown,
Close,
CloseBold
CloseBold,
Bell
];
const plugins = [ElLoading];
const plugins = [ElLoading, ElInfiniteScroll];
export function useElementPlus(app: App) {
components.push(...iconComponents);