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

Tour 无法定位步骤,change事件获取步骤索引不对 #3138

Open
wangrujun2016 opened this issue Jul 11, 2024 · 0 comments · May be fixed by #3139
Open

Tour 无法定位步骤,change事件获取步骤索引不对 #3138

wangrujun2016 opened this issue Jul 11, 2024 · 0 comments · May be fixed by #3139

Comments

@wangrujun2016
Copy link

NutUI 包名

@nutui/nutui-taro

NutUI 版本号

4.3.8

平台

weapp

重现链接

<nut-cell title="点击试试" @click="show = true"> <nut-tour v-model="show" class="nut-custom-tour" :steps="steps" location="top-start" :offset="[0, 0]" :mask-width="60" :mask-height="50" @change="handleChange" > <script setup> import { ref } from 'vue' const show = ref(false) const steps = ref([ { content: '京东风格的轻量级移动端组件库,覆盖移动端主流场景', target: 'tour5-1' }, { content: '支持一套代码同时开发多端小程序 + H5', target: 'tour5-2' }, { content: '基于京东APP 10.0 视觉规范', target: 'tour5-3', location: 'top-end' }, { content: '支持定制主题,内置 700+ 个主题变量', target: 'tour5-4', location: 'top-end' } ]) const handleChange=(v)=>{ console.log(v) } </script>

重现步骤

change 事件获取的步骤索引不对,current 无法定位到对应步骤

期望的结果是什么?

change 事件获取步骤索引,current 定位到对应步骤

实际的结果是什么?

change 事件获取的步骤索引不对,current 无法定位到对应步骤

环境信息

No response

其他补充信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant