protected void SetClass() { string prefixCls = "ant-back-top"; ClassMapper.Add(prefixCls); BackTopContentClassMapper.Add($"{prefixCls}-content"); BackTopIconClassMapper.Add($"{prefixCls}-icon"); }
protected void SetClass() { string prefixCls = "ant-back-top"; ClassMapper.Add(prefixCls); BackTopContentClassMapper .If($"{prefixCls}-content", () => ChildContent == null) .If("ant-fade ant-fade-leave ant-fade-leave-active", () => !_visible) .If("ant-fade ant-fade-enter ant-fade-enter-active", () => _visible) ; BackTopIconClassMapper.Add($"{prefixCls}-icon"); }