Exemplo n.º 1
0
 /// <summary>
 /// 配置文本
 /// </summary>
 private void ConfigText(TagBuilder builder)
 {
     if (_config.Contains(UiConst.Text))
     {
         builder.SetContent(_config.GetValue(UiConst.Text));
     }
 }
Exemplo n.º 2
0
 /// <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 )}}}}}");
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 配置标识
 /// </summary>
 private void ConfigId(TagBuilder builder)
 {
     if (_config.Contains(UiConst.Id))
     {
         builder.AddAttribute($"#{_config.GetValue( UiConst.Id )}", "", false);
     }
 }