Skip to content

Commit 800f3a1

Browse files
authored
Update button.js
1 parent ba2dcbc commit 800f3a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/button/button.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mergeData } from 'vue-functional-data-merge'
2-
import { getConfigComponent } from '../../utils/config'
2+
import { getComponentConfig } from '../../utils/config'
33
import pluckProps from '../../utils/pluck-props'
44
import { concat } from '../../utils/array'
55
import { keys } from '../../utils/object'
@@ -23,7 +23,7 @@ const btnProps = {
2323
},
2424
variant: {
2525
type: String,
26-
default: () => getConfigComponent(NAME, 'variant')
26+
default: () => getComponentConfig(NAME, 'variant')
2727
},
2828
type: {
2929
type: String,
@@ -88,7 +88,7 @@ function isNonStandardTag(props) {
8888
// Compute required classes (non static classes)
8989
function computeClass(props) {
9090
return [
91-
`btn-${props.variant || getConfigComponent(NAME, 'variant')}`,
91+
`btn-${props.variant || getComponentConfig(NAME, 'variant')}`,
9292
{
9393
[`btn-${props.size}`]: Boolean(props.size),
9494
'btn-block': props.block,

0 commit comments

Comments
 (0)