Skip to content

建议增加节点渲染的slot #71

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

Closed
Dr-Harris opened this issue Sep 14, 2023 · 2 comments
Closed

建议增加节点渲染的slot #71

Dr-Harris opened this issue Sep 14, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Dr-Harris
Copy link

树节点可能会渲染比较复杂的DOM结构,通过slot放在template中会比 render 方法更加直观
参考element-plus的使用方式:

<VTree>
  <template #node={ node }>
    <div class="custom-node">{{ node.name }}</div>
  </template>
</VTree>
@ChuChencheng ChuChencheng added the enhancement New feature or request label Sep 14, 2023
@zhoushengdong
Copy link

同感!

@Dr-Harris
Copy link
Author

@zhoushengdong 4.0.0已更新

ChuChencheng added a commit that referenced this issue Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants