具体错误如下:
vue.esm.js?65d7:434 [Vue warn]: Invalid prop: type check failed for prop "value". Expected Array, got String.
found in
---> <MtChecklist>
<MtPopup>
<Finish> at E:\Caqm\app\src\components\Finish.vue
<App> at E:\Caqm\app\src\App.vue
<Root>
代码如下:
<template>
<div class="page-field">
<CaqmHeader title='完工确认'/>
<div class="main_content">
<div class="page-part">
<mt-field label="制作人员" placeholder="请选择制作人"
type="text" @click.native="workerClick" v-model="workersIds">
</mt-field>
<mt-popup v-model="membersDisplay" position="bottom" class="mint-popup-4">
<mt-checklist
title="请选择工作班成员"
align="left"
v-model="membersValue"
:options="membersOptions" @change="membersChange">
</mt-checklist>
</mt-popup>
</div>
</div>
</div>
</template>
<script>
import CaqmHeader from '../components/common/CaqmHeader'
export default {
data(){
return{
membersDisplay : false,
workersIds : "",
membersValue : "",
membersOptions:[],
}
},
methods:{
//制作人员点击事件
workerClick() {
},
membersChange(){
}
},
components: {
CaqmHeader
},
}
</script>
<style scoped>
.button_right{
position: absolute;
right: 0;
}
.confirm_btn {
position: absolute;
bottom: 0;
width: 100%;
}
.main_content{
overflow: scroll;
width: 100%;
bottom: 56px;
}
.mint-popup-4{
width: 100%;
}
</style>
type check failed for prop "value". Expected Array, got String.
prop期待传入数组,传入的却是字符串。类型错误,大概这意思