【更新】更新代码生成界面小细节,同时改进stable表格组件

pull/56/head
小诺 2022-11-08 21:09:39 +08:00 committed by 俞宝山
parent 44a68be040
commit c5e9ad95f1
2 changed files with 12 additions and 2 deletions

View File

@ -228,7 +228,15 @@
this.localPagination = false 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 this.localLoading = false
}) })
} }

View File

@ -262,7 +262,9 @@
const traverse = (array) => { const traverse = (array) => {
array.forEach((element) => { array.forEach((element) => {
if (element.menuType === 'CATALOG') { if (element.menuType === 'CATALOG') {
traverse(element.children) if (element.children) {
traverse(element.children)
}
} else { } else {
// //
element.disabled = true element.disabled = true