feat(website): 文章发布时间精确到秒
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
Button,
|
||||
Card,
|
||||
Checkbox,
|
||||
DatePicker,
|
||||
Form,
|
||||
Input,
|
||||
Modal,
|
||||
@@ -150,12 +151,15 @@ export default function ArticleEditor({ initial, insights, onApply, onClose }) {
|
||||
{field(
|
||||
'date',
|
||||
'发布日期',
|
||||
<Input
|
||||
<DatePicker
|
||||
aria-label='发布日期'
|
||||
validateStatus={errors.date ? 'error' : 'default'}
|
||||
status={errors.date ? 'error' : undefined}
|
||||
aria-invalid={Boolean(errors.date)}
|
||||
type='date'
|
||||
value={draft.date}
|
||||
type='dateTime'
|
||||
format='YYYY-MM-DD HH:mm:ss'
|
||||
placeholder='请选择发布日期'
|
||||
style={{ width: '100%' }}
|
||||
value={draft.date || undefined}
|
||||
onChange={(value) => change('date', value)}
|
||||
/>,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user