Skip to content

Commit

Permalink
feat(react): support source icons
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 24, 2021
1 parent e221142 commit 1023ae8
Show file tree
Hide file tree
Showing 5 changed files with 2,334 additions and 7 deletions.
2 changes: 2 additions & 0 deletions packages/playground/src/main.tsx
Expand Up @@ -39,6 +39,7 @@ GlobalRegistry.registerDesignerProps({
title: `components.${node.props['x-component']}`,
draggable: true,
inlineLayout: true,
sourceIcon: 'InputSource',
propsSchema: {
type: 'object',
$namespace: 'Field',
Expand Down Expand Up @@ -115,6 +116,7 @@ GlobalRegistry.registerDesignerProps({
Card: {
title: 'components.Card',
droppable: true,
sourceIcon: 'CardSource',
inlineChildrenLayout: true,
// allowAppend: (target, sources) =>
// sources.every((node) => node.componentName === 'Field'),
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/icons/index.ts
Expand Up @@ -48,3 +48,4 @@ export * from './history'
export * from './play'
export * from './add'
export * from './help'
export * from './sources'

0 comments on commit 1023ae8

Please sign in to comment.