feat: add fieldMapToTime prop to FormRenderProps (#4838)

This commit is contained in:
huangxiaomin
2024-11-09 14:08:46 +08:00
committed by GitHub
parent 2c6edafeb2
commit 6b9acf09dc
3 changed files with 90 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ interface RowType {
const formOptions: VbenFormProps = {
// 默认展开
collapsed: false,
fieldMapToTime: [['dateRangePicker', ['startTime', 'endTime'], 'YYYY-MM']],
schema: [
{
component: 'Input',
@@ -62,6 +63,11 @@ const formOptions: VbenFormProps = {
fieldName: 'datePicker',
label: 'Date',
},
{
component: 'RangePicker',
fieldName: 'dateRangePicker',
label: 'DateRange',
},
],
// 控制表单是否显示折叠按钮
showCollapseButton: true,