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

TreeNode: add node class callback function #22797

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

Conversation

jiankian
Copy link

Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式
@@ -17,6 +17,7 @@
:show-checkbox="showCheckbox"
:key="getNodeKey(child)"
:render-content="renderContent"
:tree-node-class="treeNodeClass"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tree-node.vue 中的 el-tree-node 标签应该也增加 :tree-node-class="treeNodeClass"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对的

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大意了,加了才是完整的

Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式
@jiankian
Copy link
Author

请求合并然后更新到官方库中,不然自定义树形结构组件还得自己拷贝一份项目代码处理
tree-node.vue 中的 el-tree-node 标签也已增加 :tree-node-class="treeNodeClass"

node-sass版本太老,只支持node v14版本问题
修正老版本node-sass不支持Windows 11环境问题
fix build problems:
fix node-sass version to support node v14 - v16, node-sass v4 is just support node v14
fix sass-loader support for node-sass v6
fix node-sass not support Windows 11
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83)
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

Successfully merging this pull request may close these issues.

None yet

2 participants