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

View File

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

View File

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

View File

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