图片预览方法
文章目录
const { url } = data || {};
let windowProxy = window.open('');
windowProxy.document.write(`<!DOCTYPE html><html><body ><img src='${(url || editUrl || '').replace('https', 'http')}'/></body></html>`)<WebpImg
onClick={() => {
/* eslint-disable-next-line no-undef */
const myViewer = new Viewer(document.getElementById(`${url}`), {
transition: false
});
}}
id={`${url}`}
alt={`图片材料`}
className="picture-info-img"
src={url}
/>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论