fix
This commit is contained in:
parent
bdbef36d32
commit
a54f0a8c55
|
|
@ -6,3 +6,8 @@
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 30px 32px;
|
padding: 30px 32px;
|
||||||
}
|
}
|
||||||
|
.formContainer {
|
||||||
|
padding-top: 32px;
|
||||||
|
width: 676px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
@ -13,7 +13,7 @@ function render() {
|
||||||
var relationArr2 = typeof relations === 'object'
|
var relationArr2 = typeof relations === 'object'
|
||||||
? relations
|
? relations
|
||||||
: relations && JSON.parse(relations);
|
: relations && JSON.parse(relations);
|
||||||
return ((0, jsx_runtime_1.jsx)(pageHeader_1.default, tslib_1.__assign({ showBack: true, title: "\u6DFB\u52A0\u6743\u9650" }, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Row, tslib_1.__assign({ gutter: 16 }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ span: 8 }, { children: (0, jsx_runtime_1.jsxs)(tdesign_react_1.Form, tslib_1.__assign({ colon: false, labelAlign: "right", labelWidth: "100px", layout: "vertical", preventSubmitDefault: true, resetType: "empty", showErrorMessage: true, submitWithWarningMessage: false }, { children: [(0, jsx_runtime_1.jsx)(FormItem, tslib_1.__assign({ label: "\u59D3\u540D", name: "name", rules: [
|
return ((0, jsx_runtime_1.jsx)(pageHeader_1.default, tslib_1.__assign({ showBack: true, title: "\u6DFB\u52A0\u6743\u9650" }, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.container }, { children: (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ className: web_module_less_1.default.formContainer }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Row, tslib_1.__assign({ gutter: 16 }, { children: (0, jsx_runtime_1.jsx)(tdesign_react_1.Col, tslib_1.__assign({ span: 8 }, { children: (0, jsx_runtime_1.jsxs)(tdesign_react_1.Form, tslib_1.__assign({ colon: false, labelAlign: "right", labelWidth: "100px", layout: "vertical", preventSubmitDefault: true, resetType: "empty", showErrorMessage: true, submitWithWarningMessage: false }, { children: [(0, jsx_runtime_1.jsx)(FormItem, tslib_1.__assign({ label: "\u59D3\u540D", name: "name", rules: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: '姓名不能为空',
|
message: '姓名不能为空',
|
||||||
|
|
@ -62,6 +62,6 @@ function render() {
|
||||||
ele,
|
ele,
|
||||||
}); }) }) })), (0, jsx_runtime_1.jsxs)(FormItem, tslib_1.__assign({ style: { marginLeft: 100 } }, { children: [(0, jsx_runtime_1.jsx)(tdesign_react_1.Button, tslib_1.__assign({ theme: "primary", type: "submit", style: { marginRight: 10 }, onClick: function () {
|
}); }) }) })), (0, jsx_runtime_1.jsxs)(FormItem, tslib_1.__assign({ style: { marginLeft: 100 } }, { children: [(0, jsx_runtime_1.jsx)(tdesign_react_1.Button, tslib_1.__assign({ theme: "primary", type: "submit", style: { marginRight: 10 }, onClick: function () {
|
||||||
_this.onConfirm();
|
_this.onConfirm();
|
||||||
} }, { children: "\u63D0\u4EA4" })), (0, jsx_runtime_1.jsx)(tdesign_react_1.Button, tslib_1.__assign({ theme: "default", type: "reset" }, { children: "\u91CD\u7F6E" }))] }))] })) })) })) })) })));
|
} }, { children: "\u63D0\u4EA4" })), (0, jsx_runtime_1.jsx)(tdesign_react_1.Button, tslib_1.__assign({ theme: "default", type: "reset" }, { children: "\u91CD\u7F6E" }))] }))] })) })) })) })) })) })));
|
||||||
}
|
}
|
||||||
exports.default = render;
|
exports.default = render;
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,8 @@
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 30px 32px;
|
padding: 30px 32px;
|
||||||
}
|
}
|
||||||
|
.formContainer {
|
||||||
|
padding-top: 32px;
|
||||||
|
width: 676px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
@ -21,6 +21,7 @@ export default function render(this: any) {
|
||||||
return (
|
return (
|
||||||
<PageHeader showBack={true} title="添加权限">
|
<PageHeader showBack={true} title="添加权限">
|
||||||
<div className={Style.container}>
|
<div className={Style.container}>
|
||||||
|
<div className={Style.formContainer}>
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Form
|
<Form
|
||||||
|
|
@ -158,6 +159,7 @@ export default function render(this: any) {
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</PageHeader>
|
</PageHeader>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue