text: /*
   * @Description: element-plus 按需加载 将不需要的组件注释掉
   * @Author: gumingchen
   * @Email: 1240235512@qq.com
   * @Date: 2020-12-19 15:33:15
   * @LastEditors: gumingchen
   * @LastEditTime: 2021-05-13 23:36:46
   */
  import 'element-plus/lib/theme-chalk/index.css'
  
  import {
    ElAffix,
    ElAlert,
    ElAside,
    ElAutocomplete,
    ElAvatar,
    ElBacktop,
    ElBadge,
    ElBreadcrumbItem,
    ElBreadcrumb,
    ElButtonGroup,
    ElButton,
    ElCalendar,
    ElCard,
    ElCarouselItem,
    ElCarousel,
    ElCascaderPanel,
    ElCascader,
    ElCheckTag,
    ElCheckboxButton,
    ElCheckboxGroup,
    ElCheckbox,
    ElCol,
    ElCollapseItem,
    ElCollapseTransition,
    ElCollapse,
    ElColorPicker,
    // ElConfigProvider,
    ElContainer,
    ElDatePicker,
    ElDescriptionsItem,
    ElDescriptions,
    ElDialog,
    ElDivider,
    ElDrawer,
    ElDropdownItem,
    ElDropdownMenu,
    ElDropdown,
    ElEmpty,
    ElFooter,
    ElFormItem,
    ElForm,
    ElHeader,
    ElIcon,
    ElImageViewer,
    ElImage,
    ElInfiniteScroll,
    ElInputNumber,
    ElInput,
    ElLink,
    ElLoading,
    ElMain,
    ElMenuItemGroup,
    ElMenuItem,
    ElMenu,
    ElMessageBox,
    ElMessage,
    ElNotification,
    ElOptionGroup,
    ElOption,
    ElPageHeader,
    ElPagination,
    ElPopconfirm,
    ElPopover,
    ElPopper,
    ElProgress,
    ElRadioButton,
    ElRadioGroup,
    ElRadio,
    ElRate,
    ElResult,
    ElRow,
    ElScrollbar,
    ElSelectV2,
    ElSelect,
    ElSkeletonItem,
    ElSkeleton,
    ElSlider,
    ElSpace,
    ElStep,
    ElSteps,
    ElSubmenu,
    ElSwitch,
    ElTabPane,
    ElTableColumn,
    ElTable,
    ElTabs,
    ElTag,
    ElTimePicker,
    ElTimeSelect,
    ElTimelineItem,
    ElTimeline,
    ElTooltip,
    ElTransfer,
    ElTree,
    ElUpload
  } from 'element-plus'
  
  const components = [
    ElAffix,
    ElAlert,
    ElAside,
    ElAutocomplete,
    ElAvatar,
    ElBacktop,
    ElBadge,
    ElBreadcrumbItem,
    ElBreadcrumb,
    ElButtonGroup,
    ElButton,
    ElCalendar,
    ElCard,
    ElCarouselItem,
    ElCarousel,
    ElCascaderPanel,
    ElCascader,
    ElCheckTag,
    ElCheckboxButton,
    ElCheckboxGroup,
    ElCheckbox,
    ElCol,
    ElCollapseItem,
    ElCollapseTransition,
    ElCollapse,
    ElColorPicker,
    // ElConfigProvider,
    ElContainer,
    ElDatePicker,
    ElDescriptionsItem,
    ElDescriptions,
    ElDialog,
    ElDivider,
    ElDrawer,
    ElDropdownItem,
    ElDropdownMenu,
    ElDropdown,
    ElEmpty,
    ElFooter,
    ElFormItem,
    ElForm,
    ElHeader,
    ElIcon,
    ElImageViewer,
    ElImage,
    // ElInfiniteScroll,
    ElInputNumber,
    ElInput,
    ElLink,
    ElLoading,
    ElMain,
    ElMenuItemGroup,
    ElMenuItem,
    ElMenu,
    ElMessageBox,
    ElMessage,
    ElNotification,
    ElOptionGroup,
    ElOption,
    ElPageHeader,
    ElPagination,
    ElPopconfirm,
    ElPopover,
    ElPopper,
    ElProgress,
    ElRadioButton,
    ElRadioGroup,
    ElRadio,
    ElRate,
    ElResult,
    ElRow,
    ElScrollbar,
    ElSelectV2,
    ElSelect,
    ElSkeletonItem,
    ElSkeleton,
    ElSlider,
    ElSpace,
    ElStep,
    ElSteps,
    ElSubmenu,
    ElSwitch,
    ElTabPane,
    ElTableColumn,
    ElTable,
    ElTabs,
    ElTag,
    ElTimePicker,
    ElTimeSelect,
    ElTimelineItem,
    ElTimeline,
    ElTooltip,
    ElTransfer,
    ElTree,
    ElUpload
  ]
  
  const plugins = [ElInfiniteScroll, ElLoading, ElMessage, ElMessageBox, ElNotification]
  
  export default {
    install: function (app) {
      components.forEach(component => {
        app.component(component.name, component)
      })
      plugins.forEach(plugin => {
        app.use(plugin)
      })
      const option = {
        size: 'medium',
        zIndex: 2000
      }
      app.config.globalProperties.$ELEMENT = option
    }
  }
  