jiaolong1021 / vue-helper

Your Efficiency Expert - Enhance the VUE development experience. support framework element-ui, element plus, ant-design-vue
http://vue-helper.80fight.cn/
MIT License
100 stars 22 forks source link

反馈一个选中bug #97

Closed cooper1x closed 3 months ago

cooper1x commented 3 months ago
<div class="list-content" style="-webkit-box-orient: vertical">
              <div
                v-if="showContentHighlight"
                v-html="item?.contentHighlight?.[0].replace(queryParam.keyWords, `<em>${queryParam.keyWords}</em>`)"
              ></div>
              <div v-else v-html="item.content.replace(/<[^>]+>/g, '')"></div>
            </div>
            <div class="list-operate">
              <div @click="handleAddOrEdit(item)">
                <img :src="require('@/assets/icon/edit.svg')" alt="" />
                <span>编辑</span>
              </div>
              <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(item.id)">
                <div>
                  <img :src="require('@/assets/icon/delete.svg')" alt="" />
                  <span>删除</span>
                </div>
              </a-popconfirm>
            </div>
          </div>

这个代码,我只想Option+x选中这部分:

<div class="list-content" style="-webkit-box-orient: vertical">
              <div
                v-if="showContentHighlight"
                v-html="item?.contentHighlight?.[0].replace(queryParam.keyWords, `<em>${queryParam.keyWords}</em>`)"
              ></div>
              <div v-else v-html="item.content.replace(/<[^>]+>/g, '')"></div>
            </div>

结果给我全部选中了。感觉是正则有干扰。

jiaolong1021 commented 3 months ago

4.2.6已修复