mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-03-03 22:32:50 +08:00
修复mb-select不能重置选择bug
优化mb-table左右翻页请求
This commit is contained in:
parent
bdf4bc828a
commit
2c77cd057a
@ -101,7 +101,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async loadData() {
|
||||
if (this.value) {
|
||||
if (this.value || this.value == '') {
|
||||
if ((!(this.value instanceof Array) && this.value.toString().indexOf(',') !== -1)) {
|
||||
this.selectValue = this.value.split(',')
|
||||
} else {
|
||||
|
@ -199,14 +199,15 @@ export default {
|
||||
if (e && e.keyCode == 37) {
|
||||
if(this.listCurrent != 1){
|
||||
this.listCurrent -= 1
|
||||
this.handlerPagination()
|
||||
}
|
||||
} else if (e && e.keyCode == 39) {
|
||||
if(this.listCurrent != parseInt((this.total + this.limit - 1) / this.limit)){
|
||||
this.listCurrent += 1
|
||||
this.handlerPagination()
|
||||
}
|
||||
}
|
||||
}
|
||||
this.handlerPagination()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user