diff --git a/packages/upload-avatar/index.vue b/packages/upload-avatar/index.vue index 1ed3da4..9b6f76b 100644 --- a/packages/upload-avatar/index.vue +++ b/packages/upload-avatar/index.vue @@ -14,7 +14,7 @@ - + Promise disabled?: boolean + title?: string }>(), { accpet: '.jpeg,.jpg,.png,.bmp', fileId: '', @@ -95,6 +96,7 @@ const props = withDefaults(defineProps<{ fileSize: 2, autoCropHeight: 200, autoCropWidth: 200, + title: '上传头像', }) const emit = defineEmits<{ diff --git a/stories/UploadAvatar.stories.ts b/stories/UploadAvatar.stories.ts index 3b34285..ef17c12 100644 --- a/stories/UploadAvatar.stories.ts +++ b/stories/UploadAvatar.stories.ts @@ -2,7 +2,7 @@ * @Author: zhaojinfeng 121016171@qq.com * @Date: 2023-07-18 12:28:36 * @LastEditors: zhaojinfeng 121016171@qq.com - * @LastEditTime: 2023-07-21 21:52:48 + * @LastEditTime: 2023-07-21 22:43:52 * @FilePath: \vue3\stories\UploadAvatar.stories.ts * @Description: * @@ -23,6 +23,7 @@ const meta = { fileSize: 2, autoCropHeight: 200, autoCropWidth: 200, + title: '上传头像', uploadFunction() { return Promise.resolve({ id: 0,