created() {
// 点击页面空白处事件监听
let thisVM = this;
document.onclick = function (ev) {
if (ev.target.classList[1] !== "record") {
thisVM.recordVisible = false;
}
};
},
mounted() {
let [thisVM, oRecordList] = [
this,
document.getElementsByClassName("status-list")[0],
];
oRecordList.onscroll = function () {
thisVM.recordVisible = false;
};
}