fix. 기본 버튼 수정
This commit is contained in:
21
app/app.vue
21
app/app.vue
@@ -37,31 +37,16 @@ const setupAllMetaData = (data: GameDataValue) => {
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
sizes: '16x16',
|
||||
href: faviconPath['16_16'],
|
||||
},
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/x-icon',
|
||||
sizes: '32x32',
|
||||
href: faviconPath['32_32'],
|
||||
},
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/png',
|
||||
sizes: '72x72',
|
||||
href: faviconPath['72_72'],
|
||||
href: getResolvedHost(faviconPath[0]),
|
||||
},
|
||||
{
|
||||
rel: 'apple-touch-icon',
|
||||
sizes: '180x180',
|
||||
href: faviconPath['180_180'],
|
||||
href: getResolvedHost(faviconPath[1]),
|
||||
},
|
||||
{
|
||||
rel: 'icon',
|
||||
type: 'image/png',
|
||||
sizes: '192x192',
|
||||
href: faviconPath['192_192'],
|
||||
href: getResolvedHost(faviconPath[2]),
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ interface props {
|
||||
const props = withDefaults(defineProps<props>(), {
|
||||
type: 'action',
|
||||
buttonSize: 'size-small md:size-large',
|
||||
target: '_blank',
|
||||
backgroundColor: 'var(--primary)',
|
||||
textColor: 'var(--alternative-02)',
|
||||
disabled: false,
|
||||
@@ -22,9 +23,9 @@ const props = withDefaults(defineProps<props>(), {
|
||||
|
||||
const componentTag = computed((): string => {
|
||||
switch (props.type) {
|
||||
case 'link':
|
||||
case 'download':
|
||||
case 'external':
|
||||
case 'download':
|
||||
case 'link':
|
||||
return 'a'
|
||||
case 'internal':
|
||||
return 'AtomsLocaleLink'
|
||||
@@ -35,7 +36,11 @@ const componentTag = computed((): string => {
|
||||
const componentProps = computed(() => {
|
||||
const baseProps = { disabled: props.disabled }
|
||||
|
||||
if (props.type === 'external') {
|
||||
if (
|
||||
props.type === 'external' ||
|
||||
props.type === 'download' ||
|
||||
props.type === 'link'
|
||||
) {
|
||||
return {
|
||||
...baseProps,
|
||||
href: props.href,
|
||||
|
||||
@@ -70,11 +70,7 @@ export interface GameDataGameFont {
|
||||
|
||||
// 파비콘 경로 타입
|
||||
export interface GameDataFavicon {
|
||||
'16_16': string
|
||||
'32_32': string
|
||||
'72_72': string
|
||||
'180_180': string
|
||||
'192_192': string
|
||||
[index: number]: string
|
||||
}
|
||||
|
||||
// 메타 태그 타입
|
||||
|
||||
Reference in New Issue
Block a user