压缩字符

This commit is contained in:
Harvey committed 2019-11-22 17:32:09 +08:00
1 parent baaaa4c56c
commit ee90291897
13 files changed
+216 -280

No files matched your search

+8 -8
View File
@@ -7,15 +7,15 @@ export default class Setting extends Component {
constructor(art) {
super(art);
this.$parent = art.template.$settingBody;
const {
option,
template: { $setting },
template: { $setting, $settingBody },
events: { proxy },
} = art;
if (art.option.setting) {
this.$parent = $settingBody;
if (option.setting) {
art.on('ready', () => {
proxy($setting, 'click', e => {
if (e.target === $setting) {
@@ -44,10 +44,10 @@ export default class Setting extends Component {
}),
);
});
}
art.on('blur', () => {
this.show = false;
});
art.on('blur', () => {
this.show = false;
});
}
}
}