diff --git a/api-generator/build-apidoc.js b/api-generator/build-apidoc.js index ecbc066b7..00d5490d4 100644 --- a/api-generator/build-apidoc.js +++ b/api-generator/build-apidoc.js @@ -352,7 +352,17 @@ 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) => { + if (s.text.indexOf('[here]') > -1) { + return `${s.text.slice(0, s.text.indexOf('[here]'))} here ${s.text.slice(s.text.indexOf(')') + 1)}`; + } + + return s.text || ''; + }) + .join(' '), deprecated: prop.comment && prop.comment.getTag('@deprecated') ? parseText(prop.comment.getTag('@deprecated').content[0].text) : undefined }); }); diff --git a/components/doc/DocApiTable.vue b/components/doc/DocApiTable.vue index b1a2246b0..f67f62a6c 100644 --- a/components/doc/DocApiTable.vue +++ b/components/doc/DocApiTable.vue @@ -59,7 +59,10 @@ {{ v }} - {{ v }} +