mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Switching our $emit('input' to $emit('update:value' to be in line with the new way v-model works
This commit is contained in:
@@ -144,7 +144,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
update() {
|
||||
this.$emit('input', this.value);
|
||||
this.$emit('update:value', this.value);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -343,7 +343,7 @@ export default {
|
||||
<template #content>
|
||||
<NameNsDescription
|
||||
:value="value"
|
||||
@update:value="$emit('input', $event)"
|
||||
@update:value="$emit('update:value', $event)"
|
||||
:namespaced="true"
|
||||
mode="create"
|
||||
/>
|
||||
|
||||
@@ -516,7 +516,7 @@ export default {
|
||||
<div class="content">
|
||||
<NameNsDescription
|
||||
:value="value"
|
||||
@update:value="$emit('input', $event)"
|
||||
@update:value="$emit('update:value', $event)"
|
||||
:namespaced="false"
|
||||
:mode="mode"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user