naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

期待有一天能用 Slot 插槽替换所有 Render 函数

Open a81n9 opened this issue 1 year ago • 1 comments

Clear and concise description of the problem

感觉好多场景都可以用 Slot 代替 Render 函数 期待有一天能用 Slot 插槽替换所有 Render 函数

Suggested solution

/

Alternative

No response

Additional context

No response

Validations

  • [X] Read the Contributing Guidelines.
  • [X] Read the docs.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

a81n9 avatar Aug 22 '24 09:08 a81n9

目前来说,是没有那一天的,作者也说过了不用插槽的原因,也不会花精力做这件事

Zheng-Changfu avatar Aug 25 '24 12:08 Zheng-Changfu

为什么我觉得 h 函数挺好用的 [脸红]

wangz-code avatar Sep 13 '24 01:09 wangz-code

https://github.com/tusen-ai/naive-ui/issues/216

tsx 一样的

55dcc7a997e06e6d8b6624226edc100c

jahnli avatar Sep 24 '24 10:09 jahnli