zhytech-ui-mobile 1.1.0 → 1.1.1
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 +5 -0
- package/dist/style.css +1 -1
- package/dist/zhytech-ui-mobile.es.js +34 -241
- package/dist/zhytech-ui-mobile.umd.js +1 -1
- package/package.json +1 -1
- package/dist/types/components/puzzleVCode/index.d.ts +0 -5
- package/dist/types/components/puzzleVCode/types/configOptionView.d.ts +0 -53
- package/dist/types/src/components/dynamicForm/components/advanced/index.d.ts +0 -4
- package/dist/types/src/components/dynamicForm/components/application/index.d.ts +0 -5
- package/dist/types/src/components/dynamicForm/components/base/index.d.ts +0 -9
- package/dist/types/src/components/dynamicForm/components/componentType.d.ts +0 -5
- package/dist/types/src/components/dynamicForm/components/layout/index.d.ts +0 -4
- package/dist/types/src/components/dynamicForm/index.d.ts +0 -7
- package/dist/types/src/components/dynamicForm/types/abnormalCheckView.d.ts +0 -19
- package/dist/types/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.d.ts +0 -25
- package/dist/types/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +0 -33
- package/dist/types/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.d.ts +0 -45
- package/dist/types/src/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts +0 -33
- package/dist/types/src/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.d.ts +0 -29
- package/dist/types/src/components/dynamicForm/types/componentAttribute/base/datetimeAttribute.d.ts +0 -54
- package/dist/types/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +0 -21
- package/dist/types/src/components/dynamicForm/types/componentAttribute/base/inputNumberAttribute.d.ts +0 -28
- package/dist/types/src/components/dynamicForm/types/componentAttribute/base/radioAttribute.d.ts +0 -21
- package/dist/types/src/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +0 -101
- package/dist/types/src/components/dynamicForm/types/componentAttribute/editAttribute.d.ts +0 -61
- package/dist/types/src/components/dynamicForm/types/componentAttribute/index.d.ts +0 -15
- package/dist/types/src/components/dynamicForm/types/componentAttribute/layout/groupLayoutAttribute.d.ts +0 -29
- package/dist/types/src/components/dynamicForm/types/componentAttribute/layout/tabsLayoutAttribute.d.ts +0 -21
- package/dist/types/src/components/dynamicForm/types/documentView.d.ts +0 -101
- package/dist/types/src/components/dynamicForm/types/enum.d.ts +0 -135
- package/dist/types/src/components/dynamicForm/types/formAttribute.d.ts +0 -84
- package/dist/types/src/components/dynamicForm/types/relevanceConditionView.d.ts +0 -22
- package/dist/types/src/components/dynamicForm/types/uploadOption.d.ts +0 -23
- package/dist/types/src/components/filePreview/index.d.ts +0 -5
- package/dist/types/src/components/filePreview/types/filePreviewType.d.ts +0 -18
- package/dist/types/src/components/puzzleVCode/index.d.ts +0 -5
- package/dist/types/src/components/puzzleVCode/types/configOptionView.d.ts +0 -53
- package/dist/types/src/hooks/useDate.d.ts +0 -132
- package/dist/types/src/hooks/useMessage.d.ts +0 -16
- package/dist/types/src/hooks/useToast.d.ts +0 -10
- package/dist/types/src/hooks/useUtils.d.ts +0 -58
- package/dist/types/src/index.d.ts +0 -790
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 文档管理中文件上传参数类型
|
|
3
|
-
*/
|
|
4
|
-
export interface documentView {
|
|
5
|
-
/**
|
|
6
|
-
* 文档主内容
|
|
7
|
-
*/
|
|
8
|
-
documentMain: DocumentMainView;
|
|
9
|
-
/**
|
|
10
|
-
* 文档明细属性数据集合
|
|
11
|
-
*/
|
|
12
|
-
documentDetails: DocumentDetailView[];
|
|
13
|
-
/**
|
|
14
|
-
* 文档标签集合
|
|
15
|
-
*/
|
|
16
|
-
documentTags: DocumentTagView[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @description: 文档主内容
|
|
20
|
-
*/
|
|
21
|
-
declare interface DocumentMainView {
|
|
22
|
-
/**
|
|
23
|
-
* 来源系统
|
|
24
|
-
*/
|
|
25
|
-
sourceSystem: string;
|
|
26
|
-
/**
|
|
27
|
-
* 文档类型序号
|
|
28
|
-
*/
|
|
29
|
-
documentTypeID: number;
|
|
30
|
-
/**
|
|
31
|
-
* 上传人员
|
|
32
|
-
*/
|
|
33
|
-
userID: string;
|
|
34
|
-
/**
|
|
35
|
-
* 上传人员
|
|
36
|
-
*/
|
|
37
|
-
userName: string;
|
|
38
|
-
/**
|
|
39
|
-
* 文档标题
|
|
40
|
-
*/
|
|
41
|
-
documentTitle: string;
|
|
42
|
-
/**
|
|
43
|
-
* 文档封面图片地址
|
|
44
|
-
*/
|
|
45
|
-
documentCover?: string;
|
|
46
|
-
/**
|
|
47
|
-
* 文档摘要
|
|
48
|
-
*/
|
|
49
|
-
documentAbstract?: string;
|
|
50
|
-
/**
|
|
51
|
-
* 文件扩展名
|
|
52
|
-
*/
|
|
53
|
-
fileExtensionName: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* @description: 文档明细属性数据
|
|
57
|
-
*/
|
|
58
|
-
declare interface DocumentDetailView {
|
|
59
|
-
/**
|
|
60
|
-
* 明细组号
|
|
61
|
-
*/
|
|
62
|
-
groupID?: number;
|
|
63
|
-
/**
|
|
64
|
-
* 明细序号
|
|
65
|
-
*/
|
|
66
|
-
itemID: number;
|
|
67
|
-
/**
|
|
68
|
-
* 明细值
|
|
69
|
-
*/
|
|
70
|
-
value: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @description: 文档标签
|
|
74
|
-
*/
|
|
75
|
-
declare interface DocumentTagView {
|
|
76
|
-
/**
|
|
77
|
-
* 文档标签序号
|
|
78
|
-
*/
|
|
79
|
-
documentTagListID?: number;
|
|
80
|
-
/**
|
|
81
|
-
* 标签类型
|
|
82
|
-
*/
|
|
83
|
-
tagType?: string;
|
|
84
|
-
/**
|
|
85
|
-
* 标签内容
|
|
86
|
-
*/
|
|
87
|
-
tagContent?: string;
|
|
88
|
-
/**
|
|
89
|
-
* 标签说明
|
|
90
|
-
*/
|
|
91
|
-
tagDescription?: string;
|
|
92
|
-
/**
|
|
93
|
-
* 标签颜色
|
|
94
|
-
*/
|
|
95
|
-
tagColor?: string;
|
|
96
|
-
/**
|
|
97
|
-
* 自定义标记
|
|
98
|
-
*/
|
|
99
|
-
customFlag?: boolean;
|
|
100
|
-
}
|
|
101
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 表单类型
|
|
3
|
-
*/
|
|
4
|
-
export declare enum formTypeEnum {
|
|
5
|
-
/**
|
|
6
|
-
* 问卷
|
|
7
|
-
*/
|
|
8
|
-
Form = "1",
|
|
9
|
-
/**
|
|
10
|
-
* 试卷
|
|
11
|
-
*/
|
|
12
|
-
Examination = "2"
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 试卷答案状态
|
|
16
|
-
*/
|
|
17
|
-
export declare enum examinationStatusEnum {
|
|
18
|
-
/**
|
|
19
|
-
* 未作答
|
|
20
|
-
*/
|
|
21
|
-
NotAnswered = 1,
|
|
22
|
-
/**
|
|
23
|
-
* 正确
|
|
24
|
-
*/
|
|
25
|
-
Correct = 2,
|
|
26
|
-
/**
|
|
27
|
-
* 错误
|
|
28
|
-
*/
|
|
29
|
-
Error = 3,
|
|
30
|
-
/**
|
|
31
|
-
* 已作答
|
|
32
|
-
*/
|
|
33
|
-
Answered = 4
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* 组件类型
|
|
37
|
-
*/
|
|
38
|
-
export declare enum componentTypeEnum {
|
|
39
|
-
/**
|
|
40
|
-
* 标签
|
|
41
|
-
*/
|
|
42
|
-
LABEL = "label",
|
|
43
|
-
/**
|
|
44
|
-
* 输入框
|
|
45
|
-
*/
|
|
46
|
-
INPUT = "input",
|
|
47
|
-
/**
|
|
48
|
-
* 复选框
|
|
49
|
-
*/
|
|
50
|
-
CHECKBOX = "checkbox",
|
|
51
|
-
/**
|
|
52
|
-
* 单选框
|
|
53
|
-
*/
|
|
54
|
-
RADIO = "radio",
|
|
55
|
-
/**
|
|
56
|
-
* 数字输入框
|
|
57
|
-
*/
|
|
58
|
-
INPUT_NUMBER = "inputNumber",
|
|
59
|
-
/**
|
|
60
|
-
* 日期选择器
|
|
61
|
-
*/
|
|
62
|
-
DATE = "date",
|
|
63
|
-
/**
|
|
64
|
-
* 时间选择器
|
|
65
|
-
*/
|
|
66
|
-
TIME = "time",
|
|
67
|
-
/**
|
|
68
|
-
* 上传组件
|
|
69
|
-
*/
|
|
70
|
-
UPLOAD = "upload",
|
|
71
|
-
/**
|
|
72
|
-
* 图片上传组件
|
|
73
|
-
*/
|
|
74
|
-
UPLOAD_IMAGE = "uploadImage",
|
|
75
|
-
/**
|
|
76
|
-
* 评分组件
|
|
77
|
-
*/
|
|
78
|
-
GRADE = "grade",
|
|
79
|
-
/**
|
|
80
|
-
* 人员组件
|
|
81
|
-
*/
|
|
82
|
-
EMPLOYEE = "employee",
|
|
83
|
-
/**
|
|
84
|
-
* 岗位组件
|
|
85
|
-
*/
|
|
86
|
-
POST = "post",
|
|
87
|
-
GROUP_LAYOUT = "groupLayout",
|
|
88
|
-
/**
|
|
89
|
-
* 页签
|
|
90
|
-
*/
|
|
91
|
-
TABS = "tabs"
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @description: 异常值检核类型
|
|
95
|
-
*/
|
|
96
|
-
export declare enum abnormalCheckType {
|
|
97
|
-
/**
|
|
98
|
-
* 上限
|
|
99
|
-
*/
|
|
100
|
-
upperLimit = "\u4E0A\u9650\u503C",
|
|
101
|
-
/**
|
|
102
|
-
* 下限
|
|
103
|
-
*/
|
|
104
|
-
lowerLimit = "\u4E0B\u9650\u503C",
|
|
105
|
-
/**
|
|
106
|
-
* 小数位数
|
|
107
|
-
*/
|
|
108
|
-
decimalPlace = "\u5C0F\u6570\u4F4D"
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @description: 异常值检核级别类型
|
|
112
|
-
*/
|
|
113
|
-
export declare enum checkLevelType {
|
|
114
|
-
/**
|
|
115
|
-
* 错误
|
|
116
|
-
*/
|
|
117
|
-
error = "\u9519\u8BEF",
|
|
118
|
-
/**
|
|
119
|
-
* 警告
|
|
120
|
-
*/
|
|
121
|
-
warning = "\u8B66\u544A"
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @description: 关联类型
|
|
125
|
-
*/
|
|
126
|
-
export declare enum relevanceType {
|
|
127
|
-
/**
|
|
128
|
-
* 自动选择
|
|
129
|
-
*/
|
|
130
|
-
autoSelect = "\u81EA\u52A8\u9009\u62E9",
|
|
131
|
-
/**
|
|
132
|
-
* 自动取消
|
|
133
|
-
*/
|
|
134
|
-
autoCancel = "\u81EA\u52A8\u53D6\u6D88"
|
|
135
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 动态表单属性类型
|
|
3
|
-
*/
|
|
4
|
-
export interface formAttribute {
|
|
5
|
-
/**
|
|
6
|
-
* 表单ID
|
|
7
|
-
*/
|
|
8
|
-
formID?: string;
|
|
9
|
-
/**
|
|
10
|
-
* 表单名称
|
|
11
|
-
*/
|
|
12
|
-
formName: string;
|
|
13
|
-
/**
|
|
14
|
-
* 表单类型 1:问卷表单;2:试卷表单
|
|
15
|
-
*/
|
|
16
|
-
formType: string;
|
|
17
|
-
/**
|
|
18
|
-
* 标题位置
|
|
19
|
-
*/
|
|
20
|
-
labelPosition: string;
|
|
21
|
-
/**
|
|
22
|
-
* 标题宽度
|
|
23
|
-
*/
|
|
24
|
-
labelWidth: number;
|
|
25
|
-
/**
|
|
26
|
-
* 大小
|
|
27
|
-
*/
|
|
28
|
-
size: string;
|
|
29
|
-
/**
|
|
30
|
-
* 栅格数量
|
|
31
|
-
*/
|
|
32
|
-
column: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @description: 动态表单数据参数类型
|
|
36
|
-
*/
|
|
37
|
-
export interface dynamicFormData<T extends formAttribute | Record<string, any>> {
|
|
38
|
-
/**
|
|
39
|
-
* 表单属性
|
|
40
|
-
*/
|
|
41
|
-
props: T;
|
|
42
|
-
/**
|
|
43
|
-
* 表单中组件集合
|
|
44
|
-
*/
|
|
45
|
-
components: Record<string, any>[];
|
|
46
|
-
/**
|
|
47
|
-
* 表单数据
|
|
48
|
-
*/
|
|
49
|
-
datas: Record<string, any>;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @description: 动态表单字典表参数类型
|
|
53
|
-
*/
|
|
54
|
-
export interface dictionaryItem {
|
|
55
|
-
/**
|
|
56
|
-
* 字典项目ID
|
|
57
|
-
*/
|
|
58
|
-
value: string;
|
|
59
|
-
/**
|
|
60
|
-
* 字典项目名称
|
|
61
|
-
*/
|
|
62
|
-
label: string;
|
|
63
|
-
/**
|
|
64
|
-
* 字典项目来源
|
|
65
|
-
*/
|
|
66
|
-
itemSourceType?: string;
|
|
67
|
-
/**
|
|
68
|
-
* 字典项目来源
|
|
69
|
-
*/
|
|
70
|
-
itemSourceTypeName?: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @description: 动态表单字典表参数类型
|
|
74
|
-
*/
|
|
75
|
-
export interface dictionaryData {
|
|
76
|
-
/**
|
|
77
|
-
* 字典项目集合
|
|
78
|
-
*/
|
|
79
|
-
dictionaryItems: dictionaryItem[];
|
|
80
|
-
/**
|
|
81
|
-
* 字典项目来源映射map
|
|
82
|
-
*/
|
|
83
|
-
sourceTypeMap: Map<string, string>;
|
|
84
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { relevanceType } from './enum';
|
|
2
|
-
|
|
3
|
-
type relevance = keyof typeof relevanceType;
|
|
4
|
-
export interface relevanceConditionView {
|
|
5
|
-
/**
|
|
6
|
-
* 类型
|
|
7
|
-
*/
|
|
8
|
-
type: relevance;
|
|
9
|
-
/**
|
|
10
|
-
* 上限值
|
|
11
|
-
*/
|
|
12
|
-
upperLimit: number;
|
|
13
|
-
/**
|
|
14
|
-
* 下限值
|
|
15
|
-
*/
|
|
16
|
-
lowerLimit: number;
|
|
17
|
-
/**
|
|
18
|
-
* 目标项目序号
|
|
19
|
-
*/
|
|
20
|
-
targetItemID: string;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { documentView } from './documentView';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description: 上传文件参数
|
|
5
|
-
*/
|
|
6
|
-
export interface uploadOption {
|
|
7
|
-
/**
|
|
8
|
-
* 上传文件api接口
|
|
9
|
-
*/
|
|
10
|
-
serverApi: string;
|
|
11
|
-
/**
|
|
12
|
-
* 上传文件的请求头部
|
|
13
|
-
*/
|
|
14
|
-
headers?: Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* 是否自动上传
|
|
17
|
-
*/
|
|
18
|
-
autoUpload: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 上传文件时附加参数,如果autoUpload=true,必须传此参数
|
|
21
|
-
*/
|
|
22
|
-
params?: documentView;
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface filePreviewOption {
|
|
2
|
-
/**
|
|
3
|
-
* @description: 是否显示控制按钮
|
|
4
|
-
*/
|
|
5
|
-
showCtrolBtn: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* @description: 是否显示缩放按钮
|
|
8
|
-
*/
|
|
9
|
-
showScaleBtn: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @description: 是否显示下载按钮
|
|
12
|
-
*/
|
|
13
|
-
showDownLoadBtn: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* @description: 是否显示全屏按钮
|
|
16
|
-
*/
|
|
17
|
-
showFullScreenBtn: boolean;
|
|
18
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 配置选项类型
|
|
3
|
-
*/
|
|
4
|
-
export interface configOptionView {
|
|
5
|
-
/**
|
|
6
|
-
* 显示类型,"modal"模态框形式 / "inside"内嵌形式
|
|
7
|
-
*/
|
|
8
|
-
type?: "modal" | "inside";
|
|
9
|
-
/**
|
|
10
|
-
* 自定义样式类名
|
|
11
|
-
*/
|
|
12
|
-
className?: string;
|
|
13
|
-
/**
|
|
14
|
-
* 验证码宽度,单位px,默认400px
|
|
15
|
-
*/
|
|
16
|
-
canvasWidth?: number;
|
|
17
|
-
/**
|
|
18
|
-
* 验证码高度,单位px,默认220px
|
|
19
|
-
*/
|
|
20
|
-
canvasHeight?: number;
|
|
21
|
-
/**
|
|
22
|
-
* 拼图块(小的拼图)的大小比例,0.2 ~ 2 ,数字越大,拼图越大
|
|
23
|
-
*/
|
|
24
|
-
puzzleScale?: number;
|
|
25
|
-
/**
|
|
26
|
-
* 判断成功的误差范围,单位 px, 滑动的距离和拼图的距离小于等于此值时,会判定重合,默认10px
|
|
27
|
-
*/
|
|
28
|
-
range?: number;
|
|
29
|
-
/**
|
|
30
|
-
* 自定义图片集合
|
|
31
|
-
*/
|
|
32
|
-
imgs?: string[];
|
|
33
|
-
/**
|
|
34
|
-
* 验证成功时的提示文字,默认:验证通过
|
|
35
|
-
*/
|
|
36
|
-
successText?: string;
|
|
37
|
-
/**
|
|
38
|
-
* 验证失败时的提示文字,默认:验证失败,请重试
|
|
39
|
-
*/
|
|
40
|
-
failText?: string;
|
|
41
|
-
/**
|
|
42
|
-
* 左下角用户拖动的那个滑块的尺寸,单位 px,默认 40px
|
|
43
|
-
*/
|
|
44
|
-
sliderSize?: number;
|
|
45
|
-
/**
|
|
46
|
-
* 下方滑动条里的文字,默认:拖动滑块完成拼图
|
|
47
|
-
*/
|
|
48
|
-
sliderText?: string;
|
|
49
|
-
/**
|
|
50
|
-
* 验证成功的回调函数
|
|
51
|
-
*/
|
|
52
|
-
onSuccess?: Function;
|
|
53
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { default as dayjs } from 'dayjs';
|
|
2
|
-
|
|
3
|
-
export default function useDate(): {
|
|
4
|
-
/**
|
|
5
|
-
* 校检日期格式是否为YYYY-MM-DD这种格式
|
|
6
|
-
* @param date
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
isValidDate(date: dayjs.ConfigType): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* 校检日期格式是否为YYYY-MM-DD HH:mm:ss这种格式
|
|
12
|
-
* @param date
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
isValidDateTime(date: dayjs.ConfigType): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* 格式化日期年月日,时间格式为format,默认YYYY-MM-DD
|
|
18
|
-
* @param date
|
|
19
|
-
* @param format
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
formatDate: (date: dayjs.ConfigType, format?: string) => string;
|
|
23
|
-
/**
|
|
24
|
-
* 获取当前日期年月日,时间格式为YYYY-MM-DD
|
|
25
|
-
* @param format
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
getCurrentDate(format?: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* 获取当前日期年月日时分秒,时间格式为YYYY-MM-DD HH:mm:ss(24小时制,如果hh为小写表示为12小时制)
|
|
31
|
-
* @param format
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
getCurrentDateTime(format?: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* 获取日期的毫秒数
|
|
37
|
-
* @param date
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
getMilliseconds(date?: dayjs.ConfigType): number;
|
|
41
|
-
/**
|
|
42
|
-
* 获取日期的指定值
|
|
43
|
-
* @param date
|
|
44
|
-
* @param dateType 为要获取日期类型,有如下类型:'minute','hour','day','month','year'这六种类型
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
getTimeByType(dateType: dayjs.ManipulateType, date?: dayjs.ConfigType): any;
|
|
48
|
-
/**
|
|
49
|
-
* 将传过来的日期加X日期且时间格式为YYYY-MM-DD这种格式,如:getXAfterDate('2023-11-11',1,'day'),结果为2023-11-12
|
|
50
|
-
* @param date:为传过来的日期
|
|
51
|
-
* @param num:在当前日期加num,类型为int
|
|
52
|
-
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
getXAfterDate: (date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType) => string;
|
|
56
|
-
/**
|
|
57
|
-
* 将传过来的日期加X日期且时间格式为YYYY-MM-DD HH:mm:ss这种格式,如:getXAfterDateTime('2023-11-11 10:23:45',1,'day'),结果为2023-11-12 10:23:45
|
|
58
|
-
* @param date:为传过来的日期
|
|
59
|
-
* @param num:在当前日期加num,类型为int
|
|
60
|
-
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
getXAfterDateTime(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
64
|
-
/**
|
|
65
|
-
* 将传过来的日期减去X日期且时间格式为YYYY-MM-DD这种格式,如:getXBeforeDate('2023-11-11',1,'day'),结果为2023-11-10
|
|
66
|
-
* @param date:为传过来的日期
|
|
67
|
-
* @param num:在当前日期加num,类型为int
|
|
68
|
-
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
getXBeforeDate(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
72
|
-
/**
|
|
73
|
-
* 将传过来的日期减去X日期且时间格式为YYYY-MM-DD HH:mm:ss这种格式,如:getXBeforeDateTime('2023-11-11 10:23:45',1,'day'),结果为2023-11-10 10:23:45
|
|
74
|
-
* @param date:为传过来的日期
|
|
75
|
-
* @param num:在当前日期加day,类型为int
|
|
76
|
-
* @param dateType:为要加的日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
77
|
-
* @returns
|
|
78
|
-
*/
|
|
79
|
-
getXBeforeDateTime(date: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): string;
|
|
80
|
-
/**
|
|
81
|
-
* 计算2个日期之间的差值
|
|
82
|
-
* @param startDate:开始日期
|
|
83
|
-
* @param endDate:结束日期,结束日期要比开始日期大
|
|
84
|
-
* @param dateType:日期类型,有如下类型:'minute','hour','day','week','month','year'这六种类型
|
|
85
|
-
* @returns
|
|
86
|
-
*/
|
|
87
|
-
getDateDiff(startDate: dayjs.ConfigType, endDate: dayjs.ConfigType, dateType: dayjs.ManipulateType): number;
|
|
88
|
-
/**
|
|
89
|
-
* 判断date1是否在date2之前,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为false
|
|
90
|
-
* @param date1
|
|
91
|
-
* @param date2
|
|
92
|
-
* @returns
|
|
93
|
-
*/
|
|
94
|
-
isBefore: (date1: dayjs.ConfigType, date2: dayjs.ConfigType) => boolean;
|
|
95
|
-
/**
|
|
96
|
-
* 判断date1是否在date2之后,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为true
|
|
97
|
-
* @param date1
|
|
98
|
-
* @param date2
|
|
99
|
-
* @returns
|
|
100
|
-
*/
|
|
101
|
-
isAfter(date1: dayjs.ConfigType, date2: dayjs.ConfigType): boolean;
|
|
102
|
-
/**
|
|
103
|
-
* 判断date1是否与date2相同,比如:date1:2023-01-01 13:30:23,date2:2022-12-01 13:30:23,结果为false
|
|
104
|
-
* @param date1
|
|
105
|
-
* @param date2
|
|
106
|
-
* @returns
|
|
107
|
-
*/
|
|
108
|
-
isSame(date1: dayjs.ConfigType, date2: dayjs.ConfigType): boolean;
|
|
109
|
-
/**
|
|
110
|
-
* 将传过来的日期转为当年的1月1号或者当月的1号或者当周的周一
|
|
111
|
-
* @param date:传过来日期
|
|
112
|
-
* @param dateType,日期类型,为:year,month,week这3种
|
|
113
|
-
* @returns
|
|
114
|
-
*/
|
|
115
|
-
getEarlyDaysDate(date: dayjs.ConfigType, dateType: dayjs.ManipulateType): string;
|
|
116
|
-
/**
|
|
117
|
-
* 将传过来的日期转为当年的12月31号或者当月的最后一天或者当周的周日
|
|
118
|
-
* @param date:传过来日期
|
|
119
|
-
* @param dateType,日期类型,为:year,month,week这3种
|
|
120
|
-
* @returns
|
|
121
|
-
*/
|
|
122
|
-
getLastDaysDate(date: dayjs.ConfigType, dateType: dayjs.ManipulateType): string;
|
|
123
|
-
/**
|
|
124
|
-
* 获取2个日期之间的所有日期,包括开始日期和结束日期,如:getIntermediateDate('2023-12-01','2023-12-15',1,'day'))
|
|
125
|
-
* @param startDate:开始日期
|
|
126
|
-
* @param endDate:结束日期要大于开始日期
|
|
127
|
-
* @param num:在开始日期上加num,int类型,如果dateType为day,num为1那么就是在开始日期上加一天
|
|
128
|
-
* @param dateType,日期类型,类型如下:'minute','hour','day','week','month','year'这六种类型
|
|
129
|
-
* @returns
|
|
130
|
-
*/
|
|
131
|
-
getIntermediateDate(startDate: dayjs.ConfigType, endDate: dayjs.ConfigType, num: number, dateType: dayjs.ManipulateType): (string | number | Date | dayjs.Dayjs)[];
|
|
132
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function useMessage(): {
|
|
2
|
-
/**
|
|
3
|
-
* @description: 显示提示信息
|
|
4
|
-
* @param messageContent 消息内容
|
|
5
|
-
* @return
|
|
6
|
-
*/
|
|
7
|
-
alert(messageContent: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* @description: 显示确认信息
|
|
10
|
-
* @param messageContent 消息内容
|
|
11
|
-
* @param title 标题
|
|
12
|
-
* @param callback 回调方法
|
|
13
|
-
* @return
|
|
14
|
-
*/
|
|
15
|
-
confirm(messageContent: string, title: string, callback?: Function): void;
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function useToast(): {
|
|
2
|
-
/**
|
|
3
|
-
* @description: 显示提示信息
|
|
4
|
-
* @param type 信息类型,可选值:success、error、warning、info
|
|
5
|
-
* @param messageContent 消息内容
|
|
6
|
-
* @param position 位置
|
|
7
|
-
* @return
|
|
8
|
-
*/
|
|
9
|
-
showToast(type: string, messageContent: string, position?: string): void;
|
|
10
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export declare function useUtils(): {
|
|
2
|
-
/**
|
|
3
|
-
* @description: 判断是否是微信浏览器打开
|
|
4
|
-
* @return
|
|
5
|
-
*/
|
|
6
|
-
isWechatBrowser(): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @description: 计算表达式,实现eval函数功能,解决使用eval时编译报错
|
|
9
|
-
* @param expression
|
|
10
|
-
* @return
|
|
11
|
-
*/
|
|
12
|
-
computedExpression: (expression: string) => any;
|
|
13
|
-
/**
|
|
14
|
-
* @description: 判断参数是否为空
|
|
15
|
-
* @param T param
|
|
16
|
-
* @return
|
|
17
|
-
*/
|
|
18
|
-
isEmpty: <T>(param: T) => boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @description: 判断参数是否为空
|
|
21
|
-
* @param T obj
|
|
22
|
-
* @param reserveEmptyArray 是否保留空数组,默认不保留
|
|
23
|
-
* @return
|
|
24
|
-
*/
|
|
25
|
-
removeEmptyAttribute(obj: Object, reserveEmptyArray?: boolean): Object;
|
|
26
|
-
/**
|
|
27
|
-
* 将JavaScript对象转换为FormData对象,以便可以通过HTTP请求发送。
|
|
28
|
-
* @param {Object} objectToConvert - 要转换的JavaScript对象。
|
|
29
|
-
* @param {string} [rootName] - 在生成的FormData对象中,objectToConvert对象的属性的基础名称。
|
|
30
|
-
* @param {FormData} [existingFormData] - 可选的FormData对象,如果提供,将在此对象上添加新的字段。
|
|
31
|
-
* @returns {FormData} - 包含objectToConvert对象属性的FormData对象。
|
|
32
|
-
*/
|
|
33
|
-
convertObjectToFormData: (objectToConvert: any, rootName?: string, existingFormData?: FormData) => FormData;
|
|
34
|
-
/**
|
|
35
|
-
* @description: 检查上传的文件是否合法
|
|
36
|
-
* @param file 要上传的文件
|
|
37
|
-
* @param files 已上传的文件
|
|
38
|
-
* @param size 文件限制大小
|
|
39
|
-
* @param unit 文件限制大小的单位
|
|
40
|
-
* @param isImage 是否为图片
|
|
41
|
-
* @return
|
|
42
|
-
*/
|
|
43
|
-
checkFile(file: any, files: [], size: number, unit: string, isImage: boolean): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* @description: 将数据对象转换为文件对象
|
|
46
|
-
* @param files
|
|
47
|
-
* @return
|
|
48
|
-
*/
|
|
49
|
-
dataToFile(files: Record<string, any>[]): Promise<File[]>;
|
|
50
|
-
/**
|
|
51
|
-
* @description: 将对象格式化为页面跳转参数字符串
|
|
52
|
-
* @param params
|
|
53
|
-
* @param any
|
|
54
|
-
* @return
|
|
55
|
-
*/
|
|
56
|
-
toQueryParams(params: Record<string, any>): string;
|
|
57
|
-
isCurrentProject(): boolean;
|
|
58
|
-
};
|