基本上我想在悬停时使文本删除线。这不容易与
el [ mouseOver [Font.strike] ] (text "some text")
Run Code Online (Sandbox Code Playgroud)
就像它会
el [ mouseOver [Background.color someColor] ] (text "some other text")
Run Code Online (Sandbox Code Playgroud)
因为Font.strike是Attribute msgwhileBackground.color是类型Attr decorative msg
有没有人知道如何用类似的东西来实现描述的行为Font.strike?
elm-ui如果不可能,我也会接受非解决方案。
例如输入
["a", "b", "b", "c", "a"]
Run Code Online (Sandbox Code Playgroud)
会导致输出
[("a", 2), ("b", 2), ("c", 1)]
Run Code Online (Sandbox Code Playgroud)
我真的想不出一种在榆树中做到这一点的实用方法