0.1.2 • Published 3 years ago

wl-todo-list v0.1.2

Weekly downloads
101
License
-
Repository
-
Last release
3 years ago

wl-todo

todo list demo

运行项目

yarn install

yarn serve

Attributes

参数说明类型默认值
data任务数据Array[]
props数据字段描述信息Object见props
nodeKeynode-keyStringid
taskStateInternally是否内部处理任务状态(完成、回退、删除),true则内部改变task状态并emit到外部,false则外部处理Booleantrue
allowCreate是否允许创建新任务Booleantrue
placeholder输入框placeholderString-
maxlength输入框最大输入长度Number,String200
confirmOptions弹出框配置项Object见confirmOptions

props

参数说明默认值
label展示任务信息节点的字段label
isDone任务信息是否完成状态字段isDone

confirmOptions

参数说明默认值
title标题提示
message确认提示内容是否确认执行当前操作?
cancelText取消按钮的文字取消
confirmText确认按钮的文字确认

Events

事件名说明回调参数
task-create创建任务value 输入框内的值
task-change改变任务状态item 任务节点数据
task-delete删除任务item 任务节点数据

Then

虚拟列表
未完成任务可拖拽排序
多列todo list支持互相拖拽

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago