当前位置: 首页 > 工具软件 > DPress > 使用案例 >

vuepress 图像放大

丘友樵
2023-12-01

图片放大

参考 @vuepress/plugin-medium-zoom

安装

yarn add -D @vuepress/plugin-medium-zoom
# OR npm install -D @vuepress/plugin-medium-zoom

使用

简单使用

plugins: [
    "@vuepress/plugin-medium-zoom"
],

自定义选项

属性类型默认值描述
marginnumber0放大图像外的空间
backgroundstring#fff叠加的背景
scrollOffsetnumber40要滚动以关闭缩放的像素数
containerstring || HTMLElementobjectnull视图端口以显示放大
templatestring|HTMLTemplateElementnull缩放时显示的模板元素
 类似资料: