예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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());
        }