|
|
@@ -45,8 +45,9 @@
|
|
|
import { ref, type Ref, h, computed } from 'vue';
|
|
|
import CommonContent from '@/api/CommonContent';
|
|
|
import { DynamicForm, type IDynamicFormOptions, type IDynamicFormRef } from '@imengyu/vue-dynamic-form';
|
|
|
-import { useAliOssUploadCo } from '@/common/upload/AliOssUploadCo';
|
|
|
-import { useBeforeUploadImageChecker, type UploadImageFormItemProps, type AddressItem, useLoadQuerys } from '@imengyu/imengyu-web-shared';
|
|
|
+import { useAliOssUploadCo } from '@/common/components/upload/AliOssUploadCo';
|
|
|
+import { useBeforeUploadImageChecker, type UploaderFormItemProps, type AddressItem } from '@imengyu/vue-dynamic-form-ant';
|
|
|
+import { useLoadQuerys } from '@imengyu/imengyu-web-shared';
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import type { RuleItem } from 'async-validator';
|
|
|
import VillageApi, { VolunteerInfo } from '@/api/inhert/VillageApi';
|
|
|
@@ -151,7 +152,7 @@ const formOptions = ref<IDynamicFormOptions>({
|
|
|
accept: 'image/*',
|
|
|
beforeUpload: useBeforeUploadImageChecker(),
|
|
|
uploadCo: useAliOssUploadCo('xiangyuan/volunteer/images')
|
|
|
- } as UploadImageFormItemProps,
|
|
|
+ } as UploaderFormItemProps,
|
|
|
},
|
|
|
{ label: '地址', name: 'address', type: 'text', additionalProps: { placeholder: '请输入地址' } },
|
|
|
{ label: '介绍', name: 'intro', type: 'text-area', additionalProps: { placeholder: '请输入介绍' } },
|