UNPKG

tass-ui

Version:

A high quality UI Toolkit built on Vue.js3+.

17 lines (16 loc) 424 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const withInstall = (main, extra) => { main.install = (app) => { for (const comp of [main, ...Object.values(extra ?? {})]) { app.component(comp.name, comp); } }; if (extra) { for (const [key, comp] of Object.entries(extra)) { main[key] = comp; } } return main; }; exports.withInstall = withInstall;