zlj-antd application for registering the ant-design component
Your application can use antd components by add zlj-antd dependency.
- Add dependency
$ maka add zlj-antd
- Modify the view
const view = {
component: 'div',
children: [{
component: 'antd.Button',
children: 'submit'
}]
}
- Modify the index.html
<script>
window.main = function (maka) {
maka.load(['zlj-antd']).then(()=>{
maka.render('yourApp','app')
})
}
<script>
- Download
- Decompress
- Enter decompress directory
- Run
$ yarn start
MIT