Fuyumoe1 2022-01-25 16:41 采纳率: 0%
浏览 1137

vue3 template #reference

vue3 elemntui table内容
        <template  #default="scope"
          <el-popconfirm
              :confirm-button-text="$t('popConfirm.confirm')"
             :cancel-button-text="$t('popConfirm.cancel')"
              @confirm="handleState(scope.row, scope.$index, Number(!scope.row.show_user))"
              :title="$t('popConfirm.title')">

         <template #reference>
              <el-tag size="mini" :type="showUserMap[scope.row.show_user].type" >
                {{ showUserMap[scope.row.show_user].text }}
              </el-tag>
            </template>

          </el-popconfirm>
        </template>
每次table翻页后 template #reference中的 scope参数不变 绑定的还是上一页的数据
  • 写回答

2条回答 默认 最新

  • 赵东19970820 2022-01-25 17:41
    关注

    你要确定一下scope只是上一页的数据,还是反倒2,3页还是第一页的数据

    评论

报告相同问题?

问题事件

  • 创建了问题 1月25日