TAY
笔记 · · 阅读 257

nuxt3 使用antdv的select多选时,列表选中项√和表单里选中项的x图标无法渲染

换成字符就可以了

<template>
  <div class="container">
    <a-select v-model:value="value" :options="options" mode="multiple" style="width:100px;">
      <template #menuItemSelectedIcon>✓</template>
      <template #removeIcon>✕</template>
    </a-select>
  </div>
</template>
<script lang="ts" setup>
const value = ref([])
const options = [{ label: "test", value: "test" }, { label: "test1", value: "test1" }, { label: "test2", value: "test2" }]
</script>
<style>
.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
目录