mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix(plugin-workflow): fix schedule picker value (#6039)
This commit is contained in:
parent
8730b85887
commit
0adab556f8
@ -12,6 +12,7 @@ import { DatePicker } from 'antd';
|
|||||||
import { NAMESPACE, lang } from '../../locale';
|
import { NAMESPACE, lang } from '../../locale';
|
||||||
import { appends, collection } from '../../schemas/collection';
|
import { appends, collection } from '../../schemas/collection';
|
||||||
import { SCHEDULE_MODE } from './constants';
|
import { SCHEDULE_MODE } from './constants';
|
||||||
|
import { dayjs } from '@nocobase/utils/client';
|
||||||
|
|
||||||
export const ScheduleModes = {
|
export const ScheduleModes = {
|
||||||
[SCHEDULE_MODE.STATIC]: {
|
[SCHEDULE_MODE.STATIC]: {
|
||||||
@ -82,7 +83,7 @@ export const ScheduleModes = {
|
|||||||
nullable: false,
|
nullable: false,
|
||||||
changeOnSelect: true,
|
changeOnSelect: true,
|
||||||
render(props) {
|
render(props) {
|
||||||
return <DatePicker showTime placeholder={lang('Current time')} {...props} />;
|
return <DatePicker showTime placeholder={lang('Current time')} {...props} value={dayjs(props.value)} />;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user