提交 6af38b17 编写于 作者: L LeoKu

Update type modifier

上级 dbd6aa95
......@@ -71,8 +71,9 @@ import ActionBar from '@/components/ActionBar.vue'
import CodeModal from '@/components/CodeModal.vue'
import Configurator from '@/components/Configurator.vue'
import DownloadModal from '@/components/DownloadModal.vue'
import type { VueColorAvatarRef } from '@/components/VueColorAvatar.vue'
import VueColorAvatar from '@/components/VueColorAvatar.vue'
import VueColorAvatar, {
type VueColorAvatarRef,
} from '@/components/VueColorAvatar.vue'
import { ActionType } from '@/enums'
import { useAvatarOption } from '@/hooks'
import Container from '@/layouts/Container.vue'
......
......@@ -70,8 +70,7 @@ import { useI18n } from 'vue-i18n'
import PerfectScrollbar from '@/components/PerfectScrollbar.vue'
import SectionWrapper from '@/components/SectionWrapper.vue'
import type { WidgetShape, WrapperShape } from '@/enums'
import { WidgetType } from '@/enums'
import { type WidgetShape, type WrapperShape, WidgetType } from '@/enums'
import { useAvatarOption } from '@/hooks'
import { SETTINGS } from '@/utils/constant'
import { previewData } from '@/utils/dynamic-data'
......
......@@ -24,7 +24,7 @@ export interface VueColorAvatarRef {
import { ref, toRefs, watchEffect } from 'vue'
import { WrapperShape } from '@/enums'
import type { AvatarOption } from '@/types'
import { type AvatarOption } from '@/types'
import { getRandomAvatarOption } from '@/utils'
import { AVATAR_LAYER, NONE } from '@/utils/constant'
import { widgetData } from '@/utils/dynamic-data'
......
......@@ -3,7 +3,7 @@
</template>
<script lang="ts" setup>
import type { AvatarOption } from '../../types'
import { type AvatarOption } from '../../types'
interface BackgroundProps {
color: AvatarOption['background']['color']
......
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
import { type DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
......
......@@ -2,7 +2,7 @@ import { computed } from 'vue'
import { useStore } from '@/store'
import { SET_AVATAR_OPTION } from '@/store/mutation-type'
import type { AvatarOption } from '@/types'
import { type AvatarOption } from '@/types'
export default function useAvatarOption() {
const store = useStore()
......
import type { InjectionKey } from 'vue'
import type { Store } from 'vuex'
import { createStore, useStore as baseUseStore } from 'vuex'
import { type InjectionKey } from 'vue'
import { type Store, createStore, useStore as baseUseStore } from 'vuex'
import { WrapperShape } from '@/enums'
import type { AvatarOption } from '@/types'
import { type AvatarOption } from '@/types'
import { getRandomAvatarOption } from '@/utils'
import { SCREEN } from '@/utils/constant'
......
import type { NONE } from '@/utils/constant'
import { type NONE } from '@/utils/constant'
export type None = typeof NONE
import type {
BeardShape,
ClothesShape,
EarringsShape,
EarShape,
EyebrowsShape,
EyesShape,
FaceShape,
Gender,
GlassesShape,
MouthShape,
NoseShape,
TopsShape,
WrapperShape,
import {
type BeardShape,
type ClothesShape,
type EarringsShape,
type EarShape,
type EyebrowsShape,
type EyesShape,
type FaceShape,
type Gender,
type GlassesShape,
type MouthShape,
type NoseShape,
type TopsShape,
type WrapperShape,
} from '../enums'
interface Widget<Shape> {
......
import type { AvatarOption, AvatarSettings } from '@/types'
import { type AvatarOption, type AvatarSettings } from '@/types'
import {
BeardShape,
......
import type { EarringsShape, GlassesShape } from '@/enums'
import { BeardShape, Gender, TopsShape } from '@/enums'
import type { AvatarOption, None } from '@/types'
import {
type EarringsShape,
type GlassesShape,
BeardShape,
Gender,
TopsShape,
} from '@/enums'
import { type AvatarOption, type None } from '@/types'
import { NONE, SETTINGS, SPECIAL_AVATARS } from './constant'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册