Skip to content

Commit

Permalink
Merge pull request #171 from rei/v15-docgen-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjag authored Jan 4, 2024
2 parents 8e06895 + bd5e79e commit 3c17159
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docgen.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ async function createDocgenObj(filePath, docgenObj) {
}
prop.defaultValue.value = trimApostrophes(prop.defaultValue.value);
}
if (prop.tags && prop.tags.values && prop.tags.values[0].description) {
prop.values = prop.tags.values[0].description.split(',').map((value)=>{
return value.trim();
});
delete prop.tags.values;
}
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/lead/CdrLead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface leadProps {
/**
* Sets the orientation of the background surface
* @demoSelectMultiple false
* @values 'top', 'bottom'
* @values top, bottom
*/
surface?: 'top' | 'bottom'
}
Expand Down
3 changes: 2 additions & 1 deletion src/types/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export interface baseImageProps {
sizes?: string,
/**
* Aspect ratio of the image, passes to the CSS aspect-ratio property.
* @demoSelectMultiple false
* @demoTextField true
* @demoPlaceholderText Example: '16-9'
*/
ratio?: string,
/**
Expand Down

0 comments on commit 3c17159

Please sign in to comment.