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

TreeSelect组件的treeData子节点disabled都为true时,选中状态不显示当前值 #5316

Closed
1 task
gaothing opened this issue Mar 8, 2022 · 2 comments
Labels

Comments

@gaothing
Copy link

gaothing commented Mar 8, 2022

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

Version

3.0.0-beta.13

Environment

macos10.15.4 (19E287) ,Google Chrome 99.0.4844.51(正式版本) (x86_64),vue:3.2.11

Reproduction link

https://next.antdv.com/components/tree-select-cn

Steps to reproduce

<template>
<div>
<TreeSelect
style="width: 100px"
:treeData="treeData"
:fieldNames="{ label: 'name', key: 'id', value: 'id' }"
/>
</div>
</template>
<script lang="ts" setup>
import { TreeSelect } from 'ant-design-vue';
const treeData = [
{
id: 1,
name: '111',
pid: 0,
disabled: false,
children: [
{ id: 11, name: '111', pid: 1, children: [], disabled: true },
{ id: 12, name: '222', pid: 1, children: [], disabled: true },
],
},
{ id: 2, name: '222', pid: 0, children: [], disabled: true },
];
</script>

What is expected?

可选中,且选完显示值

What is actually happening?

可选中,选完不显示值

@github-actions github-actions bot changed the title TreeSelect组件字节点disabled都未true时,选中状态不显示当前值 When the TreeSelect component byte point is not true, the selected state does not display the current value Mar 8, 2022
@gaothing gaothing changed the title When the TreeSelect component byte point is not true, the selected state does not display the current value TreeSelect组件的treeData子节点disabled都为true时,选中状态不显示当前值 Mar 9, 2022
@438413530
Copy link

我也遇到了,而且在 2.x版本没有这个问题

@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 Mar 13, 2023
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