门户通用组件
组件包依赖
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'