@cloudtower/eagle 0.27.64 → 0.27.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/cron-time.js +2 -2
- package/dist/components.css +1894 -1883
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/cron-time.js +2 -2
- package/dist/src/spec/type.d.ts +9 -0
- package/dist/stories/docs/core/InputInteger.stories.d.ts +28 -0
- package/dist/style.css +1836 -1827
- package/package.json +5 -5
|
@@ -385,8 +385,8 @@ class CronTime {
|
|
|
385
385
|
Cron String: ${this} - UTC offset: ${date} - current Date: ${dayjs().toString()}`
|
|
386
386
|
);
|
|
387
387
|
}
|
|
388
|
-
if (!(date.month()
|
|
389
|
-
date = date.add(1, "month").
|
|
388
|
+
if (!(date.month() in this.unitMap.month) && Object.keys(this.unitMap.month).length !== 12) {
|
|
389
|
+
date = date.add(1, "month").date(1).hour(0).minute(0).second(0);
|
|
390
390
|
continue;
|
|
391
391
|
}
|
|
392
392
|
if (!(date.date() in this.unitMap.dayOfMonth) && Object.keys(this.unitMap.dayOfMonth).length !== 31 && !(date.day() in this.unitMap.dayOfWeek && Object.keys(this.unitMap.dayOfWeek).length !== 7)) {
|
package/dist/src/spec/type.d.ts
CHANGED
|
@@ -7,8 +7,17 @@ export declare enum Architecture {
|
|
|
7
7
|
X86_64 = "X86_64"
|
|
8
8
|
}
|
|
9
9
|
export interface AdditionOptions {
|
|
10
|
+
/**
|
|
11
|
+
* 使用变量控制是否显示 error 效果
|
|
12
|
+
*/
|
|
10
13
|
error?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示箭头按钮,用于加减数值
|
|
16
|
+
*/
|
|
11
17
|
controls?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 开启 control 后,不会显示 suffix
|
|
20
|
+
*/
|
|
12
21
|
suffix?: string;
|
|
13
22
|
}
|
|
14
23
|
export type SizeType = "small" | "middle" | "large";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import InputInteger from "../../../src/core/InputInteger";
|
|
3
|
+
import { StoryObj } from "@storybook/react";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import("react").FC<import("antd/lib/input-number").InputNumberProps & import("../../../src").AdditionOptions>;
|
|
6
|
+
title: "Core/InputInteger | 整数输入";
|
|
7
|
+
parameters: {
|
|
8
|
+
design: {
|
|
9
|
+
type: string;
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof InputInteger>;
|
|
16
|
+
export declare const MiddleSize: Story;
|
|
17
|
+
export declare const SmallSize: Story;
|
|
18
|
+
export declare const LargeSize: Story;
|
|
19
|
+
/**
|
|
20
|
+
* Control 默认值为 false。
|
|
21
|
+
* 默认不使用箭头按钮。
|
|
22
|
+
*/
|
|
23
|
+
export declare const ShowControl: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 在输入框的末尾显示文字。
|
|
26
|
+
* 如果开启 control,则不会显示
|
|
27
|
+
*/
|
|
28
|
+
export declare const Suffix: Story;
|