Completed #3808
parent
ad6b71074a
commit
8e2777565e
|
@ -227,7 +227,8 @@ if (project) {
|
|||
};
|
||||
}),
|
||||
returnType: signature.type.toString(),
|
||||
description: signature.comment && signature.comment.summary.map((s) => parseText(s.text || '')).join(' ')
|
||||
description: signature.comment && signature.comment.summary.map((s) => parseText(s.text || '')).join(' '),
|
||||
deprecated: signature.comment && signature.comment.getTag('@deprecated') ? parseText(signature.comment.getTag('@deprecated').content[0].text) : undefined
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -350,7 +351,8 @@ if (project) {
|
|||
readonly: prop.flags.isReadonly,
|
||||
type: prop.type.toString(),
|
||||
default: prop.comment && prop.comment.getTag('@defaultValue') ? prop.comment.getTag('@defaultValue').content[0].text : '', // TODO: Check
|
||||
description: prop.comment && prop.comment.summary.map((s) => s.text || '').join(' ')
|
||||
description: prop.comment && prop.comment.summary.map((s) => s.text || '').join(' '),
|
||||
deprecated: prop.comment && prop.comment.getTag('@deprecated') ? parseText(prop.comment.getTag('@deprecated').content[0].text) : undefined
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -395,7 +397,8 @@ if (project) {
|
|||
};
|
||||
}),
|
||||
returnType: signature.type.toString(),
|
||||
description: signature.comment && signature.comment.summary.map((s) => parseText(s.text || '')).join(' ')
|
||||
description: signature.comment && signature.comment.summary.map((s) => parseText(s.text || '')).join(' '),
|
||||
deprecated: signature.comment && signature.comment.getTag('@deprecated') ? parseText(signature.comment.getTag('@deprecated').content[0].text) : undefined
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -180,7 +180,8 @@ export default {
|
|||
type: emit.parameters[0]?.type
|
||||
},
|
||||
returnType: emit.returnType,
|
||||
description: emit.description
|
||||
description: emit.description,
|
||||
deprecated: emit.deprecated
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -194,7 +195,8 @@ export default {
|
|||
name: prop.name,
|
||||
type: prop.type,
|
||||
default: prop.default,
|
||||
description: prop.description
|
||||
description: prop.description,
|
||||
deprecated: prop.deprecated
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<tr v-for="prop in data" :key="prop">
|
||||
<td v-for="[k, v] in Object.entries(prop)" :key="k" :class="{ 'doc-option-type': k === 'type', 'doc-option-default': k === 'defaultValue' }">
|
||||
<template v-if="k !== 'readonly' && k !== 'optional' && k !== 'deprecated'">
|
||||
<span v-if="k === 'name'" :id="id + '.' + v" class="doc-option-name">
|
||||
<span v-if="k === 'name'" :id="id + '.' + v" class="doc-option-name" :class="{ 'line-through cursor-pointer': !!prop.deprecated }" :title="prop.deprecated">
|
||||
{{ v
|
||||
}}<NuxtLink :to="`/${$router.currentRoute.value.name}/#${id}.${v}`" class="doc-option-link">
|
||||
<i class="pi pi-link"></i>
|
||||
|
|
Loading…
Reference in New Issue