diff --git a/src/components/Charts/TimelineChart/index.js b/src/components/Charts/TimelineChart/index.js
index e7ab6b11dea63b237f423855757371bc5fcb3516..018464da5ea3c9f2dbe1d548bf9ec8038c753550 100644
--- a/src/components/Charts/TimelineChart/index.js
+++ b/src/components/Charts/TimelineChart/index.js
@@ -44,8 +44,7 @@ export default class TimelineChart extends React.Component {
});
const dv = ds.createView();
- dv
- .source(data)
+ dv.source(data)
.transform({
type: 'filter',
callback: obj => {
diff --git a/src/components/SettingDarwer/index.js b/src/components/SettingDarwer/index.js
index 386ee6077d45890490b4020fa8375b1906f7ff56..cf1134712dfce5dc4f49bb87f3c12e4f3d5816be 100644
--- a/src/components/SettingDarwer/index.js
+++ b/src/components/SettingDarwer/index.js
@@ -41,13 +41,13 @@ class SettingDarwer extends PureComponent {
onSelect={value => this.changeSetting('grid', value)}
style={{ width: 80 }}
>
- Wide
- Fluid
+ 定宽
+ 流式
,
],
},
{
- title: 'Fixed Header',
+ title: '固定 Header',
action: [
,
],
},
- ];
+ ].filter(item => {
+ return !item.hide;
+ });
};
changeSetting = (key, value) => {
const nextState = { ...this.props.setting };
@@ -88,6 +91,11 @@ class SettingDarwer extends PureComponent {
nextState.grid = 'Fluid';
}
}
+ if (key === 'fixedHeader') {
+ if (value) {
+ nextState.autoHideHeader = false;
+ }
+ }
if (key === 'colorWeak') {
if (value === 'open') {
document.body.className = 'colorWeak';