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

TreeNode 插槽内的数据不是响应式的 #7217

Closed
1 task done
chua1989 opened this issue Dec 21, 2023 · 3 comments
Closed
1 task done

TreeNode 插槽内的数据不是响应式的 #7217

chua1989 opened this issue Dec 21, 2023 · 3 comments
Labels

Comments

@chua1989
Copy link

chua1989 commented Dec 21, 2023

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

Version

3.2.20

Environment

windows, chorome,vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<template>
  <a-tree>
    <a-tree-node key="0">
      <template #title>
        {{ arr }}
      </template>
    </a-tree-node>
  </a-tree>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
setup() {
  const arr = ref<any[]>([]);
  setTimeout(() => {
    arr.value = ["me", "you"];
  }, 2000);

  return {
    arr,
  };
},
});
</script>

What is expected?

初始时arr是一个空数组[],但是2s后应该展示["me", "you"]

What is actually happening?

实际结果是一直都展示[]

@chua1989 chua1989 changed the title ATreeNode 插槽内的数据不是响应式的 TreeNode 插槽内的数据不是响应式的 Dec 28, 2023
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Feb 27, 2024
@chua1989
Copy link
Author

This problem still exists

@kovsu kovsu removed the Stale label Feb 29, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants