Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WeekPicker component customize style props invalid #9848

Closed
l1xnan opened this issue Mar 28, 2018 · 0 comments
Closed

WeekPicker component customize style props invalid #9848

l1xnan opened this issue Mar 28, 2018 · 0 comments

Comments

@l1xnan
Copy link

@l1xnan l1xnan commented Mar 28, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.3

Environment

Chromium 64

Reproduction link

Edit on CodeSandbox

Steps to reproduce

image

import React from "react";
import ReactDOM from "react-dom";
import moment from "moment";
import { DatePicker, version } from "antd";
import "antd/dist/antd.css";
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;

ReactDOM.render(
  <div style={{ margin: 24 }}>
    <p style={{ marginBottom: 24 }}>
      Current antd version: {version} <br />
      You can change antd version on the left panel (Dependencies section).
    </p>
    <DatePicker defaultValue={moment()} style={{ width: 300 }} />
    <p>MonthPicker:</p>
    <MonthPicker defaultValue={moment()} style={{ width: 300 }} />
    <p>WeekPicker:</p>
    // 自定义宽度失败
    <WeekPicker defaultValue={moment()} style={{ width: 300 }} />
    <p>RangePicker:</p>
    <RangePicker defaultValue={moment()} style={{ width: 300 }} />
  </div>,
  document.getElementById("root")
);

What is expected?

...

What is actually happening?

customize style props invalid

@afc163 afc163 closed this in c526e17 Mar 29, 2018
zombieJ added a commit that referenced this issue Mar 29, 2018
This reverts commit c526e17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant