|
@@ -2,12 +2,14 @@ import React from 'react'
|
|
|
import { Input, Icon, Button, Popconfirm } from 'antd'
|
|
import { Input, Icon, Button, Popconfirm } from 'antd'
|
|
|
import { connect } from 'dva'
|
|
import { connect } from 'dva'
|
|
|
import './header.less'
|
|
import './header.less'
|
|
|
|
|
+import SettingBox from './settingBox';
|
|
|
|
|
|
|
|
class Header extends React.Component {
|
|
class Header extends React.Component {
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
|
super(props);
|
|
super(props);
|
|
|
this.state = {
|
|
this.state = {
|
|
|
visibleConfirm: false,
|
|
visibleConfirm: false,
|
|
|
|
|
+ visibleSettingBox: false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -79,7 +81,11 @@ class Header extends React.Component {
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<div className='header-item toolbar-buttons'>
|
|
<div className='header-item toolbar-buttons'>
|
|
|
-
|
|
|
|
|
|
|
+ <Button onClick={() => this.setState({ visibleSettingBox: true})}>属性设置</Button>
|
|
|
|
|
+ <SettingBox
|
|
|
|
|
+ visibleSettingBox={this.state.visibleSettingBox}
|
|
|
|
|
+ hideBox={() => this.setState({visibleSettingBox:false})}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|