File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 3
3
<div
4
4
:id =" id"
5
5
class =" d-flex justify-content-between align-items-center px-1"
6
- :class =" {'dropdown-toggle' : !$slots.icon}"
6
+ :class =" {'dropdown-toggle' : !$slots.icon, 'dropdown-toggle-split': toggleSplit }"
7
7
data-bs-toggle =" dropdown"
8
8
:data-bs-offset =" offset"
9
9
:data-bs-auto-close =" autoClose"
10
10
aria-haspopup =" true"
11
11
aria-expanded =" false"
12
12
@click =" click"
13
13
>
14
- <slot name =" trigger" >
14
+ <span v-if =" toggleSplit" class =" visually-hidden" >Toggle Dropdown</span >
15
+ <slot v-else name =" trigger" >
15
16
<font style =" cursor : default ;" >
16
17
{{ trigger || nullValue }}
17
18
</font >
@@ -62,6 +63,7 @@ export default {
62
63
menWidth: util .props .Boolean ,
63
64
menuThem: util .props .themes ,
64
65
menuHeight: util .props .String ,
66
+ toggleSplit: util .props .Boolean ,
65
67
disabled: util .props .Boolean ,
66
68
id: {
67
69
type: String ,
Original file line number Diff line number Diff line change 144
144
<b-dropdown-item label =" item label" />
145
145
</b-dropdown >
146
146
</div >
147
+ <div class =" row" >
148
+ <font class =" col-1" >
149
+ toggleSplit:
150
+ </font >
151
+ <b-dropdown
152
+ class =" col-auto"
153
+ toggle-split
154
+ >
155
+ <b-dropdown-item label =" item label" />
156
+ </b-dropdown >
157
+ </div >
147
158
<div class =" row" >
148
159
<font class =" col-1" >
149
160
trigger(2):
You can’t perform that action at this time.
0 commit comments