Skip to content

Commit

Permalink
docs: typo (#1838)
Browse files Browse the repository at this point in the history
Co-authored-by: cipchk <[email protected]>
  • Loading branch information
cipchk and mo-gong authored Oct 4, 2024
1 parent 6477587 commit 4519194
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
21 changes: 13 additions & 8 deletions packages/form/src/widgets/array/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ Array layout is divided into array itself and array element layout, `arraySpan`
UI embed in Schema:

```ts
const schema = {
list: {
type: 'array',
items: {
a: { type: 'string' },
b: { type: 'number', ui: { spanLabel: 10 } }
},
ui: { spanLabel: 5, grid: { arraySpan: 12 } }
const schema: SFSchema = {
properties: {
list: {
type: 'array',
items: {
type: 'object',
properties: {
a: { type: 'string' },
b: { type: 'number', ui: { spanLabel: 10 } }
}
},
ui: { spanLabel: 5, grid: { arraySpan: 12 } }
}
}
};
```
Expand Down
21 changes: 13 additions & 8 deletions packages/form/src/widgets/array/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ order: 2
Schema 内嵌 UI 风格:

```ts
const schema = {
list: {
type: 'array',
items: {
a: { type: 'string' },
b: { type: 'number', ui: { spanLabel: 10 } }
},
ui: { spanLabel: 5, grid: { arraySpan: 12 } }
const schema: SFSchema = {
properties: {
list: {
type: 'array',
items: {
type: 'object',
properties: {
a: { type: 'string' },
b: { type: 'number', ui: { spanLabel: 10 } }
}
},
ui: { spanLabel: 5, grid: { arraySpan: 12 } }
}
}
};
```
Expand Down

0 comments on commit 4519194

Please sign in to comment.