picker里面无内容不能触发, 这是一个BUG吧
发布于 4 年前 作者 daiping 18608 次浏览 来自 问答

大多数需求中picker里面都是空的,

            <picker class=“section__content” ></picker>

            <picker class=“section__content”>请选择</picker>

2 回复

你需要在哪里点击调出picker,就把picker包在外层。

如果你想整个页面都能调用picker,那么就放在最外层

<picker mode="date" value="{{date}}" start="1950-01-01" end="2017-01-01" class="quick-link h100" bindchange="bindDateChange">
       <view class="quick-link-txt2 weui-cell__ft_in-access fr"></view>
       <view class="quick-link-txt3 fr">{{date}}</view>
       <view class="quick-link-txt1">生日</view>
    </picker>

picker里面有内容,如果内容都用了float的css,那么也触发不了。

回到顶部