docs: unix timestamp

This commit is contained in:
katherinehhh 2024-05-11 16:09:21 +08:00
parent cff530acac
commit 37e5dd7753
2 changed files with 9 additions and 1 deletions

View File

@ -254,6 +254,10 @@ export default defineConfig({
"title": "DatePicker", "title": "DatePicker",
"link": "/components/date-picker" "link": "/components/date-picker"
}, },
{
"title": "UnixTimestamp",
"link": "/components/unix-timestamp"
},
{ {
"title": "TimePicker", "title": "TimePicker",
"link": "/components/time-picker" "link": "/components/time-picker"

View File

@ -1,9 +1,13 @@
# UnixTimestamp # UnixTimestamp
`UnixTimestamp` 是一个基于 `antd` 的DatePicker组件的封装。
```ts ```ts
interface UnixTimestampProps { interface UnixTimestampProps {
value?: number; value?: number;
accuracy?: 'millisecond' | 'second'; accuracy?: 'millisecond' | 'second';
onChange?: (value: number) => void;
} }
``` ```