Skip to content

IndexList组件点击右侧索引字母弹出的却不是点击字母? #152

@bruce-zhang932

Description

@bruce-zhang932
Image 比如我现在点击的是字母C,实际上弹出的字母是A,为什么会出现这种不对应的情况?
    <view v-for="(item, index) in indexList" :key="index">
      <u-index-anchor :index="item" />
      <view class="list-cell">
        列表1
      </view>
      <view class="list-cell">
        列表2
      </view>
      <view class="list-cell">
        列表3
      </view>
    </view>
  </u-index-list>

const indexList = ref<any []>([
"A", "B", "C", "D", "E"
])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions