This commit is contained in:
Harvey Zack committed 2022-05-18 20:01:57 +08:00
1 parent a0175e845f
commit e528465a6e
5 files changed
+153 -154

No files matched your search

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