@para-ui/core 4.0.1 → 4.0.3

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.
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @author linhd
3
+ * @date 2024/3/5 10:07
4
+ * @description 周期选择器
5
+ */
6
+ import React, { FunctionComponent } from 'react';
7
+ import './index.scss';
8
+ export interface CycleSelectorValueProps {
9
+ /** 开始时间 */
10
+ startTime?: string;
11
+ /** 周期类型:0:不重复,1:每天重复,2:每周重复,3:每月重复,4:每年重复,5:自定义 */
12
+ cycleType?: number;
13
+ /** 周期频率 */
14
+ frequency?: number;
15
+ /** 频率单位;day:天,week:周,month:月,year:年 */
16
+ frequencyUnit?: string;
17
+ /** 当选择月维度,是按照天还是周;day:天,week:周 */
18
+ monthCycleType?: string;
19
+ /** 当选择周维度,指定周几(国外),用逗号分隔 */
20
+ executionDay?: string;
21
+ /** 结束重复方式;0:无线重复,1:截至时间,2:限定次数 */
22
+ endType?: number;
23
+ /** 当结束方式是限定次数,限定的重复执行次数 */
24
+ limitNum?: number;
25
+ /** 当结束方式是限定时间,结束执行的日期 */
26
+ endTime?: string;
27
+ }
28
+ export interface CycleSelectorProps {
29
+ className?: string;
30
+ style?: React.CSSProperties;
31
+ value: CycleSelectorValueProps;
32
+ onChange: (val: CycleSelectorValueProps) => void;
33
+ }
34
+ declare const CycleSelector: FunctionComponent<CycleSelectorProps>;
35
+ export default CycleSelector;