Skip to content

Commit 012d441

Browse files
author
Issayah
committed
revert(BToast): revert btoast changes move to other branch
1 parent 3e9eadf commit 012d441

File tree

4 files changed

+143
-381
lines changed

4 files changed

+143
-381
lines changed

packages/bootstrap-vue-3/src/components/BToast/BToast.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default defineComponent({
6969
const isTransitioning = ref(false)
7070
const isHiding = ref(false)
7171
const localShow = ref(false)
72-
const computedClasses = computed(() => ({
72+
const classes = computed(() => ({
7373
[`b-toast-${props.variant}`]: props.variant !== undefined,
7474
show: localShow.value || isTransitioning.value,
7575
}))
@@ -249,7 +249,7 @@ export default defineComponent({
249249
return h(
250250
'div',
251251
{
252-
class: ['toast', props.toastClass, computedClasses.value],
252+
class: ['toast', props.toastClass, classes.value],
253253
tabindex: '0',
254254
},
255255
$innertoast

packages/bootstrap-vue-3/src/components/BToast/BToastV2.vue

Lines changed: 0 additions & 246 deletions
This file was deleted.

packages/bootstrap-vue-3/src/components/BToast/BToaster.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :id="name" :class="[positionClass]" class="b-toaster position-fixed p-3" style="z-index: 11">
2+
<div :class="[positionClass]" class="b-toaster position-fixed p-3" style="z-index: 11">
33
<b-toast
44
v-for="toast in instance?.toasts(position).value"
55
:id="toast.options.id"
@@ -25,14 +25,11 @@ import BToast from './BToast.vue'
2525
interface BToasterProps {
2626
position?: ContainerPosition
2727
instance?: ToastInstance
28-
name?: string
2928
// appendToast?: Booleanish
3029
}
3130
3231
const props = withDefaults(defineProps<BToasterProps>(), {
3332
position: 'top-right',
34-
// TODO get the name right for b-toast
35-
name: 'b-toaster-top-right',
3633
})
3734
3835
const toastPositions = {

0 commit comments

Comments
 (0)