mirror of
https://github.com/frappe/books.git
synced 2024-12-24 11:55:46 +00:00
fix: action bug
This commit is contained in:
parent
f42df70fb1
commit
0226152884
@ -11,7 +11,7 @@
|
|||||||
mb-3
|
mb-3
|
||||||
w-80
|
w-80
|
||||||
"
|
"
|
||||||
:class="bgColor + (action ? ' cursor-pointer' : '')"
|
:class="bgColor + (actionText ? ' cursor-pointer' : '')"
|
||||||
style="transition: opacity 150ms ease-in"
|
style="transition: opacity 150ms ease-in"
|
||||||
:style="{ opacity }"
|
:style="{ opacity }"
|
||||||
@click="action"
|
@click="action"
|
||||||
@ -37,9 +37,9 @@ export default {
|
|||||||
return { opacity: 0, show: true };
|
return { opacity: 0, show: true };
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
message: String,
|
message: { type: String, required: true },
|
||||||
action: Function,
|
action: { type: Function, default: () => {} },
|
||||||
actionText: String,
|
actionText: { type: String, default: '' },
|
||||||
type: { type: String, default: 'info' },
|
type: { type: String, default: 'info' },
|
||||||
duration: { type: Number, default: 5000 },
|
duration: { type: Number, default: 5000 },
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user