浏览代码

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1年前
父节点
当前提交
427afc5734
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. +11
    -0
      src/components/CustomInputForm/CustomInputForm.tsx
  2. +2
    -2
      src/components/EditStaff/EditStaff.tsx

+ 11
- 0
src/components/CustomInputForm/CustomInputForm.tsx 查看文件

@@ -307,6 +307,17 @@ const CustomInputForm: React.FC<CustomInputFormProps> = ({
onChange={(newValue) => {
handleDateChange(field.id, newValue);
}}
slotProps={{
textField: {
required: field.required,
},
}}
// error={Boolean(errors[field.id])}
// slotProps={{
// textField: {
// helperText: Boolean(errors[field.id]) && field.message,
// },
// }}
// required = {field.required ?? false},
/>
</DemoItem>


+ 2
- 2
src/components/EditStaff/EditStaff.tsx 查看文件

@@ -165,7 +165,7 @@ const EditStaff: React.FC = async () => {
label: t(`Team`),
type: "combo-Obj",
options: teamCombo,
value: data[key].id ?? "",
value: data[key]?.id ?? "",
};
case "department":
return {
@@ -277,7 +277,7 @@ const EditStaff: React.FC = async () => {
case "emergContactPhone":
return {
id: `${key}`,
label: t(`Emergency Contact Phonee`),
label: t(`Emergency Contact Phone`),
type: "text",
// pattern: "^\\d{8}$",
message: t("input correct phone no."),


正在加载...
取消
保存