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
[Bug Report] range在x-dialog中的问题 #2646
Labels
Comments
测试并不能重现。麻烦帖包含样式在内的完整 .vue 代码。 |
<template>
<div>
<div @click="settingShow=true">click Me</div>
<x-dialog v-model="settingShow" class="dialog-demo">
<div class="settingLayer">
<div class="drag">
<range :min="dragMin" :max="dragMax" v-model="drag" @on-change="dragChange"></range>
</div>
</div>
</x-dialog>
</div>
</template> <script>
import { XDialog, Range } from "vux";
export default {
components: {
XDialog,
Range
},
data() {
return {
settingShow: false,
dragMin: 55,
dragMax: 150,
drag: 0
};
},
methods: {
dragChange(value) {
console.log(value);
}
}
};
</script> <style>
.settingLayer {
height: 300px;
padding-top: 50px;
}
</style> |
确实有这个问题 |
我在popup上也发现了这个问题,希望尽快可以修复 |
请问是怎么解决的? |
x-dialog的v-model="show",range组件v-if="show" |
谢谢! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VUX version
2.2.0
OS/Browsers version
win7/谷歌
Vue version
2.5.2
Code
Steps to reproduce
初始进来settingShow为false,按钮点击弹窗显示,这时候拖动只能最大值跟最小值了。
What is Expected?
有更好的解决方案,我在
上v-if="settingShow"暂时解决了这个问题。What is actually happening?
a
The text was updated successfully, but these errors were encountered: