2019-11-14 15:46:48
7
0
0
## 勾选
```
import React,{ Component } from 'react';
import { Table,Icon,Divider } from 'antd';
let data = [{
key: 1,
name: '花骨朵',
age: 18,
hobby: '看书',
},{
key: 2,
name: '天下',
2019-11-14 15:46:48
10
0
0
### antd最新版可以使用next(), prev(), goTo()
### antd旧版使用refs.slick.slickNext(), refs.slick.slickPrev(), refs.slick.slickGoTo()
next = ()=> {
this.carouselRef.refs.slick.slickNext();
}
p
2019-11-14 15:46:48
10
0
0
### 高度样式
this.setState({ showInfoDetail: false, protocolInfo: null })}
footer={[
,
]}
>
2019-11-14 15:46:48
6
0
0
> https://ant.design/docs/react/recommendation-cn
2019-11-14 15:46:48
5
0
0
disabledDate = (current) => {
return current && current < moment().startOf('day').subtract(0, 'days');
}
disabledRangeTime = (_, type) => {
const { form: { getFieldValue } } = this.props
if (type === 'start') {
const nowHours = moment().hours()
const time = getFieldValue("time")
if (time && moment(time[0].format("YYYY-MM-DD")).valueOf() <= moment(moment().format("YYYY-MM-DD")).valueOf()) {
return {
disabledHours: () => this.range(0, nowHours),
};
}
}
}
在关闭选择时间面板的时候判断是否小于(当前时间 + 10s)
onOpenChange = (status) => {
const { form: { getFieldValue, setFields } } = this.props
const time = getFieldValue("time")
if (!status) {
if (time && (moment(time[0]).valueOf() + 10000) < moment().valueOf()) {
setFields({
time: {
value: null,
errors: [n