Ant Design Vue 使用Select 组件 自定义dropdownRender 选择操作出现问题

组件:Select

问题:选择框正确渲染,但不能选择

解决逻辑: 给予Selct组件的options 属性是否正确赋值

# 需要的格式为:
  const selectOptions = ref<SelectProps['options']>([]);
   selectOptions.value.push({
  value:' ',
  label:' '
})

问题:自定义创建Vnode节点是否正确定义

 <VNodes :vnodes="menu" />

<script lang="ts" setup>
  const VNodes: any = (_, { attrs }) => {
    return attrs.vnodes;
  };
</script>

posted @ 2023-03-03 11:31  Chiffon1996  阅读(2111)  评论(0)    收藏  举报