Skip to content

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

Open
@wangrujun2016

Description

@wangrujun2016

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions