Update PTHelper.js
parent
9727cc1515
commit
8e7a7be794
|
@ -1,7 +1,7 @@
|
||||||
import APIDocs from '@/doc/common/apidoc/index.json';
|
import APIDocs from '@/doc/common/apidoc/index.json';
|
||||||
|
|
||||||
export const getPTOption = (name) => {
|
export const getPTOption = (name) => {
|
||||||
const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`];
|
const { props } = APIDocs[name.toLowerCase()].interfaces.values[`${name}PassThroughOptions`] || APIDocs[name.toLowerCase()].interfaces.values[`${name}DirectivePassThroughOptions`];
|
||||||
let data = [];
|
let data = [];
|
||||||
|
|
||||||
for (const [i, prop] of props.entries()) {
|
for (const [i, prop] of props.entries()) {
|
||||||
|
|
Loading…
Reference in New Issue