mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
add format check, update prettier rules, apply rules consistently
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { Tabs, TabsList } from '@/Components/ui/tabs'
|
||||
import { Tabs, TabsList } from '@/Components/ui/tabs';
|
||||
|
||||
defineProps<{
|
||||
defaultValue?: string
|
||||
}>()
|
||||
defaultValue?: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
import { TabsTrigger } from '@/Components/ui/tabs'
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
import type { Component } from 'vue'
|
||||
import { TabsTrigger } from '@/Components/ui/tabs';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
import type { Component } from 'vue';
|
||||
|
||||
const props = defineProps<{
|
||||
value: string
|
||||
class?: string
|
||||
icon?: Component
|
||||
}>()
|
||||
value: string;
|
||||
class?: string;
|
||||
icon?: Component;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TabsTrigger
|
||||
:value="value"
|
||||
:icon="icon"
|
||||
:class="twMerge('rounded-md px-2 sm:px-3 py-1 border sm:py-1.5 text-xs sm:text-sm font-medium text-text-tertiary hover:text-text-primary focus-visible:outline-none data-[state=active]:bg-tab-background data-[state=active]:border-input-border data-[state=active]:text-text-primary border-tab-border', props.class)">
|
||||
:class="
|
||||
twMerge(
|
||||
'rounded-md px-2 sm:px-3 py-1 border sm:py-1.5 text-xs sm:text-sm font-medium text-text-tertiary hover:text-text-primary focus-visible:outline-none data-[state=active]:bg-tab-background data-[state=active]:border-input-border data-[state=active]:text-text-primary border-tab-border',
|
||||
props.class
|
||||
)
|
||||
">
|
||||
<slot></slot>
|
||||
</TabsTrigger>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user