有可能在Vuejs做一个桶吗?
如果是,请举一个例子,我在网上搜索,但是我没有找到任何东西
比如js
// app/domain/index.js
export * from './negotiation';
export * from './negotiations';
// app/app.js
import { Negotiation, Negotiations } from './domain';
很可能,这会起作用:
// app/domain/index.js
import NegotiationModule from './negotiation';
import NegotiationsModule from './negotiations';
export const Negotiation = NegotiationModule;
export const Negotiations = NegotiationsModule;
// app/app.js
import { Negotiation, Negotiations } from './domain';
(我没有测试过,所以不能工作)