UNPKG

@tarojs/components

Version:
14 lines (12 loc) 570 B
function initVue3Components(app, components = {}) { app.config.isCustomElement = tag => /^taro-/.test(tag) || tag === 'root' || tag === 'block'; Object.entries(components).forEach(([name, component]) => { const tagName = component === null || component === void 0 ? void 0 : component.displayName; if (typeof tagName === 'string' && tagName) { component.name = name; app.component(tagName.replace(/-core$/, ''), component); } }); } export { initVue3Components }; //# sourceMappingURL=components-loader.js.map