mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
update dependencies, update eslint config, update optional ts props types
This commit is contained in:
@@ -6,9 +6,9 @@ import { twMerge } from 'tailwind-merge';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
type: HtmlButtonType;
|
||||
type?: HtmlButtonType;
|
||||
icon?: Component;
|
||||
loading: boolean;
|
||||
loading?: boolean;
|
||||
}>(),
|
||||
{
|
||||
type: 'submit',
|
||||
@@ -28,8 +28,8 @@ const props = withDefaults(
|
||||
">
|
||||
<LoadingSpinner v-if="loading"></LoadingSpinner>
|
||||
<component
|
||||
v-if="props.icon && !loading"
|
||||
:is="props.icon"
|
||||
v-if="props.icon && !loading"
|
||||
class="text-text-secondary w-4 -ml-0.5 mr-1"></component>
|
||||
<span>
|
||||
<slot />
|
||||
|
||||
@@ -6,10 +6,10 @@ import LoadingSpinner from '../LoadingSpinner.vue';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
type: HtmlButtonType;
|
||||
type?: HtmlButtonType;
|
||||
icon?: Component;
|
||||
size: 'small' | 'base';
|
||||
loading: boolean;
|
||||
size?: 'small' | 'base';
|
||||
loading?: boolean;
|
||||
class?: string;
|
||||
}>(),
|
||||
{
|
||||
@@ -42,8 +42,8 @@ const sizeClasses = {
|
||||
">
|
||||
<LoadingSpinner v-if="loading"></LoadingSpinner>
|
||||
<component
|
||||
v-if="props.icon && !loading"
|
||||
:is="props.icon"
|
||||
v-if="props.icon && !loading"
|
||||
class="text-text-tertiary w-4 -ml-0.5 mr-1"></component>
|
||||
<span>
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user