mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 16:48:39 +08:00
修复自定义内容不生效
This commit is contained in:
@@ -175,10 +175,12 @@ function removeFile(idx: number) {
|
|||||||
@drop="handleDrop"
|
@drop="handleDrop"
|
||||||
@click="fileInputRef?.click()"
|
@click="fileInputRef?.click()"
|
||||||
>
|
>
|
||||||
<FaIcon name="i-icon-park-outline:upload" class="mb-2 text-2xl text-card-foreground/50" />
|
<slot>
|
||||||
<div class="text-sm text-card-foreground/70">
|
<FaIcon name="i-icon-park-outline:upload" class="mb-2 text-2xl text-card-foreground/50" />
|
||||||
将文件拖到此处,或<span class="cursor-pointer text-primary font-bold">点击上传</span>
|
<div class="text-sm text-card-foreground/70">
|
||||||
</div>
|
将文件拖到此处,或<span class="cursor-pointer text-primary font-bold">点击上传</span>
|
||||||
|
</div>
|
||||||
|
</slot>
|
||||||
<input ref="fileInputRef" type="file" :multiple="props.multiple" :disabled="props.disabled" class="hidden" @change="e => onSelectFile((e.target as HTMLInputElement).files)">
|
<input ref="fileInputRef" type="file" :multiple="props.multiple" :disabled="props.disabled" class="hidden" @change="e => onSelectFile((e.target as HTMLInputElement).files)">
|
||||||
</button>
|
</button>
|
||||||
<div v-if="!props.hideTips && !props.disabled" class="flex flex-wrap gap-1 text-xs text-card-foreground/50 empty:hidden">
|
<div v-if="!props.hideTips && !props.disabled" class="flex flex-wrap gap-1 text-xs text-card-foreground/50 empty:hidden">
|
||||||
|
|||||||
Reference in New Issue
Block a user