diff --git a/template/web/src/App.tsx b/template/web/src/App.tsx index 38eaec4..eac1abc 100644 --- a/template/web/src/App.tsx +++ b/template/web/src/App.tsx @@ -6,7 +6,9 @@ import Loading from './components/Loading'; const Console = React.lazy(() => import('./components/console')); const Frontend = React.lazy(() => import('./components/frontend')); const NotFound = React.lazy(() => import('./components/notFound')); +//@ts-ignore const Message = React.lazy(() => import('@oak-general-business/components/message')); +//@ts-ignore const DebugPanel = React.lazy(() => import('@oak-general-business/components/func/debugPanel')); type Router = { diff --git a/template/web/src/react-app-env.d.ts b/template/web/src/react-app-env.d.ts index 0eefb14..2862257 100644 --- a/template/web/src/react-app-env.d.ts +++ b/template/web/src/react-app-env.d.ts @@ -6,3 +6,11 @@ declare module '*.module.less' { }; export default classes; } + +declare namespace JSX { + interface IntrinsicAttributes { + ['oak:path']?: string; + ['oak:value']?: string; + ['oak:attr']?: string; + } +}