提交 588627f5 authored 作者: 钟是志's avatar 钟是志

组件错误

上级 6ff85709
...@@ -90,7 +90,7 @@ const DiyPicker = (props) => { ...@@ -90,7 +90,7 @@ const DiyPicker = (props) => {
}; };
const DiyDatePicker = (props) => { const DiyDatePicker = (props) => {
let { config, formValue, changeValue } = props; let { config, formValue, changeValue, } = props;
let value = formValue[config.key] ? new Date(formValue[config.key].replace(/-/g, '/')) : null; let value = formValue[config.key] ? new Date(formValue[config.key].replace(/-/g, '/')) : null;
const change = (date) => { const change = (date) => {
let v = moment(date.valueOf()).format('YYYY-MM-DD'); let v = moment(date.valueOf()).format('YYYY-MM-DD');
...@@ -109,7 +109,7 @@ const DiyDatePicker = (props) => { ...@@ -109,7 +109,7 @@ const DiyDatePicker = (props) => {
key={config.key} key={config.key}
disabled={config.readOnly} disabled={config.readOnly}
onChange={(date) => change(date)} onChange={(date) => change(date)}
{...otherProps} {...config.otherProps}
> >
<List.Item <List.Item
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论