Fix some notice

This commit is contained in:
zhw2590582 committed 2022-02-11 20:40:25 +08:00
1 parent 1de2d2aaed
commit c9040e5eec
5 files changed
+36 -9

No files matched your search

+2 -1
View File
@@ -1,13 +1,14 @@
import { throttle } from '../utils';
export default function resizeInit(art, events) {
const { option } = art;
const { notice, option } = art;
const resizeFn = throttle(() => {
if (art.normalSize) {
art.autoSize = option.autoSize;
}
art.aspectRatioReset = true;
notice.show = '';
art.emit('resize');
}, 500);