pull/3815/head
mertsincan 2023-03-27 12:00:57 +01:00
commit 46a1fb270f
4 changed files with 12 additions and 7 deletions

View File

@ -227,7 +227,8 @@ if (project) {
}; };
}), }),
returnType: signature.type.toString(), 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, readonly: prop.flags.isReadonly,
type: prop.type.toString(), type: prop.type.toString(),
default: prop.comment && prop.comment.getTag('@defaultValue') ? prop.comment.getTag('@defaultValue').content[0].text : '', // TODO: Check 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(), 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
}); });
}); });
} }

View File

@ -637,7 +637,7 @@ export default {
updated() { updated() {
if (this.overlay) { if (this.overlay) {
this.preventFocus = true; this.preventFocus = true;
this.updateFocus(); setTimeout(this.updateFocus, 0);
} }
if (this.input && this.selectionStart != null && this.selectionEnd != null) { if (this.input && this.selectionStart != null && this.selectionEnd != null) {

View File

@ -180,7 +180,8 @@ export default {
type: emit.parameters[0]?.type type: emit.parameters[0]?.type
}, },
returnType: emit.returnType, returnType: emit.returnType,
description: emit.description description: emit.description,
deprecated: emit.deprecated
}); });
} }
@ -194,7 +195,8 @@ export default {
name: prop.name, name: prop.name,
type: prop.type, type: prop.type,
default: prop.default, default: prop.default,
description: prop.description description: prop.description,
deprecated: prop.deprecated
}); });
} }

View File

@ -21,7 +21,7 @@
<tr v-for="prop in data" :key="prop"> <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' }"> <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'"> <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 {{ v
}}<NuxtLink :to="`/${$router.currentRoute.value.name}/#${id}.${v}`" class="doc-option-link"> }}<NuxtLink :to="`/${$router.currentRoute.value.name}/#${id}.${v}`" class="doc-option-link">
<i class="pi pi-link"></i> <i class="pi pi-link"></i>