1.标签内部传参数
<table class="table table-striped table-bordered data-table " >
<slot></slot>
</table>
2.监测值发生变更
对象监测方式:dataOrderBy属于监测的对象
watch: {
//如果排序方式发生变更重新修改逻辑
dataOrderBy: {
handler() {
alert(this.dataOrderBy);
},
deep: true
}
},
deep:true应该是监测对象数组使用