tea-design / tea-component

37 stars 6 forks source link

[BUG] TimerPicker设置了clearable={true} 后还是无法清空 #15

Open npljy opened 2 years ago

loongcheung commented 2 years ago

请问是哪个版本有此问题

fkk0727 commented 2 years ago
"tea-component": "^2.7.3",
fkk0727 commented 2 years ago

请问是哪个版本有此问题

效果:

image

代码: <TimePicker.RangePicker clearable placeholder="请选择时长" format="mm:ss" onChange={(value: any) => setFormData({ ...formData, durationStart: value[0].format('mm:ss'), durationEnd: value[1].format('mm:ss'), }) } />

loongcheung commented 2 years ago

https://codesandbox.io/s/tea-component-demo-forked-gisfbe?file=/index.tsx 可以在这里提供下复现的Demo,目前自测是可以清除

fkk0727 commented 2 years ago

https://codesandbox.io/s/tea-component-demo-forked-gisfbe?file=/index.tsx 可以在这里提供下复现的Demo,目前自测是可以清除

image

加上后面的属性

loongcheung commented 2 years ago

TimePicker.RangePicker还没有实现clearable,近期处理下