import { defineComponent , DefineComponent } from "vue" ; import { initDxComponent } from "../../component" ; import { initDxConfiguration } from "../../configuration-component" ; import { initDxExtensionComponent } from "../../extension-component" ; import { setVModel } from "../../vue-helper" ; export function createComponent ( config ) { config . extends = initDxComponent ( ) ; if ( config . model ) { setVModel ( config ) ; } return defineComponent ( config ) ; } export function createConfigurationComponent ( config ) { config . extends = initDxConfiguration ( ) ; return defineComponent ( config ) ; } export function createExtensionComponent ( config ) { config . extends = initDxExtensionComponent ( ) ; return defineComponent ( config ) ; }