bugfix
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import moment from 'moment';
|
||||
|
||||
/**
|
||||
* 用于动态表结构的 tableProps 生成
|
||||
* @param {*} nameData
|
||||
@@ -16,9 +18,9 @@ export function handleNameData(nameData) {
|
||||
function step1(tree1) {
|
||||
return Array.from(new Set(tree1.map((item) => item.name)))
|
||||
.sort()
|
||||
.map((item) => ({
|
||||
prop: item,
|
||||
label: item,
|
||||
.map((time) => ({
|
||||
prop: time,
|
||||
label: moment(time).format('YYYY-MM-DD HH:mm:ss'),
|
||||
children: [],
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user