From af7f7f15aabdc9d6250e3e7a94ec7d57812876ec Mon Sep 17 00:00:00 2001 From: zhangzhen Date: Wed, 10 Sep 2025 20:02:55 +0800 Subject: [PATCH] Added FAQs for using the v-draggable directive --- src/__docs__/faq/index.en-US.md | 2 +- src/__docs__/faq/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__docs__/faq/index.en-US.md b/src/__docs__/faq/index.en-US.md index b12f5cc..8c86b5b 100644 --- a/src/__docs__/faq/index.en-US.md +++ b/src/__docs__/faq/index.en-US.md @@ -11,4 +11,4 @@ Answer: Please ensure that when using v-for to render a list, the bound key valu ### Why is the update order not what I expected when using the v-draggable directive? -Answer: If the data is asynchronous, it is recommended to use a combined function or component. The v-draggable directive cannot detect data updates, resulting in sorting failure! +Answer: If the data is asynchronous, it is recommended to use a combined function or component. Because the vue directive cannot directly update the passed proxy data in reverse, the sorting fails. diff --git a/src/__docs__/faq/index.zh-CN.md b/src/__docs__/faq/index.zh-CN.md index 91f8c44..38d618e 100644 --- a/src/__docs__/faq/index.zh-CN.md +++ b/src/__docs__/faq/index.zh-CN.md @@ -11,4 +11,4 @@ map: ### 为什么我在用v-draggable指令时,更新顺序并不是我的预期? -答:如果是异步的数据,建议使用组合式函数或者组件的方式,v-draggable指令无法检测到数据更新,导致排序失败! +答:如果是异步的数据,建议使用组合式函数或者组件的方式,因为vue指令内部不能直接对传递进来的代理数据进行反向更新,导致排序失效。