我在Vue中使用typescript
.对于这个特定的用例,我想从.vue
文件中导出多个项目.这样地:
//福巴.vue
<template>
...
</template>
export class Foo extends Vue {
foo: string = "foo";
}
export const Bar = {bar: "bar"};
然后像这样导入它们:
//巴兹.vue
import { Foo, Bar } from 'FooBar.vue';
@Components({ components: { Foo }})
... // rest of the code
Is there a way to export multiple objects from a 100 file in Vue?