UNPKG

vue2-tunnel-lining

Version:

A Vue2 component for tunnel lining design with MxCAD integration

20 lines (16 loc) 397 B
// src/index.js import TunnelLining from './components/TunnelLining.vue'; // 组件安装 const install = function(Vue) { if (install.installed) return; Vue.component(TunnelLining.name, TunnelLining); }; // 自动安装 if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } // 只使用 ES 模块导出 export default { install, TunnelLining };