wip fix
This commit is contained in:
parent
78131ad081
commit
e257f95838
|
|
@ -80,7 +80,7 @@ effect={async (local) => {
|
||||||
`\
|
`\
|
||||||
<>{true && <div {...props}>{children}</div>}</>
|
<>{true && <div {...props}>{children}</div>}</>
|
||||||
`,
|
`,
|
||||||
false
|
true
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -104,7 +104,7 @@ true ? (
|
||||||
}
|
}
|
||||||
</>
|
</>
|
||||||
`,
|
`,
|
||||||
false
|
true
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
import trim from "lodash.trim";
|
import trim from "lodash.trim";
|
||||||
import { isValidElement } from "react";
|
import { isValidElement } from "react";
|
||||||
|
|
||||||
export const extractProp = (prop: {
|
export const extractProp = (prop: { values: Record<string, any> }) => {
|
||||||
values: Record<string, any>;
|
|
||||||
types: Record<string, string>;
|
|
||||||
}) => {
|
|
||||||
const propTypes: string[] = [];
|
const propTypes: string[] = [];
|
||||||
const props: Record<string, { val?: any; type?: string }> = {};
|
const props: Record<string, { val?: any; type?: string }> = {};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue