19 lines
1008 B
JavaScript
19 lines
1008 B
JavaScript
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
import { Input, Modal } from 'antd';
|
|
export default function Render(props) {
|
|
const { methods, data, } = props;
|
|
const { t, } = methods;
|
|
const { oakFullpath, oakId, name, openStation, onClose, subwayId, } = data;
|
|
return (_jsx("div", { children: _jsx(Modal, { title: oakId ? '编辑站点' : '新增站点', open: openStation, destroyOnClose: true, okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88", onOk: async () => {
|
|
// if (!subwayId) {
|
|
// methods.update({ subwayId, });
|
|
// }
|
|
methods.execute();
|
|
onClose();
|
|
}, onCancel: () => {
|
|
onClose();
|
|
}, children: _jsx(_Fragment, { children: _jsx(Input, { placeholder: "\u8BF7\u8F93\u5165\u7AD9\u70B9\u540D\u79F0", value: name, onChange: ({ target: { value } }) => {
|
|
methods.update({ name: value });
|
|
} }) }) }) }));
|
|
}
|