Notification在出现多个卡片通知时,会将卡片堆叠起来。
希望能将这个功能剥离,让开发者可以将此功能同时应用到card或自己设计的其他卡片组件上。这样可以优化“大量且紧凑”的绝对定位/固定定位的元素的排版
希望能让开发者直接将自己的card组件放到卡片堆叠组件的children中,直接分割最外层元素作为每一个堆叠卡片的根元素。或者使用items属性,让开发者直接传入卡片组件数组。
示例:
js\nconst Staker = ({ items }) => {\n\treturn (\n\t\t<>\n\t\t\t{items.map((res) => {\n\t\t\t\treturn (\n <></>\n );\n\t\t\t})}\n\t\t</>\n\t);\n};\nconst App = () => {\n\treturn (\n\t\t<Staker\n\t\t\titems={[\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t\t<Card></Card>,\n\t\t\t]}\n\t\t/>\n\t);\n};\n\n
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too