UNPKG

tdesign-mobile-vue

Version:
32 lines (26 loc) 680 B
/** * tdesign v1.12.1 * (c) 2025 TDesign Group * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var Vue = require('vue'); var withInstall = function withInstall(comp, alias) { var c = comp; c.install = function (app, name) { var defaultName = c.name; app.component(alias || name || defaultName, comp); }; return c; }; function extendAPI(apis) { var instance = Vue.getCurrentInstance(); if (instance && instance.proxy) { Object.assign(instance.proxy, apis); } } exports["default"] = withInstall; exports.extendAPI = extendAPI; exports.withInstall = withInstall; //# sourceMappingURL=component.js.map