picker component

This commit is contained in:
cookfront
2017-02-20 17:05:43 +08:00
parent 10768acc9f
commit a0910a754e
4 changed files with 83 additions and 11 deletions

View File

@@ -14,6 +14,7 @@
:visible-item-count="visibleItemCount"
@change="columnValueChange">
</picker-column>
<div class="z-picker-center-highlight" :style="{ height: itemHeight + 'px', marginTop: -itemHeight / 2 + 'px' }"></div>
</div>
</div>
</template>
@@ -97,7 +98,8 @@ export default {
*/
getColumnValue(index) {
let column = this.getColumn(index);
return column && column.value;
console.log(column)
return column && column.values[column.valueIndex];
},
/**