Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@zeedhi/zd-kanban-common
Advanced tools
Readme
O componente ZdKanban é usado para quadros de tarefas.
O ZdKanban é composto pelos pacotes @zeedhi/zd-kanban-common
e @zeedhi/zd-kanban-vue
.
Utilize o comando abaixo para instalar ambos automaticamente:
npm install @zeedhi/zd-kanban
Ou instale os pacotes separadamente:
npm install @zeedhi/zd-kanban-vue @zeedhi/zd-kanban-common
Para registrá-lo, adicione o seguinte código ao inicializar a aplicação (por exemplo no arquivo zeedhi.ts
)
import Vue from 'vue';
import { ZdKanban, ZdKanbanColumn, ZdKanbanTask } from '@zeedhi/zd-kanban';
// import { ZdKanban, ZdKanbanColumn, ZdKanbanTask } from '@zeedhi/zd-kanban-vue'; caso tenha instalado os pacotes separadamente
Vue.component('ZdKanban', ZdKanban);
Vue.component('ZdKanbanColumn', ZdKanbanColumn);
Vue.component('ZdKanbanTask', ZdKanbanTask);
Para utilizá-lo em um Metadata, basta definir a propriedade component
como "ZdKanban"
.
{
"name": "kanban-basic-usage",
"component": "ZdKanban",
"columns": [
{
"id": "1",
"name": "backlog",
"title": "Backlog"
},
{
"id": "2",
"name": "in-progress",
"title": "In Progress",
"tasks": []
},
{
"id": "3",
"name": "in-review",
"title": "In Review",
"tasks": []
},
{
"id": "4",
"name": "done",
"title": "Done",
"tasks": []
}
],
"taskMetadata": {
"name": "<<row.name>>_task",
"component": "ZdKanbanTask",
"children": [
{
"name": "<<row.name>>_text",
"component": "ZdText",
"text": "<<row.text>>"
}
]
},
"datasource": {
"data": [
{
"name": "task-name-1",
"column": "1",
"text": "Item 1"
},
{
"name": "task-name-2",
"column": "1",
"text": "Item 2"
}
]
}
}
Nome | Tipo | Padrão | Descrição |
---|---|---|---|
columns | object | [] | Define um array de IColumn |
Nome | Tipo | Padrão | Descrição |
---|---|---|---|
tasks | object | [] | Define um array de ITask |
backgroundColor | string | Define a cor de fundo da coluna | |
nameColor | string | Define a cor do titulo da coluna | |
title | string | Define o titulo da coluna, se não for definido sera utilizado o valor da propriedade name | |
animation | number | 200 | Define o tempo da animação de arrastar das tasks em milissegundos |
O componente KanbanTask extende do componente ZdCard tento assim todas as suas propriedades
Nome | Tipo | Padrão | Descrição |
---|---|---|---|
elevation | number | 1 | Define o valor da elevação do card do task |
FAQs
Powered by Zeedhi
The npm package @zeedhi/zd-kanban-common receives a total of 70 weekly downloads. As such, @zeedhi/zd-kanban-common popularity was classified as not popular.
We found that @zeedhi/zd-kanban-common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.