Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mode = "multiSelector"时,视图显示数据缺乏第一列数据,且视图滚动列往前推一列。 #36

Closed
ZTrainWilliams opened this issue Jul 8, 2019 · 1 comment

Comments

@ZTrainWilliams
Copy link

            <!-- 多列选择 -->
            <picker-view indicator-style="height: 40px;" class="mpvue-picker-view" :value="pickerValue" @change="pickerChange" v-if="mode==='multiSelector'">
                <block v-for="(n,index) in pickerValueMulArray.length" :key="index">
                    <picker-view-column>
                        <view class="picker-item" v-for="(item,index1) in pickerValueMulArray[index]" :key="index1">{{item.label}}</view>
                    </picker-view-column>
                </block>
            </picker-view>

以上代码中 pickerValueMulArray[n] 应该更换为 pickerValueMulArray[index],才展示正常。

@ZTrainWilliams ZTrainWilliams changed the title mode = "multiSelector"时,仅视图显示 数据缺乏第一列数据,且视图滚动列往前推一列 mode = "multiSelector"时,视图显示数据缺乏第一列数据,且视图滚动列往前推一列。 Jul 8, 2019
KuangPF added a commit that referenced this issue Jul 8, 2019
@KuangPF
Copy link
Member

KuangPF commented Jul 8, 2019

thanks

@KuangPF KuangPF closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants