Add label and placeholder to app's signup table

This commit is contained in:
Yang Luo
2023-10-15 17:24:38 +08:00
parent 2ee4aebd96
commit f3d4b45a0f
3 changed files with 60 additions and 31 deletions

View File

@ -14,7 +14,7 @@
import React from "react";
import {DeleteOutlined, DownOutlined, UpOutlined} from "@ant-design/icons";
import {Button, Col, Row, Select, Switch, Table, Tooltip} from "antd";
import {Button, Col, Input, Row, Select, Switch, Table, Tooltip} from "antd";
import * as Setting from "../Setting";
import i18next from "i18next";
@ -164,6 +164,32 @@ class SignupTable extends React.Component {
);
},
},
{
title: i18next.t("provider:Label"),
dataIndex: "label",
key: "label",
width: "150px",
render: (text, record, index) => {
return (
<Input value={text} onChange={e => {
this.updateField(table, index, "label", e.target.value);
}} />
);
},
},
{
title: i18next.t("provider:Placeholder"),
dataIndex: "placeholder",
key: "placeholder",
width: "150px",
render: (text, record, index) => {
return (
<Input value={text} onChange={e => {
this.updateField(table, index, "placeholder", e.target.value);
}} />
);
},
},
{
title: i18next.t("application:Rule"),
dataIndex: "rule",