优化
This commit is contained in:
10
client/packages/design/components/WebMetaForm/utils.ts
Normal file
10
client/packages/design/components/WebMetaForm/utils.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 获取校验状态
|
||||
*/
|
||||
export function getValidateStatus(error: string | undefined): 'error' | '' {
|
||||
if (error === undefined || error === '') {
|
||||
return '';
|
||||
} else {
|
||||
return 'error';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user