优化 post 岗位的逻辑实现代码
This commit is contained in:
1 parent
5e47af9327
commit
d985ef194e
6 files changed
+56
-42
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user