Browse Source

补充routerView类型

es6
jian 1 year ago
parent
commit
b0c7b59eee
  1. 3
      package.json
  2. 4
      packages/fineui/typescript/router/router.ts

3
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",

4
packages/fineui/typescript/router/router.ts

@ -1,3 +1,5 @@
import { Widget } from '../core/widget';
type Component = any
type Dictionary<T> = { [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;
}

Loading…
Cancel
Save