mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 17:31:15 +00:00
docs: unix timestamp
This commit is contained in:
parent
cff530acac
commit
37e5dd7753
@ -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"
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user