Selaa lähdekoodia

🎨 认领移除认领类型多选

快乐的梦鱼 5 päivää sitten
vanhempi
commit
49da667e8a
1 muutettua tiedostoa jossa 8 lisäystä ja 14 poistoa
  1. 8 14
      src/pages/home/light/form/claim.ts

+ 8 - 14
src/pages/home/light/form/claim.ts

@@ -51,21 +51,15 @@ export function getClaimVillageForm(options: {
           {
             label: '认领类型',
             name: 'type',
-            type: 'check-box-list',
+            type: 'radio-value',
             defaultValue: ['villager'],
             additionalProps: {
-              multiple: true,
-              vertical: true,
-              useCell: true,
-              loadData: async () => {
-                await waitTimeOut(200);
-                return [
-                  { text: '村民', value: 'villager' },
-                  { text: '志愿者', value: 'volunteer' },
-                  { text: '管理人员', value: 'staff' },
-                ]
-              },
-            } as CheckBoxListProps,
+              options: [
+                { text: '村民', value: 'villager' },
+                { text: '志愿者', value: 'volunteer' },
+                { text: '管理人员', value: 'staff' },
+              ]
+            } as RadioValueProps,
             rules: [{ required: true, message: '请选择认领类型' }],
           },
           {
@@ -123,7 +117,7 @@ export function getClaimVillageForm(options: {
             additionalProps: {
               placeholder: '请说明认领该村落的原因',
               showWordLimit: true,
-              maxLength: 200,
+              maxLength: 5000,
             } as FieldProps,
           },
         ],