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

BaseTree 使用 v-model:selectedKeys 时,会影响已展开的项 #362

Closed
3 tasks done
ununian opened this issue Mar 12, 2021 · 0 comments
Closed
3 tasks done

BaseTree 使用 v-model:selectedKeys 时,会影响已展开的项 #362

ununian opened this issue Mar 12, 2021 · 0 comments

Comments

@ununian
Copy link

ununian commented Mar 12, 2021

  • Read the docs.
  • Make sure the code is up to date. (Some bugs have been fixed in the latest code)
  • This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug

A clear and concise description of what the bug is..

<BasicTree
      :defaultExpandAll="true"
      :treeData="roles"
      :showLine="true"
      :replaceFields="{ children: 'children', title: 'name', key: 'id' }"
      v-model:selectedKeys="selectKeys"
    />

const selectKeys = ref<string[]>([]);

Reproduction

1

推测和 Tree/index.vue 的这里有关
image

改为这样就正常
image

@anncwb anncwb closed this as completed in a405de8 Mar 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2024
ethan-wilson-1291 pushed a commit to ethan-wilson-1291/vue-vben-admin that referenced this issue Feb 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant