Blame view

node_modules/bootstrap-vue/src/utils/get-scope-id.js 349 Bytes
4cd4fd28   郭伟龙   feat: 初始化项目
1
2
3
4
5
6
// 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
export const getScopeId = (vm, defaultValue = null) => {
  return vm ? vm.$options._scopeId || defaultValue : defaultValue
}