|
@@ -128,16 +128,25 @@
|
|
|
<div class="btns">
|
|
|
<button v-if="currentMaterialType !== '3D'" class="ui-button upload-btn" @click="onClickUpload">
|
|
|
<span>{{ upload_material }}</span>
|
|
|
- <i :key="currentMaterialType" class="iconfont icon-material_prompt tool-tip-for-editor" v-tooltip="
|
|
|
- currentMaterialType === 'image' ? img_size :
|
|
|
+ <i
|
|
|
+ :key="currentMaterialType"
|
|
|
+ class="iconfont icon-material_prompt tool-tip-for-editor"
|
|
|
+ v-tooltip="
|
|
|
+ currentMaterialType === 'image' ? img_size :
|
|
|
currentMaterialType === 'pano' ? pano_size :
|
|
|
- currentMaterialType === 'audio' ? audio_size :
|
|
|
- currentMaterialType === 'video' ? video_size : ''
|
|
|
- ">
|
|
|
- </i>
|
|
|
- <FileInput ref="file-input" :failString="fileInputFailString" :limitFailStr="fileInputLimitFailStr"
|
|
|
- :acceptType="fileInputAcceptType" :mediaType="fileInputMediaType" :limit="fileInputLimit"
|
|
|
- @file-change="onFileInputChange"></FileInput>
|
|
|
+ currentMaterialType === 'audio' ? audio_size :
|
|
|
+ currentMaterialType === 'video' ? video_size : ''
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <FileInput
|
|
|
+ ref="file-input"
|
|
|
+ :failString="fileInputFailString"
|
|
|
+ :limitFailStr="fileInputLimitFailStr"
|
|
|
+ :acceptType="fileInputAcceptType"
|
|
|
+ :mediaType="fileInputMediaType"
|
|
|
+ :limit="fileInputLimit"
|
|
|
+ @file-change="onFileInputChange"
|
|
|
+ />
|
|
|
</button>
|
|
|
<div v-else class="button-placeholder"></div>
|
|
|
<div>
|