update 大量细节处理

This commit is contained in:
2021-06-17 18:07:33 +08:00
parent 5b57785b81
commit d3385102f2
12 changed files with 424 additions and 393 deletions

View File

@@ -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)
}