fix: 新增删除功能

This commit is contained in:
奔跑的面条
2023-05-24 17:59:27 +08:00
parent fe06b55a56
commit c242a86e86
4 changed files with 39 additions and 21 deletions
@@ -59,7 +59,7 @@ const addConfig = {
// 点击上传事件
addHandle: (photoConfig: ConfigType) => {
goDialog({
message: `图片需小于 ${backgroundImageSize}M 且只暂存在浏览器中,请自行对接后端接口!现只编译成 base64 进行渲染,对接后端请返回地址使用!`,
message: `图片需小于 ${backgroundImageSize}M 且只暂存在浏览器中(暂存上限5M,超过不再缓存新图片),请自行对接后端接口!现只编译成 base64 进行渲染,对接后端请返回地址使用!`,
transformOrigin: 'center',
onPositiveCallback: () => {
uploadFile((e: UploadCompletedEventType) => {
@@ -84,13 +84,6 @@ const addConfig = {
})
}
})
},
deleteHandle: (photoConfig: ConfigType, index: number) => {
goDialog({
message: '是否删除此图片?',
transformOrigin: 'center',
onPositiveCallback: () => {}
})
}
}
}