@smart-portal/bundler

bundler components support for vue2 vue2.7 vue3
2,203
Install
npm install @smart-portal/bundler
Latest Version:1.2.1
License:MIT
Last Updated:Sep 29, 2025
Links: npm
Maintainer: asp_panjinjun

SmartPortal bundler

门户通用组件

使用说明


依赖安装

组件包依赖

npm install @smart-portal/bundler 

入口主文件引入依赖

共有三种类型组件:
1. General通用组件 -- 可用于vue2,vue2.7,vue3项目
2. Options API组件 -- 可用于vue2,vue2.7,vue3项目
3. Composition API组件 -- 可用于vue2.7,vue3项目


vue2项目可注册使用通用General组件和Options组件

import {
  GeneralComponentsInstall,
  OptionsComponentsInstall
} from '@smart-portal/bundler'

Vue.use(GeneralComponentsInstall)
Vue.use(OptionsComponentsInstall)

vue2.7和vue3项目可全量注册组件

import {
  GeneralComponentsInstall,
  CompositionComponentsInstall,
  OptionsComponentsInstall
} from '@smart-portal/bundler'

app.use(GeneralComponentsInstall)
app.use(CompositionComponentsInstall)
app.use(OptionsComponentsInstall)

可按需单独使用相关组件
import {
  GeneralComponents,
  CompositionComponents,
  OptionsComponents
} from '@smart-portal/bundler'

全量获取组件
import SmartPortalComponents from '@smart-portal/bundler'

Version History

Version Released License
1.2.1 MIT
1.2.0 MIT
1.1.40 MIT
1.1.39 MIT
1.1.38 MIT