Skip to content

Select component add optionValueProp property #4927

@chenzequ

Description

@chenzequ
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

在使用 Select的时候,自定义了 option slot 但是我不清楚应该如何映射我的数据项的某个属性为 value . 除非我绑定的数据源里面有value的属性,不然我就没有办法自定义 option

<template #option="slotProps">
<Row :key="slotProps">
<Col v-for="(col, i) in columns" :key="i" :span="col.span">
{{ slotProps[col.key] }}
</Col>
</Row>
</template>

What does the proposed API look like?

增加 optionValueProp 属性

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions