[bugfix] Picker: misspelling of visibleItemCount (#549)

This commit is contained in:
neverland
2018-01-18 14:31:54 +08:00
committed by GitHub
parent d8dc44a780
commit 838c34578e
7 changed files with 10 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ export default create({
type: Array,
default: () => []
},
visibileColumnCount: {
visibleItemCount: {
type: Number,
default: 5
},
@@ -90,12 +90,12 @@ export default create({
},
baseOffset() {
return this.itemHeight * (this.visibileColumnCount - 1) / 2;
return this.itemHeight * (this.visibleItemCount - 1) / 2;
},
columnStyle() {
return {
height: (this.itemHeight * this.visibileColumnCount) + 'px'
height: (this.itemHeight * this.visibleItemCount) + 'px'
};
},

View File

@@ -16,7 +16,7 @@
:class-name="item.className"
:default-index="item.defaultIndex"
:item-height="itemHeight"
:visibile-column-count="visibileColumnCount"
:visible-item-count="visibleItemCount"
@change="onChange(index)"
/>
<div class="van-picker__frame van-hairline--top-bottom" :style="frameStyle" />
@@ -41,7 +41,7 @@ export default create({
showToolbar: Boolean,
confirmButtonText: String,
cancelButtonText: String,
visibileColumnCount: Number,
visibleItemCount: Number,
valueKey: {
type: String,
default: 'text'