Skip to content

Commit

Permalink
Fix:
Browse files Browse the repository at this point in the history
    * create Component props add boolean handle function;
  • Loading branch information
grguang authored and zenjava committed Sep 12, 2019
1 parent cee1507 commit 3de04f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/devtools-conversion/src/createClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ export function handlePropsType(propsItem?: any): string {
if (type === 'object') {
return `{ ${JSON.stringify(propsItem)} }`;
}
if (type === 'boolean') {
return `{ ${propsItem} }`;
}
if (type === 'number') {
return `{ ${propsItem} }`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports[`conversion index -> Card Container 1`] = `
height: 102 + 'px', zIndex: '0',
left: 42 + 'px',
top: 71 + 'px' }}
><Theme config={{'wbPrZp41':themeHandle('wbPrZp41',undefined, {\\"Container\\":{\\"normal\\":{\\"height\\":102,\\"width\\":821}}},)}}><ConnectTable10 viewClass=\\"wbPrZp41\\" indentSize={ 15 } rowKey={ \`key\` } showHeader={'true'} /></Theme></div><div style={{position: 'absolute',width: 136 + 'px',
><Theme config={{'wbPrZp41':themeHandle('wbPrZp41',undefined, {\\"Container\\":{\\"normal\\":{\\"height\\":102,\\"width\\":821}}},)}}><ConnectTable10 viewClass=\\"wbPrZp41\\" indentSize={ 15 } rowKey={ \`key\` } showHeader={ true } /></Theme></div><div style={{position: 'absolute',width: 136 + 'px',
height: 28 + 'px', zIndex: '0',
left: 42 + 'px',
top: 430 + 'px' }}
Expand Down

0 comments on commit 3de04f8

Please sign in to comment.