File tree Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,11 @@ const props = defineProps({
15
15
color: {
16
16
type: String ,
17
17
required: true
18
- }
18
+ },
19
19
})
20
20
21
- const componentClass = computed (() => props .outline
22
- ? colorsOutline[props .color ]
23
- : colorsBgLight[props .color ]
21
+ const componentClass = computed (() =>
22
+ props .outline ? colorsOutline[props .color ] : colorsBgLight[props .color ]
24
23
)
25
24
26
25
const isDismissed = ref (false )
@@ -38,7 +37,7 @@ const hasRightSlot = computed(() => slots.right)
38
37
<div
39
38
v-if =" !isDismissed"
40
39
:class =" componentClass"
41
- class =" px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded transition-colors duration-150"
40
+ class =" px-3 py-6 md:py-3 mb-6 last:mb-0 border rounded-lg transition-colors duration-150"
42
41
>
43
42
<BaseLevel >
44
43
<div class =" flex flex-col md:flex-row items-center" >
@@ -50,17 +49,15 @@ const hasRightSlot = computed(() => slots.right)
50
49
size =" 24"
51
50
class =" md:mr-2"
52
51
/>
53
- <span class =" text-center md:text-left" ><slot /></span >
52
+ <span class =" text-center md:text-left md:py-2 " ><slot /></span >
54
53
</div >
55
- <slot
56
- v-if =" hasRightSlot"
57
- name =" right"
58
- />
54
+ <slot v-if =" hasRightSlot" name =" right" />
59
55
<BaseButton
60
56
v-else
61
57
:icon =" mdiClose"
62
- :outline =" outline"
63
58
small
59
+ rounded-full
60
+ color =" white"
64
61
@click =" dismiss"
65
62
/>
66
63
</BaseLevel >
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ function destroy(id) {
66
66
/>
67
67
</SectionTitleLineWithButton >
68
68
<NotificationBar
69
+ :key =" Date.now()"
69
70
v-if =" $page.props.flash.message"
70
71
color =" success"
71
72
:icon =" mdiAlertBoxOutline"
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ function destroy(id) {
72
72
</BaseButtons >
73
73
</SectionTitleLineWithButton >
74
74
<NotificationBar
75
+ :key =" Date.now()"
75
76
v-if =" $page.props.flash.message"
76
77
color =" success"
77
78
:icon =" mdiAlertBoxOutline"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function destroy(id) {
65
65
/>
66
66
</SectionTitleLineWithButton >
67
67
<NotificationBar
68
+ :key =" Date.now()"
68
69
v-if =" $page.props.flash.message"
69
70
color =" success"
70
71
:icon =" mdiAlertBoxOutline"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function destroy(id) {
65
65
/>
66
66
</SectionTitleLineWithButton >
67
67
<NotificationBar
68
+ :key =" Date.now()"
68
69
v-if =" $page.props.flash.message"
69
70
color =" success"
70
71
:icon =" mdiAlertBoxOutline"
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const passwordForm = useForm({
53
53
/>
54
54
</SectionTitleLineWithButton >
55
55
<NotificationBar
56
+ :key =" Date.now()"
56
57
v-if =" $page.props.flash.message"
57
58
color =" success"
58
59
:icon =" mdiAlertBoxOutline"
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ function destroy(id) {
65
65
/>
66
66
</SectionTitleLineWithButton >
67
67
<NotificationBar
68
+ :key =" Date.now()"
68
69
v-if =" $page.props.flash.message"
69
70
color =" success"
70
71
:icon =" mdiAlertBoxOutline"
You can’t perform that action at this time.
0 commit comments