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,
|
title: title,
|
||||||
key: key,
|
key: key,
|
||||||
dataIndex: key,
|
dataIndex: key,
|
||||||
...other,
|
...other,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const makeColumnsPlanFact = (title, keyPlan, keyFact, gruopOther) =>
|
export const makeColumnsPlanFact = (title:string, keyPlan:string, keyFact?:string, gruopOther?:any) =>
|
||||||
{
|
{
|
||||||
let keyPlanLocal = keyPlan
|
let keyPlanLocal = keyPlan
|
||||||
let keyFactLocal = keyFact
|
let keyFactLocal = keyFact ?? ''
|
||||||
|
|
||||||
if(!keyFact){
|
if(!keyFact){
|
||||||
keyPlanLocal = keyPlan + 'Plan'
|
keyPlanLocal = keyPlan + 'Plan'
|
Loading…
Reference in New Issue
Block a user