mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
Container.jsx
This commit is contained in:
parent
ae914a0af0
commit
a885d7a19b
@ -10,6 +10,7 @@ import TextArea from './form/TextArea.jsx';
|
||||
import Icon from './icon/Icon.jsx';
|
||||
|
||||
// layout
|
||||
import Container from './layout/Container.jsx';
|
||||
import HBoxLayout from './layout/HBoxLayout.jsx';
|
||||
import VBoxLayout from './layout/VBoxLayout.jsx';
|
||||
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
// container
|
||||
export { default as Container } from './container/Container.jsx';
|
||||
|
||||
// form
|
||||
export { default as Button } from './form/Button.jsx';
|
||||
export { default as Form } from './form/Form.jsx';
|
||||
@ -13,6 +10,7 @@ export { default as TextArea } from './form/TextArea.jsx';
|
||||
export { default as Icon } from './icon/Icon.jsx';
|
||||
|
||||
// layout
|
||||
export { default as Container } from './layout/Container.jsx';
|
||||
export { default as HBoxLayout } from './layout/HBoxLayout.jsx';
|
||||
export { default as VBoxLayout } from './layout/VBoxLayout.jsx';
|
||||
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import classNames from 'classnames/bind';
|
||||
|
||||
/**
|
||||
* 容器
|
||||
* @author tengge / https://github.com/tengge1
|
||||
@ -9,7 +11,7 @@ class Container extends React.Component {
|
||||
render() {
|
||||
const { className, style, children } = this.props;
|
||||
|
||||
return <div className={className} style={style}>{children}</div>;
|
||||
return <div className={classNames('Container', className)} style={style}>{children}</div>;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user