修改dialog组件默认确定和取消按钮文字
// HTML
<van-dialog
v-model="dialogShow"
confirm-button-text=“继续采集"
cancel-button-text=“采集取消"
title=“下列信息已采集,是否继续采集?"
show-cancel-button
@cancel="cancel"
@confirm="confirm"
>
<div v-for="(item,index) in list" :key="index" class="dialogshow">
<div class="dialogitem">{{item}}</div>
</div>
</van-dialog>
// JS
<script>
data(){
return{
dialogShow:true,
list:[‘编号:123’,’编号:456’,’编号:789’,’编号:10JQ']
}
},
</script>