wip
This commit is contained in:
parent
acbdd3f423
commit
1a7a07cb1a
|
@ -140,7 +140,7 @@ export default defineComponent({
|
||||||
|
|
||||||
if (this.value.value && this.value.value.slots) this.slots = this.value.value.slots.map(x => x.name).join('\n');
|
if (this.value.value && this.value.value.slots) this.slots = this.value.value.slots.map(x => x.name).join('\n');
|
||||||
|
|
||||||
this.$watch('value.type', (t) => {
|
this.$watch(() => this.value.type, (t) => {
|
||||||
this.warn = null;
|
this.warn = null;
|
||||||
|
|
||||||
if (this.value.type === 'fn') {
|
if (this.value.type === 'fn') {
|
||||||
|
@ -182,7 +182,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$watch('value.args', (args) => {
|
this.$watch(() => this.value.args, (args) => {
|
||||||
if (args == null) {
|
if (args == null) {
|
||||||
this.warn = null;
|
this.warn = null;
|
||||||
return;
|
return;
|
||||||
|
@ -199,7 +199,7 @@ export default defineComponent({
|
||||||
deep: true
|
deep: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$watch('hpml.variables', () => {
|
this.$watch(() => this.hpml.variables, () => {
|
||||||
if (this.type != null && this.value) {
|
if (this.type != null && this.value) {
|
||||||
this.error = this.hpml.typeCheck(this.value);
|
this.error = this.hpml.typeCheck(this.value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ export default defineComponent({
|
||||||
created() {
|
created() {
|
||||||
this.text = this.$store.state.settings.memo;
|
this.text = this.$store.state.settings.memo;
|
||||||
|
|
||||||
this.$watch('$store.state.settings.memo', text => {
|
this.$watch(() => this.$store.state.settings.memo, text => {
|
||||||
this.text = text;
|
this.text = text;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default defineComponent({
|
||||||
mounted() {
|
mounted() {
|
||||||
this.fetch();
|
this.fetch();
|
||||||
this.clock = setInterval(this.fetch, 60000);
|
this.clock = setInterval(this.fetch, 60000);
|
||||||
this.$watch('props.url', this.fetch);
|
this.$watch(() => this.props.url, this.fetch);
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearInterval(this.clock);
|
clearInterval(this.clock);
|
||||||
|
|
Loading…
Reference in New Issue