tabs add click event

This commit is contained in:
cookfront
2017-03-30 14:27:49 +08:00
parent 09650d61ea
commit 969e1f78e1
6 changed files with 90 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
<template><section class="demo-datetime-picker"><h1 class="demo-title">datetime-picker</h1><example-block title="基础用法">
<zan-datetime-picker type="time" :min-hour="minHour" :max-hour="maxHour" :min-date="minDate" @change="handlePickerChange">
<zan-datetime-picker v-model="currentDate" type="datetime" format="yyyy.mm.dd hh时 mm分" :min-hour="minHour" :max-hour="maxHour" :min-date="minDate" @change="handlePickerChange">
</zan-datetime-picker>
@@ -13,7 +13,8 @@ export default {
return {
minHour: 10,
maxHour: 20,
minDate: new Date()
minDate: new Date(),
currentDate: null
};
},

View File

@@ -19,9 +19,9 @@
<div class="demo-progress__wrapper">
<zan-progress class="demo-progress__demo1" :inactive="true" :percentage="100"></zan-progress>
</div>
</example-block><example-block title="自定义颜色">
<div class="demo-progress__wrapper">
<div class="demo-progress__wrapper">
<zan-progress class="demo-progress__demo1" pivot-text="红色" color="#ed5050" :percentage="26"></zan-progress>
</div>
<div class="demo-progress__wrapper">