|
|
@@ -119,11 +119,16 @@
|
|
|
<div class="btns">
|
|
|
<button class="ui-button upload-btn">
|
|
|
<span>上传素材</span>
|
|
|
- <i class="iconfont icon-material_prompt hover-tips">
|
|
|
- <div>
|
|
|
- <div v-if="currentMaterialType === 'image'" class="remark">请上传10MB以内、jpg/png格式的图片</div>
|
|
|
- <div v-if="currentMaterialType === 'pano'" class="remark">请上传2:1、120MB以内、jpg格式的图片</div>
|
|
|
- </div>
|
|
|
+ <i class="iconfont icon-material_prompt tool-tip-for-editor" v-tool-tip-wrapper>
|
|
|
+ <TooltipInEditor
|
|
|
+ :text="
|
|
|
+ currentMaterialType === 'image' ? '请上传10MB以内、jpg/png格式的图片' :
|
|
|
+ currentMaterialType === 'pano' ? '请上传2:1、120MB以内、jpg格式的图片' :
|
|
|
+ ''
|
|
|
+ "
|
|
|
+ :framePosLeft="'30px'"
|
|
|
+ :arrowPosLeft="'calc(50% - 24px)'"
|
|
|
+ ></TooltipInEditor>
|
|
|
</i>
|
|
|
</button>
|
|
|
<div>
|
|
|
@@ -141,6 +146,7 @@ import { getMaterialList} from "@/api";
|
|
|
import { changeByteUnit } from '@/utils/file'
|
|
|
import config from "@/config";
|
|
|
import { debounce } from "@/utils/other.js"
|
|
|
+import TooltipInEditor from '@/components/TooltipInEditor.vue'
|
|
|
|
|
|
export default {
|
|
|
props:{
|
|
|
@@ -153,6 +159,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
components:{
|
|
|
+ TooltipInEditor,
|
|
|
},
|
|
|
watch:{
|
|
|
searchKey: {
|
|
|
@@ -588,32 +595,10 @@ export default {
|
|
|
display: inline-block;
|
|
|
margin-right: 4px;
|
|
|
}
|
|
|
- i.hover-tips {
|
|
|
+ i.tool-tip-for-editor {
|
|
|
font-size: 12px;
|
|
|
transform: scale(0.923) translateY(1px);
|
|
|
cursor: default;
|
|
|
- // tip的方框
|
|
|
- > div {
|
|
|
- top: -30px;
|
|
|
- left: -30px;
|
|
|
- transform: translateX(0);
|
|
|
- background: #313131;
|
|
|
- border: 1px solid rgba(151, 151, 151, 0.2);
|
|
|
- > div {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- // tip的箭头
|
|
|
- &::before {
|
|
|
- position: absolute;
|
|
|
- bottom: -14px;
|
|
|
- transform: translateX(0);
|
|
|
- left: 30px;
|
|
|
- border-top: 7px solid #313131;
|
|
|
- }
|
|
|
- .remark {
|
|
|
- line-height: 20px;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
> div {
|