Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select在大数据并且optionFilterProp设为children情况下搜索不出来的问题 #3204

Closed
1 task
tracy2zhang opened this issue Nov 17, 2020 · 2 comments
Labels

Comments

@tracy2zhang
Copy link

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

Version

2.0.0-rc.1

Environment

vue3.0.2

Reproduction link

https://stackblitz.com/edit/vue-bwvnid?file=src%2Fcomponents%2FHelloWorld.vue

Steps to reproduce

给select大数据选项,optionFilterProp设为children,并搜索比较靠后的选项

What is expected?

可以搜出指定的选项

What is actually happening?

无数据


问题同 #3144
fix了之后只在默认情况(optionFilterProp为value)下有效

@tangjinzhou
Copy link
Member

我想要添加一个限制了 optionFilterProp 不能为 children了,因为懒加载,无法拿到真实未渲染的数据,你可以设置其他的值,参考:

<div>
    <a-select
      v-model:value="value"
      mode="multiple"
      style="width: 200px"
      placeholder="Please select"
      option-filter-prop="label"
      @change="handleChange"
    >
      <a-select-option v-for="(item, index) in options" :key="item.value" :label="item.label" :value="item.value">
        {{ item.label }}
      </a-select-option>
    </a-select>
  </div>

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants