feat: add regex to SignupTable

This commit is contained in:
Yang Luo
2024-01-13 16:05:45 +08:00
parent 5bb12a30d4
commit 79b393afee
25 changed files with 41 additions and 0 deletions

View File

@ -224,6 +224,23 @@ class SignupTable extends React.Component {
);
},
},
{
title: i18next.t("signup:Regex"),
dataIndex: "regex",
key: "regex",
width: "200px",
render: (text, record, index) => {
if (record.name.startsWith("Text ") || record.name === "Password" || record.name === "Confirm password") {
return null;
}
return (
<Input value={text} onChange={e => {
this.updateField(table, index, "regex", e.target.value);
}} />
);
},
},
{
title: i18next.t("application:Rule"),
dataIndex: "rule",