@tplc/wot 0.0.1 → 0.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/CHANGELOG.md +5 -0
- package/components/composables/useParent.ts +1 -1
- package/components/wd-table/types.ts +1 -1
- package/components/wd-table-col/wd-table-col.vue +1 -1
- package/global.d.ts +91 -102
- package/package.json +7 -1
- package/tsconfig.dts.json +9 -0
- package/types/components/common/AbortablePromise.d.ts +8 -0
- package/types/components/common/base64.d.ts +1 -0
- package/types/components/common/canvasHelper.d.ts +6 -0
- package/types/components/common/clickoutside.d.ts +4 -0
- package/types/components/common/dayjs.d.ts +26 -0
- package/types/components/common/props.d.ts +47 -0
- package/types/components/common/util.d.ts +263 -0
- package/types/components/composables/useCell.d.ts +3 -0
- package/types/components/composables/useChildren.d.ts +9 -0
- package/types/components/composables/useCountDown.d.ts +20 -0
- package/types/components/composables/useLockScroll.d.ts +5 -0
- package/types/components/composables/useParent.d.ts +15 -0
- package/types/components/composables/usePopover.d.ts +9 -0
- package/types/components/composables/useQueue.d.ts +13 -0
- package/types/components/composables/useRaf.d.ts +6 -0
- package/types/components/composables/useTouch.d.ts +11 -0
- package/types/components/composables/useTranslate.d.ts +3 -0
- package/types/components/wd-action-sheet/types.d.ts +145 -0
- package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +145 -0
- package/types/components/wd-backtop/types.d.ts +66 -0
- package/types/components/wd-backtop/wd-backtop.vue.d.ts +101 -0
- package/types/components/wd-badge/types.d.ts +53 -0
- package/types/components/wd-badge/wd-badge.vue.d.ts +71 -0
- package/types/components/wd-button/types.d.ts +125 -0
- package/types/components/wd-button/wd-button.vue.d.ts +157 -0
- package/types/components/wd-calendar/types.d.ts +283 -0
- package/types/components/wd-calendar/wd-calendar.vue.d.ts +324 -0
- package/types/components/wd-calendar-view/month/month.vue.d.ts +79 -0
- package/types/components/wd-calendar-view/month/types.d.ts +38 -0
- package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +113 -0
- package/types/components/wd-calendar-view/monthPanel/types.d.ts +70 -0
- package/types/components/wd-calendar-view/types.d.ts +131 -0
- package/types/components/wd-calendar-view/utils.d.ts +121 -0
- package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +141 -0
- package/types/components/wd-calendar-view/year/types.d.ts +34 -0
- package/types/components/wd-calendar-view/year/year.vue.d.ts +71 -0
- package/types/components/wd-calendar-view/yearPanel/types.d.ts +53 -0
- package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +81 -0
- package/types/components/wd-card/types.d.ts +42 -0
- package/types/components/wd-card/wd-card.vue.d.ts +63 -0
- package/types/components/wd-cell/types.d.ts +129 -0
- package/types/components/wd-cell/wd-cell.vue.d.ts +163 -0
- package/types/components/wd-cell-group/types.d.ts +40 -0
- package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +54 -0
- package/types/components/wd-checkbox/types.d.ts +75 -0
- package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +106 -0
- package/types/components/wd-checkbox-group/types.d.ts +78 -0
- package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +103 -0
- package/types/components/wd-circle/types.d.ts +77 -0
- package/types/components/wd-circle/wd-circle.vue.d.ts +106 -0
- package/types/components/wd-col/types.d.ts +26 -0
- package/types/components/wd-col/wd-col.vue.d.ts +48 -0
- package/types/components/wd-col-picker/types.d.ts +226 -0
- package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +269 -0
- package/types/components/wd-collapse/types.d.ts +70 -0
- package/types/components/wd-collapse/wd-collapse.vue.d.ts +92 -0
- package/types/components/wd-collapse-item/types.d.ts +46 -0
- package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +65 -0
- package/types/components/wd-config-provider/types.d.ts +874 -0
- package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +48 -0
- package/types/components/wd-count-down/types.d.ts +55 -0
- package/types/components/wd-count-down/utils.d.ts +8 -0
- package/types/components/wd-count-down/wd-count-down.vue.d.ts +77 -0
- package/types/components/wd-count-to/types.d.ts +125 -0
- package/types/components/wd-count-to/wd-count-to.vue.d.ts +154 -0
- package/types/components/wd-curtain/types.d.ts +53 -0
- package/types/components/wd-curtain/wd-curtain.vue.d.ts +91 -0
- package/types/components/wd-datetime-picker/types.d.ts +297 -0
- package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +354 -0
- package/types/components/wd-datetime-picker-view/types.d.ts +148 -0
- package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +184 -0
- package/types/components/wd-divider/types.d.ts +19 -0
- package/types/components/wd-divider/wd-divider.vue.d.ts +39 -0
- package/types/components/wd-drop-menu/types.d.ts +54 -0
- package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +75 -0
- package/types/components/wd-drop-menu-item/types.d.ts +106 -0
- package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +145 -0
- package/types/components/wd-fab/types.d.ts +88 -0
- package/types/components/wd-fab/wd-fab.vue.d.ts +127 -0
- package/types/components/wd-form/types.d.ts +79 -0
- package/types/components/wd-form/wd-form.vue.d.ts +72 -0
- package/types/components/wd-form-item/types.d.ts +32 -0
- package/types/components/wd-form-item/wd-form-item.vue.d.ts +73 -0
- package/types/components/wd-gap/types.d.ts +31 -0
- package/types/components/wd-gap/wd-gap.vue.d.ts +50 -0
- package/types/components/wd-grid/types.d.ts +59 -0
- package/types/components/wd-grid/wd-grid.vue.d.ts +70 -0
- package/types/components/wd-grid-item/types.d.ts +101 -0
- package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +134 -0
- package/types/components/wd-icon/types.d.ts +32 -0
- package/types/components/wd-icon/wd-icon.vue.d.ts +50 -0
- package/types/components/wd-img/types.d.ts +59 -0
- package/types/components/wd-img/wd-img.vue.d.ts +92 -0
- package/types/components/wd-img-cropper/types.d.ts +101 -0
- package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +124 -0
- package/types/components/wd-index-anchor/type.d.ts +16 -0
- package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +40 -0
- package/types/components/wd-index-bar/type.d.ts +26 -0
- package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +23 -0
- package/types/components/wd-input/types.d.ts +271 -0
- package/types/components/wd-input/wd-input.vue.d.ts +369 -0
- package/types/components/wd-input-number/types.d.ts +108 -0
- package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -0
- package/types/components/wd-loading/types.d.ts +34 -0
- package/types/components/wd-loading/wd-loading.vue.d.ts +50 -0
- package/types/components/wd-loadmore/types.d.ts +31 -0
- package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +43 -0
- package/types/components/wd-message-box/index.d.ts +9 -0
- package/types/components/wd-message-box/types.d.ts +99 -0
- package/types/components/wd-message-box/wd-message-box.vue.d.ts +32 -0
- package/types/components/wd-navbar/types.d.ts +80 -0
- package/types/components/wd-navbar/wd-navbar.vue.d.ts +117 -0
- package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +8 -0
- package/types/components/wd-notice-bar/types.d.ts +81 -0
- package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +118 -0
- package/types/components/wd-notify/index.d.ts +8 -0
- package/types/components/wd-notify/types.d.ts +87 -0
- package/types/components/wd-notify/wd-notify.vue.d.ts +105 -0
- package/types/components/wd-number-keyboard/key/index.vue.d.ts +54 -0
- package/types/components/wd-number-keyboard/key/types.d.ts +23 -0
- package/types/components/wd-number-keyboard/types.d.ts +118 -0
- package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +158 -0
- package/types/components/wd-overlay/types.d.ts +39 -0
- package/types/components/wd-overlay/wd-overlay.vue.d.ts +70 -0
- package/types/components/wd-pagination/types.d.ts +67 -0
- package/types/components/wd-pagination/wd-pagination.vue.d.ts +95 -0
- package/types/components/wd-password-input/types.d.ts +59 -0
- package/types/components/wd-password-input/wd-password-input.vue.d.ts +90 -0
- package/types/components/wd-picker/types.d.ts +234 -0
- package/types/components/wd-picker/wd-picker.vue.d.ts +276 -0
- package/types/components/wd-picker-view/types.d.ts +100 -0
- package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +119 -0
- package/types/components/wd-popover/types.d.ts +86 -0
- package/types/components/wd-popover/wd-popover.vue.d.ts +138 -0
- package/types/components/wd-popup/types.d.ts +96 -0
- package/types/components/wd-popup/wd-popup.vue.d.ts +160 -0
- package/types/components/wd-progress/types.d.ts +44 -0
- package/types/components/wd-progress/wd-progress.vue.d.ts +61 -0
- package/types/components/wd-radio/types.d.ts +40 -0
- package/types/components/wd-radio/wd-radio.vue.d.ts +73 -0
- package/types/components/wd-radio-group/types.d.ts +54 -0
- package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +85 -0
- package/types/components/wd-rate/types.d.ts +110 -0
- package/types/components/wd-rate/wd-rate.vue.d.ts +128 -0
- package/types/components/wd-resize/types.d.ts +14 -0
- package/types/components/wd-resize/wd-resize.vue.d.ts +43 -0
- package/types/components/wd-row/types.d.ts +24 -0
- package/types/components/wd-row/wd-row.vue.d.ts +39 -0
- package/types/components/wd-search/types.d.ts +104 -0
- package/types/components/wd-search/wd-search.vue.d.ts +132 -0
- package/types/components/wd-segmented/types.d.ts +69 -0
- package/types/components/wd-segmented/wd-segmented.vue.d.ts +87 -0
- package/types/components/wd-select-picker/types.d.ts +180 -0
- package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +316 -0
- package/types/components/wd-sidebar/types.d.ts +24 -0
- package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +45 -0
- package/types/components/wd-sidebar-item/types.d.ts +44 -0
- package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +80 -0
- package/types/components/wd-skeleton/types.d.ts +72 -0
- package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +68 -0
- package/types/components/wd-slider/types.d.ts +117 -0
- package/types/components/wd-slider/wd-slider.vue.d.ts +134 -0
- package/types/components/wd-sort-button/types.d.ts +58 -0
- package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +74 -0
- package/types/components/wd-status-tip/types.d.ts +60 -0
- package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +59 -0
- package/types/components/wd-step/types.d.ts +33 -0
- package/types/components/wd-step/wd-step.vue.d.ts +40 -0
- package/types/components/wd-steps/types.d.ts +59 -0
- package/types/components/wd-steps/wd-steps.vue.d.ts +68 -0
- package/types/components/wd-sticky/types.d.ts +24 -0
- package/types/components/wd-sticky/wd-sticky.vue.d.ts +59 -0
- package/types/components/wd-sticky-box/types.d.ts +9 -0
- package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +30 -0
- package/types/components/wd-swipe-action/types.d.ts +42 -0
- package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +61 -0
- package/types/components/wd-swiper/types.d.ts +213 -0
- package/types/components/wd-swiper/wd-swiper.vue.d.ts +236 -0
- package/types/components/wd-swiper-nav/types.d.ts +66 -0
- package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +90 -0
- package/types/components/wd-switch/types.d.ts +65 -0
- package/types/components/wd-switch/wd-switch.vue.d.ts +82 -0
- package/types/components/wd-tab/types.d.ts +27 -0
- package/types/components/wd-tab/wd-tab.vue.d.ts +46 -0
- package/types/components/wd-tabbar/types.d.ts +87 -0
- package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +103 -0
- package/types/components/wd-tabbar-item/types.d.ts +53 -0
- package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +61 -0
- package/types/components/wd-table/types.d.ts +95 -0
- package/types/components/wd-table/wd-table.vue.d.ts +138 -0
- package/types/components/wd-table-col/types.d.ts +58 -0
- package/types/components/wd-table-col/wd-table-col.vue.d.ts +70 -0
- package/types/components/wd-tabs/types.d.ts +96 -0
- package/types/components/wd-tabs/wd-tabs.vue.d.ts +139 -0
- package/types/components/wd-tag/types.d.ts +104 -0
- package/types/components/wd-tag/wd-tag.vue.d.ts +130 -0
- package/types/components/wd-text/types.d.ts +128 -0
- package/types/components/wd-text/wd-text.vue.d.ts +131 -0
- package/types/components/wd-textarea/types.d.ts +363 -0
- package/types/components/wd-textarea/wd-textarea.vue.d.ts +390 -0
- package/types/components/wd-toast/index.d.ts +15 -0
- package/types/components/wd-toast/types.d.ts +62 -0
- package/types/components/wd-toast/wd-toast.vue.d.ts +32 -0
- package/types/components/wd-tooltip/types.d.ts +106 -0
- package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +133 -0
- package/types/components/wd-transition/types.d.ts +98 -0
- package/types/components/wd-transition/wd-transition.vue.d.ts +136 -0
- package/types/components/wd-upload/types.d.ts +396 -0
- package/types/components/wd-upload/utils.d.ts +2 -0
- package/types/components/wd-upload/wd-upload.vue.d.ts +283 -0
- package/types/components/wd-video-preview/types.d.ts +22 -0
- package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +27 -0
- package/types/components/wd-watermark/types.d.ts +131 -0
- package/types/components/wd-watermark/wd-watermark.vue.d.ts +176 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/lang/zh-CN.d.ts +128 -0
- package/components/wot-design-uni/wot-design-uni.vue +0 -14
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { CalendarFormatter, CalendarTimeFilter, CalendarType } from '../wd-calendar-view/types';
|
|
3
|
+
import type { FormItemRule } from '../wd-form/types';
|
|
4
|
+
export declare const calendarProps: {
|
|
5
|
+
/**
|
|
6
|
+
* 选中值,为 13 位时间戳或时间戳数组
|
|
7
|
+
*/
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<number | number[] | null>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 日期类型,可选值:date / dates / datetime / week / month / daterange / datetimerange / weekrange / monthrange
|
|
14
|
+
*/
|
|
15
|
+
type: {
|
|
16
|
+
type: PropType<CalendarType>;
|
|
17
|
+
default: CalendarType;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 最小日期,为 13 位时间戳
|
|
21
|
+
*/
|
|
22
|
+
minDate: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 最大日期,为 13 位时间戳
|
|
28
|
+
*/
|
|
29
|
+
maxDate: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 周起始天
|
|
35
|
+
*/
|
|
36
|
+
firstDayOfWeek: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 日期格式化函数
|
|
42
|
+
*/
|
|
43
|
+
formatter: PropType<CalendarFormatter>;
|
|
44
|
+
/**
|
|
45
|
+
* type 为范围选择时有效,最大日期范围
|
|
46
|
+
*/
|
|
47
|
+
maxRange: NumberConstructor;
|
|
48
|
+
/**
|
|
49
|
+
* type 为范围选择时有效,选择超出最大日期范围时的错误提示文案
|
|
50
|
+
*/
|
|
51
|
+
rangePrompt: StringConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* type 为范围选择时有效,是否允许选择同一天
|
|
54
|
+
*/
|
|
55
|
+
allowSameDay: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 选中日期所使用的当日内具体时刻
|
|
61
|
+
*/
|
|
62
|
+
defaultTime: {
|
|
63
|
+
type: PropType<string | string[]>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* type 为 'datetime' 或 'datetimerange' 时有效,用于过滤时间选择器的数据
|
|
67
|
+
*/
|
|
68
|
+
timeFilter: PropType<CalendarTimeFilter>;
|
|
69
|
+
/**
|
|
70
|
+
* type 为 'datetime' 或 'datetimerange' 时有效,是否不展示秒修改
|
|
71
|
+
*/
|
|
72
|
+
hideSecond: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* 选择器左侧文案
|
|
78
|
+
*/
|
|
79
|
+
label: StringConstructor;
|
|
80
|
+
/**
|
|
81
|
+
* 设置左侧标题宽度
|
|
82
|
+
*/
|
|
83
|
+
labelWidth: StringConstructor;
|
|
84
|
+
/**
|
|
85
|
+
* 使用 label 插槽时设置该选项
|
|
86
|
+
*/
|
|
87
|
+
useLabelSlot: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 使用默认插槽时设置该选项
|
|
93
|
+
*/
|
|
94
|
+
useDefaultSlot: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 禁用
|
|
100
|
+
*/
|
|
101
|
+
disabled: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* 只读
|
|
107
|
+
*/
|
|
108
|
+
readonly: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* 选择器占位符
|
|
114
|
+
*/
|
|
115
|
+
placeholder: StringConstructor;
|
|
116
|
+
/**
|
|
117
|
+
* 弹出层标题
|
|
118
|
+
*/
|
|
119
|
+
title: StringConstructor;
|
|
120
|
+
/**
|
|
121
|
+
* 选择器的值靠右展示
|
|
122
|
+
*/
|
|
123
|
+
alignRight: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* 是否为错误状态,错误状态时右侧内容为红色
|
|
129
|
+
*/
|
|
130
|
+
error: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* 是否必填
|
|
136
|
+
*/
|
|
137
|
+
required: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* 设置选择器大小,可选值:large
|
|
143
|
+
*/
|
|
144
|
+
size: StringConstructor;
|
|
145
|
+
/**
|
|
146
|
+
* 是否垂直居中
|
|
147
|
+
*/
|
|
148
|
+
center: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: boolean;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* 点击遮罩是否关闭
|
|
154
|
+
*/
|
|
155
|
+
closeOnClickModal: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 弹框层级
|
|
161
|
+
*/
|
|
162
|
+
zIndex: {
|
|
163
|
+
type: NumberConstructor;
|
|
164
|
+
default: number;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* 是否显示确定按钮
|
|
168
|
+
*/
|
|
169
|
+
showConfirm: {
|
|
170
|
+
type: BooleanConstructor;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* 确定按钮文字
|
|
175
|
+
*/
|
|
176
|
+
confirmText: StringConstructor;
|
|
177
|
+
/**
|
|
178
|
+
* 自定义展示文案的格式化函数,返回一个字符串
|
|
179
|
+
*/
|
|
180
|
+
displayFormat: PropType<CalendarDisplayFormat>;
|
|
181
|
+
/**
|
|
182
|
+
* 自定义范围选择类型的面板内部回显,返回一个字符串
|
|
183
|
+
*/
|
|
184
|
+
innerDisplayFormat: PropType<CalendarInnerDisplayFormat>;
|
|
185
|
+
/**
|
|
186
|
+
* 是否超出隐藏
|
|
187
|
+
*/
|
|
188
|
+
ellipsis: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* 是否显示类型切换功能
|
|
194
|
+
*/
|
|
195
|
+
showTypeSwitch: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* 快捷选项,为对象数组,其中对象的 text 必传
|
|
201
|
+
*/
|
|
202
|
+
shortcuts: {
|
|
203
|
+
type: PropType<Record<string, any>[]>;
|
|
204
|
+
default: () => never[];
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* 快捷操作点击回调
|
|
208
|
+
*/
|
|
209
|
+
onShortcutsClick: PropType<CalendarOnShortcutsClick>;
|
|
210
|
+
/**
|
|
211
|
+
* 弹出面板是否设置底部安全距离(iphone X 类型的机型)
|
|
212
|
+
*/
|
|
213
|
+
safeAreaInsetBottom: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* 确定前校验函数,接收 { value, resolve } 参数,通过 resolve 继续执行,resolve 接收 1 个 boolean 参数
|
|
219
|
+
*/
|
|
220
|
+
beforeConfirm: PropType<CalendarBeforeConfirm>;
|
|
221
|
+
/**
|
|
222
|
+
* 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
|
|
223
|
+
*/
|
|
224
|
+
prop: StringConstructor;
|
|
225
|
+
/**
|
|
226
|
+
* 表单验证规则,结合wd-form组件使用
|
|
227
|
+
*/
|
|
228
|
+
rules: {
|
|
229
|
+
type: PropType<FormItemRule[]>;
|
|
230
|
+
default: () => never[];
|
|
231
|
+
};
|
|
232
|
+
customViewClass: {
|
|
233
|
+
type: PropType<string>;
|
|
234
|
+
default: string;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* label 外部自定义样式
|
|
238
|
+
*/
|
|
239
|
+
customLabelClass: {
|
|
240
|
+
type: PropType<string>;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* value 外部自定义样式
|
|
245
|
+
*/
|
|
246
|
+
customValueClass: {
|
|
247
|
+
type: PropType<string>;
|
|
248
|
+
default: string;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* 是否在手指松开时立即触发picker-view的 change 事件。若不开启则会在滚动动画结束后触发 change 事件,1.2.25版本起提供,仅微信小程序和支付宝小程序支持。
|
|
252
|
+
*/
|
|
253
|
+
immediateChange: {
|
|
254
|
+
type: BooleanConstructor;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
customStyle: {
|
|
258
|
+
type: PropType<string>;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
customClass: {
|
|
262
|
+
type: PropType<string>;
|
|
263
|
+
default: string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
export type CalendarDisplayFormat = (value: number | number[], type: CalendarType) => string;
|
|
267
|
+
export type CalendarInnerDisplayFormat = (value: number, rangeType: 'start' | 'end', type: CalendarType) => string;
|
|
268
|
+
export type CalendarBeforeConfirmOption = {
|
|
269
|
+
value: number | number[] | null;
|
|
270
|
+
resolve: (isPass: boolean) => void;
|
|
271
|
+
};
|
|
272
|
+
export type CalendarBeforeConfirm = (option: CalendarBeforeConfirmOption) => void;
|
|
273
|
+
export type CalendarOnShortcutsClickOption = {
|
|
274
|
+
item: Record<string, any>;
|
|
275
|
+
index: number;
|
|
276
|
+
};
|
|
277
|
+
export type CalendarOnShortcutsClick = (option: CalendarOnShortcutsClickOption) => number | number[];
|
|
278
|
+
export type CalendarExpose = {
|
|
279
|
+
/** 关闭时间选择器弹窗 */
|
|
280
|
+
close: () => void;
|
|
281
|
+
/** 打开时间选择器弹窗 */
|
|
282
|
+
open: () => void;
|
|
283
|
+
};
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { type FormItemRule } from '../wd-form/types';
|
|
2
|
+
import type { CalendarType } from '../wd-calendar-view/types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: import("vue").PropType<number | number[] | null>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
type: {
|
|
9
|
+
type: import("vue").PropType<CalendarType>;
|
|
10
|
+
default: CalendarType;
|
|
11
|
+
};
|
|
12
|
+
minDate: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
maxDate: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
firstDayOfWeek: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
formatter: import("vue").PropType<import("../wd-calendar-view/types").CalendarFormatter>;
|
|
25
|
+
maxRange: NumberConstructor;
|
|
26
|
+
rangePrompt: StringConstructor;
|
|
27
|
+
allowSameDay: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
defaultTime: {
|
|
32
|
+
type: import("vue").PropType<string | string[]>;
|
|
33
|
+
};
|
|
34
|
+
timeFilter: import("vue").PropType<import("../wd-calendar-view/types").CalendarTimeFilter>;
|
|
35
|
+
hideSecond: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
label: StringConstructor;
|
|
40
|
+
labelWidth: StringConstructor;
|
|
41
|
+
useLabelSlot: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
useDefaultSlot: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
readonly: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
placeholder: StringConstructor;
|
|
58
|
+
title: StringConstructor;
|
|
59
|
+
alignRight: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
error: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
required: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
size: StringConstructor;
|
|
72
|
+
center: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
closeOnClickModal: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
zIndex: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
showConfirm: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
confirmText: StringConstructor;
|
|
89
|
+
displayFormat: import("vue").PropType<import("./types").CalendarDisplayFormat>;
|
|
90
|
+
innerDisplayFormat: import("vue").PropType<import("./types").CalendarInnerDisplayFormat>;
|
|
91
|
+
ellipsis: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
showTypeSwitch: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
shortcuts: {
|
|
100
|
+
type: import("vue").PropType<Record<string, any>[]>;
|
|
101
|
+
default: () => never[];
|
|
102
|
+
};
|
|
103
|
+
onShortcutsClick: import("vue").PropType<import("./types").CalendarOnShortcutsClick>;
|
|
104
|
+
safeAreaInsetBottom: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
beforeConfirm: import("vue").PropType<import("./types").CalendarBeforeConfirm>;
|
|
109
|
+
prop: StringConstructor;
|
|
110
|
+
rules: {
|
|
111
|
+
type: import("vue").PropType<FormItemRule[]>;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
customViewClass: {
|
|
115
|
+
type: import("vue").PropType<string>;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
customLabelClass: {
|
|
119
|
+
type: import("vue").PropType<string>;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
customValueClass: {
|
|
123
|
+
type: import("vue").PropType<string>;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
immediateChange: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
customStyle: {
|
|
131
|
+
type: import("vue").PropType<string>;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
customClass: {
|
|
135
|
+
type: import("vue").PropType<string>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
}, {
|
|
139
|
+
close: () => void;
|
|
140
|
+
open: () => void;
|
|
141
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
142
|
+
cancel: (...args: any[]) => void;
|
|
143
|
+
"update:modelValue": (...args: any[]) => void;
|
|
144
|
+
change: (...args: any[]) => void;
|
|
145
|
+
confirm: (...args: any[]) => void;
|
|
146
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
modelValue: {
|
|
148
|
+
type: import("vue").PropType<number | number[] | null>;
|
|
149
|
+
required: true;
|
|
150
|
+
};
|
|
151
|
+
type: {
|
|
152
|
+
type: import("vue").PropType<CalendarType>;
|
|
153
|
+
default: CalendarType;
|
|
154
|
+
};
|
|
155
|
+
minDate: {
|
|
156
|
+
type: NumberConstructor;
|
|
157
|
+
default: number;
|
|
158
|
+
};
|
|
159
|
+
maxDate: {
|
|
160
|
+
type: NumberConstructor;
|
|
161
|
+
default: number;
|
|
162
|
+
};
|
|
163
|
+
firstDayOfWeek: {
|
|
164
|
+
type: NumberConstructor;
|
|
165
|
+
default: number;
|
|
166
|
+
};
|
|
167
|
+
formatter: import("vue").PropType<import("../wd-calendar-view/types").CalendarFormatter>;
|
|
168
|
+
maxRange: NumberConstructor;
|
|
169
|
+
rangePrompt: StringConstructor;
|
|
170
|
+
allowSameDay: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
defaultTime: {
|
|
175
|
+
type: import("vue").PropType<string | string[]>;
|
|
176
|
+
};
|
|
177
|
+
timeFilter: import("vue").PropType<import("../wd-calendar-view/types").CalendarTimeFilter>;
|
|
178
|
+
hideSecond: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
label: StringConstructor;
|
|
183
|
+
labelWidth: StringConstructor;
|
|
184
|
+
useLabelSlot: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
188
|
+
useDefaultSlot: {
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
default: boolean;
|
|
191
|
+
};
|
|
192
|
+
disabled: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
readonly: {
|
|
197
|
+
type: BooleanConstructor;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
200
|
+
placeholder: StringConstructor;
|
|
201
|
+
title: StringConstructor;
|
|
202
|
+
alignRight: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
error: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
required: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
size: StringConstructor;
|
|
215
|
+
center: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
closeOnClickModal: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
zIndex: {
|
|
224
|
+
type: NumberConstructor;
|
|
225
|
+
default: number;
|
|
226
|
+
};
|
|
227
|
+
showConfirm: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
confirmText: StringConstructor;
|
|
232
|
+
displayFormat: import("vue").PropType<import("./types").CalendarDisplayFormat>;
|
|
233
|
+
innerDisplayFormat: import("vue").PropType<import("./types").CalendarInnerDisplayFormat>;
|
|
234
|
+
ellipsis: {
|
|
235
|
+
type: BooleanConstructor;
|
|
236
|
+
default: boolean;
|
|
237
|
+
};
|
|
238
|
+
showTypeSwitch: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
shortcuts: {
|
|
243
|
+
type: import("vue").PropType<Record<string, any>[]>;
|
|
244
|
+
default: () => never[];
|
|
245
|
+
};
|
|
246
|
+
onShortcutsClick: import("vue").PropType<import("./types").CalendarOnShortcutsClick>;
|
|
247
|
+
safeAreaInsetBottom: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
beforeConfirm: import("vue").PropType<import("./types").CalendarBeforeConfirm>;
|
|
252
|
+
prop: StringConstructor;
|
|
253
|
+
rules: {
|
|
254
|
+
type: import("vue").PropType<FormItemRule[]>;
|
|
255
|
+
default: () => never[];
|
|
256
|
+
};
|
|
257
|
+
customViewClass: {
|
|
258
|
+
type: import("vue").PropType<string>;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
customLabelClass: {
|
|
262
|
+
type: import("vue").PropType<string>;
|
|
263
|
+
default: string;
|
|
264
|
+
};
|
|
265
|
+
customValueClass: {
|
|
266
|
+
type: import("vue").PropType<string>;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
269
|
+
immediateChange: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: boolean;
|
|
272
|
+
};
|
|
273
|
+
customStyle: {
|
|
274
|
+
type: import("vue").PropType<string>;
|
|
275
|
+
default: string;
|
|
276
|
+
};
|
|
277
|
+
customClass: {
|
|
278
|
+
type: import("vue").PropType<string>;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
281
|
+
}>> & {
|
|
282
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
283
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
284
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
285
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
286
|
+
}, {
|
|
287
|
+
closeOnClickModal: boolean;
|
|
288
|
+
zIndex: number;
|
|
289
|
+
safeAreaInsetBottom: boolean;
|
|
290
|
+
customStyle: string;
|
|
291
|
+
customClass: string;
|
|
292
|
+
readonly: boolean;
|
|
293
|
+
type: CalendarType;
|
|
294
|
+
required: boolean;
|
|
295
|
+
error: boolean;
|
|
296
|
+
disabled: boolean;
|
|
297
|
+
minDate: number;
|
|
298
|
+
maxDate: number;
|
|
299
|
+
firstDayOfWeek: number;
|
|
300
|
+
allowSameDay: boolean;
|
|
301
|
+
hideSecond: boolean;
|
|
302
|
+
immediateChange: boolean;
|
|
303
|
+
rules: FormItemRule[];
|
|
304
|
+
useLabelSlot: boolean;
|
|
305
|
+
useDefaultSlot: boolean;
|
|
306
|
+
alignRight: boolean;
|
|
307
|
+
center: boolean;
|
|
308
|
+
showConfirm: boolean;
|
|
309
|
+
ellipsis: boolean;
|
|
310
|
+
showTypeSwitch: boolean;
|
|
311
|
+
shortcuts: Record<string, any>[];
|
|
312
|
+
customViewClass: string;
|
|
313
|
+
customLabelClass: string;
|
|
314
|
+
customValueClass: string;
|
|
315
|
+
}, {}>, {
|
|
316
|
+
default?(_: {}): any;
|
|
317
|
+
label?(_: {}): any;
|
|
318
|
+
}>;
|
|
319
|
+
export default _default;
|
|
320
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
321
|
+
new (): {
|
|
322
|
+
$slots: S;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { CalendarType } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import("vue").PropType<CalendarType>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
date: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
value: {
|
|
12
|
+
type: import("vue").PropType<number | (number | null)[] | null>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
minDate: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
maxDate: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
firstDayOfWeek: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
formatter: import("vue").PropType<import("../types").CalendarFormatter>;
|
|
28
|
+
maxRange: NumberConstructor;
|
|
29
|
+
rangePrompt: StringConstructor;
|
|
30
|
+
allowSameDay: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
defaultTime: {
|
|
35
|
+
type: import("vue").PropType<Array<number[]>>;
|
|
36
|
+
};
|
|
37
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
+
change: (...args: any[]) => void;
|
|
39
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
type: {
|
|
41
|
+
type: import("vue").PropType<CalendarType>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
date: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
value: {
|
|
49
|
+
type: import("vue").PropType<number | (number | null)[] | null>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
minDate: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
maxDate: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
firstDayOfWeek: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
formatter: import("vue").PropType<import("../types").CalendarFormatter>;
|
|
65
|
+
maxRange: NumberConstructor;
|
|
66
|
+
rangePrompt: StringConstructor;
|
|
67
|
+
allowSameDay: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
defaultTime: {
|
|
72
|
+
type: import("vue").PropType<Array<number[]>>;
|
|
73
|
+
};
|
|
74
|
+
}>> & {
|
|
75
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
allowSameDay: boolean;
|
|
78
|
+
}, {}>;
|
|
79
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { CalendarFormatter, CalendarType } from '../types';
|
|
3
|
+
export declare const monthProps: {
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<CalendarType>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
date: {
|
|
9
|
+
type: NumberConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
value: {
|
|
13
|
+
type: PropType<number | (number | null)[] | null>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
minDate: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
maxDate: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
firstDayOfWeek: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
formatter: PropType<CalendarFormatter>;
|
|
29
|
+
maxRange: NumberConstructor;
|
|
30
|
+
rangePrompt: StringConstructor;
|
|
31
|
+
allowSameDay: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
defaultTime: {
|
|
36
|
+
type: PropType<Array<number[]>>;
|
|
37
|
+
};
|
|
38
|
+
};
|