mirror of
https://github.com/putyy/res-downloader.git
synced 2026-01-12 06:04:55 +08:00
feat: picture display optimize
This commit is contained in:
@@ -177,7 +177,7 @@ const columns = ref<any[]>([
|
|||||||
{
|
{
|
||||||
title: computed(() => t("index.domain")),
|
title: computed(() => t("index.domain")),
|
||||||
key: "Domain",
|
key: "Domain",
|
||||||
width: 80,
|
width: 90,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: computed(() => t("index.type")),
|
title: computed(() => t("index.type")),
|
||||||
@@ -200,12 +200,14 @@ const columns = ref<any[]>([
|
|||||||
width: 80,
|
width: 80,
|
||||||
render: (row: appType.MediaInfo) => {
|
render: (row: appType.MediaInfo) => {
|
||||||
if (row.Classify === "image") {
|
if (row.Classify === "image") {
|
||||||
return h(NImage, {
|
return h("div", {
|
||||||
maxWidth: "80px",
|
style: "width: 100%;max-height:80px;overflow:hidden;"
|
||||||
|
}, h(NImage, {
|
||||||
|
objectFit: "contain",
|
||||||
lazy: true,
|
lazy: true,
|
||||||
"render-toolbar": renderToolbar,
|
"render-toolbar": renderToolbar,
|
||||||
src: row.Url
|
src: row.Url
|
||||||
})
|
}))
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
h(
|
h(
|
||||||
|
|||||||
Reference in New Issue
Block a user