forked from ddrilling/asb_cloud_front
Add components factory
This commit is contained in:
parent
611244edee
commit
a799904c5e
@ -1,14 +1,14 @@
|
||||
export const makeColumn = (title, key, other) => ({
|
||||
export const makeColumn = (title:string, key:string, other?:any) => ({
|
||||
title: title,
|
||||
key: key,
|
||||
dataIndex: key,
|
||||
...other,
|
||||
});
|
||||
|
||||
export const makeColumnsPlanFact = (title, keyPlan, keyFact, gruopOther) =>
|
||||
export const makeColumnsPlanFact = (title:string, keyPlan:string, keyFact?:string, gruopOther?:any) =>
|
||||
{
|
||||
let keyPlanLocal = keyPlan
|
||||
let keyFactLocal = keyFact
|
||||
let keyFactLocal = keyFact ?? ''
|
||||
|
||||
if(!keyFact){
|
||||
keyPlanLocal = keyPlan + 'Plan'
|
Loading…
Reference in New Issue
Block a user