优化 post 岗位的逻辑实现代码

This commit is contained in:
YunaiV
2023-02-11 15:54:44 +08:00
parent 5e47af9327
commit d985ef194e
6 changed files with 56 additions and 42 deletions

View File

@ -16,7 +16,7 @@ export const setTextPlaceholder = (schema: FormSchema): PlaceholderMoel => {
const selectMap = ['Select', 'SelectV2', 'TimePicker', 'DatePicker', 'TimeSelect', 'TimeSelect']
if (textMap.includes(schema?.component as string)) {
return {
placeholder: t('common.inputText')
placeholder: t('common.inputText') + schema.label
}
}
if (selectMap.includes(schema?.component as string)) {
@ -34,7 +34,7 @@ export const setTextPlaceholder = (schema: FormSchema): PlaceholderMoel => {
}
} else {
return {
placeholder: t('common.selectText')
placeholder: t('common.selectText') + schema.label
}
}
}