Browse Source

feat(CopperModal): 增加src初始地址

pull/768/head
cKey 3 years ago
parent
commit
51501a8a14
  1. 3
      apps/vue/src/components/Cropper/src/CopperModal.vue

3
apps/vue/src/components/Cropper/src/CopperModal.vue

@ -132,9 +132,10 @@
uploadApi: {
type: Function as PropType<(params: apiFunParams) => Promise<any>>,
},
src: { type: String },
});
let filename = '';
const src = ref('');
const src = ref(props.src || '');
const previewSource = ref('');
const cropper = ref<Cropper>();
const fileList = ref<UploadProps['fileList']>([]);

Loading…
Cancel
Save