Error binding calculation property in vue

html

<input :type="inputType"
       :id="getId()"
       :name="getId(false)"
       :class="inputType"
       :value="item.propertyValueId"
       @click="handleCheck"
       v-model="checkedIdList"
       v-validate="{
            required: attribute.required
       }"/>
<label :for="getId(false)" :title="item.valueData" class="ell">{{ item.valueData }}</label>
 
 props: {
    // 
    checkedList: {
        type: [Array, Number] ,
        default: function () {
            // return []
        }
    }
},

:
checkedIdList: {
    get() {
        return this.checkedList
    },
    set(val) {
        this.checkedIdList = val
    }
},
Mar.10,2021

what do you want to achieve? Hasn't v-model already implemented two-way binding?


you have this property get in the setter of a property, and of course there will be a stack overflow.

checkedIdList: {
    get() {
        return this.checkedList
    },
    set(val) {
        this.checkedIdList = val
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54ab7-658e7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54ab7-658e7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?