@saasmakers/ui 0.1.54 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,8 +23,8 @@ const props = withDefaults(defineProps<BaseButton>(), {
|
|
|
23
23
|
})
|
|
24
24
|
|
|
25
25
|
const emit = defineEmits<{
|
|
26
|
-
click: [event: MouseEvent, id
|
|
27
|
-
confirm: [event: MouseEvent, id
|
|
26
|
+
click: [event: MouseEvent, id?: number | string]
|
|
27
|
+
confirm: [event: MouseEvent, id?: number | string]
|
|
28
28
|
}>()
|
|
29
29
|
|
|
30
30
|
const confirming = ref(false)
|
|
@@ -29,7 +29,7 @@ const confirming = ref(false)
|
|
|
29
29
|
|
|
30
30
|
const { t } = useI18n()
|
|
31
31
|
|
|
32
|
-
const statusIcon = computed
|
|
32
|
+
const statusIcon = computed<string | undefined>(() => {
|
|
33
33
|
switch (props.status) {
|
|
34
34
|
case 'error':
|
|
35
35
|
return getIcon('closeCircle')
|
|
@@ -48,7 +48,7 @@ const statusIcon = computed((): string | undefined => {
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
-
const statusColor = computed
|
|
51
|
+
const statusColor = computed<BaseColor | undefined>(() => {
|
|
52
52
|
if (props.status === 'error') {
|
|
53
53
|
return 'red'
|
|
54
54
|
}
|
package/nuxt.config.ts
CHANGED