# myphoto-layer **Repository Path**: zyl915/myphoto-layer ## Basic Information - **Project Name**: myphoto-layer - **Description**: 轻量级图片查看器,目前支持:放大、缩小(含鼠标滚轮)、拖拽、旋转、还原、设置展示图片的初始化大小、支持忽略指定图片 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: http://www.zylweb.top/#/content/Index?id=79 - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-03-25 - **Last Updated**: 2023-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 安装: npm i myphoto-layer 在需要的文件中引入: import { photoInfo } from 'myphoto-layer' 参数: id // 唯一标识,自定义 params // 扩展参数,目前包含width,height 使用方式: photoInfo('layerID_1') 扩展参数: photoInfo('layerID_1', { width: '300px', height: '200px' })