/** * @function 节流按钮 * @author Lyq */ import React, { Component } from 'react'; // import st from 'styled-components'; import { Button } from 'antd'; export default class OnceButton extends Component { constructor(props, context) { super(props, context); this.state = { disabled: false, time: 0 } } componentWillMount() { } componentWillReceiveProps(props) { } componentDidMount() { } render() { const { onClick } = this.props; Reflect.deleteProperty(this.props, 'onClick'); Reflect.deleteProperty(this.props, 'disabled'); return ( ); } }