2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00

fix: action bug

This commit is contained in:
18alantom 2022-02-03 14:06:21 +05:30
parent f42df70fb1
commit 0226152884

View File

@ -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 },
}, },