-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cf0b2d
commit 4151d11
Showing
2 changed files
with
114 additions
and
1 deletion.
There are no files selected for viewing
112 changes: 112 additions & 0 deletions
112
packages/yunti-ui-lowcode-materials/lowcode/breadcrumb/meta.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; | ||
|
||
import { getMeta } from '../utils'; | ||
|
||
const BreadcrumbMeta: IPublicTypeComponentMetadata = getMeta('Breadcrumb', { | ||
title: '面包屑', | ||
group: '组件', | ||
category: '基础组件', | ||
|
||
configure: { | ||
props: [ | ||
{ | ||
name: 'items', | ||
title: '列表项', | ||
setter: { | ||
componentName: 'ArraySetter', | ||
props: { | ||
itemSetter: { | ||
componentName: 'ObjectSetter', | ||
props: { | ||
config: { | ||
items: [ | ||
{ | ||
name: 'title', | ||
title: '标题', | ||
initialValue: 'Home', | ||
propType: { | ||
type: 'oneOfType', | ||
value: ['node', 'string'], | ||
}, | ||
setter: ['StringSetter', 'SlotSetter', 'VariableSetter', 'I18nSetter'], | ||
}, | ||
{ | ||
name: 'href', | ||
title: '跳转', | ||
initialValue: '/', | ||
propType: { | ||
type: 'oneOfType', | ||
value: ['string'], | ||
}, | ||
setter: ['StringSetter', 'VariableSetter'], | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: 'separator', | ||
title: { | ||
label: '分隔符', | ||
tip: '要显示的分隔符', | ||
}, | ||
initialValue: '/', | ||
propType: { | ||
type: 'oneOfType', | ||
value: ['node', 'string'], | ||
}, | ||
setter: ['StringSetter', 'SlotSetter', 'VariableSetter'], | ||
}, | ||
{ | ||
name: 'rootClassName', | ||
title: { label: '类名' }, | ||
setter: ['StringSetter', 'VariableSetter'], | ||
}, | ||
], | ||
component: { | ||
isContainer: true, | ||
}, | ||
supports: { | ||
style: true, | ||
loop: true, | ||
condition: true, | ||
events: [], | ||
}, | ||
advanced: {}, | ||
}, | ||
}); | ||
const snippets: IPublicTypeSnippet[] = [ | ||
{ | ||
title: '面包屑', | ||
schema: { | ||
componentName: 'Breadcrumb', | ||
props: { | ||
__component_name: 'Breadcrumb', | ||
items: [ | ||
{ | ||
title: 'Home', | ||
}, | ||
{ | ||
title: 'Application Center', | ||
}, | ||
{ | ||
title: 'Application List', | ||
}, | ||
{ | ||
title: 'An Application', | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
const meta = { | ||
...BreadcrumbMeta, | ||
snippets, | ||
}; | ||
|
||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters