From b0c7b59eee7ed2a5581de58ba906f65f7651fa01 Mon Sep 17 00:00:00 2001 From: jian Date: Thu, 15 Jun 2023 15:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85routerView=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- packages/fineui/typescript/router/router.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1878b8ae7..3235a2151 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "dev:demo": "pnpm --dir packages/demo dev", "dev:fineui": "pnpm --dir packages/fineui dev", "build": "pnpm --dir packages/fineui build", - "build:demo": "pnpm --dir packages/demo build" + "build:demo": "pnpm --dir packages/demo build", + "tsc": "pnpm --dir packages/fineui tsc" }, "devDependencies": { "@babel/cli": "^7.21.0", diff --git a/packages/fineui/typescript/router/router.ts b/packages/fineui/typescript/router/router.ts index 5db2af9ee..1ac76c266 100644 --- a/packages/fineui/typescript/router/router.ts +++ b/packages/fineui/typescript/router/router.ts @@ -1,3 +1,5 @@ +import { Widget } from '../core/widget'; + type Component = any type Dictionary = { [key: string]: T } type ErrorHandler = (err: Error) => void @@ -244,6 +246,6 @@ export declare class RouterWidget { static xtype: string; } -export declare class RouterView { +export declare class RouterView extends Widget { static xtype: string; }