Skip to content

Commit 205b5e4

Browse files
authored
Update config.js
1 parent 1b13480 commit 205b5e4

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/utils/config.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ const getDefaults = () => JSON.parse(JSON.stringify(DEFAULTS))
9090
// Method to set the config.
9191
// Merges in only known top-level and sub-level keys.
9292
// Vue.use(BootstrapVue, config)
93+
// or
94+
// BootstrapVue.setConfig(config)
95+
// Vue.use(BootstrapVue)
96+
9397

9498
/* istanbul ignore next: just for now to prevent red X on codecov until we can test this */
9599
const setConfig = (opts = {}) => {
@@ -123,16 +127,6 @@ const getConfigParam = key => {
123127

124128
// Method to grab a config value for a particular component.
125129
// Returns a deep clone (immutable) copy
126-
const getConfigComponent = (cmpName, key = null) => {
127-
if (key) {
128-
// Return the particular config value for key for specified component
129-
return getConfigParam(`${cmpName}.${key}`)
130-
} else {
131-
// return the components full config
132-
return getConfigParam(cmpName) || {}
133-
}
134-
}
135-
136130
const getComponentConfig = (cmpName, key = null) => {
137131
if (key) {
138132
// Return the particular config value for key for specified component
@@ -172,7 +166,6 @@ export {
172166
setConfig,
173167
getDefaults,
174168
getConfigParam,
175-
getConfigComponent,
176169
getComponentConfig,
177170
getBreakpointsAll,
178171
getBreakpointsUp,

0 commit comments

Comments
 (0)