1
0
mirror of https://github.com/robonen/lorem-blog.git synced 2026-03-20 10:54:38 +00:00

chore: lint

This commit is contained in:
2025-07-14 02:48:28 +07:00
parent 42b6c90c1a
commit bd3d9dfb01
6 changed files with 11 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import { type MaybeRefOrGetter, onScopeDispose, toValue, watchEffect } from 'vue';
import type { MaybeRefOrGetter } from 'vue';
import { onScopeDispose, toValue, watchEffect } from 'vue';
export function useBodyScrollLock(isLocked: MaybeRefOrGetter<boolean>) {
let originalOverflow: string | null = null;

View File

@@ -1,5 +1,6 @@
import type { TemplateRef } from 'vue';
import { clamp } from '@robonen/stdlib';
import { nextTick, onMounted, onUnmounted, ref, type TemplateRef, watch } from 'vue';
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue';
export function useTextAreaAutosize(textareaRef: TemplateRef<HTMLTextAreaElement | null>) {
const minHeight = ref(0);

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { type BadgeVariant, badgeVariants } from './types';
import type { BadgeVariant } from './types';
import { badgeVariants } from './types';
export interface BadgeProps {
variant?: BadgeVariant;

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import type { ButtonProps } from './types';
import { computed } from 'vue';
import { type ButtonProps, buttonSizes, buttonVariants } from './types';
import { buttonSizes, buttonVariants } from './types';
const props = withDefaults(defineProps<ButtonProps>(), {
variant: 'primary',