Example #1
0
// Handle creation of sync and async components
function createVueComponent(vue: VueConstructor, component: WebpackFunction | object | VueConstructor): Promise<VueConstructor> {
  return Promise.resolve(
    typeof component === 'function' && (component as WebpackFunction).cid === undefined
      ? (component as WebpackFunction)().then((cmp: any) => vue.extend(isESModule(cmp) ? cmp.default : cmp))
      : vue.extend(component)
  );
}
Example #2
0
 ? (component as WebpackFunction)().then((cmp: any) => vue.extend(isESModule(cmp) ? cmp.default : cmp))
function install(Vue: VueConstructor<Vue>, options: { size: string }) {
  Vue.prototype.$ELEMENT = options;

  Vue.use(Pagination);
  Vue.use(Dialog);
  Vue.use(Dropdown);
  Vue.use(DropdownMenu);
  Vue.use(DropdownItem);
  Vue.use(Menu);
  Vue.use(MenuItem);
  Vue.use(Input);
  Vue.use(Button);
  Vue.use(Tree);
  Vue.use(Row);
  Vue.use(Col);
  Vue.use(Carousel);
  Vue.use(CarouselItem);
}