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

BasicTree的appendNodeByKey方法新增节点,视图虽然有更新,但是打印treeData数据源仍然是旧值,没有新增的节点数据,导致递归查找新增节点为null #3253

Closed
3 tasks
zwtvip opened this issue Nov 7, 2023 · 3 comments

Comments

@zwtvip
Copy link
Contributor

zwtvip commented Nov 7, 2023

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Make sure the code is up to date. (Some bugs have been fixed in the latest code)
  • This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug

A clear and concise description of what the bug is..

Reproduction

Please describe the steps of the problem in detail to ensure that we can restore the correct problem

System Info

  • Operating System:
  • Node version:
  • Package manager (npm/yarn/pnpm) and version:
@wangjue666
Copy link
Member

提供示例代码

@zwtvip
Copy link
Contributor Author

zwtvip commented Nov 8, 2023

提供示例代码
image

@wangjue666
Copy link
Member

@zwtvip 你传递的treedata 并不会被组件更改,现在basictree 增加了 getTreeData 方法,用这个来获取当前tree的数据

zyt520ham pushed a commit to zyt520ham/vue-vben-admin that referenced this issue Dec 22, 2023
* main: (43 commits)
  fix(BasicForm): validate Form tip height (vbenjs#3286). close vbenjs#3281
  perf(IconPicker): input  trigger popover by click (vbenjs#3278)
  perf(breakpointEnum): 修改enum与breakpoint.less内一致 (vbenjs#3276)
  fix(DatePicker): zh-CN is not work in DatePicker (vbenjs#3273)
  perf(ImageUpload): 根据官方示例设置图片回显格式 (vbenjs#3252)
  chore(deps): bump ant-design-vue and  typescript to latest version
  chore(demo->form): 增加ApiTransfer使用示例. close vbenjs#1760
  feat(layout): move setting button to tabs when fold (vbenjs#3264)
  feat(MultipleTab): add tabs auto collapse interaction in fold mode and setting  (vbenjs#3256)
  chore(i18n): resolve ts type error
  chore(demo->BasicTree): 增加获取当前tree数据示例. resolve vbenjs#3253
  perf(BasicTree): 获取treeData改写成函数
  feat(BasicTree): BasicTree组件暴露treeData数据
  fix(dept): no parentDept can edit parentDept (vbenjs#3255)
  fix: validateFields await missing (vbenjs#3254)
  chore(demo): 自定义列的helpMessage增加tsx和h函数渲染的数据
  feat(Table-> CustomerCell):  helpMessage支持传递 tsx 和 h函数的数据
  refactor: fix type check (vbenjs#3246)
  refactor: remove cipher old (vbenjs#3245)
  feat: pinia persist plugin custom serializer (vbenjs#3244)
  ...

# Conflicts:
#	pnpm-lock.yaml
#	src/App.vue
#	src/hooks/web/useI18n.ts
#	src/layouts/default/header/MultipleHeader.vue
#	src/layouts/default/index.vue
#	src/locales/useLocale.ts
#	src/utils/cache/storageCache.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants