Skip to content

Commit 9b0f2e9

Browse files
authored
Merge pull request #490 from MrTanoshii/main
Make BToast receive `delay` as prop
2 parents e5a43b7 + cdfd390 commit 9b0f2e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/BToast/BToast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {BLINK_PROPS} from '../BLink/BLink.vue'
2222
import {BodyProp} from './plugin'
2323
2424
export const SLOT_NAME_TOAST_TITLE = 'toast-title'
25-
const MIN_DURATION = 5000
25+
const MIN_DURATION = 1000
2626
2727
export default defineComponent({
2828
name: 'BToast',

src/components/BToast/BToaster.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:id="toast.options.id"
66
:key="toast.options.id"
77
v-model="toast.options.value"
8+
:delay="toast.options.delay"
89
:title="toast.content.title"
910
:body="toast.content.body"
1011
:component="toast.content.body"

0 commit comments

Comments
 (0)