/// <summary> /// 配置图标 /// </summary> private void ConfigIcon(ButtonWrapperBuilder builder) { if (_config.Contains(UiConst.Icon) == false) { return; } var iconBuilder = new IconBuilder(); iconBuilder.AddType(_config.GetValue <AntDesignIcon?>(UiConst.Icon)?.Description()); builder.AppendContent(iconBuilder); }
/// <summary> /// 配置按钮图标 /// </summary> private void ConfigButtonIcon(ButtonWrapperBuilder buttonBuilder) { var iconBuilder = new IconBuilder(); buttonBuilder.AppendContent(iconBuilder); if (_config.Contains(UiConst.ButtonIcon)) { iconBuilder.AddType(_config.GetValue <AntDesignIcon?>(UiConst.ButtonIcon)?.Description()); return; } iconBuilder.AddType(AntDesignIcon.Upload.Description()); }