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>
);
});
}}
>
import Radio from 'zarm/lib/radio';
Radio.defaultProps.prefixCls = 'zw-radio';
Radio.Group.defaultProps.prefixCls = 'zw-radio-group';
Radio.Group.defaultProps.compact = true;
Radio.Group.defaultProps.ghost = true;
Radio.Group.defaultProps.size = 'md';
export default Radio;
import Radio from 'zarm/lib/radio';
Radio.defaultProps.prefixCls = 'zw-radio';
Radio.Group.defaultProps.prefixCls = 'zw-radio-group';
Radio.Group.defaultProps.compact = true;
Radio.Group.defaultProps.ghost = true;
Radio.Group.defaultProps.size = 'md';
export default Radio;
import { Icon } from 'zarm';
Icon.defaultProps.prefixCls = 'zw-icon';
export default Icon;
onClick={() => {
Loading.show();
}}
>
import Badge from 'zarm/lib/badge';
Badge.defaultProps.prefixCls = 'zw-badge';
export default Badge;
import Checkbox from 'zarm/lib/checkbox';
Checkbox.defaultProps.prefixCls = 'zw-checkbox';
Checkbox.Group.defaultProps.prefixCls = 'zw-checkbox-group';
export default Checkbox;