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

n-transfer 值发生改变时的回调函数BUG #3393

Closed
easynetbook opened this issue Jul 29, 2022 · 0 comments
Closed

n-transfer 值发生改变时的回调函数BUG #3393

easynetbook opened this issue Jul 29, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@easynetbook
Copy link

TuSimple/naive-ui version (版本)

2.32.0

Vue version (Vue 版本)

3.2.33

Browser and its version (浏览器及其版本)

chrome(103.0.5060.134)

System and its version (系统及其版本)

Windows(11)

Node version (Node 版本)

v16.14.2

Reappearance link (重现链接)

https://github.com/

Reappearance steps (重现步骤)

1、勾选穿梭框左侧数据,在回调函数通过 console.log(value) 打印 ['001', '000']
2、取消勾选左侧数据,回调函数没有打印任何内容。
穿梭框代码:
<n-transfer ref="transferRef" v-model:value="transferModel" :options="options" size="medium" source-title="所有" target-title="已选" @update:value="handleUpdateClick" filterable />
回调函数代码:
const handleUpdateClick = (row: Array<string | number>) => {
console.log(row)
}

Expected results (期望的结果)

取消勾选的时候也能回调。

Actual results (实际的结果)

只有勾选左侧内容才会执行回调函数,取消勾选不执行。

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jul 29, 2022
@XieZongChen XieZongChen added bug Something isn't working and removed untriaged need to sort labels Jul 29, 2022
@XieZongChen XieZongChen self-assigned this Jul 29, 2022
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

2 participants