React material-ui TimePicker时钟指针没有排成一列

时间:2016-06-07 21:47:05

标签: reactjs material-ui

我一直在试着让TimePicker正常工作。由于某种原因,时钟指针不与时钟上的数字对齐。

Hour hand offset on 5 o'clock

Minute hand pointing at 15 but clock reads 16

  • Material-UI:0.15.0
  • React:15.1.0
  • 浏览器:Chrome和Safari

这是TestPage:

import React from 'react';

import TimePicker from 'material-ui/TimePicker';
import RaisedButton from 'material-ui/RaisedButton';

require('styles/base/pages/myPage/TestPage.scss');

const TestPage = () => (
  <div>
    <RaisedButton label="Default" primary />
    <TimePicker hintText="test" />
  </div>
);

export default TestPage;

这是应用程序的index.js:

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-event-plugin';

injectTapEventPlugin();

render(
  <MuiThemeProvider muiTheme={getMuiTheme()}>
...
  </MuiThemeProvider>,
  document.getElementById('app')
);

TestPage正在index.js中的一条路线上呈现。

如果你我做错了,请告诉我。

0 个答案:

没有答案