refactor: 更正补充modal部分文档

This commit is contained in:
lockingreal 2022-04-03 11:40:09 +08:00
parent dd02e978ca
commit c4328b0dec
2 changed files with 2 additions and 7 deletions

View File

@ -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 | 关闭回调 | -- |
:::

View File

@ -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 = () => {};