Skip to content

Commit

Permalink
fix: 🐛level 应该从1 起始,而不是 0。与语义和之前版本同步
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed May 22, 2023
1 parent 9ebca0b commit 817081f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const onClickLink = (link: any | null) => {
};
function onMove(data: any) {
return data.level !== 0;
return data.level !== 1;
}
const onNoDateError = (date: Date) => {
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default () => {
return {
row: toRaw(data?.data),
$index: data?.flatIndex,
level: data?.level
level: data && data.level + 1
};
}

Expand Down

0 comments on commit 817081f

Please sign in to comment.