14 lines
971 B
JavaScript
14 lines
971 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
import { Button, } from 'antd';
|
|
import PageHeader from '../../../components/common/pageHeader';
|
|
import Style from './web.module.less';
|
|
export default function Render(props) {
|
|
const { data, methods } = props;
|
|
const { title, content, router } = data;
|
|
const { t, goPage } = methods;
|
|
const pathname = router?.pathname;
|
|
return (_jsx(PageHeader, { title: "\u6D88\u606F\u8BE6\u60C5", showBack: true, children: _jsx("div", { className: Style.container, children: _jsx("div", { className: Style.warp, children: _jsxs("div", { className: Style.inner, children: [_jsx("h1", { className: Style.title, children: title }), _jsx("div", { className: Style.content, children: content }), pathname && (_jsx(Button, { className: Style.btn, block: true, type: "primary", onClick: () => {
|
|
goPage();
|
|
}, children: "\u524D\u5F80" }))] }) }) }) }));
|
|
}
|