@codelet/core
Version:
mini core
15 lines (14 loc) • 420 B
JavaScript
import { mergeOptions } from '../utils';
import { RuntimeBehavior } from './runtime';
export function createComponent(options) {
return Component(mergeOptions({
// 注入runtime行为
behaviors: [RuntimeBehavior],
options: {
// 启用多slot支持
multipleSlots: true,
// 组件样式隔离
addGlobalClass: true,
},
}, options));
}