Exemple #1
0
 /// <summary>
 /// 配置循环变量
 /// </summary>
 private void ConfigVariable(RowBuilder builder)
 {
     if (_tableId.IsEmpty())
     {
         return;
     }
     builder.NgFor($"let row of {_tableId}.data");
 }
Exemple #2
0
        /// <summary>
        /// 添加内容
        /// </summary>
        protected virtual void AddBody(TableBodyBuilder tableBodyBuilder)
        {
            var rowBuilder = new RowBuilder();

            rowBuilder.NgFor($"let row of {_config.Id}.data");
            AddEditRow(rowBuilder);
            AddRowEvents(rowBuilder);
            rowBuilder.AppendContent(_config.Content);
            tableBodyBuilder.AppendContent(rowBuilder);
        }