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:
shuaizhx 2024-05-13 11:41:15 +08:00 committed by acrnsi-robot
parent ddfcb8c3fc
commit 9810bda461
7 changed files with 10 additions and 10 deletions

View File

@ -1362,7 +1362,7 @@ dependencies = [
"futures-sink", "futures-sink",
"futures-util", "futures-util",
"http", "http",
"indexmap 2.0.0" "indexmap 2.0.0",
"slab", "slab",
"tokio", "tokio",
"tokio-util", "tokio-util",

View File

@ -25,7 +25,7 @@
</div> </div>
</div> </div>
</template> </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"/> @boardUpdate="boardUpdate"/>
</b-accordion-item> </b-accordion-item>

View File

@ -31,7 +31,7 @@
</div> </div>
<VueForm <VueForm
:key="(currentActiveVMID===-1?'HV':`VM${currentActiveVMID}`)+currentFormMode+'ConfigForm'" :key="(currentActiveVMID===-1?'HV':`VM${currentActiveVMID}`)+currentFormMode+'ConfigForm'"
v-model="currentFormData" :currentFormData="currentFormData"
:form-props="formProps" :form-props="formProps"
:ui-schema="uiSchema" :ui-schema="uiSchema"
:schema="currentFormSchema[currentFormMode]" :schema="currentFormSchema[currentFormMode]"

View File

@ -1,6 +1,6 @@
<template> <template>
<b-modal title="Board XML overwrite" fade no-close-on-backdrop <b-modal title="Board XML overwrite" fade no-close-on-backdrop
v-model="showModal" :showModal="showModal"
@cancel="cancel" @cancel="cancel"
@abort="cancel" @abort="cancel"
@close="cancel" @close="cancel"

View File

@ -1,6 +1,6 @@
<template> <template>
<b-modal id="newScenarioModal" size="xl" title="Create a New Scenario" fade no-close-on-backdrop <b-modal id="newScenarioModal" size="xl" title="Create a New Scenario" fade no-close-on-backdrop
v-model="showModal" :showModal="showModal"
@cancel="cancel" @cancel="cancel"
@abort="cancel" @abort="cancel"
@close="cancel" @close="cancel"

View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<b-modal id="my-modal" no-close-on-backdrop <b-modal id="my-modal" no-close-on-backdrop
title="Scenario XML Overwrite" v-model="showModal" title="Scenario XML Overwrite" :showModal="showModal"
@cancel="cancel" @cancel="cancel"
@hidden="cancel" @hidden="cancel"
@abort="cancel" @abort="cancel"

View File

@ -1,6 +1,6 @@
<template> <template>
<b-modal title="ACRN Configurator" ok-only fade <b-modal title="ACRN Configurator" ok-only fade
v-model="showModal" :showModal="showModal"
@ok="overWrite" @ok="overWrite"
> >
<div class="picture"> <div class="picture">