Skip to content

IndexList 索引列表当数据只有2个字母时,右侧列表没有同步? #151

@bruce-zhang932

Description

@bruce-zhang932
Image

const indexList = ref([{index: 'X', children: [{name: '谢X'}]}, {index: 'Z', children: [{name: '张X'}]}])

    <view v-for="item in indexList" :key="item.index">
      <u-index-anchor :index="item.index" />
      <view class="list-cell-box">
        <view @click="handleCheck(it.userId)" class="list-cell" v-for="it in item.children" :key="it.userId">
          <view class="list-cell-name">{{ it.nickname }}</view>
          <view class="list-cell-phone">{{ it.mobile }}</view>
          <u-icon v-if="curUserId === it.userId" class="list-cell-icon" name="checkmark" size="28" color="#1677FF" />
        </view>
      </view>
    </view>
  </u-index-list>

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