q-antd
Version:
双绑形式的antd。受控组件的双绑、Form表单验证
18 lines (14 loc) • 336 B
JavaScript
import React, { Component } from 'react';
export default class Center extends Component {
constructor(props) {
super(props);
}
render() {
const { children, style = {}, className } = this.props;
return (
<div className={`i-center-wrap ${className}`} style={style}>
{children}
</div>
);
}
}