/// <summary> /// 配置文本 /// </summary> private void ConfigText(TagBuilder builder) { if (_config.Contains(UiConst.Text)) { builder.SetContent(_config.GetValue(UiConst.Text)); } }
/// <summary> /// 配置文本 /// </summary> private void ConfigText(TagBuilder builder) { if (_config.Contains(UiConst.Text)) { builder.SetContent(_config.GetValue(UiConst.Text)); } if (_config.Contains(AngularConst.BindText)) { builder.SetContent($"{{{{{_config.GetValue( AngularConst.BindText )}}}}}"); } }
/// <summary> /// 配置标识 /// </summary> private void ConfigId(TagBuilder builder) { if (_config.Contains(UiConst.Id)) { builder.AddAttribute($"#{_config.GetValue( UiConst.Id )}", "", false); } }