update setting

This commit is contained in:
Harvey committed 2022-02-11 17:33:35 +08:00
1 parent 0616d944c5
commit 12047d90ef
8 files changed
+31 -25

No files matched your search

+3 -3
View File
@@ -1,10 +1,10 @@
import { append, tooltip } from '../utils';
export default function setting(option) {
return art => ({
return (art) => ({
...option,
tooltip: art.i18n.get('Show Setting'),
mounted: $control => {
mounted: ($control) => {
const {
events: { proxy },
icons,
@@ -18,7 +18,7 @@ export default function setting(option) {
setting.toggle = true;
});
art.on('setting', value => {
art.on('setting', (value) => {
tooltip($control, i18n.get(value ? 'Hide Setting' : 'Show Setting'));
});
},