mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-17 21:26:35 +08:00
refactor: 前端文件夹名称调整
This commit is contained in:
21
frontend/src/components/crontab/index.ts
Normal file
21
frontend/src/components/crontab/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// 表单选项的子组件校验数字格式
|
||||
export function checkNumber(value: any, minLimit: number, maxLimit: number) {
|
||||
//检查必须为整数
|
||||
value = Math.floor(value);
|
||||
if (value < minLimit) {
|
||||
value = minLimit;
|
||||
} else if (value > maxLimit) {
|
||||
value = maxLimit;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
export interface CrontabValueObj {
|
||||
second: string;
|
||||
min: string;
|
||||
hour: string;
|
||||
day: string;
|
||||
mouth: string;
|
||||
week: string;
|
||||
year: string;
|
||||
}
|
||||
Reference in New Issue
Block a user