"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
  props: {
    message: {
      type: Object,
      default: ""
    }
  },
  data() {
    return {
      imageHeight: 0,
      imageWidth: 0
    };
  },
  onLoad() {
  },
  methods: {
    load(event) {
      if (event.detail.height > 400) {
        this.imageHeight = 400;
      } else {
        this.imageHeight = event.detail.height;
      }
      if (event.detail.width > 400) {
        this.imageWidth = 400;
      } else {
        this.imageWidth = event.detail.width;
      }
    },
    // 点击图片全屏显示
    imadeFullScreen() {
      common_vendor.wx$1.navigateTo({
        url: "/pages/index/chat/messageComponent/fullscreen/imagePreview?url=" + this.message.url
      });
    }
  }
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  return {
    a: $data.imageWidth + "rpx",
    b: $data.imageHeight + "rpx",
    c: common_vendor.o((...args) => $options.load && $options.load(...args)),
    d: $props.message.url,
    e: common_vendor.o((...args) => $options.imadeFullScreen && $options.imadeFullScreen(...args))
  };
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d774affd"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/pages/index/chat/messageComponent/imageMessage.js.map
