var { h } = require("fastman/coreman"); import { View, IView } from "fastman/view"; import { IComponentProps, IModel } from "../types"; export default class Main extends View implements IView { render( model: IModel & import("fastman/bootstrap").IBaseModelType, actions: import("fastman/bootstrap").IAction & import("fastman/bootstrap").IEffect & import("fastman/bootstrap").IMutation & import("1383389186").IEffect & import("1383389186").IMutation ) { return (

Hello {model.name} !

{/* 开发者还可以在此处定义一个子组件 */} {/* */}
); } } // /** // * 这是一个子组件的声明方式 // */ // export class ChildComponent { // public constructor(private props: IComponentProps, private children: any) {} // public render() { // return ( //
// {/* 由于actions和model在props作用域中被定义为可选属性(?:),因此如果开发者很明确已经在主组件将它们传递给子组件,则可以使用!来调用,否则将无法有代码提示效果 */} // //
// ); // } // }