Skip to content

Commit 59a00cf

Browse files
authored
Update dropdown.js
1 parent a710db7 commit 59a00cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/dropdown/dropdown.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { stripTags } from '../../utils/html'
2+
import { getConfigComponent } from '../../utils/config'
23
import idMixin from '../../mixins/id'
34
import dropdownMixin from '../../mixins/dropdown'
45
import BButton from '../button/button'
56

7+
const NAME = 'BDropdown'
8+
69
// @vue/component
710
export default {
8-
name: 'BDropdown',
11+
name: NAME,
912
components: { BButton },
1013
mixins: [idMixin, dropdownMixin],
1114
props: {
@@ -19,7 +22,7 @@ export default {
1922
},
2023
variant: {
2124
type: String,
22-
default: null
25+
default: () => getConfigComponent(NAME, 'variant')
2326
},
2427
menuClass: {
2528
type: [String, Array],

0 commit comments

Comments
 (0)