diff --git a/api-generator/build-apidoc.js b/api-generator/build-apidoc.js index ca1d5f8b4..e5ce7c4ef 100644 --- a/api-generator/build-apidoc.js +++ b/api-generator/build-apidoc.js @@ -385,14 +385,14 @@ if (project) { child.type?.declaration?.signatures[0]?.parameters.map((param, index) => { if (index !== 0) functionParameters += `, `; - functionParameters += `${param.name}: ${param.type?.name}`; + functionParameters += `${param.name}: ${param.type?.name}`; }); - type += `\t ${child.name}: (${functionParameters}) ⇒ ${child.type?.declaration?.signatures[0]?.type?.name}, // ${child.type?.declaration?.signatures[0]?.comment.summary[0]?.text}\n`; + type += `\t ${child.name}: (${functionParameters}) ⇒ ${child.type?.declaration?.signatures[0]?.type?.name}, // ${child.type?.declaration?.signatures[0]?.comment.summary[0]?.text}\n`; } else { const childType = child.type.elementType ? child.type.elementType.name : child.type.name; - type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `; + type += ` \t ${child.name}: ${childType}, // ${child.comment?.summary[0]?.text}\n `; } } }); diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss index 0627b3521..2f980cfe0 100644 --- a/assets/styles/layout/_doc.scss +++ b/assets/styles/layout/_doc.scss @@ -276,6 +276,7 @@ &.doc-option-type { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, Liberation Mono, monospace; color: var(--primary-500); + font-weight: 500; > a { color: var(--primary-500); @@ -294,11 +295,6 @@ } } - &.doc-option-default { - font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, Liberation Mono, monospace; - color: var(--primary-color); - } - &:first-child { color: var(--primary-color); font-weight: 700; @@ -307,7 +303,7 @@ .doc-option-name, > i:not(.pi) { - font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, Liberation Mono, monospace; + font-family: Inter, sans-serif;; position: relative; scroll-margin-top: 6.5rem; background-color: var(--highlight-bg); @@ -328,6 +324,16 @@ } } + .doc-option-props { + display: flex; + background: var(--bluegray-50); + border-width: 1px; + border-style: solid; + border-radius: 6px; + padding: 2px 6px; + max-width: min-content; + } + &:hover { .doc-option-name { .doc-option-link { @@ -339,10 +345,6 @@ } } } - - .doc-option-link { - color: var(--primary-color); - } } } } diff --git a/components/doc/DocApiTable.vue b/components/doc/DocApiTable.vue index bbd19a608..83d289af1 100644 --- a/components/doc/DocApiTable.vue +++ b/components/doc/DocApiTable.vue @@ -19,17 +19,20 @@