zhytech-ui 1.2.16 → 1.2.18
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/README.md +14 -0
- package/dist/src/components/dynamicForm/components/application/employee/index.d.ts +92 -32
- package/dist/src/components/dynamicForm/components/application/employee/propsEditor.vue.d.ts +0 -1
- package/dist/src/components/dynamicForm/components/application/employee/renderer.vue.d.ts +19 -1
- package/dist/src/components/dynamicForm/components/common/httpSetting.vue.d.ts +48 -10
- package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +12 -0
- package/dist/src/components/dynamicForm/types/enum.d.ts +9 -1
- package/dist/src/components/dynamicForm/types/formAttribute.d.ts +4 -0
- package/dist/src/components/dynamicForm/types/httpSettingView.d.ts +9 -2
- package/dist/src/hooks/useUtils.d.ts +1 -1
- package/dist/src/utils/dayjs.d.ts +18 -18
- package/dist/src/utils/eventBus.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/zhytech-ui.es.js +8790 -8563
- package/dist/zhytech-ui.umd.js +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -90,6 +90,20 @@ npm install --legacy-peer-deps
|
|
|
90
90
|
|
|
91
91
|
> #### 版本更新清单:
|
|
92
92
|
|
|
93
|
+
**V 1.2.18**
|
|
94
|
+
```html
|
|
95
|
+
1.人员组件支持动态获取选项
|
|
96
|
+
2.人员组件为下拉框时 支持远端搜索,支持配置搜索接口
|
|
97
|
+
3.接口配置画面样式调整,添加loading参数
|
|
98
|
+
4.优化人员、部门、岗位组件回显问题
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**V 1.2.17**
|
|
102
|
+
```html
|
|
103
|
+
1.修复将绑定字典改为自定义时fixedItemID赋值错误
|
|
104
|
+
2.调整组装动态请求数据,返回值里日期时间格式化处理
|
|
105
|
+
```
|
|
106
|
+
|
|
93
107
|
**V 1.2.16**
|
|
94
108
|
```html
|
|
95
109
|
1.绑定字典选择时添加fixedItemID赋值
|
|
@@ -29,35 +29,86 @@ declare class component extends baseComponent {
|
|
|
29
29
|
}
|
|
30
30
|
declare const _default: {
|
|
31
31
|
component: typeof component;
|
|
32
|
-
renderer:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
32
|
+
renderer: {
|
|
33
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
34
|
+
isDesigner: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
componentID: {
|
|
43
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
datas: {
|
|
47
|
+
type: PropType<Record<string, any>>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
componentProps: {
|
|
51
|
+
type: PropType<baseAttribute & editAttribute & employeeAttribute>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
showDescription: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
}>> & Readonly<{
|
|
59
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
60
|
+
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
"update:datas": (...args: any[]) => void;
|
|
63
|
+
"update:componentProps": (...args: any[]) => void;
|
|
64
|
+
}, import('vue').PublicProps, {
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
showDescription: boolean;
|
|
67
|
+
isDesigner: boolean;
|
|
68
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
69
|
+
P: {};
|
|
70
|
+
B: {};
|
|
71
|
+
D: {};
|
|
72
|
+
C: {};
|
|
73
|
+
M: {};
|
|
74
|
+
Defaults: {};
|
|
75
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
76
|
+
isDesigner: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
disabled: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
componentID: {
|
|
85
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
datas: {
|
|
89
|
+
type: PropType<Record<string, any>>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
componentProps: {
|
|
93
|
+
type: PropType<baseAttribute & editAttribute & employeeAttribute>;
|
|
94
|
+
required: true;
|
|
95
|
+
};
|
|
96
|
+
showDescription: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
}>, {}, {}, {}, {}, {
|
|
104
|
+
disabled: boolean;
|
|
105
|
+
showDescription: boolean;
|
|
106
|
+
isDesigner: boolean;
|
|
107
|
+
}>;
|
|
108
|
+
__isFragment?: never;
|
|
109
|
+
__isTeleport?: never;
|
|
110
|
+
__isSuspense?: never;
|
|
111
|
+
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
61
112
|
isDesigner: {
|
|
62
113
|
type: BooleanConstructor;
|
|
63
114
|
default: boolean;
|
|
@@ -85,11 +136,21 @@ declare const _default: {
|
|
|
85
136
|
}>> & Readonly<{
|
|
86
137
|
"onUpdate:datas"?: ((...args: any[]) => any) | undefined;
|
|
87
138
|
"onUpdate:componentProps"?: ((...args: any[]) => any) | undefined;
|
|
88
|
-
}>, {
|
|
139
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
140
|
+
"update:datas": (...args: any[]) => void;
|
|
141
|
+
"update:componentProps": (...args: any[]) => void;
|
|
142
|
+
}, string, {
|
|
89
143
|
disabled: boolean;
|
|
90
144
|
showDescription: boolean;
|
|
91
145
|
isDesigner: boolean;
|
|
92
|
-
}, {},
|
|
146
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
147
|
+
$slots: {
|
|
148
|
+
option?(_: {
|
|
149
|
+
index: number;
|
|
150
|
+
label: any;
|
|
151
|
+
}): any;
|
|
152
|
+
};
|
|
153
|
+
});
|
|
93
154
|
propEditor: {
|
|
94
155
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
95
156
|
P: {};
|
|
@@ -107,7 +168,6 @@ declare const _default: {
|
|
|
107
168
|
option?(_: {
|
|
108
169
|
index: number;
|
|
109
170
|
label: any;
|
|
110
|
-
suffix: any;
|
|
111
171
|
}): any;
|
|
112
172
|
};
|
|
113
173
|
});
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { baseAttribute, editAttribute, employeeAttribute } from '../../../types/componentAttribute/index';
|
|
2
2
|
type componentType = baseAttribute & editAttribute & employeeAttribute;
|
|
3
|
-
declare
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
option?(_: {
|
|
7
|
+
index: number;
|
|
8
|
+
label: any;
|
|
9
|
+
}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
16
|
/**
|
|
5
17
|
* 是否为设计模式
|
|
6
18
|
*/
|
|
@@ -97,4 +109,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
97
109
|
showDescription: boolean;
|
|
98
110
|
isDesigner: boolean;
|
|
99
111
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
112
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
100
113
|
export default _default;
|
|
114
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { eventTypeEnum } from '../../types/enum';
|
|
2
2
|
import { httpSettingView } from '../../types/httpSettingView';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
eventType: eventTypeEnum;
|
|
5
|
-
componentID: string;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_PublicProps = {
|
|
8
|
-
modelValue?: httpSettingView[];
|
|
9
|
-
} & __VLS_Props;
|
|
10
3
|
declare function __VLS_template(): {
|
|
11
4
|
attrs: Partial<{}>;
|
|
12
5
|
slots: {
|
|
@@ -18,11 +11,56 @@ declare function __VLS_template(): {
|
|
|
18
11
|
rootEl: HTMLDivElement;
|
|
19
12
|
};
|
|
20
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
15
|
+
eventType: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: eventTypeEnum;
|
|
18
|
+
};
|
|
19
|
+
componentID: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
tipMessage: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
mappingFixedSelf: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
modelValue: {
|
|
32
|
+
type: globalThis.PropType<httpSettingView[]>;
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
35
|
"update:modelValue": (value: httpSettingView[]) => any;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
37
|
+
eventType: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: eventTypeEnum;
|
|
40
|
+
};
|
|
41
|
+
componentID: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
tipMessage: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
mappingFixedSelf: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: globalThis.PropType<httpSettingView[]>;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{
|
|
24
57
|
"onUpdate:modelValue"?: ((value: httpSettingView[]) => any) | undefined;
|
|
25
|
-
}>, {
|
|
58
|
+
}>, {
|
|
59
|
+
componentID: string;
|
|
60
|
+
eventType: string;
|
|
61
|
+
tipMessage: string;
|
|
62
|
+
mappingFixedSelf: boolean;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
26
64
|
httpSettingForm: unknown;
|
|
27
65
|
}, HTMLDivElement>;
|
|
28
66
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts
CHANGED
|
@@ -26,4 +26,16 @@ export interface employeeAttribute {
|
|
|
26
26
|
* 人员列表
|
|
27
27
|
*/
|
|
28
28
|
options: Record<string, any>[];
|
|
29
|
+
/**
|
|
30
|
+
* displayType=selector时是否可以筛选
|
|
31
|
+
*/
|
|
32
|
+
filterable: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* displayType=selector时是否可以远端搜索
|
|
35
|
+
*/
|
|
36
|
+
remoteFlag: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 是否动态选项
|
|
39
|
+
*/
|
|
40
|
+
dynamicOptionFlag: boolean;
|
|
29
41
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { eventTypeEnum } from './enum';
|
|
2
1
|
/**
|
|
3
2
|
* @description: HTTP请求设置
|
|
4
3
|
*/
|
|
@@ -6,7 +5,7 @@ export interface httpSettingView {
|
|
|
6
5
|
/**
|
|
7
6
|
* HTTP请求类型
|
|
8
7
|
*/
|
|
9
|
-
eventType:
|
|
8
|
+
eventType: string;
|
|
10
9
|
/**
|
|
11
10
|
* HTTP基础URL
|
|
12
11
|
*/
|
|
@@ -19,6 +18,14 @@ export interface httpSettingView {
|
|
|
19
18
|
* HTTP请求方法
|
|
20
19
|
*/
|
|
21
20
|
method?: "post" | "get";
|
|
21
|
+
/**
|
|
22
|
+
* 是否显示加载中状态
|
|
23
|
+
*/
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 加载中状态文本
|
|
27
|
+
*/
|
|
28
|
+
loadingText?: string;
|
|
22
29
|
/**
|
|
23
30
|
* HTTP请求参数
|
|
24
31
|
*/
|
|
@@ -87,5 +87,5 @@ export declare function useUtils(): {
|
|
|
87
87
|
* @param autoDealResult 是否自动处理结果
|
|
88
88
|
* @return
|
|
89
89
|
*/
|
|
90
|
-
callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<
|
|
90
|
+
callApi(httpSetting: httpSettingView, datas: Record<string, any>, autoDealResult?: boolean): Promise<any>;
|
|
91
91
|
};
|
|
@@ -2,45 +2,45 @@ import { default as dayjs } from 'dayjs';
|
|
|
2
2
|
/**
|
|
3
3
|
* 校检日期格式是否为YYYY-MM-DD这种格式
|
|
4
4
|
* @param date
|
|
5
|
-
* @returns
|
|
5
|
+
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function isValidDate(date: dayjs.ConfigType): boolean;
|
|
8
8
|
/**
|
|
9
9
|
* 校检日期格式是否为YYYY-MM-DD HH:mm:ss这种格式
|
|
10
10
|
* @param date
|
|
11
|
-
* @returns
|
|
11
|
+
* @returns
|
|
12
12
|
*/
|
|
13
13
|
export declare function isValidDateTime(date: dayjs.ConfigType): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* 格式化日期年月日,时间格式为format,默认YYYY-MM-DD
|
|
16
16
|
* @param date
|
|
17
17
|
* @param format
|
|
18
|
-
* @returns
|
|
18
|
+
* @returns
|
|
19
19
|
*/
|
|
20
20
|
export declare function formatDate(date: dayjs.ConfigType, format?: string): string;
|
|
21
21
|
/**
|
|
22
22
|
* 获取当前日期年月日,时间格式为YYYY-MM-DD
|
|
23
23
|
* @param format
|
|
24
|
-
* @returns
|
|
24
|
+
* @returns
|
|
25
25
|
*/
|
|
26
26
|
export declare function getCurrentDate(format?: string): string;
|
|
27
27
|
/**
|
|
28
28
|
* 获取当前日期年月日时分秒,时间格式为YYYY-MM-DD HH:mm:ss(24小时制,如果hh为小写表示为12小时制)
|
|
29
29
|
* @param format
|
|
30
|
-
* @returns
|
|
30
|
+
* @returns
|
|
31
31
|
*/
|
|
32
32
|
export declare function getCurrentDateTime(format?: string): string;
|
|
33
33
|
/**
|
|
34
34
|
* 获取日期的毫秒数
|
|
35
35
|
* @param date
|
|
36
|
-
* @returns
|
|
36
|
+
* @returns
|
|
37
37
|
*/
|
|
38
38
|
export declare function getmilliseconds(date?: dayjs.ConfigType): number;
|
|
39
39
|
/**
|
|
40
40
|
* 获取日期的指定值
|
|
41
41
|
* @param date
|
|
42
42
|
* @param dateType 为要获取日期类型,有如下类型:'minute','hour','day','month','year'这六种类型
|
|
43
|
-
* @returns
|
|
43
|
+
* @returns
|
|
44
44
|
*/
|
|
45
45
|
export declare function getTimeByType(dateType: dayjs.ManipulateType, date?: dayjs.ConfigType): any;
|
|
46
46
|
/**
|
|
@@ -48,7 +48,7 @@ export declare function getTimeByType(dateType: dayjs.ManipulateType, date?: day
|
|
|
48
48
|
* @param date:为传过来的日期
|
|
49
49
|
* @param num:在当前日期加num,类型为int
|
|
50
50
|
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
51
|
-
* @returns
|
|
51
|
+
* @returns
|
|
52
52
|
*/
|
|
53
53
|
export declare function getXAfterDate(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
54
54
|
/**
|
|
@@ -56,7 +56,7 @@ export declare function getXAfterDate(date: dayjs.ConfigType, num: number, dateT
|
|
|
56
56
|
* @param date:为传过来的日期
|
|
57
57
|
* @param num:在当前日期加num,类型为int
|
|
58
58
|
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
59
|
-
* @returns
|
|
59
|
+
* @returns
|
|
60
60
|
*/
|
|
61
61
|
export declare function getXAfterDateTime(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
62
62
|
/**
|
|
@@ -64,7 +64,7 @@ export declare function getXAfterDateTime(date: dayjs.ConfigType, num: number, d
|
|
|
64
64
|
* @param date:为传过来的日期
|
|
65
65
|
* @param num:在当前日期加num,类型为int
|
|
66
66
|
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
67
|
-
* @returns
|
|
67
|
+
* @returns
|
|
68
68
|
*/
|
|
69
69
|
export declare function getXBeforeDate(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
70
70
|
/**
|
|
@@ -72,7 +72,7 @@ export declare function getXBeforeDate(date: dayjs.ConfigType, num: number, date
|
|
|
72
72
|
* @param date:为传过来的日期
|
|
73
73
|
* @param num:在当前日期加day,类型为int
|
|
74
74
|
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
75
|
-
* @returns
|
|
75
|
+
* @returns
|
|
76
76
|
*/
|
|
77
77
|
export declare function getXBeforeDateTime(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
78
78
|
/**
|
|
@@ -80,42 +80,42 @@ export declare function getXBeforeDateTime(date: dayjs.ConfigType, num: number,
|
|
|
80
80
|
* @param startDate:开始日期
|
|
81
81
|
* @param endDate:结束日期,结束日期要比开始日期大
|
|
82
82
|
* @param dateType:日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
83
|
-
* @returns
|
|
83
|
+
* @returns
|
|
84
84
|
*/
|
|
85
85
|
export declare function getDateDiff(startDate: dayjs.ConfigType, endDate: dayjs.ConfigType, dateType: dayjs.ManipulateType): number;
|
|
86
86
|
/**
|
|
87
87
|
* 判断date1是否在date2之前,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为false
|
|
88
88
|
* @param date1
|
|
89
89
|
* @param date2
|
|
90
|
-
* @returns
|
|
90
|
+
* @returns
|
|
91
91
|
*/
|
|
92
92
|
export declare function isBefore(date1: dayjs.ConfigType, date2: dayjs.ConfigType): boolean;
|
|
93
93
|
/**
|
|
94
94
|
* 判断date1是否在date2之后,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为true
|
|
95
95
|
* @param date1
|
|
96
96
|
* @param date2
|
|
97
|
-
* @returns
|
|
97
|
+
* @returns
|
|
98
98
|
*/
|
|
99
99
|
export declare function isAfter(date1: dayjs.ConfigType, date2: dayjs.ConfigType): boolean;
|
|
100
100
|
/**
|
|
101
101
|
* 判断date1是否与date2相同,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为false
|
|
102
102
|
* @param date1
|
|
103
103
|
* @param date2
|
|
104
|
-
* @returns
|
|
104
|
+
* @returns
|
|
105
105
|
*/
|
|
106
106
|
export declare function isSame(date1: dayjs.ConfigType, date2: dayjs.ConfigType): boolean;
|
|
107
107
|
/**
|
|
108
108
|
* 将传过来的日期转为当年的1月1号或者当月的1号或者当周的周一
|
|
109
109
|
* @param date:传过来日期
|
|
110
110
|
* @param dateType,日期类型,为:year,month,week这3种
|
|
111
|
-
* @returns
|
|
111
|
+
* @returns
|
|
112
112
|
*/
|
|
113
113
|
export declare function getEarlyDaysDate(date: dayjs.ConfigType, dateType: dayjs.ManipulateType): string;
|
|
114
114
|
/**
|
|
115
115
|
* 将传过来的日期转为当年的12月31号或者当月的最后一天或者当周的周日
|
|
116
116
|
* @param date:传过来日期
|
|
117
117
|
* @param dateType,日期类型,为:year,month,week这3种
|
|
118
|
-
* @returns
|
|
118
|
+
* @returns
|
|
119
119
|
*/
|
|
120
120
|
export declare function getLastDaysDate(date: dayjs.ConfigType, dateType: dayjs.ManipulateType): string;
|
|
121
121
|
/**
|
|
@@ -124,6 +124,6 @@ export declare function getLastDaysDate(date: dayjs.ConfigType, dateType: dayjs.
|
|
|
124
124
|
* @param endDate:结束日期要大于开始日期
|
|
125
125
|
* @param num:在开始日期上加num,int类型,如果dateType为day,num为1那么就是在开始日期上加一天
|
|
126
126
|
* @param dateType,日期类型,类型如下:'minute','hour','day','week','month','year'这六种类型
|
|
127
|
-
* @returns
|
|
127
|
+
* @returns
|
|
128
128
|
*/
|
|
129
129
|
export declare function getIntermediateDate(startDate: dayjs.ConfigType, endDate: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): (string | number | Date | dayjs.Dayjs | null | undefined)[];
|
|
@@ -3,4 +3,5 @@ type EventType = {
|
|
|
3
3
|
};
|
|
4
4
|
declare const _default: import('mitt').Emitter<EventType>;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const DYNAMIC_FORM_DATAS_UPDATE_EVENT = "dynamicFormDatasUpdate";
|
|
7
|
+
export declare const DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT = "dynamicFormDepartmentChange";
|