| 12345678910111213141516171819202122 |
- import React, { Component } from 'react';
- import { Button, WhiteSpace, WingBlank } from 'antd-mobile';
- // import { genPercentAdd } from 'antd/lib/upload/utils';
- export default class Buttons extends Component{
- constructor(props){
- super(props)
- this.state={
- buttonStyle:{
- background:"green",
- margin:'0 10px'
- }
- }
- }
- render(){
- return (
- <WingBlank>
- <Button type="primary" style={this.state.buttonStyle} onClick={()=>this.props.changePage(this.props.toPage)}>{this.props.buttonText}</Button><WhiteSpace />
- </WingBlank>
- )
- }
- }
|