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

+1 -2
View File
@@ -9,13 +9,12 @@ export default function setting(option) {
events: { proxy },
icons,
i18n,
setting,
} = art;
append($control, icons.setting);
proxy($control, 'click', () => {
setting.toggle = true;
art.setting.toggle = true;
});
art.on('setting', (value) => {
+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);