mirror of https://gitee.com/xiaonuobase/snowy
【更新】更新代码生成界面小细节,同时改进stable表格组件
parent
44a68be040
commit
c5e9ad95f1
|
@ -228,7 +228,15 @@
|
|||
this.localPagination = false
|
||||
}
|
||||
// 返回结果中的数组数据
|
||||
this.localDataSource = r.records
|
||||
if (this.showPagination === false) {
|
||||
// 既然配置了不分页,那么我们这里接收到肯定是数组
|
||||
this.localDataSource = []
|
||||
if (r instanceof Array) {
|
||||
this.localDataSource = r
|
||||
}
|
||||
} else {
|
||||
this.localDataSource = r.records
|
||||
}
|
||||
this.localLoading = false
|
||||
})
|
||||
}
|
||||
|
|
|
@ -262,7 +262,9 @@
|
|||
const traverse = (array) => {
|
||||
array.forEach((element) => {
|
||||
if (element.menuType === 'CATALOG') {
|
||||
traverse(element.children)
|
||||
if (element.children) {
|
||||
traverse(element.children)
|
||||
}
|
||||
} else {
|
||||
// 设置不可用
|
||||
element.disabled = true
|
||||
|
|
Loading…
Reference in New Issue