Skip to content

Commit e591e6a

Browse files
committed
fix: 修复长文本无法滚动问题
1 parent ddb6997 commit e591e6a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-files-preview",
3-
"version": "1.0.33",
3+
"version": "1.0.34",
44
"private": false,
55
"description": "A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.",
66
"author": "SmallTeddy",

packages/auto-imports.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// @ts-nocheck
44
// noinspection JSUnusedGlobalSymbols
55
// Generated by unplugin-auto-import
6+
// biome-ignore lint: disable
67
export {}
78
declare global {
89
const EffectScope: typeof import('vue')['EffectScope']

packages/preview/supports/vue-files-preview/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const props = withDefaults(
1515
url: () => null,
1616
width: () => '100%',
1717
height: () => '100%',
18+
overflow: () => 'auto',
1819
},
1920
)
2021
@@ -40,7 +41,7 @@ watch(
4041
</script>
4142

4243
<template>
43-
<div class="vue-files-preview" :style="{ width, height }">
44+
<div class="vue-files-preview" :style="{ width, height, overflow }">
4445
<component
4546
:is="currentPreview.component"
4647
:name="currentPreview.name"

0 commit comments

Comments
 (0)