Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onOk={(selected) => {
console.log('Picker onOk: ', selected);
diy.value = selected.map(item => item.code);
this.setState({
diy,
});
Toast.show(JSON.stringify(selected));
this.toggle('diy');
}}
onCancel={() => this.toggle('diy')}
onClick={() => {
Toast.show('指定10秒自动关闭', 10000);
}}
>
onClick={() => {
Toast.show('默认3秒自动关闭');
}}
>
onClick={() => {
Toast.show(() => {
return (
<div>
<div>
预约成功
</div>
</div>
);
});
}}
>