import bem from '../mixins/bem';
export const prefix = 'gd';

const install = function (Vue) {
  Vue.component(this.name, this);
};

export default function (sfc) {
  sfc.name = `${prefix}-${sfc.name}`;
  sfc.install = sfc.install || install;
  sfc.mixins = sfc.mixins || [];
  sfc.mixins.push(bem);
  return sfc;
}