-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
base: dev
Are you sure you want to change the base?
Conversation
Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式
@@ -17,6 +17,7 @@ | |||
:show-checkbox="showCheckbox" | |||
:key="getNodeKey(child)" | |||
:render-content="renderContent" | |||
:tree-node-class="treeNodeClass" |
There was a problem hiding this comment.
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"
。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大意了,加了才是完整的
Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式
请求合并然后更新到官方库中,不然自定义树形结构组件还得自己拷贝一份项目代码处理 |
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)
Tree树形组件,新增类似Vue3版本的自定义树形节点class类名回调方法,方便实现自定义的Tree树形组件样式
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.