警告:如 watch 了数组数据,则需要将数据重新赋值给一个变量,保证原数组不变
let data = JSON.parse(JSON.strinify(this.propsData)) data.sort((a, b) => { return b.value - a.value })