You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我觉得好的 API 应该是能以最简单的形式实现常见的用途。比如 Ant Design 用一个属性就实现了左对齐,这对开发者来说,易于理解也易于使用。而 Fusion 要用两个属性,上手成本更高,而且容易产生上面提到的诡异效果。而这两个属性的命名也十分迷惑,中文“弹出方向”怎么也对不上“align”,要区分“align”和“alignEdge”也是十分困难的。
Component
Balloon
Feature Description
设定左对齐的时候,气泡尖角仍然是居中的,气泡的左侧并没有和也没有和 trigger 元素的左侧对齐。效果十分诡异:
参考 Ant Design 的实现:
The text was updated successfully, but these errors were encountered: