UNPKG

elmer-ui-core

Version:

web app framework

67 lines (66 loc) 2.81 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Page404 = void 0; var Component_1 = require("../../core/Component"); var inject_1 = require("../../inject"); var propsValidation_1 = require("../../propsValidation"); require("./styles/index.less"); var Page404 = (function (_super) { __extends(Page404, _super); function Page404(props) { var _this = _super.call(this, props) || this; _this.title = props.title; return _this; } Page404.prototype.handleOnClick = function () { this.redirect("", { page: "hahah", state: "region" }); }; Page404.prototype.$dispose = function () { document.title = this.title; }; Page404.prototype.render = function () { return require("./views/index.html"); }; Page404.propType = { title: { defaultValue: "页面不存在", description: "页面标题", rule: propsValidation_1.propTypes.string.isRequired } }; Page404 = __decorate([ inject_1.declareComponent({ selector: "404" }), __metadata("design:paramtypes", [Object]) ], Page404); return Page404; }(Component_1.Component)); exports.Page404 = Page404;