Browse Source

补充routerView类型

es6
jian 2 years 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:demo": "pnpm --dir packages/demo dev",
"dev:fineui": "pnpm --dir packages/fineui dev", "dev:fineui": "pnpm --dir packages/fineui dev",
"build": "pnpm --dir packages/fineui build", "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": { "devDependencies": {
"@babel/cli": "^7.21.0", "@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 Component = any
type Dictionary<T> = { [key: string]: T } type Dictionary<T> = { [key: string]: T }
type ErrorHandler = (err: Error) => void type ErrorHandler = (err: Error) => void
@ -244,6 +246,6 @@ export declare class RouterWidget {
static xtype: string; static xtype: string;
} }
export declare class RouterView { export declare class RouterView extends Widget {
static xtype: string; static xtype: string;
} }

Loading…
Cancel
Save