优化
This commit is contained in:
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/chat/messageComponent/imageMessage.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),i={props:{message:{type:Object,default:""}},data:()=>({imageHeight:0,imageWidth:0}),onLoad(){},methods:{load(e){e.detail.height>400?this.imageHeight=400:this.imageHeight=e.detail.height,e.detail.width>400?this.imageWidth=400:this.imageWidth=e.detail.width},imadeFullScreen(){e.wx$1.navigateTo({url:"/pages/index/chat/messageComponent/fullscreen/imagePreview?url="+this.message.url})}}};const t=e._export_sfc(i,[["render",function(i,t,a,d,s,o){return{a:s.imageWidth+"rpx",b:s.imageHeight+"rpx",c:e.o(((...e)=>o.load&&o.load(...e))),d:a.message.url,e:e.o(((...e)=>o.imadeFullScreen&&o.imadeFullScreen(...e)))}}],["__scopeId","data-v-9b2d2c20"]]);wx.createComponent(t);
|
||||
Reference in New Issue
Block a user