提交 6e38e08c 编写于 作者: 郭胜强

fix: 解决picker显示的选中项不正确的问题 #103

上级 05167597
......@@ -40,8 +40,11 @@ export default {
methods: {
// 处理 Picker close 回调
_onPickerClose () {
// 隐藏 picker
// 隐藏 picker 重置数据
this.showPicker.visible = false
this.showPicker.mode = 'selector'
this.showPicker.range = []
this.showPicker.value = 0
}
}
}
......@@ -7,7 +7,7 @@
@click="_cancel" />
</transition>
<div
:class="{'uni-picker_toggle':visible}"
:class="{'uni-picker-toggle':visible}"
class="uni-picker">
<div
class="uni-picker-header"
......@@ -20,6 +20,7 @@
@click="_change">确定</div>
</div>
<v-uni-picker-view
v-if="visible"
:value.sync="valueArray"
class="uni-picker-content">
<v-uni-picker-view-column
......@@ -351,7 +352,7 @@ export default {
transition: transform 0.3s;
}
uni-picker .uni-picker.uni-picker_toggle {
uni-picker .uni-picker.uni-picker-toggle {
transform: translate(0, 0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册