protected override void SetClasses() { base.SetClasses(); //ant-input-password-large ant-input-affix-wrapper ant-input-affix-wrapper-lg ClassMapper .If($"{PrefixCls}-password-large", () => size == AntInputSize.Large) .If($"{PrefixCls}-password-small", () => size == AntInputSize.Small); _affixWrapperClass = string.Join(" ", _affixWrapperClass, $"{PrefixCls}-password"); if (visibilityToggle) { suffix = new RenderFragment((builder) => { int i = 0; builder.OpenElement(i++, "span"); builder.AddAttribute(i++, "class", $"{PrefixCls}-suffix"); builder.OpenComponent <AntIcon>(i++); builder.AddAttribute(i++, "class", $"{PrefixCls}-password-icon"); builder.AddAttribute(i++, "type", _eyeIcon); builder.AddAttribute(i++, "onclick", _callbackFactory.Create(this, ToggleVisibility)); builder.CloseComponent(); builder.CloseElement(); }); } }
private void SetClassMap() { var cls = "ant-pagination"; ClassMapper .If($"{cls}-prev", () => Type == "prev") .If($"{cls}-next", () => Type == "next") .If($"{cls}-item", () => Type == "page") .If($"{cls}-jump-prev", () => Type == "prev_5") .If($"{cls}-jump-prev-custom-icon", () => Type == "prev_5") .If($"{cls}-jump-next", () => Type == "next_5") .If($"{cls}-jump-next-custom-icon", () => Type == "next_5") .If($"{cls}-disabled", () => Disabled) .If($"{cls}-item-active", () => Active) ; }