Update doc components structure

This commit is contained in:
mertsincan 2023-04-01 03:36:59 +01:00
parent cf5dd67244
commit 036b90fc82
16 changed files with 18 additions and 14 deletions

View file

@ -0,0 +1,16 @@
import APIDocs from '@/doc/common/apidoc/index.json';
export const getPTOption = (name) => {
const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`];
let data = [];
for (const [i, prop] of props.entries()) {
data.push({
value: i + 1,
label: prop.name,
description: prop.description
});
}
return data;
};