use zanui name

This commit is contained in:
cookfront
2017-02-17 16:04:37 +08:00
parent 3bed02995d
commit c786235977
40 changed files with 833 additions and 536 deletions

View File

@@ -0,0 +1,65 @@
<template>
<div class="z-picker-column">
</div>
</template>
<script>
const DEFAULT_ITEM_HEIGHT = 44;
export default {
name: 'z-picker-column',
props: {
/**
* 每一列可见备选元素的个数
*/
visibileColumnCount: {
type: Number,
default: 5
},
values: {
type: Array,
default() {
return [];
}
},
className: {},
itemHeight: {
type: Number,
default: DEFAULT_ITEM_HEIGHT
},
value: {}
},
data() {
return {
currentValue: this.value,
dragging: false
};
},
watch: {
values(val) {
},
currentValue(val) {
this.$emit('change');
}
},
computed: {
/**
* picker可见备选元素总高度
*/
visibleContentHeight() {
return this.itemHeight * this.visibileColumnCount;
}
},
methods: {
}
};
</script>