picker 增加 title 显示 (#30)

* picker 增加 title 显示
This commit is contained in:
Yao
2017-05-17 11:59:46 +08:00
committed by 张敏
parent 28ae410736
commit 85ef16f51c
5 changed files with 82 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
<slot>
<a href="javascript:void(0)" class="van-picker__cancel" @click="handlePickerCancel">取消</a>
<a href="javascript:void(0)" class="van-picker__confirm" @click="handlePickerConfirm">完成</a>
<p v-if="title" class="van-picker__title">{{ title }}</p>
</slot>
</div>
<div class="van-picker__columns" :class="['van-picker__columns--' + columns.length]">
@@ -65,6 +66,10 @@ export default {
type: Boolean,
default: false
},
/**
* 顶部toolbar 显示的title
*/
title: String,
valueKey: String
},