Skip to content

Commit e0dd546

Browse files
committed
修复xml多态数据的示例错误,使用type而不是__type__属性来标识多态类型
1 parent 645ea52 commit e0dd546

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/manual/otherdatasource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ return
116116
<x10>yf</x10>
117117
<x12> <x1>1</x1> </x12>
118118
<x13>C</x13>
119-
<x14 __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
119+
<x14 type="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
120120
<k1> <item>1</item> <item>2</item> </k1>
121121
<k2> <item>1</item> <item>2</item> </k2>
122122
<k8>
@@ -128,7 +128,7 @@ return
128128
<item> <y1>2</y1> <y2>false</y2> </item>
129129
</k9>
130130
<k15>
131-
<item __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
131+
<item type="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
132132
</k15>
133133
</data>
134134
```

i18n/en/docusaurus-plugin-content-docs/current/manual/otherdatasource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ return
116116
<x10>yf</x10>
117117
<x12> <x1>1</x1> </x12>
118118
<x13>C</x13>
119-
<x14 __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
119+
<x14 type="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
120120
<k1> <item>1</item> <item>2</item> </k1>
121121
<k2> <item>1</item> <item>2</item> </k2>
122122
<k8>
@@ -128,7 +128,7 @@ return
128128
<item> <y1>2</y1> <y2>false</y2> </item>
129129
</k9>
130130
<k15>
131-
<item __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
131+
<item type="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
132132
</k15>
133133
</data>
134134
```

versioned_docs/version-classic/manual/datasource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ return
120120
<x10>yf</x10>
121121
<x12> <x1>1</x1> </x12>
122122
<x13>C</x13>
123-
<x14 __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
123+
<x14 type="DemoD2"> <x1>1</x1> <x2>2</x2> </x14>
124124
<v2>1,2</v2>
125125
<v3>1.2,2.3,3.4</v3>
126126
<v4>1.2,2.2,3.2,4.3</v4>
@@ -136,7 +136,7 @@ return
136136
<item> <y1>2</y1> <y2>false</y2> </item>
137137
</k9>
138138
<k15>
139-
<item __type__="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
139+
<item type="DemoD2"> <x1>1</x1> <x2>2</x2> </item>
140140
</k15>
141141
</data>
142142
```

0 commit comments

Comments
 (0)