diff --git a/layers/components/atoms/Button/Launcher.vue b/layers/components/atoms/Button/Launcher.vue index 9ab336a..a11762d 100644 --- a/layers/components/atoms/Button/Launcher.vue +++ b/layers/components/atoms/Button/Launcher.vue @@ -3,10 +3,9 @@ import type { CSSProperties } from 'vue' import type { DownloadButtonType, ButtonVariant, + Platform, } from '#layers/types/components/button' -type Platform = 'google_play' | 'app_store' | 'pc' | 'stove' - interface Props { platform: Platform type?: DownloadButtonType diff --git a/layers/templates/FxDownload01/index.vue b/layers/templates/FxDownload01/index.vue index a3d91fb..7754804 100644 --- a/layers/templates/FxDownload01/index.vue +++ b/layers/templates/FxDownload01/index.vue @@ -2,9 +2,7 @@ import { SplideSlide } from '@splidejs/vue-splide' import { getComponentGroup, getComponentGroupAry } from '#layers/utils/dataUtil' import type { PageDataTemplateComponents } from '#layers/types/api/pageData' - -// Types -type Platform = 'google_play' | 'app_store' | 'pc' | 'stove' +import type { Platform } from '#layers/types/components/button' // Props interface Props { diff --git a/layers/types/components/button.ts b/layers/types/components/button.ts index f44febe..37513b6 100644 --- a/layers/types/components/button.ts +++ b/layers/types/components/button.ts @@ -10,3 +10,5 @@ export type DownloadButtonType = 'default' | 'single' | 'duplication' | 'custom' export type ButtonSize = 'large' | 'medium' | 'small' | 'extra-small' export type ButtonVariant = 'filled' | 'outlined' + +export type Platform = 'google_play' | 'app_store' | 'pc' | 'stove'