mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
parent updates for .d.ts files and apidoc
This commit is contained in:
parent
da84f55507
commit
8eea973282
30 changed files with 1171 additions and 393 deletions
|
@ -7,10 +7,21 @@ export const getPTOption = (name) => {
|
|||
|
||||
for (const [i, prop] of props.entries()) {
|
||||
if (options) {
|
||||
let subCompName, subOptions;
|
||||
let hasSubComp = prop.name !== 'hooks' && prop.type.indexOf('TransitionType') === -1 && prop.type.indexOf('<') > -1 && name.toLowerCase() !== prop.type.slice(0, prop.type.indexOf('<')).toLowerCase();
|
||||
|
||||
if (hasSubComp) {
|
||||
subCompName = prop.type.slice(0, prop.type.indexOf('<')).replace('PassThroughOptions', '').replace('PassThroughOptionType', '');
|
||||
subOptions = APIDocs[subCompName.toLowerCase()].interfaces.values[`${subCompName}PassThroughMethodOptions`];
|
||||
const objToReplace = subOptions.props.find((opt) => opt.name === 'parent');
|
||||
|
||||
objToReplace.type = prop.type;
|
||||
}
|
||||
|
||||
data.push({
|
||||
value: i + 1,
|
||||
label: prop.name,
|
||||
options: options?.props,
|
||||
options: hasSubComp ? subOptions?.props : options?.props,
|
||||
description: prop.description
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue