@kengic/uni 0.3.2-beta.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.
- package/README.md +1 -0
- package/dist/index.css +1 -0
- package/dist/kengic-uni.js +1374 -0
- package/dist/src/components/index.d.ts +5 -0
- package/dist/src/components/uni-ui/uni-badge/uni-badge.vue.d.ts +108 -0
- package/dist/src/components/uni-ui/uni-breadcrumb/uni-breadcrumb.vue.d.ts +23 -0
- package/dist/src/components/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue.d.ts +30 -0
- package/dist/src/components/uni-ui/uni-calendar/calendar.d.ts +67 -0
- package/dist/src/components/uni-ui/uni-calendar/i18n/index.d.ts +39 -0
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar-item.vue.d.ts +47 -0
- package/dist/src/components/uni-ui/uni-calendar/uni-calendar.vue.d.ts +166 -0
- package/dist/src/components/uni-ui/uni-calendar/util.d.ts +211 -0
- package/dist/src/components/uni-ui/uni-card/uni-card.vue.d.ts +117 -0
- package/dist/src/components/uni-ui/uni-col/uni-col.vue.d.ts +70 -0
- package/dist/src/components/uni-ui/uni-collapse/uni-collapse.vue.d.ts +45 -0
- package/dist/src/components/uni-ui/uni-collapse-item/uni-collapse-item.vue.d.ts +102 -0
- package/dist/src/components/uni-ui/uni-combox/uni-combox.vue.d.ts +95 -0
- package/dist/src/components/uni-ui/uni-countdown/i18n/index.d.ts +21 -0
- package/dist/src/components/uni-ui/uni-countdown/uni-countdown.vue.d.ts +158 -0
- package/dist/src/components/uni-ui/uni-data-checkbox/uni-data-checkbox.vue.d.ts +192 -0
- package/dist/src/components/uni-ui/uni-data-picker/uni-data-picker.vue.d.ts +267 -0
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-picker.d.ts +221 -0
- package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-pickerview.vue.d.ts +169 -0
- package/dist/src/components/uni-ui/uni-data-select/uni-data-select.vue.d.ts +125 -0
- package/dist/src/components/uni-ui/uni-dateformat/date-format.d.ts +6 -0
- package/dist/src/components/uni-ui/uni-dateformat/uni-dateformat.vue.d.ts +57 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar-item.vue.d.ts +44 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/calendar.vue.d.ts +253 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/i18n/index.d.ts +69 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/time-picker.vue.d.ts +225 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/uni-datetime-picker.vue.d.ts +236 -0
- package/dist/src/components/uni-ui/uni-datetime-picker/util.d.ts +171 -0
- package/dist/src/components/uni-ui/uni-drawer/keypress.d.ts +14 -0
- package/dist/src/components/uni-ui/uni-drawer/uni-drawer.vue.d.ts +78 -0
- package/dist/src/components/uni-ui/uni-easyinput/uni-easyinput.vue.d.ts +269 -0
- package/dist/src/components/uni-ui/uni-fab/uni-fab.vue.d.ts +109 -0
- package/dist/src/components/uni-ui/uni-fav/i18n/index.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-fav/uni-fav.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-file-picker/choose-and-upload-file.d.ts +4 -0
- package/dist/src/components/uni-ui/uni-file-picker/uni-file-picker.vue.d.ts +254 -0
- package/dist/src/components/uni-ui/uni-file-picker/upload-file.vue.d.ts +81 -0
- package/dist/src/components/uni-ui/uni-file-picker/upload-image.vue.d.ts +90 -0
- package/dist/src/components/uni-ui/uni-file-picker/utils.d.ts +22 -0
- package/dist/src/components/uni-ui/uni-forms/uni-forms.vue.d.ts +160 -0
- package/dist/src/components/uni-ui/uni-forms/utils.d.ts +20 -0
- package/dist/src/components/uni-ui/uni-forms/validate.d.ts +42 -0
- package/dist/src/components/uni-ui/uni-forms-item/uni-forms-item.vue.d.ts +127 -0
- package/dist/src/components/uni-ui/uni-goods-nav/i18n/index.d.ts +21 -0
- package/dist/src/components/uni-ui/uni-goods-nav/uni-goods-nav.vue.d.ts +61 -0
- package/dist/src/components/uni-ui/uni-grid/uni-grid.vue.d.ts +59 -0
- package/dist/src/components/uni-ui/uni-grid-item/uni-grid-item.vue.d.ts +26 -0
- package/dist/src/components/uni-ui/uni-group/uni-group.vue.d.ts +52 -0
- package/dist/src/components/uni-ui/uni-icons/icons.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-icons/uni-icons.vue.d.ts +56 -0
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list-item.vue.d.ts +45 -0
- package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list.vue.d.ts +49 -0
- package/dist/src/components/uni-ui/uni-link/uni-link.vue.d.ts +75 -0
- package/dist/src/components/uni-ui/uni-list/uni-list.vue.d.ts +53 -0
- package/dist/src/components/uni-ui/uni-list/uni-refresh.vue.d.ts +22 -0
- package/dist/src/components/uni-ui/uni-list-ad/uni-list-ad.vue.d.ts +25 -0
- package/dist/src/components/uni-ui/uni-list-chat/uni-list-chat.vue.d.ts +123 -0
- package/dist/src/components/uni-ui/uni-list-item/uni-list-item.vue.d.ts +248 -0
- package/dist/src/components/uni-ui/uni-load-more/i18n/index.d.ts +18 -0
- package/dist/src/components/uni-ui/uni-load-more/uni-load-more.vue.d.ts +89 -0
- package/dist/src/components/uni-ui/uni-nav-bar/uni-nav-bar.vue.d.ts +163 -0
- package/dist/src/components/uni-ui/uni-nav-bar/uni-status-bar.vue.d.ts +4 -0
- package/dist/src/components/uni-ui/uni-notice-bar/uni-notice-bar.vue.d.ts +138 -0
- package/dist/src/components/uni-ui/uni-number-box/uni-number-box.vue.d.ts +90 -0
- package/dist/src/components/uni-ui/uni-pagination/i18n/index.d.ts +28 -0
- package/dist/src/components/uni-ui/uni-pagination/uni-pagination.vue.d.ts +127 -0
- package/dist/src/components/uni-ui/uni-popup/i18n/index.d.ts +24 -0
- package/dist/src/components/uni-ui/uni-popup/keypress.d.ts +14 -0
- package/dist/src/components/uni-ui/uni-popup/popup.d.ts +17 -0
- package/dist/src/components/uni-ui/uni-popup/uni-popup.vue.d.ts +136 -0
- package/dist/src/components/uni-ui/uni-popup-dialog/uni-popup-dialog.vue.d.ts +123 -0
- package/dist/src/components/uni-ui/uni-popup-message/uni-popup-message.vue.d.ts +67 -0
- package/dist/src/components/uni-ui/uni-popup-share/uni-popup-share.vue.d.ts +49 -0
- package/dist/src/components/uni-ui/uni-rate/uni-rate.vue.d.ts +154 -0
- package/dist/src/components/uni-ui/uni-row/uni-row.vue.d.ts +41 -0
- package/dist/src/components/uni-ui/uni-search-bar/i18n/index.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-search-bar/uni-search-bar.vue.d.ts +126 -0
- package/dist/src/components/uni-ui/uni-section/uni-section.vue.d.ts +85 -0
- package/dist/src/components/uni-ui/uni-segmented-control/uni-segmented-control.vue.d.ts +47 -0
- package/dist/src/components/uni-ui/uni-steps/uni-steps.vue.d.ts +59 -0
- package/dist/src/components/uni-ui/uni-swipe-action/uni-swipe-action.vue.d.ts +6 -0
- package/dist/src/components/uni-ui/uni-swiper-dot/uni-swiper-dot.vue.d.ts +65 -0
- package/dist/src/components/uni-ui/uni-table/uni-table.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-tag/uni-tag.vue.d.ts +84 -0
- package/dist/src/components/uni-ui/uni-tbody/uni-tbody.vue.d.ts +2 -0
- package/dist/src/components/uni-ui/uni-td/uni-td.vue.d.ts +48 -0
- package/dist/src/components/uni-ui/uni-th/filter-dropdown.vue.d.ts +99 -0
- package/dist/src/components/uni-ui/uni-th/uni-th.vue.d.ts +97 -0
- package/dist/src/components/uni-ui/uni-thead/uni-thead.vue.d.ts +15 -0
- package/dist/src/components/uni-ui/uni-title/uni-title.vue.d.ts +54 -0
- package/dist/src/components/uni-ui/uni-tooltip/uni-tooltip.vue.d.ts +23 -0
- package/dist/src/components/uni-ui/uni-tr/table-checkbox.vue.d.ts +58 -0
- package/dist/src/components/uni-ui/uni-tr/uni-tr.vue.d.ts +39 -0
- package/dist/src/components/uni-ui/uni-transition/createAnimation.d.ts +16 -0
- package/dist/src/components/uni-ui/uni-transition/uni-transition.vue.d.ts +240 -0
- package/dist/src/consts/i18n/en.d.ts +45 -0
- package/dist/src/consts/i18n/index.d.ts +90 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +45 -0
- package/dist/src/consts/index.d.ts +1 -0
- package/dist/src/helpers/tsx.helper.d.ts +13 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/kg.util.d.ts +5 -0
- package/package.json +79 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
"uni-datetime-picker.selectDate": string;
|
|
4
|
+
"uni-datetime-picker.selectTime": string;
|
|
5
|
+
"uni-datetime-picker.selectDateTime": string;
|
|
6
|
+
"uni-datetime-picker.startDate": string;
|
|
7
|
+
"uni-datetime-picker.endDate": string;
|
|
8
|
+
"uni-datetime-picker.startTime": string;
|
|
9
|
+
"uni-datetime-picker.endTime": string;
|
|
10
|
+
"uni-datetime-picker.ok": string;
|
|
11
|
+
"uni-datetime-picker.clear": string;
|
|
12
|
+
"uni-datetime-picker.cancel": string;
|
|
13
|
+
"uni-datetime-picker.year": string;
|
|
14
|
+
"uni-datetime-picker.month": string;
|
|
15
|
+
"uni-calender.MON": string;
|
|
16
|
+
"uni-calender.TUE": string;
|
|
17
|
+
"uni-calender.WED": string;
|
|
18
|
+
"uni-calender.THU": string;
|
|
19
|
+
"uni-calender.FRI": string;
|
|
20
|
+
"uni-calender.SAT": string;
|
|
21
|
+
"uni-calender.SUN": string;
|
|
22
|
+
"uni-calender.confirm": string;
|
|
23
|
+
};
|
|
24
|
+
'zh-Hans': {
|
|
25
|
+
"uni-datetime-picker.selectDate": string;
|
|
26
|
+
"uni-datetime-picker.selectTime": string;
|
|
27
|
+
"uni-datetime-picker.selectDateTime": string;
|
|
28
|
+
"uni-datetime-picker.startDate": string;
|
|
29
|
+
"uni-datetime-picker.endDate": string;
|
|
30
|
+
"uni-datetime-picker.startTime": string;
|
|
31
|
+
"uni-datetime-picker.endTime": string;
|
|
32
|
+
"uni-datetime-picker.ok": string;
|
|
33
|
+
"uni-datetime-picker.clear": string;
|
|
34
|
+
"uni-datetime-picker.cancel": string;
|
|
35
|
+
"uni-datetime-picker.year": string;
|
|
36
|
+
"uni-datetime-picker.month": string;
|
|
37
|
+
"uni-calender.SUN": string;
|
|
38
|
+
"uni-calender.MON": string;
|
|
39
|
+
"uni-calender.TUE": string;
|
|
40
|
+
"uni-calender.WED": string;
|
|
41
|
+
"uni-calender.THU": string;
|
|
42
|
+
"uni-calender.FRI": string;
|
|
43
|
+
"uni-calender.SAT": string;
|
|
44
|
+
"uni-calender.confirm": string;
|
|
45
|
+
};
|
|
46
|
+
'zh-Hant': {
|
|
47
|
+
"uni-datetime-picker.selectDate": string;
|
|
48
|
+
"uni-datetime-picker.selectTime": string;
|
|
49
|
+
"uni-datetime-picker.selectDateTime": string;
|
|
50
|
+
"uni-datetime-picker.startDate": string;
|
|
51
|
+
"uni-datetime-picker.endDate": string;
|
|
52
|
+
"uni-datetime-picker.startTime": string;
|
|
53
|
+
"uni-datetime-picker.endTime": string;
|
|
54
|
+
"uni-datetime-picker.ok": string;
|
|
55
|
+
"uni-datetime-picker.clear": string;
|
|
56
|
+
"uni-datetime-picker.cancel": string;
|
|
57
|
+
"uni-datetime-picker.year": string;
|
|
58
|
+
"uni-datetime-picker.month": string;
|
|
59
|
+
"uni-calender.SUN": string;
|
|
60
|
+
"uni-calender.MON": string;
|
|
61
|
+
"uni-calender.TUE": string;
|
|
62
|
+
"uni-calender.WED": string;
|
|
63
|
+
"uni-calender.THU": string;
|
|
64
|
+
"uni-calender.FRI": string;
|
|
65
|
+
"uni-calender.SAT": string;
|
|
66
|
+
"uni-calender.confirm": string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
start: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
end: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
returnType: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
border: {
|
|
31
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
hideSecond: {
|
|
35
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}, any, {
|
|
39
|
+
indicatorStyle: string;
|
|
40
|
+
visible: boolean;
|
|
41
|
+
fixNvueBug: {};
|
|
42
|
+
dateShow: boolean;
|
|
43
|
+
timeShow: boolean;
|
|
44
|
+
title: string;
|
|
45
|
+
time: string;
|
|
46
|
+
year: number;
|
|
47
|
+
month: number;
|
|
48
|
+
day: number;
|
|
49
|
+
hour: number;
|
|
50
|
+
minute: number;
|
|
51
|
+
second: number;
|
|
52
|
+
startYear: number;
|
|
53
|
+
startMonth: number;
|
|
54
|
+
startDay: number;
|
|
55
|
+
startHour: number;
|
|
56
|
+
startMinute: number;
|
|
57
|
+
startSecond: number;
|
|
58
|
+
endYear: number;
|
|
59
|
+
endMonth: number;
|
|
60
|
+
endDay: number;
|
|
61
|
+
endHour: number;
|
|
62
|
+
endMinute: number;
|
|
63
|
+
endSecond: number;
|
|
64
|
+
}, {
|
|
65
|
+
years(): any[];
|
|
66
|
+
months(): any[];
|
|
67
|
+
days(): any[];
|
|
68
|
+
hours(): any[];
|
|
69
|
+
minutes(): any[];
|
|
70
|
+
seconds(): any[];
|
|
71
|
+
ymd(): number[];
|
|
72
|
+
hms(): number[];
|
|
73
|
+
currentDateIsStart(): boolean;
|
|
74
|
+
currentDateIsEnd(): boolean;
|
|
75
|
+
minYear(): number;
|
|
76
|
+
maxYear(): number;
|
|
77
|
+
minMonth(): number;
|
|
78
|
+
maxMonth(): number;
|
|
79
|
+
minDay(): number;
|
|
80
|
+
maxDay(): number;
|
|
81
|
+
minHour(): number | undefined;
|
|
82
|
+
maxHour(): number | undefined;
|
|
83
|
+
minMinute(): number | undefined;
|
|
84
|
+
maxMinute(): number | undefined;
|
|
85
|
+
minSecond(): number | undefined;
|
|
86
|
+
maxSecond(): number | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* for i18n
|
|
89
|
+
*/
|
|
90
|
+
selectTimeText(): any;
|
|
91
|
+
okText(): any;
|
|
92
|
+
clearText(): any;
|
|
93
|
+
cancelText(): any;
|
|
94
|
+
}, {
|
|
95
|
+
/**
|
|
96
|
+
* @param {Object} item
|
|
97
|
+
* 小于 10 在前面加个 0
|
|
98
|
+
*/
|
|
99
|
+
lessThanTen(item: Object): string | Object;
|
|
100
|
+
/**
|
|
101
|
+
* 解析时分秒字符串,例如:00:00:00
|
|
102
|
+
* @param {String} timeString
|
|
103
|
+
*/
|
|
104
|
+
parseTimeType(timeString: string): void;
|
|
105
|
+
/**
|
|
106
|
+
* 解析选择器初始值,类型可以是字符串、时间戳,例如:2000-10-02、'08:30:00'、 1610695109000
|
|
107
|
+
* @param {String | Number} datetime
|
|
108
|
+
*/
|
|
109
|
+
initPickerValue(datetime: string | number): void;
|
|
110
|
+
/**
|
|
111
|
+
* 初始值规则:
|
|
112
|
+
* - 用户设置初始值 value
|
|
113
|
+
* - 设置了起始时间 start、终止时间 end,并 start < value < end,初始值为 value, 否则初始值为 start
|
|
114
|
+
* - 只设置了起始时间 start,并 start < value,初始值为 value,否则初始值为 start
|
|
115
|
+
* - 只设置了终止时间 end,并 value < end,初始值为 value,否则初始值为 end
|
|
116
|
+
* - 无起始终止时间,则初始值为 value
|
|
117
|
+
* - 无初始值 value,则初始值为当前本地时间 Date.now()
|
|
118
|
+
* @param {Object} value
|
|
119
|
+
* @param {Object} dateBase
|
|
120
|
+
*/
|
|
121
|
+
compareValueWithStartAndEnd(value: Object, start: any, end: any): Date;
|
|
122
|
+
/**
|
|
123
|
+
* 转换为可比较的时间戳,接受日期、时分秒、时间戳
|
|
124
|
+
* @param {Object} value
|
|
125
|
+
*/
|
|
126
|
+
superTimeStamp(value: Object): number | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* 解析默认值 value,字符串、时间戳
|
|
129
|
+
* @param {Object} defaultTime
|
|
130
|
+
*/
|
|
131
|
+
parseValue(value: any): void;
|
|
132
|
+
/**
|
|
133
|
+
* 解析可选择时间范围 start、end,年月日字符串、时间戳
|
|
134
|
+
* @param {Object} defaultTime
|
|
135
|
+
*/
|
|
136
|
+
parseDatetimeRange(point: any, pointType: any): void;
|
|
137
|
+
getCurrentRange(value: any): any[];
|
|
138
|
+
capitalize(str: any): any;
|
|
139
|
+
checkValue(name: any, value: any, values: any): void;
|
|
140
|
+
daysInMonth(year: any, month: any): number;
|
|
141
|
+
fixIosDateFormat(value: any): any;
|
|
142
|
+
/**
|
|
143
|
+
* 生成时间戳
|
|
144
|
+
* @param {Object} time
|
|
145
|
+
*/
|
|
146
|
+
createTimeStamp(time: Object): number | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* 生成日期或时间的字符串
|
|
149
|
+
*/
|
|
150
|
+
createDomSting(): string;
|
|
151
|
+
/**
|
|
152
|
+
* 初始化返回值,并抛出 change 事件
|
|
153
|
+
*/
|
|
154
|
+
initTime(emit?: boolean): void;
|
|
155
|
+
/**
|
|
156
|
+
* 用户选择日期或时间更新 data
|
|
157
|
+
* @param {Object} e
|
|
158
|
+
*/
|
|
159
|
+
bindDateChange(e: Object): void;
|
|
160
|
+
bindTimeChange(e: any): void;
|
|
161
|
+
/**
|
|
162
|
+
* 初始化弹出层
|
|
163
|
+
*/
|
|
164
|
+
initTimePicker(): void;
|
|
165
|
+
/**
|
|
166
|
+
* 触发或关闭弹框
|
|
167
|
+
*/
|
|
168
|
+
tiggerTimePicker(e: any): void;
|
|
169
|
+
/**
|
|
170
|
+
* 用户点击“清空”按钮,清空当前值
|
|
171
|
+
*/
|
|
172
|
+
clearTime(): void;
|
|
173
|
+
/**
|
|
174
|
+
* 用户点击“确定”按钮
|
|
175
|
+
*/
|
|
176
|
+
setTime(): void;
|
|
177
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
178
|
+
type: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
value: {
|
|
183
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
184
|
+
default: string;
|
|
185
|
+
};
|
|
186
|
+
modelValue: {
|
|
187
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
start: {
|
|
191
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
end: {
|
|
195
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
returnType: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
disabled: {
|
|
203
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
border: {
|
|
207
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
hideSecond: {
|
|
211
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
}>>, {
|
|
215
|
+
type: string;
|
|
216
|
+
value: string | number;
|
|
217
|
+
border: string | boolean;
|
|
218
|
+
modelValue: string | number;
|
|
219
|
+
disabled: string | boolean;
|
|
220
|
+
start: string | number;
|
|
221
|
+
end: string | number;
|
|
222
|
+
returnType: string;
|
|
223
|
+
hideSecond: string | boolean;
|
|
224
|
+
}>;
|
|
225
|
+
export default _default;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | DateConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | DateConstructor)[];
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
start: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
end: {
|
|
19
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
returnType: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
placeholder: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
startPlaceholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
endPlaceholder: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
rangeSeparator: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
border: {
|
|
43
|
+
type: BooleanConstructor[];
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
disabled: {
|
|
47
|
+
type: BooleanConstructor[];
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
clearIcon: {
|
|
51
|
+
type: BooleanConstructor[];
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
hideSecond: {
|
|
55
|
+
type: BooleanConstructor[];
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
defaultValue: {
|
|
59
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}, any, {
|
|
63
|
+
isRange: boolean;
|
|
64
|
+
hasTime: boolean;
|
|
65
|
+
displayValue: string;
|
|
66
|
+
inputDate: string;
|
|
67
|
+
calendarDate: string;
|
|
68
|
+
pickerTime: string;
|
|
69
|
+
calendarRange: {
|
|
70
|
+
startDate: string;
|
|
71
|
+
startTime: string;
|
|
72
|
+
endDate: string;
|
|
73
|
+
endTime: string;
|
|
74
|
+
};
|
|
75
|
+
displayRangeValue: {
|
|
76
|
+
startDate: string;
|
|
77
|
+
endDate: string;
|
|
78
|
+
};
|
|
79
|
+
tempRange: {
|
|
80
|
+
startDate: string;
|
|
81
|
+
startTime: string;
|
|
82
|
+
endDate: string;
|
|
83
|
+
endTime: string;
|
|
84
|
+
};
|
|
85
|
+
startMultipleStatus: {
|
|
86
|
+
before: string;
|
|
87
|
+
after: string;
|
|
88
|
+
data: never[];
|
|
89
|
+
fulldate: string;
|
|
90
|
+
};
|
|
91
|
+
endMultipleStatus: {
|
|
92
|
+
before: string;
|
|
93
|
+
after: string;
|
|
94
|
+
data: never[];
|
|
95
|
+
fulldate: string;
|
|
96
|
+
};
|
|
97
|
+
pickerVisible: boolean;
|
|
98
|
+
pickerPositionStyle: null;
|
|
99
|
+
isEmitValue: boolean;
|
|
100
|
+
isPhone: boolean;
|
|
101
|
+
isFirstShow: boolean;
|
|
102
|
+
i18nT: () => void;
|
|
103
|
+
}, {
|
|
104
|
+
timepickerStartTime(): string;
|
|
105
|
+
timepickerEndTime(): string;
|
|
106
|
+
mobileCalendarTime(): string | {
|
|
107
|
+
start: string;
|
|
108
|
+
end: string;
|
|
109
|
+
};
|
|
110
|
+
mobSelectableTime(): {
|
|
111
|
+
start: string;
|
|
112
|
+
end: string;
|
|
113
|
+
};
|
|
114
|
+
datePopupWidth(): 653 | 301;
|
|
115
|
+
/**
|
|
116
|
+
* for i18n
|
|
117
|
+
*/
|
|
118
|
+
singlePlaceholderText(): string | void;
|
|
119
|
+
startPlaceholderText(): string | void;
|
|
120
|
+
endPlaceholderText(): string | void;
|
|
121
|
+
selectDateText(): void;
|
|
122
|
+
selectDateTimeText(): void;
|
|
123
|
+
selectTimeText(): void;
|
|
124
|
+
startDateText(): string | void;
|
|
125
|
+
startTimeText(): void;
|
|
126
|
+
endDateText(): string | void;
|
|
127
|
+
endTimeText(): void;
|
|
128
|
+
okText(): void;
|
|
129
|
+
clearText(): void;
|
|
130
|
+
showClearIcon(): string | false;
|
|
131
|
+
}, {
|
|
132
|
+
initI18nT(): void;
|
|
133
|
+
initPicker(newVal: any): void;
|
|
134
|
+
updateLeftCale(e: any): void;
|
|
135
|
+
updateRightCale(e: any): void;
|
|
136
|
+
platform(): void;
|
|
137
|
+
show(): void;
|
|
138
|
+
close(): void;
|
|
139
|
+
setEmit(value: any): void;
|
|
140
|
+
createTimestamp(date: any): number;
|
|
141
|
+
singleChange(e: any): void;
|
|
142
|
+
confirmSingleChange(): void;
|
|
143
|
+
leftChange(e: any): void;
|
|
144
|
+
rightChange(e: any): void;
|
|
145
|
+
mobileChange(e: any): void;
|
|
146
|
+
rangeChange(before: any, after: any): void;
|
|
147
|
+
confirmRangeChange(): void;
|
|
148
|
+
handleStartAndEnd(before: any, after: any, temp?: boolean): void;
|
|
149
|
+
/**
|
|
150
|
+
* 比较时间大小
|
|
151
|
+
*/
|
|
152
|
+
dateCompare(startDate: any, endDate: any): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* 比较时间差
|
|
155
|
+
*/
|
|
156
|
+
diffDate(startDate: any, endDate: any): number;
|
|
157
|
+
clear(needEmit?: boolean): void;
|
|
158
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
159
|
+
type: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
value: {
|
|
164
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | DateConstructor)[];
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
modelValue: {
|
|
168
|
+
type: (StringConstructor | NumberConstructor | ArrayConstructor | DateConstructor)[];
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
start: {
|
|
172
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
end: {
|
|
176
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
179
|
+
returnType: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
placeholder: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
startPlaceholder: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
191
|
+
endPlaceholder: {
|
|
192
|
+
type: StringConstructor;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
rangeSeparator: {
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
border: {
|
|
200
|
+
type: BooleanConstructor[];
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
disabled: {
|
|
204
|
+
type: BooleanConstructor[];
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
clearIcon: {
|
|
208
|
+
type: BooleanConstructor[];
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
|
+
hideSecond: {
|
|
212
|
+
type: BooleanConstructor[];
|
|
213
|
+
default: boolean;
|
|
214
|
+
};
|
|
215
|
+
defaultValue: {
|
|
216
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
217
|
+
default: string;
|
|
218
|
+
};
|
|
219
|
+
}>>, {
|
|
220
|
+
type: string;
|
|
221
|
+
value: string | number | unknown[] | Date;
|
|
222
|
+
border: boolean;
|
|
223
|
+
modelValue: string | number | unknown[] | Date;
|
|
224
|
+
disabled: boolean;
|
|
225
|
+
placeholder: string;
|
|
226
|
+
start: string | number;
|
|
227
|
+
clearIcon: boolean;
|
|
228
|
+
end: string | number;
|
|
229
|
+
returnType: string;
|
|
230
|
+
hideSecond: boolean;
|
|
231
|
+
startPlaceholder: string;
|
|
232
|
+
endPlaceholder: string;
|
|
233
|
+
defaultValue: string | unknown[] | Record<string, any>;
|
|
234
|
+
rangeSeparator: string;
|
|
235
|
+
}>;
|
|
236
|
+
export default _default;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
export class Calendar {
|
|
2
|
+
constructor({ selected, startDate, endDate, range, }?: {
|
|
3
|
+
selected: any;
|
|
4
|
+
startDate: any;
|
|
5
|
+
endDate: any;
|
|
6
|
+
range: any;
|
|
7
|
+
});
|
|
8
|
+
date: {
|
|
9
|
+
fullDate: string;
|
|
10
|
+
year: any;
|
|
11
|
+
month: any;
|
|
12
|
+
date: any;
|
|
13
|
+
day: any;
|
|
14
|
+
};
|
|
15
|
+
selected: any;
|
|
16
|
+
startDate: any;
|
|
17
|
+
endDate: any;
|
|
18
|
+
range: any;
|
|
19
|
+
weeks: {};
|
|
20
|
+
lastHover: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 设置日期
|
|
23
|
+
* @param {Object} date
|
|
24
|
+
*/
|
|
25
|
+
setDate(date: Object): void;
|
|
26
|
+
/**
|
|
27
|
+
* 清理多选状态
|
|
28
|
+
*/
|
|
29
|
+
cleanMultipleStatus(): void;
|
|
30
|
+
multipleStatus: {
|
|
31
|
+
before: string;
|
|
32
|
+
after: string;
|
|
33
|
+
data: never[];
|
|
34
|
+
} | undefined;
|
|
35
|
+
setStartDate(startDate: any): void;
|
|
36
|
+
setEndDate(endDate: any): void;
|
|
37
|
+
getPreMonthObj(date: any): {
|
|
38
|
+
fullDate: string;
|
|
39
|
+
year: any;
|
|
40
|
+
month: any;
|
|
41
|
+
date: any;
|
|
42
|
+
day: any;
|
|
43
|
+
};
|
|
44
|
+
getNextMonthObj(date: any): {
|
|
45
|
+
fullDate: string;
|
|
46
|
+
year: any;
|
|
47
|
+
month: any;
|
|
48
|
+
date: any;
|
|
49
|
+
day: any;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* 获取指定格式Date对象
|
|
53
|
+
*/
|
|
54
|
+
getDateObj(date: any): {
|
|
55
|
+
fullDate: string;
|
|
56
|
+
year: any;
|
|
57
|
+
month: any;
|
|
58
|
+
date: any;
|
|
59
|
+
day: any;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 获取上一个月日期集合
|
|
63
|
+
*/
|
|
64
|
+
getPreMonthDays(amount: any, dateObj: any): {
|
|
65
|
+
date: number;
|
|
66
|
+
month: number;
|
|
67
|
+
disable: boolean;
|
|
68
|
+
}[];
|
|
69
|
+
/**
|
|
70
|
+
* 获取本月日期集合
|
|
71
|
+
*/
|
|
72
|
+
getCurrentMonthDays(amount: any, dateObj: any): {
|
|
73
|
+
fullDate: string;
|
|
74
|
+
year: any;
|
|
75
|
+
date: number;
|
|
76
|
+
multiple: boolean;
|
|
77
|
+
beforeMultiple: boolean;
|
|
78
|
+
afterMultiple: boolean;
|
|
79
|
+
month: any;
|
|
80
|
+
disable: any;
|
|
81
|
+
isToday: boolean;
|
|
82
|
+
userChecked: boolean;
|
|
83
|
+
extraInfo: any;
|
|
84
|
+
}[];
|
|
85
|
+
/**
|
|
86
|
+
* 获取下一个月日期集合
|
|
87
|
+
*/
|
|
88
|
+
_getNextMonthDays(amount: any, dateObj: any): {
|
|
89
|
+
date: number;
|
|
90
|
+
month: any;
|
|
91
|
+
disable: boolean;
|
|
92
|
+
}[];
|
|
93
|
+
/**
|
|
94
|
+
* 获取当前日期详情
|
|
95
|
+
* @param {Object} date
|
|
96
|
+
*/
|
|
97
|
+
getInfo(date: Object): {
|
|
98
|
+
fullDate: string;
|
|
99
|
+
year: any;
|
|
100
|
+
date: number;
|
|
101
|
+
multiple: boolean;
|
|
102
|
+
beforeMultiple: boolean;
|
|
103
|
+
afterMultiple: boolean;
|
|
104
|
+
month: any;
|
|
105
|
+
disable: any;
|
|
106
|
+
isToday: boolean;
|
|
107
|
+
userChecked: boolean;
|
|
108
|
+
extraInfo: any;
|
|
109
|
+
} | {
|
|
110
|
+
date: number;
|
|
111
|
+
month: any;
|
|
112
|
+
disable: boolean;
|
|
113
|
+
} | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* 比较时间是否相等
|
|
116
|
+
*/
|
|
117
|
+
dateEqual(before: any, after: any): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* 比较真实起始日期
|
|
120
|
+
*/
|
|
121
|
+
isLogicBefore(currentDate: any, before: any, after: any): boolean;
|
|
122
|
+
isLogicAfter(currentDate: any, before: any, after: any): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* 获取日期范围内所有日期
|
|
125
|
+
* @param {Object} begin
|
|
126
|
+
* @param {Object} end
|
|
127
|
+
*/
|
|
128
|
+
geDateAll(begin: Object, end: Object): string[];
|
|
129
|
+
/**
|
|
130
|
+
* 获取多选状态
|
|
131
|
+
*/
|
|
132
|
+
setMultiple(fullDate: any): void;
|
|
133
|
+
/**
|
|
134
|
+
* 鼠标 hover 更新多选状态
|
|
135
|
+
*/
|
|
136
|
+
setHoverMultiple(fullDate: any): void;
|
|
137
|
+
/**
|
|
138
|
+
* 更新默认值多选状态
|
|
139
|
+
*/
|
|
140
|
+
setDefaultMultiple(before: any, after: any): void;
|
|
141
|
+
/**
|
|
142
|
+
* 获取每周数据
|
|
143
|
+
* @param {Object} dateData
|
|
144
|
+
*/
|
|
145
|
+
getWeeks(dateData: Object): void;
|
|
146
|
+
calendar: ({
|
|
147
|
+
fullDate: string;
|
|
148
|
+
year: any;
|
|
149
|
+
date: number;
|
|
150
|
+
multiple: boolean;
|
|
151
|
+
beforeMultiple: boolean;
|
|
152
|
+
afterMultiple: boolean;
|
|
153
|
+
month: any;
|
|
154
|
+
disable: any;
|
|
155
|
+
isToday: boolean;
|
|
156
|
+
userChecked: boolean;
|
|
157
|
+
extraInfo: any;
|
|
158
|
+
} | {
|
|
159
|
+
date: number;
|
|
160
|
+
month: any;
|
|
161
|
+
disable: boolean;
|
|
162
|
+
})[] | undefined;
|
|
163
|
+
}
|
|
164
|
+
export function getDateTime(date: any, hideSecond: any): string;
|
|
165
|
+
export function getDate(date: any): string;
|
|
166
|
+
export function getTime(date: any, hideSecond: any): string;
|
|
167
|
+
export function addZero(num: any): any;
|
|
168
|
+
export function getDefaultSecond(hideSecond: any): "00:00" | "00:00:00";
|
|
169
|
+
export function dateCompare(startDate: any, endDate: any): boolean;
|
|
170
|
+
export function checkDate(date: any): any;
|
|
171
|
+
export function fixIosDateFormat(value: any): any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const name: string;
|
|
3
|
+
namespace props {
|
|
4
|
+
namespace disable {
|
|
5
|
+
export const type: BooleanConstructor;
|
|
6
|
+
const _default: boolean;
|
|
7
|
+
export { _default as default };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function mounted(): void;
|
|
11
|
+
function mounted(): void;
|
|
12
|
+
function render(): void;
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|