Skip to content

TreeNode: add node class callback function#22797

Open
jiankian wants to merge 5 commits intoElemeFE:devfrom
jiankian:dev
Open

TreeNode: add node class callback function#22797
jiankian wants to merge 5 commits intoElemeFE:devfrom
jiankian:dev

Conversation

@jiankian
Copy link
Copy Markdown

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树形组件样式
:show-checkbox="showCheckbox"
:key="getNodeKey(child)"
:render-content="renderContent"
:tree-node-class="treeNodeClass"
Copy link
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

对的

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants