approval
v1.0.24
Published
approval
Downloads
11
Readme
Лист согласования
Название приложения: ApprovalList
Компоненты:
- ApprovalList
- ApprovalListHeader
- ApprovalListItem
- ApprovalListStage
- ApprovalListInput
const approvalRoute = [
{
parallel: true,
approvers: []
},
{
parallel: false,
approvers: []
}
]
const approver = { id: 'GUID', isRequired: false }
[ { id: 1, stage: 1, approver: employee }, { id: 2, stage: 1, approver: employee }, {} ]
Удаление элемента из массива по индексу js index = 0; list = [0, 10, 20]; list.splice(index, 1); // list => [10, 20] list.slice(0, index).concat(list.slice(index + 1)); // => [10, 20], list => [0, 10, 20] ES6 синтаксис [...list.slice(0,index), ...list.slice(index+1)]