From c4328b0decfc7e4465b324d018452dcd384e7447 Mon Sep 17 00:00:00 2001 From: lockingreal <1191515088@qq.com> Date: Sun, 3 Apr 2022 11:40:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=AD=A3=E8=A1=A5?= =?UTF-8?q?=E5=85=85modal=E9=83=A8=E5=88=86=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/docs/zh-CN/components/modal.md | 4 ++-- src/component/upload/index.vue | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/example/docs/zh-CN/components/modal.md b/example/docs/zh-CN/components/modal.md index ab64b764..cca3d638 100644 --- a/example/docs/zh-CN/components/modal.md +++ b/example/docs/zh-CN/components/modal.md @@ -311,12 +311,12 @@ export default { | zIndex | 自定义层级 | -- | | type | 类型 | `1: component` `2: iframe` | | closeBtn | 显示关闭 | true | -| btn | 按钮 | | +| btn | 按钮 格式:{text:"",callback:function(){}} | -- | | btnAlign | 按钮布局 | `l` `r` `c` | | anim | 入场动画 | `0` `-` `6` | | isOutAnim | 关闭动画 | `true` `false` | | success | 显示回调 | -- | -| end | 关闭回调 | -- | +| close | 关闭回调 | -- | ::: diff --git a/src/component/upload/index.vue b/src/component/upload/index.vue index 6b59ec17..9dd218b8 100644 --- a/src/component/upload/index.vue +++ b/src/component/upload/index.vue @@ -72,7 +72,6 @@ const getCutDownResult = () => { let currentTimeStamp = new Date().valueOf(); emit("cutdone", Object.assign({ currentTimeStamp, msg: imgData })); let newFile = dataURLtoFile(imgData); - console.log(newFile); commonUploadTransaction([newFile]); nextTick(() => clearAllCutEffect()); } else { @@ -80,7 +79,6 @@ const getCutDownResult = () => { } }; const closeCutDownModal = () => { - console.log("closeCutDownModal"); let currentTimeStamp = new Date().valueOf(); emit("cutcancel", Object.assign({ currentTimeStamp })); nextTick(() => clearAllCutEffect()); @@ -89,7 +87,6 @@ const clearAllCutEffect = () => { activeUploadFiles.value = []; activeUploadFilesImgs.value = []; innerCutVisible.value = false; - console.log("clearAllCutEffect"); }; let defaultCutLayerOption: LayerModal = { @@ -312,7 +309,6 @@ const getUploadChange = (e: any) => { innerCutVisible.value = true; setTimeout(() => { let _imgs = document.getElementsByClassName("_lay_upload_img"); - console.log("293", _imgs); let _img = _imgs[0]; _cropper = new Cropper(_img, { aspectRatio: 16 / 9, @@ -346,7 +342,6 @@ const chooseFile = () => { }; const clickOrgInput = () => { let currentTimeStamp = new Date().valueOf(); - //console.log(currentTimeStamp); emit("choose", currentTimeStamp); }; const cutTransaction = () => {};