mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
没有设置列时自动补一个
This commit is contained in:
parent
549fb12d9e
commit
6f9a52f529
@ -501,6 +501,12 @@ export const TableStore = iRendererStore
|
||||
|
||||
if (config.columns && Array.isArray(config.columns)) {
|
||||
let columns: Array<SColumn> = config.columns.concat();
|
||||
if (!columns.length) {
|
||||
columns.push({
|
||||
type: 'text',
|
||||
label: '空'
|
||||
});
|
||||
}
|
||||
|
||||
columns.unshift({
|
||||
type: '__expandme',
|
||||
|
Loading…
Reference in New Issue
Block a user