fix item prop
This commit is contained in:
parent
e9907507a8
commit
7217e43b33
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -2,4 +2,5 @@ import { IMeta } from "../../utils/types";
|
|||
|
||||
export const devItem = (meta: IMeta) => {
|
||||
console.log(meta);
|
||||
return meta.item;
|
||||
}
|
||||
|
|
@ -61,7 +61,7 @@ export const viEvalScript = (
|
|||
PassProp: script?.PassProp,
|
||||
ErrorBox: ErrorBox,
|
||||
newElement: () => {},
|
||||
_item: meta.mitem ? devItem(meta) : undefined,
|
||||
_item: meta.mitem ? devItem(meta) : meta.item,
|
||||
render: (jsx: ReactNode) => {
|
||||
let result = jsx;
|
||||
if (isValidElement(jsx) && jsx.props.children) {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ export const baseTypings = `
|
|||
|
||||
const _item: undefined | PrasiItem;
|
||||
|
||||
const PassProp: FC<Record<string, any> & { children: React.ReactNode }>;
|
||||
const PassProp: FC<Record<string, any> & { children: RElement }>;
|
||||
const mobile: {
|
||||
notif: {
|
||||
register: (user_id: string) => void;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ export const monacoTypings = async (
|
|||
const prisma = prasi_api.prismaTypes;
|
||||
|
||||
if (prisma) {
|
||||
console.log(prisma);
|
||||
register(
|
||||
monaco,
|
||||
`\
|
||||
|
|
|
|||
Loading…
Reference in New Issue