Vue3.2+-ZoomGlass 使用 lodash-es,支持 Vue.js 3.2+。 安装 & 使用 npm $ npm install xy-zoom 局部引入 <script setup> import Zoom from '98xy-zoom' </script> <template> <Zoom class="zoom" imgSrc="图片地址" /> </template> <style scoped> .zoom { width: 100px; height: 100px; } </style>