forked from FoundKeyGang/FoundKey
rename prop: image -> file
This commit is contained in:
parent
5e320e49ab
commit
525c8391a6
3 changed files with 8 additions and 8 deletions
|
@ -141,7 +141,7 @@ function describe(): void {
|
|||
placeholder: i18n.ts.inputNewDescription,
|
||||
default: props.file.comment ?? '',
|
||||
},
|
||||
image: props.file,
|
||||
file: props.file,
|
||||
}, {
|
||||
done: result => {
|
||||
if (!result || result.canceled) return;
|
||||
|
|
|
@ -15,12 +15,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="hdrwpsaf fullwidth">
|
||||
<header>{{ image.name }}</header>
|
||||
<img :src="image.url" :alt="image.comment" :title="image.comment" @click="modal.close()"/>
|
||||
<header>{{ file.name }}</header>
|
||||
<img :src="file.url" @click="modal.close()"/>
|
||||
<footer>
|
||||
<span>{{ image.type }}</span>
|
||||
<span>{{ bytes(image.size) }}</span>
|
||||
<span v-if="image.properties && image.properties.width">{{ number(image.properties.width) }}px × {{ number(image.properties.height) }}px</span>
|
||||
<span>{{ file.type }}</span>
|
||||
<span>{{ bytes(file.size) }}</span>
|
||||
<span v-if="file.properties?.width">{{ number(file.properties.width) }}px × {{ number(file.properties.height) }}px</span>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -43,7 +43,7 @@ type Input = {
|
|||
};
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
image: misskey.entities.DriveFile;
|
||||
file: misskey.entities.DriveFile;
|
||||
title?: string;
|
||||
input: Input;
|
||||
showOkButton: boolean;
|
||||
|
|
|
@ -84,7 +84,7 @@ async function describe(file: DriveFile): Promise<void> {
|
|||
placeholder: i18n.ts.inputNewDescription,
|
||||
default: file.comment ?? '',
|
||||
},
|
||||
image: file,
|
||||
file,
|
||||
}, {
|
||||
done: result => {
|
||||
if (!result || result.canceled) return;
|
||||
|
|
Loading…
Reference in a new issue