简化事件

This commit is contained in:
Harvey committed 2020-05-22 13:23:28 +08:00
1 parent 938b90f3a7
commit 4718cd186b
36 files changed
+223 -250

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ export default class Plugins {
def(this, pluginName, {
value: result,
});
this.art.emit('pluginAdd', plugin);
this.art.emit('plugin', plugin);
return this;
}
}
@@ -17,7 +17,7 @@ export default function miniProgressBar(art) {
background: theme,
},
mounted($progressBar) {
art.on('controlToggle', value => {
art.on('control', value => {
$progressBar.style.display = value ? 'none' : 'block';
});