update 迁移table和modal-form组件,迁移app管理

This commit is contained in:
2021-06-11 22:09:33 +08:00
parent f5bd5e73c8
commit 16a94b7c5a
17 changed files with 1099 additions and 71 deletions

View File

@@ -1,10 +1,28 @@
import React, { Component } from 'react'
import { Divider } from 'antd'
export default class QueryTableActions extends Component {
renderActions() {
const { children } = this.props
const actions = []
Array.isArray(children) ? children.forEach((action, i) => {
actions.push(action)
if (i < this.props.children.length - 1) {
actions.push(<Divider type="vertical" key={i} />)
}
}) : (actions.push(children))
return actions
}
render() {
return (
<div>
<div className="yo-table-actions">
<div className="yo-table-actions--inner">
{this.renderActions()}
</div>
</div>
)
}