update: upload组件替换

This commit is contained in:
JiangQiming 2023-03-15 09:50:10 +08:00
parent 1cfb9edc35
commit cdd755a369
4 changed files with 8 additions and 8 deletions

View File

@ -55,7 +55,7 @@
allowClear
>
<template #addonAfter>
<a-upload
<j-upload
name="file"
:action="FILE_UPLOAD"
:headers="headers"
@ -63,7 +63,7 @@
@change="handleFileChange"
>
<AIcon type="UploadOutlined" />
</a-upload>
</j-upload>
</template>
</j-input>
<j-input

View File

@ -24,7 +24,7 @@
>
新增
</PermissionButton>
<a-upload
<j-upload
name="file"
accept=".json"
:showUploadList="false"
@ -33,7 +33,7 @@
<PermissionButton hasPermission="notice/Config:import">
导入
</PermissionButton>
</a-upload>
</j-upload>
<j-popconfirm
title="确认导出?"
ok-text="确定"

View File

@ -8,7 +8,7 @@
>
<j-input v-model:value="item.name" @change="emitEvents">
<template #addonAfter>
<a-upload
<j-upload
name="file"
:action="FILE_UPLOAD"
:headers="{
@ -18,7 +18,7 @@
@change="(e) => handleChange(e, item.id)"
>
<upload-outlined />
</a-upload>
</j-upload>
</template>
</j-input>
<delete-outlined

View File

@ -24,7 +24,7 @@
>
新增
</PermissionButton>
<a-upload
<j-upload
name="file"
accept=".json"
:showUploadList="false"
@ -35,7 +35,7 @@
>
导入
</PermissionButton>
</a-upload>
</j-upload>
<j-popconfirm
title="确认导出?"
ok-text="确定"