How to use the xadmin.app.use function in xadmin

To help you get started, we’ve selected a few xadmin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sshwsfc / xadmin / examples / xadmin-demo / src / form / index.js View on Github external
title: '自由摆放',
                      type: 'boolean'
                    }
                  }
                }
              }
            }
          }}
          onSubmit={this.onSubmit.bind(this)}
          component={FormLayout}/>
      
    )
  }
}

export default app
  .use(i18n)
  .use(layout)
  .use(form)
  .use({
    config: {
      locale: {
        lng: 'zh_Hans'
      }
    },
    locales: {
      zh_Hans: {
        translation: {
          'Add Count': '添加数字'
        }
      }
    },
github sshwsfc / xadmin / examples / xadmin-demo / src / model / index.js View on Github external
import React from 'react'
import { app, StoreWrap } from 'xadmin'

import i18n from 'xadmin-i18n'
import form from 'xadmin-form'
import layout from 'xadmin-layout'
import model from 'xadmin-model'
import relate from 'xadmin-model/lib/relate'

import filter from 'xadmin-model/lib/filter'
import actions from 'xadmin-model/lib/actions'

import api from './api'
import models from './models'

export default app
.use(i18n)
.use(layout)
.use(form)
.use(model)
.use(relate)
.use(filter)
.use(actions)
.use({
  config: {
    api
  },
  models
})