/// <summary> /// 配置循环变量 /// </summary> private void ConfigVariable(RowBuilder builder) { if (_tableId.IsEmpty()) { return; } builder.NgFor($"let row of {_tableId}.data"); }
/// <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); }