小程序
小游戏
企业微信
微信支付
扫描小程序码分享
在同一个页面中有两个选项需要用到picker-view。其中一个是1列选项,另一个是2列选项,在切换显示的过程中,如果从2列切换成1列显示,则无法显示为默认的选项。
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
<
view
hidden
=
"{{sel_hidden}}"
>
class
"cal-num_disable"
></
"weui-footer weui-footer_fixed-bottom"
"weui-form-preview__ft cal-num_picker_ok"
button
"weui-form-preview__btn weui-form-preview__btn_default"
hover-class
"weui-form-preview__btn_active"
bindtap
"cancelSel"
hover-stay-time
"50"
>取消</
> <
"weui-form-preview__btn weui-form-preview__btn_primary"
"selModel"
>确认</
</
picker-view
indicator-style
"height: 50px;"
"cal-num_model_sel"
style
"width: 100%; height: 450rpx;font-size:40rpx;"
value
"{{pValue}}"
bindchange
"pickerChange"
block
wx:for
"{{fModel.cols}}"
wx:for-item
"options"
picker-view-column
"{{options}}"
"option"
"line-height: 50px"
>{{option.name}}</
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
提供一下代码?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
<
view
hidden
=
"{{sel_hidden}}"
>
<
view
class
=
"cal-num_disable"
></
view
>
<
view
class
=
"weui-footer weui-footer_fixed-bottom"
>
<
view
class
=
"weui-form-preview__ft cal-num_picker_ok"
>
<
button
class
=
"weui-form-preview__btn weui-form-preview__btn_default"
hover-class
=
"weui-form-preview__btn_active"
bindtap
=
"cancelSel"
hover-stay-time
=
"50"
>取消</
button
> <
button
class
=
"weui-form-preview__btn weui-form-preview__btn_primary"
hover-class
=
"weui-form-preview__btn_active"
bindtap
=
"selModel"
hover-stay-time
=
"50"
>确认</
button
>
</
view
>
<
picker-view
indicator-style
=
"height: 50px;"
class
=
"cal-num_model_sel"
style
=
"width: 100%; height: 450rpx;font-size:40rpx;"
value
=
"{{pValue}}"
bindchange
=
"pickerChange"
>
<
block
wx:for
=
"{{fModel.cols}}"
wx:for-item
=
"options"
>
<
picker-view-column
>
<
view
wx:for
=
"{{options}}"
wx:for-item
=
"option"
style
=
"line-height: 50px"
>{{option.name}}</
view
>
</
picker-view-column
>
</
block
>
</
picker-view
>
</
view
>
</
view
>
提供一下代码?