Skip to content

Commit ebbbfce

Browse files
committed
修复自定义内容不生效
1 parent 1888297 commit ebbbfce

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ui/components/FaFileUpload/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,12 @@ function removeFile(idx: number) {
175175
@drop="handleDrop"
176176
@click="fileInputRef?.click()"
177177
>
178-
<FaIcon name="i-icon-park-outline:upload" class="mb-2 text-2xl text-card-foreground/50" />
179-
<div class="text-sm text-card-foreground/70">
180-
将文件拖到此处,或<span class="cursor-pointer text-primary font-bold">点击上传</span>
181-
</div>
178+
<slot>
179+
<FaIcon name="i-icon-park-outline:upload" class="mb-2 text-2xl text-card-foreground/50" />
180+
<div class="text-sm text-card-foreground/70">
181+
将文件拖到此处,或<span class="cursor-pointer text-primary font-bold">点击上传</span>
182+
</div>
183+
</slot>
182184
<input ref="fileInputRef" type="file" :multiple="props.multiple" :disabled="props.disabled" class="hidden" @change="e => onSelectFile((e.target as HTMLInputElement).files)">
183185
</button>
184186
<div v-if="!props.hideTips && !props.disabled" class="flex flex-wrap gap-1 text-xs text-card-foreground/50 empty:hidden">

0 commit comments

Comments
 (0)