add settings

This commit is contained in:
Harvey committed 2021-11-29 10:39:46 +08:00
1 parent ddb3ff18bd
commit 550b3342a5
8 files changed
+124 -5

No files matched your search

+6 -2
View File
@@ -20,8 +20,8 @@ export default class Setting extends Component {
if (option.setting) {
art.once('ready', () => {
proxy($setting, 'click', e => {
if (e.target === $setting) {
proxy($setting, 'click', (event) => {
if (event.target === $setting) {
this.show = false;
}
});
@@ -53,6 +53,10 @@ export default class Setting extends Component {
name: 'playbackRate',
}),
);
option.settings.forEach((item) => {
this.add(item);
});
});
art.on('blur', () => {