Skip to content

Commit

Permalink
fix: upload component not work #169
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jan 11, 2021
1 parent c22de5c commit 18ad1bc
Show file tree
Hide file tree
Showing 23 changed files with 566 additions and 577 deletions.
1 change: 0 additions & 1 deletion src/assets/svg/preview/p-rotate.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/svg/preview/resume.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/svg/preview/scale.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/svg/preview/unrotate.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/svg/preview/unscale.svg

This file was deleted.

6 changes: 5 additions & 1 deletion src/components/Modal/src/BasicModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
</template>

<template #footer v-if="!$slots.footer">
<ModalFooter v-bind="getProps" @ok="handleOk" @cancel="handleCancel" />
<ModalFooter v-bind="getProps" @ok="handleOk" @cancel="handleCancel">
<template #[item]="data" v-for="item in Object.keys($slots)">
<slot :name="item" v-bind="data" />
</template>
</ModalFooter>
</template>

<ModalWrapper
Expand Down
11 changes: 6 additions & 5 deletions src/components/Modal/src/components/ModalWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
return {
minHeight: `${props.minHeight}px`,
// padding 28
height: `${unref(realHeightRef) - 28}px`,
height: `${unref(realHeightRef)}px`,
};
}
);
Expand Down Expand Up @@ -130,10 +130,11 @@
const spinEl = unref(spinRef);
if (!spinEl) return;
await nextTick();
// if (!realHeight) {
realHeight = spinEl.scrollHeight;
// }
if (!realHeight) {
realHeight = spinEl.scrollHeight;
}
if (props.fullScreen) {
realHeightRef.value =
window.innerHeight - props.modalFooterHeight - props.modalHeaderHeight;
Expand All @@ -142,7 +143,7 @@
? props.height
: realHeight > maxHeight
? maxHeight
: realHeight + 46;
: realHeight;
}
emit('height-change', unref(realHeightRef));
} catch (error) {
Expand Down
4 changes: 0 additions & 4 deletions src/components/Preview/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// export { createImgPreview } from './src/functional';

export const createImgPreview = () => {};

// import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent';
// export const ImagePreview = createAsyncComponent(() => import('./src/index.vue'));

Expand Down
22 changes: 0 additions & 22 deletions src/components/Preview/src/functional.ts

This file was deleted.

118 changes: 0 additions & 118 deletions src/components/Preview/src/index.less

This file was deleted.

Loading

0 comments on commit 18ad1bc

Please sign in to comment.