mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 22:28:12 +09:00
wip
This commit is contained in:
parent
bc5e11ce08
commit
5252be0998
@ -30,7 +30,6 @@ export default function<T extends object>(data: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.$watch('props', newProps => {
|
this.$watch('props', newProps => {
|
||||||
console.log(this.id, newProps);
|
|
||||||
(this as any).api('i/update_home', {
|
(this as any).api('i/update_home', {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
data: newProps
|
data: newProps
|
||||||
|
@ -62,14 +62,18 @@ export default define({
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggle() {
|
toggle() {
|
||||||
if (this.props.design == 5) {
|
if (this.props.view == 5) {
|
||||||
|
this.props.view = 0;
|
||||||
|
} else {
|
||||||
|
this.props.view++;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
func() {
|
||||||
|
if (this.props.design == 2) {
|
||||||
this.props.design = 0;
|
this.props.design = 0;
|
||||||
} else {
|
} else {
|
||||||
this.props.design++;
|
this.props.design++;
|
||||||
}
|
}
|
||||||
},
|
|
||||||
func() {
|
|
||||||
this.toggle();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user