Skip to content

Commit

Permalink
docs(ConfigProvider): update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed May 21, 2021
1 parent 0acc586 commit c5aab23
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/config-provider/demo/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,15 @@ class Demo extends React.Component {

this.changeLang = this.changeLang.bind(this);
this.showDialog = this.showDialog.bind(this);
this.field = new Field(this);
}

componentDidMount() {
this.field.validate();
}

changeLang(lang) {
this.setState({
lang
});
this.field.validate();
}

showDialog() {
Expand Down Expand Up @@ -110,9 +107,6 @@ class Demo extends React.Component {
<TimePicker2 />
<RangePicker2 />
<Calendar style={{ width: '350px', padding: '12px', border: '1px solid #C4C6CF', borderRadius: '3px' }} shape="card" />
<Form field={this.field}>
<Form.Item required><Input name="validate" readOnly style={{width: 350}} /></Form.Item>
</Form>

<Pagination defaultCurrent={2} />
<Transfer dataSource={transferDataSource} defaultValue={['3']} defaultLeftChecked={['1']} titles={['Source', 'Target']} />
Expand Down

0 comments on commit c5aab23

Please sign in to comment.