|
@@ -98,7 +98,7 @@ export default defineComponent({
|
|
// ElMessage.error('你上传图片格式不正确!')
|
|
// ElMessage.error('你上传图片格式不正确!')
|
|
// this.isStopRun = true
|
|
// this.isStopRun = true
|
|
// }
|
|
// }
|
|
- console.log(this.size)
|
|
|
|
|
|
+ // console.log(this.size)
|
|
const size = this.size || 0
|
|
const size = this.size || 0
|
|
const isLtSize = file.size < size * 1024 * 1024
|
|
const isLtSize = file.size < size * 1024 * 1024
|
|
if (!isLtSize) {
|
|
if (!isLtSize) {
|
|
@@ -118,7 +118,7 @@ export default defineComponent({
|
|
handleCropperSuccess(data: any) {
|
|
handleCropperSuccess(data: any) {
|
|
//将返回的数据回显
|
|
//将返回的数据回显
|
|
this.loading = false
|
|
this.loading = false
|
|
- console.log(data, 'success')
|
|
|
|
|
|
+ // console.log(data, 'success')
|
|
this.$emit('update:modelValue', data)
|
|
this.$emit('update:modelValue', data)
|
|
this.cropUploadSuccess(data)
|
|
this.cropUploadSuccess(data)
|
|
// this.$emit('cropUploadSuccess', data)
|
|
// this.$emit('cropUploadSuccess', data)
|
|
@@ -151,7 +151,7 @@ export default defineComponent({
|
|
<div
|
|
<div
|
|
ref="uploadDom"
|
|
ref="uploadDom"
|
|
class={[styles.uploadClass, 'w-full']}
|
|
class={[styles.uploadClass, 'w-full']}
|
|
- style={{ height: '106px' }}
|
|
|
|
|
|
+ style={{ height: '85px' }}
|
|
>
|
|
>
|
|
{this.modelValue ? (
|
|
{this.modelValue ? (
|
|
<ElImage
|
|
<ElImage
|