# element-timeline **Repository Path**: x_msdn/element-timeline ## Basic Information - **Project Name**: element-timeline - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-04 - **Last Updated**: 2021-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # demo [预览地址](http://element-timeline.weakwater.com) ### Attributes 属性 | 属性名 | 是否必填 | 默认值 | 类型 ---|---|---|---|--- 最小时间 | minHour | 否 | 0 | string/number 最大时间 | maxHour | 否 | 24 | string/number 一格对应时间(分钟) | unit | 否 | 30 | string/number 一格表示的时段对应的刻度 | scale | 否 | 0.5 | string/number 被他人预定 | disabledList | 否 | [{name:'',time:0}] | array 被我预定 | checkedList | 否 | [] | array dom节点 | domRef | 是 | "" | string 传入时间 | date | 否 | "" | string 提前多少小时 ### Events 事件名称 | 说明 | 回调参数 ---|---|--- getHours | 获取返回参数 | 组件绑定值 clearHours | 重置其它time-line组件状态 | 组件绑定值 ###### 默认状态 ``` ``` ###### 被我选择过的时段 ``` ``` ###### 其它人选择过的时段 ``` ``` ###### 传递时间 ``` ``` ``` /** * * 获取选择后的参数 **/ getHours(e) { this.$message({ type: 'success', message: JSON.stringify(e) }) } /** * 借助父组件的clear实现组件互相触发重置功能 **/ clearHours(e) { this.clear = e } ```