按钮能多选,中间以“;” 间隔 ,谢谢
import { Button } from "antd";
import React from "react";
export class Inputt extends React.Component {
constructor(props) {
super(props);
this.state = {
textareaValue: "",
white: '#6c1e3e'
}
}
render() {
const buttonOnClick = (e) => {
console.log(e.currentTarget.value);
this.setState({
textareaValue: e.currentTarget.value,
})
}
const textareaonChange = (e) => {
this.setState({
textareaValue: e.target.value
})
}
return (
<>
<Button shape='round' onClick={(e) => buttonOnClick(e)} value="过度授权">过度授权</Button>
<Button shape='round' onClick={(e) => buttonOnClick(e)} value="重复授权">重复授权</Button>
<Button shape='round' onClick={(e) => buttonOnClick(e)} value="授权死循环">授权死循环</Button>
<Button shape='round' onClick={(e) => buttonOnClick(e)} value="应用截图与demo不一致">应用截图与demo不一致</Button>
<Button shape='round' onClick={(e) => buttonOnClick(e)} value="页面无法打开">页面无法打开</Button>
<hr></hr>
<textarea style={{ width: 500 }} value={this.state.textareaValue} onChange={(e) => textareaonChange(e)}></textarea>
</>
)
}
}