text: /*
   * Copyright(c) Oflane Software 2017. All Rights Reserved.
   */
  import 'vue'
  import fata from './fata'
  import fataOptions from './fata/options'
  import temetas from './temetas'
  import fase from 'fansion-base'
  import fanui from 'fansion-ui'
  import metaDefaultMetaList from './meta/default/meta-list'
  import metaDefaultMetaEdit from './meta/default/meta-edit'
  import metaDefaultMetaGroupList from './meta/default/meta-group-list'
  import metaDefaultMetaGroupEdit from './meta/default/meta-group-edit'
  import metaOfentityOfeMetaEdit from './meta/ofentity/ofe-meta-edit'
  import metaFacFacMetaEdit from './meta/fac/fac-meta-edit'
  /**
   * 安装方法
   * @param Vue vue对象
   * @param opts 选项
   */
  const install = function (Vue, opts = {}) {
    // 页面注册
    let pageComps = {
      '/meta/default/meta-list/:type': metaDefaultMetaList,
      '/meta/default/meta-edit/:type/:id': metaDefaultMetaEdit,
      '/meta/default/meta-group-list/:type': metaDefaultMetaGroupList,
      '/meta/default/meta-group-edit/:type/:group': metaDefaultMetaGroupEdit,
      '/meta/ofentity/ofe-meta-edit/:type/:group': metaOfentityOfeMetaEdit,
      '/meta/fac/fac-meta-edit/:catagory/:id': metaFacFacMetaEdit,
      '/meta/fac/fac-meta-edit/:id': metaFacFacMetaEdit
    }
    fase.init({
      pages: {
        pageComps
      },
      router: {
        routes: !opts.disableRoute ? Object.keys(pageComps) : null,
      }
    })
    fata.addFormControls(fataOptions.formControls)
    fata.addConfeta(fataOptions.confetas)
    Vue.use(fanui)
    init(opts)
  }
  /**
   * 初始化方法
   * @param opts
   */
  const init = (opts = {}) => {
    opts.temetas && temetas.addTemeta(opts.temetas)
    opts.fatas && fata.addConfeta(opts.fatas)
    opts.formCtls && fata.addFormControls(opts.formCtls)
  }
  /**
   * fac组件模块
   * @author Paul.Yang E-mail:yaboocn@qq.com
   * @version 1.0 2017-8-15
   */
  export default {
    name: 'fansion-meta',
    fata,
    temetas,
    install,
    init
  }
  