view-design / ViewUIPlus

An enterprise-level UI component library and front-end solution based on Vue.js 3
https://www.iviewui.com
Other
384 stars 134 forks source link

[Bug Report]types/date-picker.d.ts中DatePicker的format参数类型不完成, tsx中使用"yyyy-MM-dd HH:mm:ss"报错 #309

Open FSixteen opened 1 year ago

FSixteen commented 1 year ago

Environment

Vue3

Reproduction link

https://run.iviewui.com/

Steps to reproduce

tsx文件, setup方式

return () => (
<>
<DatePicker
  type="datetime"
  format="yyyy-MM-dd HH:mm.ss"
  placeholder="Select date and time(Excluding seconds)"
  style="width: 200px"
/>
</>
)

What is expected?

支持string格式化类型

What is actually happening?

只支持Date