-
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
5b165cc
commit 709f76c
Showing
4 changed files
with
398 additions
and
266 deletions.
There are no files selected for viewing
122 changes: 122 additions & 0 deletions
122
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,122 @@ | ||
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types'; | ||
|
||
import { COMMON_CONFIGURE_PROPS, getPriority } from '../utils'; | ||
|
||
const componentName = 'Breadcrumb'; | ||
const BreadcrumbMeta: IPublicTypeComponentMetadata = { | ||
componentName, | ||
category: '数据展示', | ||
title: '面包屑', | ||
priority: getPriority(componentName), | ||
devMode: 'proCode', | ||
npm: { | ||
package: '@yuntijs/ui-lowcode-materials', | ||
version: '{{version}}', | ||
exportName: componentName, | ||
destructuring: true, | ||
subName: '', | ||
}, | ||
configure: { | ||
props: [ | ||
...COMMON_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
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
Oops, something went wrong.