Ver código fonte

fix(demo-form): add fieldMapToTime example,fix #807

Vben 3 anos atrás
pai
commit
a2a75a097f
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      src/views/demo/form/UseForm.vue

+ 9 - 0
src/views/demo/form/UseForm.vue

@@ -97,6 +97,14 @@
       },
     },
     {
+      field: 'fieldTime',
+      component: 'RangePicker',
+      label: '时间字段',
+      colProps: {
+        span: 8,
+      },
+    },
+    {
       field: 'field4',
       component: 'Select',
       label: '字段4',
@@ -171,6 +179,7 @@
         actionColOptions: {
           span: 24,
         },
+        fieldMapToTime: [['fieldTime', ['startTime', 'endTime'], 'YYYY-MM']],
       });
       return {
         register,