This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree 3 files changed +5
-10
lines changed
packages/bootstrap-vue-next/src/components
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 15
15
<BButton v-if =" hasCloseSlot" v-bind =" closeAttrs" @click =" hide" >
16
16
<slot name =" close" />
17
17
</BButton >
18
- <BCloseButton
19
- v-else
20
- ref =" closeButton"
21
- :white =" closeWhite"
22
- v-bind =" closeAttrs"
23
- @click =" hide"
24
- />
18
+ <BCloseButton v-else ref =" closeButton" v-bind =" closeAttrs" @click =" hide" />
25
19
</template >
26
20
</div >
27
21
</BTransition >
@@ -123,7 +117,8 @@ const isAlertVisible = computed<boolean>(() =>
123
117
)
124
118
125
119
const closeAttrs = computed (() => ({
126
- ' variant' : hasCloseSlot .value ? props .closeVariant : null ,
120
+ ' variant' : hasCloseSlot .value ? props .closeVariant : undefined ,
121
+ ' white' : ! hasCloseSlot .value ? props .closeWhite : undefined ,
127
122
' class' : closeClasses .value ,
128
123
' aria-label' : props .closeLabel ,
129
124
}))
Original file line number Diff line number Diff line change 46
46
<BCloseButton
47
47
v-else
48
48
ref =" closeButton"
49
- :white =" headerCloseWhite"
50
49
v-bind =" headerCloseAttrs"
51
50
@click =" hide('close')"
52
51
/>
@@ -351,6 +350,7 @@ const headerCloseClasses = computed(() => [props.headerCloseClass])
351
350
352
351
const headerCloseAttrs = computed (() => ({
353
352
' variant' : hasHeaderCloseSlot .value ? props .headerCloseVariant : undefined ,
353
+ ' white' : ! hasHeaderCloseSlot .value ? props .headerCloseWhite : undefined ,
354
354
' class' : headerCloseClasses .value ,
355
355
' aria-label' : props .headerCloseLabel ,
356
356
}))
Original file line number Diff line number Diff line change 41
41
<BCloseButton
42
42
v-else
43
43
ref =" closeButton"
44
- :white =" headerCloseWhite"
45
44
v-bind =" headerCloseAttrs"
46
45
@click =" hide('close')"
47
46
/>
@@ -224,6 +223,7 @@ const headerCloseClasses = computed(() => [
224
223
])
225
224
const headerCloseAttrs = computed (() => ({
226
225
' variant' : hasHeaderCloseSlot .value ? props .headerCloseVariant : undefined ,
226
+ ' white' : ! hasHeaderCloseSlot .value ? props .headerCloseWhite : undefined ,
227
227
' class' : headerCloseClasses .value ,
228
228
' aria-label' : props .headerCloseLabel ,
229
229
}))
You can’t perform that action at this time.
0 commit comments