mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-11 13:10:26 +08:00
fix(upload): accept file.thumbnailUrl
(#3216)
This commit is contained in:
parent
9120cbf20d
commit
4207226c1b
@ -228,7 +228,8 @@ export default defineComponent({
|
||||
{{ default: () => documentIcon }}
|
||||
</NBaseIcon>
|
||||
</span>
|
||||
) : (file.url || this.thumbnailUrl) && file.status !== 'error' ? (
|
||||
) : (file.url || this.thumbnailUrl || file.thumbnailUrl) &&
|
||||
file.status !== 'error' ? (
|
||||
<a
|
||||
rel="noopener noreferer"
|
||||
target="_blank"
|
||||
@ -254,13 +255,13 @@ export default defineComponent({
|
||||
/>
|
||||
)}
|
||||
</a>
|
||||
) : (
|
||||
) : (
|
||||
<span class={`${clsPrefix}-upload-file-info__thumbnail`}>
|
||||
<NBaseIcon clsPrefix={clsPrefix}>
|
||||
{{ default: () => imageIcon }}
|
||||
</NBaseIcon>
|
||||
</span>
|
||||
)
|
||||
)
|
||||
} else {
|
||||
icon = (
|
||||
<span class={`${clsPrefix}-upload-file-info__thumbnail`}>
|
||||
|
Loading…
Reference in New Issue
Block a user