diff --git a/apps/showcase/components/doc/DocPTViewer.vue b/apps/showcase/components/doc/DocPTViewer.vue new file mode 100644 index 000000000..71ca2a132 --- /dev/null +++ b/apps/showcase/components/doc/DocPTViewer.vue @@ -0,0 +1,55 @@ + + + + + + + + + + {{ item.label }} + {{ item.label }} element of {{ doc.key }} component + + + + + + + + diff --git a/apps/showcase/components/doc/helpers/index.js b/apps/showcase/components/doc/helpers/index.js index 72e23026e..7a58201e3 100644 --- a/apps/showcase/components/doc/helpers/index.js +++ b/apps/showcase/components/doc/helpers/index.js @@ -19,12 +19,14 @@ export const getPTOptions = (name) => { objToReplace.type = prop.type; } - data.push({ - value: i + 1, - label: prop.name, - options: hasSubComp ? subOptions?.props : options?.props, - description: prop.description - }); + if (!prop.deprecated) { + data.push({ + value: i + 1, + label: prop.name, + options: hasSubComp ? subOptions?.props : options?.props, + description: prop.description + }); + } } else { data.push({ value: i + 1,