hy-app 0.6.4 → 0.6.6
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/attributes.json +1 -1
- package/components/hy-address-picker/hy-address-picker.vue +249 -249
- package/components/hy-address-picker/props.ts +103 -103
- package/components/hy-button/hy-button.vue +320 -289
- package/components/hy-button/props.ts +143 -143
- package/components/hy-button/typing.d.ts +43 -35
- package/components/hy-calendar/header.vue +58 -58
- package/components/hy-calendar/hy-calendar.vue +8 -6
- package/components/hy-calendar/month.vue +402 -402
- package/components/hy-calendar/props.ts +169 -169
- package/components/hy-calendar/typing.d.ts +47 -45
- package/components/hy-cell-item/hy-cell-item.vue +161 -161
- package/components/hy-cell-item/props.ts +59 -59
- package/components/hy-check-button/hy-check-button.vue +135 -135
- package/components/hy-code-input/hy-code-input.vue +231 -231
- package/components/hy-code-input/props.ts +90 -90
- package/components/hy-config-provider/hy-config-provider.vue +53 -53
- package/components/hy-config-provider/props.ts +30 -30
- package/components/hy-coupon/hy-coupon.vue +183 -183
- package/components/hy-coupon/props.ts +108 -108
- package/components/hy-datetime-picker/hy-datetime-picker.vue +41 -55
- package/components/hy-datetime-picker/props.ts +144 -144
- package/components/hy-datetime-picker/typing.d.ts +2 -0
- package/components/hy-divider/props.ts +83 -83
- package/components/hy-empty/icon.ts +72 -72
- package/components/hy-folding-panel/hy-folding-panel-group.vue +162 -162
- package/components/hy-form/hy-form.vue +220 -220
- package/components/hy-icon/hy-icon.vue +112 -112
- package/components/hy-index-bar/hy-index-bar.vue +185 -185
- package/components/hy-index-bar/index.scss +64 -64
- package/components/hy-index-bar/props.ts +94 -94
- package/components/hy-index-bar/typing.d.ts +36 -36
- package/components/hy-input/hy-input.vue +333 -333
- package/components/hy-input/props.ts +186 -186
- package/components/hy-modal/hy-modal.vue +211 -211
- package/components/hy-modal/props.ts +94 -94
- package/components/hy-modal/typing.d.ts +16 -16
- package/components/hy-notice-bar/hy-row-notice.vue +121 -121
- package/components/hy-notify/hy-notify.vue +174 -174
- package/components/hy-number-step/hy-number-step.vue +367 -367
- package/components/hy-overlay/hy-overlay.vue +61 -61
- package/components/hy-overlay/props.ts +38 -38
- package/components/hy-pagination/hy-pagination.vue +136 -136
- package/components/hy-pagination/props.ts +58 -58
- package/components/hy-parse/hy-parse.vue +550 -550
- package/components/hy-parse/node/node.vue +781 -781
- package/components/hy-parse/parser.js +1455 -1455
- package/components/hy-parse/props.ts +19 -19
- package/components/hy-parse/typing.d.ts +68 -68
- package/components/hy-picker/hy-picker.vue +435 -435
- package/components/hy-picker/props.ts +122 -122
- package/components/hy-picker/typing.d.ts +38 -38
- package/components/hy-qrcode/props.ts +72 -72
- package/components/hy-qrcode/qrcode.js.bak +1433 -1433
- package/components/hy-radio/props.ts +97 -97
- package/components/hy-read-more/props.ts +48 -48
- package/components/hy-search/props.ts +133 -133
- package/components/hy-signature/canvasHelper.ts +51 -51
- package/components/hy-signature/props.ts +121 -121
- package/components/hy-skeleton/hy-skeleton.vue +142 -142
- package/components/hy-skeleton/props.ts +46 -46
- package/components/hy-skeleton/typing.d.ts +31 -31
- package/components/hy-steps/hy-steps.vue +275 -275
- package/components/hy-steps/typing.d.ts +25 -25
- package/components/hy-swiper/hy-swiper.vue +3 -3
- package/components/hy-swiper/index.scss +5 -5
- package/components/hy-swiper/props.ts +0 -1
- package/components/hy-table/hy-table.vue +630 -630
- package/components/hy-table/props.ts +62 -62
- package/components/hy-table/typing.d.ts +29 -29
- package/components/hy-tabs/hy-tabs.vue +336 -335
- package/components/hy-tabs/props.ts +84 -77
- package/components/hy-tag/hy-tag.vue +173 -173
- package/components/hy-tag/props.ts +89 -89
- package/components/hy-text/hy-text.vue +237 -237
- package/components/hy-text/props.ts +115 -115
- package/components/hy-textarea/hy-textarea.vue +198 -198
- package/components/hy-toast/hy-toast.vue +200 -200
- package/components/hy-toast/props.ts +3 -3
- package/components/hy-transition/hy-transition.vue +157 -157
- package/components/hy-transition/props.ts +32 -32
- package/components/hy-upload/hy-upload.vue +384 -384
- package/components/hy-watermark/hy-watermark.vue +1058 -1058
- package/components/hy-watermark/props.ts +109 -109
- package/global.d.ts +94 -94
- package/libs/api/http.ts +119 -119
- package/libs/composables/index.ts +8 -8
- package/libs/composables/useMessage.ts +149 -149
- package/libs/composables/useToast.ts +45 -45
- package/libs/composables/useTranslate.ts +10 -10
- package/libs/css/_config.scss +5 -5
- package/libs/index.ts +8 -8
- package/libs/locale/index.ts +32 -32
- package/libs/locale/lang/en-US.ts +84 -84
- package/libs/locale/lang/zh-CN.ts +87 -87
- package/libs/typing/index.ts +2 -2
- package/libs/typing/modules/common.d.ts +139 -139
- package/libs/typing/modules/form.ts +176 -176
- package/libs/typing/modules/http.d.ts +19 -19
- package/libs/typing/modules/index.d.ts +12 -12
- package/libs/utils/inside.ts +340 -340
- package/libs/utils/inspect.ts +140 -140
- package/libs/utils/utils.ts +525 -525
- package/package.json +81 -81
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,169 +1,169 @@
|
|
|
1
|
-
import type { PropType } from 'vue'
|
|
2
|
-
import { useTranslate } from '../../libs'
|
|
3
|
-
|
|
4
|
-
const { t } = useTranslate('calendar')
|
|
5
|
-
|
|
6
|
-
const calendarProps = {
|
|
7
|
-
/** 是否显示日历弹窗 */
|
|
8
|
-
show: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
default: false,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
/** 标题内容 */
|
|
14
|
-
title: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: () => t('title')
|
|
17
|
-
},
|
|
18
|
-
/** 是否显示标题 */
|
|
19
|
-
showTitle: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: true
|
|
22
|
-
},
|
|
23
|
-
/** 是否显示副标题 */
|
|
24
|
-
showSubtitle: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: true
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* 日期类型选择
|
|
30
|
-
* @values single,range,multiple
|
|
31
|
-
* */
|
|
32
|
-
mode: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: 'single'
|
|
35
|
-
},
|
|
36
|
-
/** mode=range时,第一个日期底部的提示文字 */
|
|
37
|
-
startText: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: () => t('startTime')
|
|
40
|
-
},
|
|
41
|
-
/** mode=range时,最后一个日期底部的提示文字 */
|
|
42
|
-
endText: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: () => t('endTime')
|
|
45
|
-
},
|
|
46
|
-
/** 自定义列表 */
|
|
47
|
-
customList: {
|
|
48
|
-
type: Array as PropType<any[]>,
|
|
49
|
-
default: []
|
|
50
|
-
},
|
|
51
|
-
/** 主题色,对底部按钮和选中日期有效 */
|
|
52
|
-
color: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: ''
|
|
55
|
-
},
|
|
56
|
-
/** 最小的可选日期 */
|
|
57
|
-
minDate: {
|
|
58
|
-
type: [String, Number],
|
|
59
|
-
default: 0
|
|
60
|
-
},
|
|
61
|
-
/** 最大可选日期 */
|
|
62
|
-
maxDate: {
|
|
63
|
-
type: [String, Number],
|
|
64
|
-
default: 0
|
|
65
|
-
},
|
|
66
|
-
/** 默认选中的日期,mode为multiple或range是必须为数组格式 */
|
|
67
|
-
defaultDate: [Date, String, Array],
|
|
68
|
-
/** mode=multiple时,最多可选多少个日期 */
|
|
69
|
-
maxCount: {
|
|
70
|
-
type: Number,
|
|
71
|
-
default: Number.MAX_SAFE_INTEGER
|
|
72
|
-
},
|
|
73
|
-
/** 日期行高 */
|
|
74
|
-
rowHeight: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 56
|
|
77
|
-
},
|
|
78
|
-
/** 日期格式化函数 */
|
|
79
|
-
formatter: {
|
|
80
|
-
type: Function as PropType<(date: Date) => string>
|
|
81
|
-
},
|
|
82
|
-
/** 是否显示农历 */
|
|
83
|
-
showLunar: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
default: false
|
|
86
|
-
},
|
|
87
|
-
/** 是否显示月份背景色 */
|
|
88
|
-
showMark: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: true
|
|
91
|
-
},
|
|
92
|
-
/** 确定按钮的文字 */
|
|
93
|
-
confirmText: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: () => t('confirm')
|
|
96
|
-
},
|
|
97
|
-
/** 确认按钮处于禁用状态时的文字 */
|
|
98
|
-
confirmDisabledText: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: () => t('confirmDisabled')
|
|
101
|
-
},
|
|
102
|
-
/** 是否允许点击遮罩关闭日历 */
|
|
103
|
-
closeOnClickOverlay: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: false
|
|
106
|
-
},
|
|
107
|
-
/** 是否为只读状态,只读状态下禁止选择日期 */
|
|
108
|
-
readonly: {
|
|
109
|
-
type: Boolean,
|
|
110
|
-
default: false
|
|
111
|
-
},
|
|
112
|
-
/** 是否展示确认按钮 */
|
|
113
|
-
showConfirm: {
|
|
114
|
-
type: Boolean,
|
|
115
|
-
default: true
|
|
116
|
-
},
|
|
117
|
-
/** 日期区间最多可选天数,默认无限制,mode = range时有效 */
|
|
118
|
-
maxRange: {
|
|
119
|
-
type: Number,
|
|
120
|
-
default: Number.MAX_SAFE_INTEGER
|
|
121
|
-
},
|
|
122
|
-
/** 范围选择超过最多可选天数时的提示文案,mode = range时有效 */
|
|
123
|
-
rangePrompt: String,
|
|
124
|
-
/** 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效 */
|
|
125
|
-
showRangePrompt: {
|
|
126
|
-
type: Boolean,
|
|
127
|
-
default: true
|
|
128
|
-
},
|
|
129
|
-
/** 是否允许日期范围的起止时间为同一天,mode = range时有效 */
|
|
130
|
-
allowSameDay: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: false
|
|
133
|
-
},
|
|
134
|
-
/** 圆角值,默认无圆角 */
|
|
135
|
-
round: {
|
|
136
|
-
type: [String, Number],
|
|
137
|
-
default: 0
|
|
138
|
-
},
|
|
139
|
-
/** 最多展示的月份数量 */
|
|
140
|
-
monthNum: {
|
|
141
|
-
type: Number,
|
|
142
|
-
default: 3
|
|
143
|
-
},
|
|
144
|
-
/** 星期文案 */
|
|
145
|
-
weekText: {
|
|
146
|
-
type: Array as PropType<string[]>,
|
|
147
|
-
default: () => [
|
|
148
|
-
t('weeks.sun'),
|
|
149
|
-
t('weeks.mon'),
|
|
150
|
-
t('weeks.tue'),
|
|
151
|
-
t('weeks.wed'),
|
|
152
|
-
t('weeks.thu'),
|
|
153
|
-
t('weeks.fri'),
|
|
154
|
-
t('weeks.sat')
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
/** 单选与多选禁止选中的日期列表,mode!=range时有效。 */
|
|
158
|
-
forbidDays: {
|
|
159
|
-
type: Array as PropType<Date[]>,
|
|
160
|
-
default: () => []
|
|
161
|
-
},
|
|
162
|
-
/** 单选与多选禁止选中的日期选择时提示 */
|
|
163
|
-
forbidDaysToast: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: '该日期已禁用'
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export default calendarProps
|
|
1
|
+
import type { PropType } from 'vue'
|
|
2
|
+
import { useTranslate } from '../../libs'
|
|
3
|
+
|
|
4
|
+
const { t } = useTranslate('calendar')
|
|
5
|
+
|
|
6
|
+
const calendarProps = {
|
|
7
|
+
/** 是否显示日历弹窗 */
|
|
8
|
+
show: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
/** 标题内容 */
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: () => t('title')
|
|
17
|
+
},
|
|
18
|
+
/** 是否显示标题 */
|
|
19
|
+
showTitle: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: true
|
|
22
|
+
},
|
|
23
|
+
/** 是否显示副标题 */
|
|
24
|
+
showSubtitle: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* 日期类型选择
|
|
30
|
+
* @values single,range,multiple
|
|
31
|
+
* */
|
|
32
|
+
mode: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'single'
|
|
35
|
+
},
|
|
36
|
+
/** mode=range时,第一个日期底部的提示文字 */
|
|
37
|
+
startText: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: () => t('startTime')
|
|
40
|
+
},
|
|
41
|
+
/** mode=range时,最后一个日期底部的提示文字 */
|
|
42
|
+
endText: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: () => t('endTime')
|
|
45
|
+
},
|
|
46
|
+
/** 自定义列表 */
|
|
47
|
+
customList: {
|
|
48
|
+
type: Array as PropType<any[]>,
|
|
49
|
+
default: []
|
|
50
|
+
},
|
|
51
|
+
/** 主题色,对底部按钮和选中日期有效 */
|
|
52
|
+
color: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: ''
|
|
55
|
+
},
|
|
56
|
+
/** 最小的可选日期 */
|
|
57
|
+
minDate: {
|
|
58
|
+
type: [String, Number],
|
|
59
|
+
default: 0
|
|
60
|
+
},
|
|
61
|
+
/** 最大可选日期 */
|
|
62
|
+
maxDate: {
|
|
63
|
+
type: [String, Number],
|
|
64
|
+
default: 0
|
|
65
|
+
},
|
|
66
|
+
/** 默认选中的日期,mode为multiple或range是必须为数组格式 */
|
|
67
|
+
defaultDate: [Date, String, Array],
|
|
68
|
+
/** mode=multiple时,最多可选多少个日期 */
|
|
69
|
+
maxCount: {
|
|
70
|
+
type: Number,
|
|
71
|
+
default: Number.MAX_SAFE_INTEGER
|
|
72
|
+
},
|
|
73
|
+
/** 日期行高 */
|
|
74
|
+
rowHeight: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 56
|
|
77
|
+
},
|
|
78
|
+
/** 日期格式化函数 */
|
|
79
|
+
formatter: {
|
|
80
|
+
type: Function as PropType<(date: Date) => string>
|
|
81
|
+
},
|
|
82
|
+
/** 是否显示农历 */
|
|
83
|
+
showLunar: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
/** 是否显示月份背景色 */
|
|
88
|
+
showMark: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
/** 确定按钮的文字 */
|
|
93
|
+
confirmText: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: () => t('confirm')
|
|
96
|
+
},
|
|
97
|
+
/** 确认按钮处于禁用状态时的文字 */
|
|
98
|
+
confirmDisabledText: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: () => t('confirmDisabled')
|
|
101
|
+
},
|
|
102
|
+
/** 是否允许点击遮罩关闭日历 */
|
|
103
|
+
closeOnClickOverlay: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false
|
|
106
|
+
},
|
|
107
|
+
/** 是否为只读状态,只读状态下禁止选择日期 */
|
|
108
|
+
readonly: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false
|
|
111
|
+
},
|
|
112
|
+
/** 是否展示确认按钮 */
|
|
113
|
+
showConfirm: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: true
|
|
116
|
+
},
|
|
117
|
+
/** 日期区间最多可选天数,默认无限制,mode = range时有效 */
|
|
118
|
+
maxRange: {
|
|
119
|
+
type: Number,
|
|
120
|
+
default: Number.MAX_SAFE_INTEGER
|
|
121
|
+
},
|
|
122
|
+
/** 范围选择超过最多可选天数时的提示文案,mode = range时有效 */
|
|
123
|
+
rangePrompt: String,
|
|
124
|
+
/** 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效 */
|
|
125
|
+
showRangePrompt: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: true
|
|
128
|
+
},
|
|
129
|
+
/** 是否允许日期范围的起止时间为同一天,mode = range时有效 */
|
|
130
|
+
allowSameDay: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: false
|
|
133
|
+
},
|
|
134
|
+
/** 圆角值,默认无圆角 */
|
|
135
|
+
round: {
|
|
136
|
+
type: [String, Number],
|
|
137
|
+
default: 0
|
|
138
|
+
},
|
|
139
|
+
/** 最多展示的月份数量 */
|
|
140
|
+
monthNum: {
|
|
141
|
+
type: Number,
|
|
142
|
+
default: 3
|
|
143
|
+
},
|
|
144
|
+
/** 星期文案 */
|
|
145
|
+
weekText: {
|
|
146
|
+
type: Array as PropType<string[]>,
|
|
147
|
+
default: () => [
|
|
148
|
+
t('weeks.sun'),
|
|
149
|
+
t('weeks.mon'),
|
|
150
|
+
t('weeks.tue'),
|
|
151
|
+
t('weeks.wed'),
|
|
152
|
+
t('weeks.thu'),
|
|
153
|
+
t('weeks.fri'),
|
|
154
|
+
t('weeks.sat')
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
/** 单选与多选禁止选中的日期列表,mode!=range时有效。 */
|
|
158
|
+
forbidDays: {
|
|
159
|
+
type: Array as PropType<Date[]>,
|
|
160
|
+
default: () => []
|
|
161
|
+
},
|
|
162
|
+
/** 单选与多选禁止选中的日期选择时提示 */
|
|
163
|
+
forbidDaysToast: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: '该日期已禁用'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export default calendarProps
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
// --- 类型定义 ---
|
|
2
|
-
export interface DateItem {
|
|
3
|
-
date: string | number | Date
|
|
4
|
-
day: number | string
|
|
5
|
-
week: number
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
dot?: boolean
|
|
8
|
-
bottomInfo?: string
|
|
9
|
-
[key: string]: any
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface MonthData {
|
|
13
|
-
year: number | string
|
|
14
|
-
month: number | string
|
|
15
|
-
date: DateItem[]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IMonthProps {
|
|
19
|
-
showMark?: boolean
|
|
20
|
-
color?: string
|
|
21
|
-
months?: MonthData[]
|
|
22
|
-
mode?: 'single' | 'multiple' | 'range'
|
|
23
|
-
rowHeight?: string | number
|
|
24
|
-
maxCount?: number
|
|
25
|
-
startText?: string
|
|
26
|
-
endText?: string
|
|
27
|
-
defaultDate?: string | string[] | Date | null
|
|
28
|
-
minDate?: string | number
|
|
29
|
-
maxDate?: string | number
|
|
30
|
-
maxMonth?: number
|
|
31
|
-
readonly?: boolean
|
|
32
|
-
maxRange?: number
|
|
33
|
-
rangePrompt?: string
|
|
34
|
-
showRangePrompt?: boolean
|
|
35
|
-
allowSameDay?: boolean
|
|
36
|
-
forbidDays?: string[]
|
|
37
|
-
forbidDaysToast?: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface ICalendarEmits {
|
|
41
|
-
/** 日期选择完成后触发,则点击确认按钮后触发 */
|
|
42
|
-
(e: 'confirm', selected: string[]): void
|
|
43
|
-
/** 日历关闭时触发 */
|
|
44
|
-
(e: 'close'): void
|
|
45
|
-
|
|
1
|
+
// --- 类型定义 ---
|
|
2
|
+
export interface DateItem {
|
|
3
|
+
date: string | number | Date
|
|
4
|
+
day: number | string
|
|
5
|
+
week: number
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
dot?: boolean
|
|
8
|
+
bottomInfo?: string
|
|
9
|
+
[key: string]: any
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface MonthData {
|
|
13
|
+
year: number | string
|
|
14
|
+
month: number | string
|
|
15
|
+
date: DateItem[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IMonthProps {
|
|
19
|
+
showMark?: boolean
|
|
20
|
+
color?: string
|
|
21
|
+
months?: MonthData[]
|
|
22
|
+
mode?: 'single' | 'multiple' | 'range'
|
|
23
|
+
rowHeight?: string | number
|
|
24
|
+
maxCount?: number
|
|
25
|
+
startText?: string
|
|
26
|
+
endText?: string
|
|
27
|
+
defaultDate?: string | string[] | Date | null
|
|
28
|
+
minDate?: string | number
|
|
29
|
+
maxDate?: string | number
|
|
30
|
+
maxMonth?: number
|
|
31
|
+
readonly?: boolean
|
|
32
|
+
maxRange?: number
|
|
33
|
+
rangePrompt?: string
|
|
34
|
+
showRangePrompt?: boolean
|
|
35
|
+
allowSameDay?: boolean
|
|
36
|
+
forbidDays?: string[]
|
|
37
|
+
forbidDaysToast?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ICalendarEmits {
|
|
41
|
+
/** 日期选择完成后触发,则点击确认按钮后触发 */
|
|
42
|
+
(e: 'confirm', selected: string[]): void
|
|
43
|
+
/** 日历关闭时触发 */
|
|
44
|
+
(e: 'close'): void
|
|
45
|
+
/** 触发关闭属性 */
|
|
46
|
+
(e: 'update:show', value: boolean): void
|
|
47
|
+
}
|