fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
658 B

import { Decorators , Widget, RouterView, Router } from '@fui/core';
@Decorators.shortcut()
export class Center extends Widget {
static xtype = 'demo.center';
props = { baseCls: 'demo-center' };
render() {
const self = this;
return {
type: RouterView.xtype,
};
}
}
@Decorators.shortcut()
export class RouterDemo extends Widget {
static xtype = 'demo.router';
props = {
baseCls: 'demo-router',
};
render() {
const params = Router.$router.history.current.params;
return {
type: params.componentId,
};
}
}