|
@@ -15,6 +15,7 @@
|
|
|
v-if="src"
|
|
|
:src="src"
|
|
|
height="300px"
|
|
|
+ :aspectRatio="aspectRatio"
|
|
|
:circled="circled"
|
|
|
@cropend="handleCropend"
|
|
|
@ready="handleReady"
|
|
@@ -126,13 +127,14 @@
|
|
|
type apiFunParams = { file: Blob; name: string; filename: string };
|
|
|
|
|
|
const props = {
|
|
|
- circled: { type: Boolean, default: true },
|
|
|
+ circled: { type: Boolean, default: false },
|
|
|
src: { type: String, default: '' },
|
|
|
title: { type: String },
|
|
|
maxSize: { type: Number, default: 5 },
|
|
|
uploadApi: {
|
|
|
type: Function as PropType<(params: apiFunParams) => Promise<any>>,
|
|
|
},
|
|
|
+ aspectRatio: { type: Number, default: 1 },
|
|
|
};
|
|
|
|
|
|
export default defineComponent({
|