expose-editor.js 725 B

1234567891011121314151617181920212223
  1. /*
  2. * @Author: Rindy
  3. * @Date: 2021-09-01 16:52:26
  4. * @LastEditors: Rindy
  5. * @LastEditTime: 2021-09-02 09:36:33
  6. * @Description: 编辑器组件
  7. */
  8. import { setup } from './utils/componentHelper'
  9. import Layout from './editor/layout'
  10. import Head from './editor/layout/Head'
  11. import Menu from './editor/layout/Menu'
  12. import Main from './editor/layout/Main'
  13. import View from './editor/layout/View'
  14. import Toolbar from './editor/layout/Toolbar'
  15. import Toolbox from './editor/layout/Toolbox'
  16. const components = setup(Layout, Head, Menu, Main, View, Toolbar, Toolbox)
  17. export { Layout, Head, Menu, Main, View, Toolbar, Toolbox }
  18. export default function install(app) {
  19. components.forEach(component => component.install(app))
  20. }