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

[Transfer] 与Tree结合使用,无法进行勾选 #1958

Closed
PDB6912 opened this issue Nov 3, 2022 · 9 comments
Closed

[Transfer] 与Tree结合使用,无法进行勾选 #1958

PDB6912 opened this issue Nov 3, 2022 · 9 comments
Labels
🐞 bug Something isn't working

Comments

@PDB6912
Copy link

PDB6912 commented Nov 3, 2022

tdesign-vue-next 版本

0.24.5

重现链接

https://tdesign.tencent.com/vue-next/components/transfer?tab=demo#%E4%B8%8E-tree-%E7%BB%93%E5%90%88%E4%BD%BF%E7%94%A8

重现步骤

在 Stackblitz 中打开后,运行成功后去树形菜单上进行选中,无法勾选

期望结果

能选中

实际结果

不能选中,控制台提示 Set operation on key "checked" failed: target is readonly.

框架版本

Vue(3.2.40)

浏览器版本

106.0.5249.121(正式版本)

系统版本

win10

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

👋 @ldypgod,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@PDB6912 PDB6912 changed the title [组件名称] 描述问题的标题 [Transfer] 与Tree结合使用,无法进行勾选 Nov 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

♥️ 有劳 @kidjayhuang @btea 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @ldypgod 。

@uyarn uyarn added the 🐞 bug Something isn't working label Nov 3, 2022
@PDB6912
Copy link
Author

PDB6912 commented Nov 3, 2022

<template>
  <t-transfer
    v-model="targetValue"
    v-model:checked="checked"
    :data="items"
    @change="onChange"
    @checked-change="handleCheckedChange"
  >
    <template #tree="slotProps">
      <t-tree v-bind="slotProps" checkable hover expand-all transition />
    </template>
  </t-transfer>
</template>

我刚刚发现 t-tree里不能直接使用v-bind 因为slotProps.value不是checked,tree里的value需要的值是checked

@PengYYYYY
Copy link
Collaborator

看起来表现正常

@PengYYYYY
Copy link
Collaborator

Screen.Recording.2022-11-08.at.11.04.02.mov

@PengYYYYY
Copy link
Collaborator

issue 暂时关闭,待提供更多信息后,可以reopen

@PDB6912
Copy link
Author

PDB6912 commented Nov 8, 2022

在 Stackblitz 中打开使用就不行了

@PDB6912
Copy link
Author

PDB6912 commented Nov 8, 2022

a3005166fc0beee1a8a813ddece9a2fe.mp4

@PDB6912
Copy link
Author

PDB6912 commented Nov 9, 2022

@PengYYYYY 你看看我发的,实例是正常的,在 Stackblitz 中打开使用就不行,我自己本地也不行和在Stackblitz出现同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants