update 大量细节处理
This commit is contained in:
@@ -11,7 +11,7 @@ export default class IconSelector extends Component {
|
||||
selected: ''
|
||||
}
|
||||
|
||||
open(icon) {
|
||||
open = (icon) => {
|
||||
if (icon) {
|
||||
const activeKey = (icons.find(p => p.icons.includes(icon)) || icons[0]).key
|
||||
this.setState({
|
||||
@@ -24,11 +24,11 @@ export default class IconSelector extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
close() {
|
||||
close = () => {
|
||||
this.setState({ visible: false })
|
||||
}
|
||||
|
||||
onSelectIcon(icon) {
|
||||
onSelectIcon = (icon) => {
|
||||
if (this.props.onSelect) {
|
||||
this.props.onSelect(icon)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user