import { Connect } from "dob-react" import * as React from "react" import * as ReactDOM from "react-dom"; import Icon from "../../components/icon/src" import { Input } from "../../components/input/src" import { Select } from "../../components/select/src" import { TabPanel, Tabs } from "../../components/tabs/src" import * as Styled from "./index.style" import { Props, State } from "./index.type" @Connect class PageAddPage extends React.Component { public static defaultProps = new Props() public state = new State() private pageInfo: IPage = null public render() { this.pageInfo = this.props.stores.ApplicationStore.currentEditPage if (!this.pageInfo) { return } const folderSelectOptions = this.props.stores.ApplicationStore.pageFolderList .filter(pageKey => pageKey !== this.props.stores.ApplicationStore.currentEditPageKey) .map(pageKey => { const folderInfo = this.props.stores.ApplicationStore.pages.get(pageKey) return { key: pageKey, value: folderInfo.name || "未命名" } }) return ( {this.props.stores.ApplicationStore.currentCreatedPageKey ? "添加页面" : "编辑页面"} {this.props.stores.ApplicationStore.currentCreatedPageKey !== this.props.stores.ApplicationStore.currentEditPageKey && !this.pageInfo.isHomePage && this.props.stores.ApplicationStore.currentViewportPageKey !== this.props.stores.ApplicationStore.currentEditPageKey && < Styled.RemoveButtonContainer onClick={this.handleRemove}> } 名称 路径名 页面路径:/{this.props.stores.ApplicationStore.currentEditPageRealPath} {!this.pageInfo.isHomePage && [ 父级文件夹,