adminforth 1.4.3-next.12 → 1.4.3-next.13
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.
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
type="submit"
|
|
5
5
|
class="flex items-center justify-center gap-1 text-lightPrimaryContrast bg-lightPrimary dark:bg-darkPrimary hover:brightness-110
|
|
6
6
|
focus:ring-4 focus:outline-none focus:ring-lightPrimary focus:ring-opacity-50 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:focus:ring-darkPrimary dark:focus:ring-opacity-50"
|
|
7
|
+
:class="{
|
|
8
|
+
'cursor-default': props.disabled,
|
|
9
|
+
'opacity-50': props.disabled,
|
|
10
|
+
'pointer-events-none': props.disabled,
|
|
11
|
+
}"
|
|
7
12
|
>
|
|
8
13
|
<svg v-if="props.loader"
|
|
9
14
|
aria-hidden="true" class="w-4 h-4 text-gray-200 animate-spin dark:text-gray-600 fill-lightPrimary dark:fill-darkPrimary"
|
|
@@ -16,6 +21,7 @@
|
|
|
16
21
|
|
|
17
22
|
const props = defineProps({
|
|
18
23
|
loader: Boolean,
|
|
24
|
+
disabled: Boolean,
|
|
19
25
|
});
|
|
20
26
|
|
|
21
27
|
</script>
|