From 20185ab64a165df51515d9fa1c9b12a7a8c55f59 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 07 四月 2023 23:11:04 +0800 Subject: [PATCH] 2023-04-07 --- src/templates/sharecomponent/fieldscomponent/editcard/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx b/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx index d4eb344..4387911 100644 --- a/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx +++ b/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx @@ -18,7 +18,9 @@ _type = 'text' } } else if (props.type === 'search') { - if (_type !== 'select') { + if (_type === 'date' || _type === 'datetime') { + _type = 'date' + } else if (_type !== 'select') { _type = 'text' } } else if (props.type === 'form') { @@ -83,6 +85,7 @@ <Radio.Group onChange={this.changeType} value={card.type} disabled={!card.selected || card.origin}> <Radio value="text">text</Radio> <Radio value="select">select</Radio> + <Radio value="date">date</Radio> </Radio.Group> : null } {type === 'columns' ? -- Gitblit v1.8.0