perf: aotu components

This commit is contained in:
xingyu4j
2022-11-17 16:02:24 +08:00
parent 931a02a40b
commit daa9d01adf
30 changed files with 8 additions and 62 deletions

View File

@ -7,23 +7,7 @@
* @LastEditTime:
-->
<script setup lang="ts">
import {
ElInput,
ElInputNumber,
ElDropdown,
ElDropdownMenu,
ElDropdownItem,
ElDialog,
ElTabs,
ElTabPane,
ElSelect,
ElOption,
ElForm,
ElFormItem,
ElRadioGroup,
ElRadioButton,
ElMessage
} from 'element-plus'
import { ElMessage } from 'element-plus'
import { ref, computed, onMounted, reactive, watch, PropType } from 'vue'
interface shortcutsType {
text: string

View File

@ -1,15 +1,6 @@
<script setup lang="ts">
import { cloneDeep } from 'lodash-es'
import { ref, computed, CSSProperties, toRef, watch } from 'vue'
import {
ElInput,
ElPopover,
ElDivider,
ElScrollbar,
ElTabs,
ElTabPane,
ElPagination
} from 'element-plus'
import { IconJson } from '@/components/Icon/src/data'
type ParameterCSSProperties = (item?: string) => CSSProperties | undefined

View File

@ -1,6 +1,5 @@
<script setup lang="ts">
import { PropType } from 'vue'
import { Highlight } from '@/components/Highlight'
import { useDesign } from '@/hooks/web/useDesign'
import { propTypes } from '@/utils/propTypes'
import { TipSchema } from '@/types/infoTip'

View File

@ -1,5 +1,4 @@
<script setup lang="ts">
import { Icon } from '@/components/Icon'
import { useFullscreen } from '@vueuse/core'
import { propTypes } from '@/utils/propTypes'
import { useDesign } from '@/hooks/web/useDesign'

View File

@ -1,5 +1,4 @@
<script setup lang="ts">
import { Form } from '@/components/Form'
import { PropType, computed, unref, ref } from 'vue'
import { propTypes } from '@/utils/propTypes'
import { useI18n } from '@/hooks/web/useI18n'

View File

@ -2,7 +2,6 @@
import { ElMessage } from 'element-plus'
import { ref, unref, computed, watch } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { ThemeSwitch } from '@/components/ThemeSwitch'
import { colorIsDark, lighten, hexToRGB } from '@/utils/color'
import { useCssVar } from '@vueuse/core'
import { useAppStore } from '@/store/modules/app'

View File

@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed } from 'vue'
import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus'
import { useAppStore } from '@/store/modules/app'
import { useI18n } from '@/hooks/web/useI18n'
import { propTypes } from '@/utils/propTypes'

View File

@ -1,7 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useAppStore } from '@/store/modules/app'
import { ElSwitch } from 'element-plus'
import { useIcon } from '@/hooks/web/useIcon'
import { useDesign } from '@/hooks/web/useDesign'