@gitlab/ui
Version:
GitLab UI Components
19 lines (16 loc) • 406 B
JavaScript
import { extend } from '../vue';
import { useParentMixin } from './use-parent';
import { getScopeId } from '../utils/get-scope-id';
// @vue/component
const scopedStyleMixin = extend({
mixins: [useParentMixin],
computed: {
scopedStyleAttrs() {
const scopeId = getScopeId(this.bvParent);
return scopeId ? {
[scopeId]: ''
} : {};
}
}
});
export { scopedStyleMixin };