@avkcom/edf-components
Advanced tools
Comparing version 0.2.3-dev.1 to 0.2.3-dev.2
function registerComponents(app, components) { | ||
console.log(1111111, 111, components); | ||
console.log(77777777777, 111, components); | ||
Object.entries(components).forEach(([, component]) => { | ||
console.log(11111111, 222, component?.default); | ||
app.component(component?.default?.__name, component?.default); | ||
console.log(77777777777, 222, component); | ||
if (component) { | ||
app.component(component.__name, component); | ||
} | ||
}); | ||
@@ -7,0 +9,0 @@ } |
import { App } from 'vue'; | ||
type ModuleNamespace = Record<string, any> & { | ||
[Symbol.toStringTag]: 'Module'; | ||
}; | ||
/** | ||
@@ -11,3 +8,2 @@ * Register components in the app instance | ||
*/ | ||
export declare function registerComponents(app: App<Element>, components: Record<string, ModuleNamespace>[]): void; | ||
export {}; | ||
export declare function registerComponents(app: App<Element>, components: Record<string, string>[]): void; |
{ | ||
"name": "@avkcom/edf-components", | ||
"version": "0.2.3-dev.1", | ||
"version": "0.2.3-dev.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,6 +0,3 @@ | ||
import { App } from 'vue'; | ||
import {App} from 'vue'; | ||
type ModuleNamespace = Record<string, any> & { | ||
[Symbol.toStringTag]: 'Module'; | ||
}; | ||
/** | ||
@@ -12,8 +9,10 @@ * Register components in the app instance | ||
*/ | ||
export function registerComponents(app: App<Element>, components: Record<string, ModuleNamespace>[]) { | ||
console.log(1111111, 111, components) | ||
export function registerComponents(app: App<Element>, components: Record<string, string>[]) { | ||
console.log(77777777777, 111, components) | ||
Object.entries(components).forEach(([, component]) => { | ||
console.log(11111111, 222, component?.default) | ||
app.component(component?.default?.__name, component?.default); | ||
console.log(77777777777, 222, component) | ||
if(component) { | ||
app.component(component.__name as string, component); | ||
} | ||
}); | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1609
943796