|
|
@ -297,28 +297,41 @@ function selectFile(){ |
|
|
//fileUpload.handleStart(); |
|
|
//fileUpload.handleStart(); |
|
|
fileUpload.value.$el.querySelector('input[type="file"]').click(); |
|
|
fileUpload.value.$el.querySelector('input[type="file"]').click(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//const fit = props.data.styles.divStyle.objectFit!=undefined ? props.data.styles.divStyle.objectFit : 'fill' |
|
|
|
|
|
|
|
|
|
|
|
const fit = computed(()=>{ |
|
|
|
|
|
if(props.data.styles.divStyle&&props.data.styles.divStyle.objectFit){ |
|
|
|
|
|
return props.data.styles.divStyle.objectFit |
|
|
|
|
|
}else{ |
|
|
|
|
|
return 'fill' |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
<template> |
|
|
<template> |
|
|
<img |
|
|
<el-image |
|
|
v-if="(!hasELCard(ancestors))&&props.data.control.useDefaultImg&&props.type==5" |
|
|
v-if="(!hasELCard(ancestors))&&props.data.control.useDefaultImg&&props.type==5" |
|
|
:src="value" |
|
|
:src="value" |
|
|
class="avatar" |
|
|
class="avatar" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
|
|
|
:fit="fit" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<img |
|
|
<el-image |
|
|
v-if="props.data.control.useDefaultImg&&props.type==4" |
|
|
v-if="props.data.control.useDefaultImg&&props.type==4" |
|
|
:src="props.modelValue" |
|
|
:src="props.modelValue" |
|
|
class="avatar" |
|
|
class="avatar" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
|
|
|
:fit="fit" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<img |
|
|
<el-image |
|
|
v-if="props.data.control.useDefaultImg&&props.type!=4&&props.type!=5&&props.data.control.defaultAllowsChange=='0'" |
|
|
v-if="props.data.control.useDefaultImg&&props.type!=4&&props.type!=5&&props.data.control.defaultAllowsChange=='0'" |
|
|
:src="props.modelValue" |
|
|
:src="props.modelValue" |
|
|
class="avatar" |
|
|
class="avatar" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
|
|
|
:fit="fit" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<el-upload |
|
|
<el-upload |
|
|
@ -331,11 +344,12 @@ function selectFile(){ |
|
|
:before-upload="beforeAvatarUpload" |
|
|
:before-upload="beforeAvatarUpload" |
|
|
v-loading="imgLoading" |
|
|
v-loading="imgLoading" |
|
|
> |
|
|
> |
|
|
<img |
|
|
<el-image |
|
|
v-if="props.data.control.useDefaultImg" |
|
|
v-if="props.data.control.useDefaultImg" |
|
|
:src="props.modelValue" |
|
|
:src="props.modelValue" |
|
|
class="avatar" |
|
|
class="avatar" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
:style="getFormItemInputStyle(configStyle, 2)" |
|
|
|
|
|
:fit="fit" |
|
|
/> |
|
|
/> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
<!-- <img referrerpolicy="no-referrer" :src="url" :style="styleObject" :fit="fit" :class="[boderAndShadowClassIsActive ? boderAndShadowClass : '', radiusClassIsActive ? radiusClass : '',mp, floatFlag ? floatStyle : '']" /> --> |
|
|
<!-- <img referrerpolicy="no-referrer" :src="url" :style="styleObject" :fit="fit" :class="[boderAndShadowClassIsActive ? boderAndShadowClass : '', radiusClassIsActive ? radiusClass : '',mp, floatFlag ? floatStyle : '']" /> --> |
|
|
|