fix(theme): incorrect image preview selector
This commit is contained in:
parent
cc0692145a
commit
b8ce0cd151
@ -19,7 +19,7 @@ export default defineUserConfig({
|
||||
plugins: {
|
||||
photoSwipe: {
|
||||
// 图片选择器
|
||||
selector: '[vp-content] :not(a) > img:not([no-view],.no-view,.ignore)',
|
||||
selector: '.vp-doc :not(a) > img:not([no-view],.no-view,.ignore)',
|
||||
download: true, // 是否显示下载按钮
|
||||
fullscreen: true, // 是否显示全屏按钮
|
||||
scrollToClose: true, // 是否在滚动时关闭当前图片
|
||||
|
||||
@ -53,7 +53,7 @@ export function setupPlugins(
|
||||
// 图片浏览
|
||||
if (pluginOptions.photoSwipe !== false) {
|
||||
plugins.push(photoSwipePlugin({
|
||||
selector: '[vp-content] :not(a) > img:not([no-view],.no-view,.ignore)',
|
||||
selector: '.vp-doc :not(a) > img:not([no-view],.no-view,.ignore)',
|
||||
...pluginOptions.photoSwipe,
|
||||
}))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user