mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-26 08:19:15 +08:00
[bugfix] Picker bottom area not dragable (#433)
This commit is contained in:
parent
f0143636db
commit
93433249ca
@ -1,6 +1,6 @@
|
||||
|
||||
<template>
|
||||
<div class="van-picker-column" :class="className">
|
||||
<div class="van-picker-column" :class="className" :style="columnStyle">
|
||||
<div class="van-picker-column__frame van-hairline--top-bottom" :style="frameStyle" />
|
||||
<ul
|
||||
:style="wrapperStyle"
|
||||
@ -95,14 +95,18 @@ export default create({
|
||||
return this.options.length;
|
||||
},
|
||||
|
||||
columnStyle() {
|
||||
return {
|
||||
height: (this.itemHeight * this.visibileColumnCount) + 'px'
|
||||
};
|
||||
},
|
||||
|
||||
wrapperStyle() {
|
||||
const { itemHeight, visibileColumnCount } = this;
|
||||
return {
|
||||
transition: `${this.duration}ms`,
|
||||
transform: `translate3d(0, ${this.offset}px, 0)`,
|
||||
lineHeight: itemHeight + 'px',
|
||||
height: itemHeight * visibileColumnCount + 'px',
|
||||
paddingTop: itemHeight * (visibileColumnCount - 1) / 2 + 'px'
|
||||
lineHeight: this.itemHeight + 'px',
|
||||
padding: `${this.itemHeight * (this.visibileColumnCount - 1) / 2}px 0`
|
||||
};
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user