@smart-portal/bundler

1.1.19 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i @smart-portal/bundler

Weekly Downloads

2

Version

1.1.19

License

MIT

Unpacked Size

4.57 MB

Total Files

16

Last publish

Collaborators

  • asp_panjinjun