diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss
index 31412df80..d558d1447 100644
--- a/assets/styles/layout/_doc.scss
+++ b/assets/styles/layout/_doc.scss
@@ -275,6 +275,14 @@
text-decoration: underline;
}
}
+
+ .doc-option-type-options-container {
+ display: flex;
+ align-items: center;
+ }
+ span.doc-option-type-options {
+ color: var(--primary-700);
+ }
}
&.doc-option-default {
@@ -289,7 +297,7 @@
}
.doc-option-name,
- > i {
+ > i:not(.pi) {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, Liberation Mono, monospace;
position: relative;
scroll-margin-top: 6.5rem;
diff --git a/components/doc/DocApiTable.vue b/components/doc/DocApiTable.vue
index 5d7875f2c..3815fa9ca 100644
--- a/components/doc/DocApiTable.vue
+++ b/components/doc/DocApiTable.vue
@@ -19,7 +19,7 @@
-
+ |
{{ v
@@ -34,6 +34,14 @@
+
+
+
+ {{ val.name }}: {{ val.type }}
+
+
+
+
{{ v.name }} :
diff --git a/components/doc/helpers/PTHelper.js b/components/doc/helpers/PTHelper.js
index 6a342f498..76675d28f 100644
--- a/components/doc/helpers/PTHelper.js
+++ b/components/doc/helpers/PTHelper.js
@@ -2,14 +2,24 @@ import APIDocs from '@/doc/common/apidoc/index.json';
export const getPTOption = (name) => {
const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`] || APIDocs[name.toLowerCase()].interfaces.values[`${name}DirectivePassThroughOptions`];
+ const options = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughMethodOptions`];
let data = [];
for (const [i, prop] of props.entries()) {
- data.push({
- value: i + 1,
- label: prop.name,
- description: prop.description
- });
+ if (options) {
+ data.push({
+ value: i + 1,
+ label: prop.name,
+ options: options?.props,
+ description: prop.description
+ });
+ } else {
+ data.push({
+ value: i + 1,
+ label: prop.name,
+ description: prop.description
+ });
+ }
}
return data;
|