Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix style #4614

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/upload/themes/image-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,14 @@ export default defineComponent({
{!['progress', 'fail'].includes(file.status) && renderMainContent(file, index)}
{Boolean(fileName && props.showImageFileName) &&
(file.url ? (
<Link href={file.url} class={fileNameClassName} target="_blank" hover="color" size="small">
<Link
href={file.url}
class={fileNameClassName}
target="_blank"
hover="color"
size="small"
disabled={false}
>
{fileName}
</Link>
) : (
Expand Down
3 changes: 2 additions & 1 deletion src/upload/themes/multiple-flow-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ export default defineComponent({
fileName
);
const fileNameNode = file.url ? (
<Link href={file.url} target="_blank" hover="color">
// 此次需要设置disabled为false 否则链接会跟随表单不可点击
<Link href={file.url} target="_blank" hover="color" disabled={false}>
{thumbnailNode}
</Link>
) : (
Expand Down
9 changes: 8 additions & 1 deletion src/upload/themes/normal-file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ const NormalFile = defineComponent({
key={file.name + index + file.percent + file.status}
>
{file.url ? (
<Link href={file.url} target="_blank" hover="color" size="small" class={`${uploadPrefix}__single-name`}>
<Link
href={file.url}
target="_blank"
hover="color"
size="small"
class={`${uploadPrefix}__single-name`}
disabled={false}
>
{fileName}
</Link>
) : (
Expand Down
Loading