Skip to content

Commit

Permalink
Merge pull request #87 from wangx036/main
Browse files Browse the repository at this point in the history
  • Loading branch information
shps951023 authored Oct 6, 2024
2 parents ad19bdd + fd00b32 commit 3428cbd
Show file tree
Hide file tree
Showing 2 changed files with 481 additions and 190 deletions.
33 changes: 33 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,39 @@ MiniWord.SaveAsByTemplate(path, templatePath, value);

![after_if](https://user-images.githubusercontent.com/38832863/220125435-72ea24b4-2412-45de-961a-ad4b2134417b.PNG)

### 循环

`@foreach``@endforeach` tags .

##### Example

```csharp
var value = new
{
LoopData = new List<object>()
{
new {
Type="类型A",
Items = new List<object>() {new {Name = "A-1"}, new {Name = "A-2"},}
},
new
{
Type="类型B",
Items = new List<object>() {new {Name = "B-1"}, new {Name = "B-2"}, new {Name = "B-3"},}
},
}
};
MiniWord.SaveAsByTemplate(path, templatePath, value);
```

##### Template

![1](https://github.com/user-attachments/assets/5d32241d-3977-46e7-b3de-cae130e5a653)

##### Result

![2](https://github.com/user-attachments/assets/69daa15e-4864-483e-b132-d8e867b6d1d1)

### 多彩字体

##### 代码例子
Expand Down
Loading

0 comments on commit 3428cbd

Please sign in to comment.