Skip to content

Commit

Permalink
feat: field without value doc (nocobase#98)
Browse files Browse the repository at this point in the history
* fix: field

* fix: bug
  • Loading branch information
dream2023 authored Jun 17, 2024
1 parent 1db8a54 commit 1761910
Show file tree
Hide file tree
Showing 10 changed files with 1,548 additions and 38 deletions.
34 changes: 17 additions & 17 deletions docs/config/pluginSamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,21 +213,21 @@ export default [
},
]
},
// {
// title: 'Field',
// 'title.zh-CN': ' 字段',
// type: 'group',
// children: [
// {
// title: 'Overview',
// 'title.zh-CN': '概述',
// link: '/plugin-samples/field',
// },
// {
// title: 'Extra Field',
// 'title.zh-CN': '新增附加字段',
// link: '/plugin-samples/field/extra-field',
// },
// ]
// }
{
title: 'Field',
'title.zh-CN': ' 字段',
type: 'group',
children: [
{
title: 'Overview',
'title.zh-CN': '概述',
link: '/plugin-samples/field',
},
{
title: 'Without Value Field',
'title.zh-CN': '无值字段组件',
link: '/plugin-samples/field/without-value',
},
]
}
];
8 changes: 4 additions & 4 deletions docs/en-US/plugin-samples/block/block-carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,16 @@ export class PluginBlockCarouselClient extends Plugin {
const images = [{ url: 'https://picsum.photos/id/1/1200/300' }, { url: 'https://picsum.photos/id/2/1200/300' }];
return <>
<div style={{ marginTop: 20, marginBottom: 20 }}>
<SchemaComponent schema={{ properties: { test: carouselSchema } }} />
<SchemaComponent schema={{ properties: { test1: carouselSchema } }} />
</div>
<div style={{ marginTop: 20, marginBottom: 20 }}>
<SchemaComponent schema={{ properties: { test: { ...carouselSchema, 'x-decorator-props': { carousel: { images, height: 100 } } } } }} />
<SchemaComponent schema={{ properties: { test2: { ...carouselSchema, 'x-decorator-props': { carousel: { images, height: 100 } } } } }} />
</div>
<div style={{ marginTop: 20, marginBottom: 20 }}>
<SchemaComponent schema={{ properties: { test: { ...carouselSchema, 'x-decorator-props': { carousel: { images, objectFit: 'contain' } } } } }} />
<SchemaComponent schema={{ properties: { test3: { ...carouselSchema, 'x-decorator-props': { carousel: { images, objectFit: 'contain' } } } } }} />
</div>
<div style={{ marginTop: 20, marginBottom: 20 }}>
<SchemaComponent schema={{ properties: { test: { ...carouselSchema, 'x-decorator-props': { carousel: { images, autoplay: true } } } } }} />
<SchemaComponent schema={{ properties: { test4: { ...carouselSchema, 'x-decorator-props': { carousel: { images, autoplay: true } } } } }} />
</div>
</>
}
Expand Down
1 change: 1 addition & 0 deletions docs/en-US/plugin-samples/field/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 字段
Loading

0 comments on commit 1761910

Please sign in to comment.