mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06: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:
@@ -81,7 +81,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$emit('input', this.rows);
|
||||
this.$emit('update:value', this.rows);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
update() {
|
||||
const { namespace, project, guestCluster } = this.row;
|
||||
|
||||
this.$emit('input', {
|
||||
this.$emit('update:value', {
|
||||
namespace,
|
||||
project,
|
||||
guestCluster,
|
||||
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$emit('input', this.rows);
|
||||
this.$emit('update:value', this.rows);
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -148,7 +148,7 @@ export default {
|
||||
</span>
|
||||
<input
|
||||
v-else
|
||||
v-model:value="row.subnet"
|
||||
v-model="row.subnet"
|
||||
type="text"
|
||||
@input="queueUpdate"
|
||||
/>
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
</span>
|
||||
<input
|
||||
v-else
|
||||
v-model:value="row.gateway"
|
||||
v-model="row.gateway"
|
||||
type="text"
|
||||
@input="queueUpdate"
|
||||
/>
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
</span>
|
||||
<input
|
||||
v-else
|
||||
v-model:value="row.rangeStart"
|
||||
v-model="row.rangeStart"
|
||||
type="text"
|
||||
@input="queueUpdate"
|
||||
/>
|
||||
@@ -189,7 +189,7 @@ export default {
|
||||
</span>
|
||||
<input
|
||||
v-else
|
||||
v-model:value="row.rangeEnd"
|
||||
v-model="row.rangeEnd"
|
||||
type="text"
|
||||
@input="queueUpdate"
|
||||
/>
|
||||
|
||||
@@ -62,7 +62,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$emit('input', this.selector);
|
||||
this.$emit('update:value', this.selector);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
>
|
||||
<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