🐛(component): 清理 upload 组件无用代码
This commit is contained in:
parent
f5995aec06
commit
c2b1940942
@ -13,7 +13,6 @@ import {
|
|||||||
getCurrentInstance,
|
getCurrentInstance,
|
||||||
nextTick,
|
nextTick,
|
||||||
ref,
|
ref,
|
||||||
toRaw,
|
|
||||||
useSlots,
|
useSlots,
|
||||||
withDefaults,
|
withDefaults,
|
||||||
} from "vue";
|
} from "vue";
|
||||||
@ -21,7 +20,6 @@ import { templateRef } from "@vueuse/core";
|
|||||||
import { LayLayer } from "@layui/layer-vue";
|
import { LayLayer } from "@layui/layer-vue";
|
||||||
import LayButton from "../button/index.vue";
|
import LayButton from "../button/index.vue";
|
||||||
import Cropper from "cropperjs";
|
import Cropper from "cropperjs";
|
||||||
import { arrayExpression } from "@babel/types";
|
|
||||||
|
|
||||||
export interface LayerButton {
|
export interface LayerButton {
|
||||||
text: string;
|
text: string;
|
||||||
@ -86,11 +84,13 @@ const getCutDownResult = () => {
|
|||||||
errorF(cutInitErrorMsg);
|
errorF(cutInitErrorMsg);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const closeCutDownModal = () => {
|
const closeCutDownModal = () => {
|
||||||
let currentTimeStamp = new Date().valueOf();
|
let currentTimeStamp = new Date().valueOf();
|
||||||
emit("cutcancel", Object.assign({ currentTimeStamp }));
|
emit("cutcancel", Object.assign({ currentTimeStamp }));
|
||||||
nextTick(() => clearAllCutEffect());
|
nextTick(() => clearAllCutEffect());
|
||||||
};
|
};
|
||||||
|
|
||||||
const clearAllCutEffect = () => {
|
const clearAllCutEffect = () => {
|
||||||
activeUploadFiles.value = [];
|
activeUploadFiles.value = [];
|
||||||
activeUploadFilesImgs.value = [];
|
activeUploadFilesImgs.value = [];
|
||||||
@ -156,7 +156,6 @@ const defaultErrorMsg = "上传失败";
|
|||||||
const urlErrorMsg = "上传地址格式不合法";
|
const urlErrorMsg = "上传地址格式不合法";
|
||||||
const numberErrorMsg = "文件上传超过规定的个数";
|
const numberErrorMsg = "文件上传超过规定的个数";
|
||||||
const sizeErrorMsg = "文件大小超过限制";
|
const sizeErrorMsg = "文件大小超过限制";
|
||||||
const uploadRemoteErrorMsg = "请求上传接口出现异常";
|
|
||||||
const cutInitErrorMsg = "剪裁插件初始化失败";
|
const cutInitErrorMsg = "剪裁插件初始化失败";
|
||||||
const uploadSuccess = "上传成功";
|
const uploadSuccess = "上传成功";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user