parent
26f251e1ed
commit
381943078f
|
|
@ -1,3 +1,9 @@
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **Cropper** 修复未能及时销毁的问题
|
||||||
|
- **BasicTable** 修复`CellFormat`无法使用`Map`类型数据的问题
|
||||||
|
- **Qrcode** 修复二维码组件在创建时未能及时绘制的问题
|
||||||
|
|
||||||
## 2.7.0(2021-08-03)
|
## 2.7.0(2021-08-03)
|
||||||
|
|
||||||
## (破坏性更新) Breaking changes
|
## (破坏性更新) Breaking changes
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { CSSProperties } from 'vue';
|
import type { CSSProperties } from 'vue';
|
||||||
import { defineComponent, onMounted, ref, unref, computed } from 'vue';
|
import { defineComponent, onMounted, ref, unref, computed, onUnmounted } from 'vue';
|
||||||
import Cropper from 'cropperjs';
|
import Cropper from 'cropperjs';
|
||||||
import 'cropperjs/dist/cropper.css';
|
import 'cropperjs/dist/cropper.css';
|
||||||
import { useDesign } from '/@/hooks/web/useDesign';
|
import { useDesign } from '/@/hooks/web/useDesign';
|
||||||
|
|
@ -93,6 +93,10 @@
|
||||||
|
|
||||||
onMounted(init);
|
onMounted(init);
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
cropper.value?.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
const imgEl = unref(imgElRef);
|
const imgEl = unref(imgElRef);
|
||||||
if (!imgEl) {
|
if (!imgEl) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue