我使用 ExtReact 的 Picker。我从 sencha 的文档中获得了代码。但消息错误:“picker.show 不起作用”。我不明白原因。代码在这里:
export default class Picker extends Component {
showPicker = () => { console.log('this.picker', this.picker); this.picker.show() };
render() {
return (
<ExtContainer>
<ExtButton ui="action" handler={this.showPicker} text="Show Picker" />
<ExtPicker
ref={picker => this.picker = picker}
slots={[
{
name: 'limit_speed',
title: 'Speed',
data: [
{ text: '50 KB/s', value: 50 },
{ text: '100 KB/s', value: 100 },
{ text: '200 KB/s', value: 200 },
{ text: '300 KB/s', value: 300 }
]
}
]}
/>
</ExtContainer>)
}
}
链接文档 在此处输入链接描述