bootstrap-vue
Version:
BootstrapVue, with over 40 plugins and more than 80 custom components, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
10 lines (7 loc) • 370 B
JavaScript
// This method returns a component's scoped style attribute name: `data-v-xxxxxxx`
// The `_scopeId` options property is added by vue-loader when using scoped styles
// and will be `undefined` if no scoped styles are in use
const getScopeId = (vm, defaultValue = null) => {
return vm ? vm.$options._scopeId || defaultValue : defaultValue
}
export default getScopeId