From 5c621ca21844f3eb40d744ee20920cd953f575d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Wed, 26 Jun 2024 20:29:48 +0800 Subject: [PATCH] chore: release 1.9.6-naruto (#3214) * fix(Tree): fix tree warning (#3212) * fix(Tree): fix tree warning * chore: revert change * chore: release 1.9.6 (#3213) * chore: release 1.9.6 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] --------- Co-authored-by: github-actions[bot] --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/tree/hooks/useDragHandle.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f091a0c..8572d9ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ toc: false docClass: timeline --- +## 🌈 1.9.6 `2024-06-26` +### 🐞 Bug Fixes +- `Tree`: 修复 `1.9.5` 版本使用拖拽功能的报错问题 @uyarn ([#3212](https://github.com/Tencent/tdesign-vue/pull/3212)) + ## 🌈 1.9.5 `2024-06-20` ### 🚀 Features - `Transfer`: 修复通过 `Function` 方法使用 `Tree` 属性的能力 @sinbadmaster ([#3185](https://github.com/Tencent/tdesign-vue/pull/3185)) diff --git a/package.json b/package.json index 356226fd9..57b4a9d46 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tdesign-vue", "purename": "tdesign", - "version": "1.9.5-naruto", + "version": "1.9.6-naruto", "description": "tdesign-vue", "title": "tdesign-vue", "keywords": [ diff --git a/src/tree/hooks/useDragHandle.ts b/src/tree/hooks/useDragHandle.ts index 90388cc8d..2948ba354 100644 --- a/src/tree/hooks/useDragHandle.ts +++ b/src/tree/hooks/useDragHandle.ts @@ -62,7 +62,7 @@ export default function useDragHandle(state: TypeTreeState) { e: dragEvent, }; - if (props.allowDrop(ctx) === false) return; + if (props.allowDrop?.(ctx) === false) return; const nodes = store.getNodes() as TreeNode[]; nodes.some((_node) => {