mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-28 03:41:29 +00:00
misc: fix v-model used on props for vue3 make strictly checking
I make this change during recent building configurator but got a failure. The change is to fix the problem caused by vue3's strictly syntax chacking. It is reported for newly releases only and before v3.2.25 it is a warning. I follow the error message and suggestion to change the code. Error message said "v-model cannot be used on a prop, because local prop bindings are not writable". Suggestion said "Use v-bind binding combined with v-on listener to emit update" I ran the build & install procedure to verify the problem was solved. Signed-off-by: dongpingx <dongpingx.wu@intel.com> Tracked-On: #8596
This commit is contained in:
parent
ddfcb8c3fc
commit
9810bda461
@ -1362,7 +1362,7 @@ dependencies = [
|
||||
"futures-sink",
|
||||
"futures-util",
|
||||
"http",
|
||||
"indexmap 2.0.0"
|
||||
"indexmap 2.0.0",
|
||||
"slab",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
|
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<Board v-model:WorkingFolder="WorkingFolder" v-model:board="board" v-model:schemas="schemas"
|
||||
<Board :WorkingFolder="WorkingFolder" v-model:board="board" v-model:schemas="schemas"
|
||||
@boardUpdate="boardUpdate"/>
|
||||
</b-accordion-item>
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<VueForm
|
||||
:key="(currentActiveVMID===-1?'HV':`VM${currentActiveVMID}`)+currentFormMode+'ConfigForm'"
|
||||
v-model="currentFormData"
|
||||
:currentFormData="currentFormData"
|
||||
:form-props="formProps"
|
||||
:ui-schema="uiSchema"
|
||||
:schema="currentFormSchema[currentFormMode]"
|
||||
@ -248,4 +248,4 @@ export default {
|
||||
.notice {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<b-modal title="Board XML overwrite" fade no-close-on-backdrop
|
||||
v-model="showModal"
|
||||
:showModal="showModal"
|
||||
@cancel="cancel"
|
||||
@abort="cancel"
|
||||
@close="cancel"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<b-modal id="newScenarioModal" size="xl" title="Create a New Scenario" fade no-close-on-backdrop
|
||||
v-model="showModal"
|
||||
:showModal="showModal"
|
||||
@cancel="cancel"
|
||||
@abort="cancel"
|
||||
@close="cancel"
|
||||
@ -132,4 +132,4 @@ export default {
|
||||
.vmNum b, .vmNum input {
|
||||
flex: 0 1 50%;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<b-modal id="my-modal" no-close-on-backdrop
|
||||
title="Scenario XML Overwrite" v-model="showModal"
|
||||
title="Scenario XML Overwrite" :showModal="showModal"
|
||||
@cancel="cancel"
|
||||
@hidden="cancel"
|
||||
@abort="cancel"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<b-modal title="ACRN Configurator" ok-only fade
|
||||
v-model="showModal"
|
||||
:showModal="showModal"
|
||||
@ok="overWrite"
|
||||
>
|
||||
<div class="picture">
|
||||
@ -64,4 +64,4 @@ export default {
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user