Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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': '添加数字'
}
}
},
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
})