1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 21:24:14 +02:00
This commit is contained in:
syuilo
2020-09-05 01:19:37 +09:00
parent acbdd3f423
commit 1a7a07cb1a
3 changed files with 5 additions and 5 deletions

View File

@@ -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');
this.$watch('value.type', (t) => {
this.$watch(() => this.value.type, (t) => {
this.warn = null;
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) {
this.warn = null;
return;
@@ -199,7 +199,7 @@ export default defineComponent({
deep: true
});
this.$watch('hpml.variables', () => {
this.$watch(() => this.hpml.variables, () => {
if (this.type != null && this.value) {
this.error = this.hpml.typeCheck(this.value);
}