From 9740477bc3cf84fc46c76d2a24abf924e2982b0d Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Sat, 20 Aug 2022 13:57:55 +0800 Subject: [PATCH] =?UTF-8?q?oak:path=20=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/web/src/App.tsx | 2 ++ template/web/src/react-app-env.d.ts | 8 ++++++++ 2 files changed, 10 insertions(+) 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; + } +}