@sdata/web-vue 1.13.0 → 1.14.0

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.
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'vue';
2
+ import { ConfigProvider } from '../config-provider/context';
3
+ interface UseConfigProviderPropOptions<T> {
4
+ propNames: readonly string[];
5
+ getGlobalValue: (configProviderCtx: ConfigProvider | undefined) => T | undefined;
6
+ }
7
+ export declare const useConfigProviderProp: <T>(propValue: Ref<T | undefined>, options: UseConfigProviderPropOptions<T>) => {
8
+ mergedValue: import("vue").ComputedRef<T | undefined>;
9
+ };
10
+ export {};
@@ -0,0 +1,19 @@
1
+ import { configProviderInjectionKey } from "../config-provider/context.js";
2
+ import { computed, getCurrentInstance, inject } from "vue";
3
+ //#region components/_hooks/use-config-provider-prop.ts
4
+ var useConfigProviderProp = (propValue, options) => {
5
+ const instance = getCurrentInstance();
6
+ const configProviderCtx = inject(configProviderInjectionKey, void 0);
7
+ const hasLocalProp = computed(() => {
8
+ const rawProps = instance === null || instance === void 0 ? void 0 : instance.vnode.props;
9
+ if (!rawProps) return false;
10
+ return options.propNames.some((propName) => Object.hasOwn(rawProps, propName));
11
+ });
12
+ return { mergedValue: computed(() => {
13
+ var _options$getGlobalVal;
14
+ if (hasLocalProp.value) return propValue.value;
15
+ return (_options$getGlobalVal = options.getGlobalValue(configProviderCtx)) !== null && _options$getGlobalVal !== void 0 ? _options$getGlobalVal : propValue.value;
16
+ }) };
17
+ };
18
+ //#endregion
19
+ export { useConfigProviderProp };
@@ -2,6 +2,7 @@ import type { PropType } from 'vue';
2
2
  import { VirtualListProps } from '../_components/virtual-list/interface';
3
3
  import { Size } from '../_utils/constant';
4
4
  import { SDLang } from '../locale/interface';
5
+ import { ConfigProviderDatePicker, ConfigProviderDrawer, ConfigProviderModal } from './context';
5
6
  import { SDThemeConfig, SDThemeMode } from './theme';
6
7
  declare const _default: typeof __VLS_export;
7
8
  export default _default;
@@ -47,6 +48,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
47
48
  type: BooleanConstructor;
48
49
  default: boolean;
49
50
  };
51
+ datePicker: {
52
+ type: PropType<ConfigProviderDatePicker>;
53
+ };
54
+ modal: {
55
+ type: PropType<ConfigProviderModal>;
56
+ };
57
+ drawer: {
58
+ type: PropType<ConfigProviderDrawer>;
59
+ };
50
60
  theme: {
51
61
  type: PropType<SDThemeConfig>;
52
62
  };
@@ -95,6 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
95
105
  type: BooleanConstructor;
96
106
  default: boolean;
97
107
  };
108
+ datePicker: {
109
+ type: PropType<ConfigProviderDatePicker>;
110
+ };
111
+ modal: {
112
+ type: PropType<ConfigProviderModal>;
113
+ };
114
+ drawer: {
115
+ type: PropType<ConfigProviderDrawer>;
116
+ };
98
117
  theme: {
99
118
  type: PropType<SDThemeConfig>;
100
119
  };
@@ -91,6 +91,21 @@ var config_provider_vue_vue_type_script_lang_default = defineComponent({
91
91
  default: false
92
92
  },
93
93
  /**
94
+ * @zh DatePicker 组件默认配置
95
+ * @en Default config for DatePicker
96
+ */
97
+ datePicker: { type: Object },
98
+ /**
99
+ * @zh Modal 组件默认配置
100
+ * @en Default config for Modal
101
+ */
102
+ modal: { type: Object },
103
+ /**
104
+ * @zh Drawer 组件默认配置
105
+ * @en Default config for Drawer
106
+ */
107
+ drawer: { type: Object },
108
+ /**
94
109
  * @zh 主题配置对象
95
110
  * @en Runtime theme configuration object
96
111
  */
@@ -115,7 +130,7 @@ var config_provider_vue_vue_type_script_lang_default = defineComponent({
115
130
  * @version 2.28.0
116
131
  */
117
132
  setup(props, { slots }) {
118
- const { prefixCls, locale, size, allowClear, allowSearch, virtualListProps, updateAtScroll, scrollToClose, exchangeTime, rtl } = toRefs(props);
133
+ const { prefixCls, locale, size, allowClear, allowSearch, virtualListProps, updateAtScroll, scrollToClose, exchangeTime, rtl, datePicker, modal, drawer } = toRefs(props);
119
134
  const config = reactive({
120
135
  slots,
121
136
  prefixCls,
@@ -128,6 +143,9 @@ var config_provider_vue_vue_type_script_lang_default = defineComponent({
128
143
  scrollToClose,
129
144
  exchangeTime,
130
145
  rtl,
146
+ datePicker,
147
+ modal,
148
+ drawer,
131
149
  theme: normalizeTheme(props.theme)
132
150
  });
133
151
  watch(() => props.theme, (themeConfig) => {
@@ -1,8 +1,53 @@
1
- import { InjectionKey, Ref, Slots } from 'vue';
1
+ import { CSSProperties, InjectionKey, Ref, Slots } from 'vue';
2
2
  import { VirtualListProps } from '../_components/virtual-list/interface';
3
3
  import { Size } from '../_utils/constant';
4
+ import { ButtonProps } from '../button';
5
+ import { ShortcutType, WeekStart } from '../date-picker/interface';
4
6
  import { SDLang } from '../locale/interface';
5
7
  import { SDThemeNormalized } from './theme';
8
+ export interface ConfigProviderModal {
9
+ mask?: boolean;
10
+ maskClosable?: boolean;
11
+ maskStyle?: CSSProperties;
12
+ alignCenter?: boolean;
13
+ escToClose?: boolean;
14
+ draggable?: boolean;
15
+ closable?: boolean;
16
+ titleAlign?: 'start' | 'center';
17
+ top?: number | string;
18
+ footer?: boolean;
19
+ hideCancel?: boolean;
20
+ okText?: string;
21
+ cancelText?: string;
22
+ okButtonProps?: ButtonProps;
23
+ cancelButtonProps?: ButtonProps;
24
+ width?: number | string;
25
+ }
26
+ export interface ConfigProviderDrawer {
27
+ placement?: 'top' | 'right' | 'bottom' | 'left';
28
+ mask?: boolean;
29
+ maskClosable?: boolean;
30
+ escToClose?: boolean;
31
+ closable?: boolean;
32
+ header?: boolean;
33
+ footer?: boolean;
34
+ hideCancel?: boolean;
35
+ okText?: string;
36
+ cancelText?: string;
37
+ okButtonProps?: ButtonProps;
38
+ cancelButtonProps?: ButtonProps;
39
+ width?: number | string;
40
+ height?: number | string;
41
+ }
42
+ export interface ConfigProviderDatePicker {
43
+ shortcuts?: ShortcutType[];
44
+ shortcutsPosition?: 'left' | 'bottom' | 'right';
45
+ previewShortcut?: boolean;
46
+ showConfirmBtn?: boolean;
47
+ showNowBtn?: boolean;
48
+ dayStartOfWeek?: WeekStart;
49
+ abbreviation?: boolean;
50
+ }
6
51
  export interface ConfigProvider {
7
52
  slots: Slots;
8
53
  prefixCls?: string;
@@ -15,6 +60,9 @@ export interface ConfigProvider {
15
60
  scrollToClose?: boolean;
16
61
  exchangeTime?: boolean;
17
62
  rtl?: boolean;
63
+ datePicker?: ConfigProviderDatePicker;
64
+ modal?: ConfigProviderModal;
65
+ drawer?: ConfigProviderDrawer;
18
66
  theme?: SDThemeNormalized;
19
67
  }
20
68
  export declare const configProviderInjectionKey: InjectionKey<ConfigProvider>;
@@ -44,6 +44,15 @@ declare const ConfigProvider: {
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
46
46
  };
47
+ datePicker: {
48
+ type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
49
+ };
50
+ modal: {
51
+ type: import("vue").PropType<import("./context").ConfigProviderModal>;
52
+ };
53
+ drawer: {
54
+ type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
55
+ };
47
56
  theme: {
48
57
  type: import("vue").PropType<import("./theme").SDThemeConfig>;
49
58
  };
@@ -155,6 +164,15 @@ declare const ConfigProvider: {
155
164
  type: BooleanConstructor;
156
165
  default: boolean;
157
166
  };
167
+ datePicker: {
168
+ type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
169
+ };
170
+ modal: {
171
+ type: import("vue").PropType<import("./context").ConfigProviderModal>;
172
+ };
173
+ drawer: {
174
+ type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
175
+ };
158
176
  theme: {
159
177
  type: import("vue").PropType<import("./theme").SDThemeConfig>;
160
178
  };
@@ -216,6 +234,15 @@ declare const ConfigProvider: {
216
234
  type: BooleanConstructor;
217
235
  default: boolean;
218
236
  };
237
+ datePicker: {
238
+ type: import("vue").PropType<import("./context").ConfigProviderDatePicker>;
239
+ };
240
+ modal: {
241
+ type: import("vue").PropType<import("./context").ConfigProviderModal>;
242
+ };
243
+ drawer: {
244
+ type: import("vue").PropType<import("./context").ConfigProviderDrawer>;
245
+ };
219
246
  theme: {
220
247
  type: import("vue").PropType<import("./theme").SDThemeConfig>;
221
248
  };
@@ -274,16 +274,16 @@ declare const DatePicker: {
274
274
  default: string;
275
275
  };
276
276
  modelValue: {
277
- type: import("vue").PropType<(Date | string | number)[]>;
277
+ type: import("vue").PropType<CalendarValue[]>;
278
278
  };
279
279
  defaultValue: {
280
- type: import("vue").PropType<(Date | string | number)[]>;
280
+ type: import("vue").PropType<CalendarValue[]>;
281
281
  };
282
282
  pickerValue: {
283
- type: import("vue").PropType<(Date | string | number)[]>;
283
+ type: import("vue").PropType<CalendarValue[]>;
284
284
  };
285
285
  defaultPickerValue: {
286
- type: import("vue").PropType<(Date | string | number)[]>;
286
+ type: import("vue").PropType<CalendarValue[]>;
287
287
  };
288
288
  disabled: {
289
289
  type: import("vue").PropType<boolean | boolean[]>;
@@ -402,10 +402,14 @@ declare const DatePicker: {
402
402
  onInputChange: (e: any) => void;
403
403
  onInputPressEnter: () => void;
404
404
  rangePanelProps: import("vue").ComputedRef<{
405
+ shortcuts: import("./interface").ShortcutType[] | undefined;
406
+ shortcutsPosition: "bottom" | "left" | "right" | undefined;
407
+ dayStartOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
408
+ abbreviation: boolean | undefined;
405
409
  prefixCls: string;
406
410
  format: string;
407
411
  value: (import("dayjs").Dayjs | undefined)[];
408
- showConfirmBtn: boolean;
412
+ showConfirmBtn: boolean | undefined;
409
413
  confirmBtnDisabled: boolean | undefined;
410
414
  timePickerValue: import("dayjs").Dayjs[];
411
415
  timePickerProps: {
@@ -564,14 +568,10 @@ declare const DatePicker: {
564
568
  onStartHeaderSelect: (date: import("dayjs").Dayjs) => void;
565
569
  onEndHeaderSelect: (date: import("dayjs").Dayjs) => void;
566
570
  mode: "month" | "year" | "date" | "week" | "quarter";
567
- dayStartOfWeek: import("./interface").WeekStart;
568
571
  hideTrigger: boolean;
569
572
  showTime: boolean;
570
573
  disabledDate: ((current: Date, type: "start" | "end") => boolean) | undefined;
571
574
  disabledTime: ((current: Date, type: "start" | "end") => import("./interface").DisabledTimeProps) | undefined;
572
- abbreviation: boolean;
573
- shortcuts: import("./interface").ShortcutType[];
574
- shortcutsPosition: "bottom" | "left" | "right";
575
575
  }>;
576
576
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
577
577
  change: (value: (CalendarValue | undefined)[] | undefined, date: (Date | undefined)[] | undefined, dateString: (string | undefined)[] | undefined) => true;
@@ -590,16 +590,16 @@ declare const DatePicker: {
590
590
  default: string;
591
591
  };
592
592
  modelValue: {
593
- type: import("vue").PropType<(Date | string | number)[]>;
593
+ type: import("vue").PropType<CalendarValue[]>;
594
594
  };
595
595
  defaultValue: {
596
- type: import("vue").PropType<(Date | string | number)[]>;
596
+ type: import("vue").PropType<CalendarValue[]>;
597
597
  };
598
598
  pickerValue: {
599
- type: import("vue").PropType<(Date | string | number)[]>;
599
+ type: import("vue").PropType<CalendarValue[]>;
600
600
  };
601
601
  defaultPickerValue: {
602
- type: import("vue").PropType<(Date | string | number)[]>;
602
+ type: import("vue").PropType<CalendarValue[]>;
603
603
  };
604
604
  disabled: {
605
605
  type: import("vue").PropType<boolean | boolean[]>;
@@ -124,12 +124,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
124
124
  prefixCls: string;
125
125
  refInput: import("vue").Ref<any, any>;
126
126
  panelProps: import("vue").ComputedRef<{
127
- showNowBtn: boolean;
127
+ shortcuts: ShortcutType[] | undefined;
128
+ shortcutsPosition: "bottom" | "left" | "right" | undefined;
129
+ dayStartOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined;
130
+ abbreviation: boolean | undefined;
131
+ showNowBtn: boolean | undefined;
128
132
  prefixCls: string;
129
133
  format: string;
130
134
  value: Dayjs | undefined;
131
135
  visible: boolean;
132
- showConfirmBtn: boolean;
136
+ showConfirmBtn: boolean | undefined;
133
137
  confirmBtnDisabled: boolean | undefined;
134
138
  timePickerProps: {
135
139
  visible: boolean;
@@ -182,14 +186,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
182
186
  onHeaderSelect: (date: Dayjs) => void;
183
187
  onMonthHeaderClick: () => void;
184
188
  mode: "month" | "year" | "date" | "week" | "quarter";
185
- dayStartOfWeek: WeekStart;
186
189
  hideTrigger: boolean;
187
190
  showTime: boolean;
188
191
  disabledDate: ((current?: Date) => boolean) | undefined;
189
192
  disabledTime: ((current: Date) => DisabledTimeProps) | undefined;
190
- abbreviation: boolean;
191
- shortcuts: ShortcutType[];
192
- shortcutsPosition: "bottom" | "left" | "right";
193
193
  }>;
194
194
  panelValue: import("vue").ComputedRef<Dayjs | undefined>;
195
195
  inputValue: import("vue").Ref<string | undefined, string | undefined>;
@@ -199,7 +199,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
199
199
  panelVisible: import("vue").ComputedRef<boolean>;
200
200
  mergedAllowClear: import("vue").ComputedRef<boolean | undefined>;
201
201
  inputEditable: import("vue").ComputedRef<boolean>;
202
- needConfirm: import("vue").ComputedRef<boolean>;
202
+ needConfirm: import("vue").ComputedRef<boolean | undefined>;
203
203
  mergedDisabled: import("vue").ComputedRef<boolean>;
204
204
  onPanelVisibleChange: (visible: boolean) => void;
205
205
  onInputClear: (e: Event) => void;
@@ -11,6 +11,7 @@ import { useI18n } from "../locale/index.js";
11
11
  import Trigger from "../trigger/index.js";
12
12
  import { dayjs, getDateValue, getNow, initializeDateLocale, isValueChange } from "../_utils/date.js";
13
13
  import input_default from "../_components/picker/input.js";
14
+ import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
14
15
  import IconCalendar from "../icon/icon-calendar/index.js";
15
16
  import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
16
17
  import useFormat from "./hooks/use-format.js";
@@ -329,10 +330,60 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
329
330
  * @slot icon-next-double
330
331
  */
331
332
  setup(props, { emit, slots }) {
332
- const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, previewShortcut, showConfirmBtn } = toRefs(props);
333
+ const { mode, modelValue, defaultValue, format, valueFormat, placeholder, popupVisible, defaultPopupVisible, disabled, showTime, timePickerProps, disabledDate, disabledTime, readonly, allowClear, locale, pickerValue, defaultPickerValue, dayStartOfWeek, shortcuts, shortcutsPosition, previewShortcut, showConfirmBtn, showNowBtn, abbreviation } = toRefs(props);
334
+ const { mergedValue: mergedDayStartOfWeek } = useConfigProviderProp(dayStartOfWeek, {
335
+ propNames: ["dayStartOfWeek", "day-start-of-week"],
336
+ getGlobalValue: (configProviderCtx) => {
337
+ var _configProviderCtx$da;
338
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da = configProviderCtx.datePicker) === null || _configProviderCtx$da === void 0 ? void 0 : _configProviderCtx$da.dayStartOfWeek;
339
+ }
340
+ });
341
+ const { mergedValue: mergedShortcuts } = useConfigProviderProp(shortcuts, {
342
+ propNames: ["shortcuts"],
343
+ getGlobalValue: (configProviderCtx) => {
344
+ var _configProviderCtx$da2;
345
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da2 = configProviderCtx.datePicker) === null || _configProviderCtx$da2 === void 0 ? void 0 : _configProviderCtx$da2.shortcuts;
346
+ }
347
+ });
348
+ const { mergedValue: mergedShortcutsPosition } = useConfigProviderProp(shortcutsPosition, {
349
+ propNames: ["shortcutsPosition", "shortcuts-position"],
350
+ getGlobalValue: (configProviderCtx) => {
351
+ var _configProviderCtx$da3;
352
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da3 = configProviderCtx.datePicker) === null || _configProviderCtx$da3 === void 0 ? void 0 : _configProviderCtx$da3.shortcutsPosition;
353
+ }
354
+ });
355
+ const { mergedValue: mergedPreviewShortcut } = useConfigProviderProp(previewShortcut, {
356
+ propNames: ["previewShortcut", "preview-shortcut"],
357
+ getGlobalValue: (configProviderCtx) => {
358
+ var _configProviderCtx$da4;
359
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da4 = configProviderCtx.datePicker) === null || _configProviderCtx$da4 === void 0 ? void 0 : _configProviderCtx$da4.previewShortcut;
360
+ }
361
+ });
362
+ const { mergedValue: mergedShowConfirmBtn } = useConfigProviderProp(showConfirmBtn, {
363
+ propNames: ["showConfirmBtn", "show-confirm-btn"],
364
+ getGlobalValue: (configProviderCtx) => {
365
+ var _configProviderCtx$da5;
366
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da5 = configProviderCtx.datePicker) === null || _configProviderCtx$da5 === void 0 ? void 0 : _configProviderCtx$da5.showConfirmBtn;
367
+ }
368
+ });
369
+ const { mergedValue: mergedShowNowBtn } = useConfigProviderProp(showNowBtn, {
370
+ propNames: ["showNowBtn", "show-now-btn"],
371
+ getGlobalValue: (configProviderCtx) => {
372
+ var _configProviderCtx$da6;
373
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da6 = configProviderCtx.datePicker) === null || _configProviderCtx$da6 === void 0 ? void 0 : _configProviderCtx$da6.showNowBtn;
374
+ }
375
+ });
376
+ const { mergedValue: mergedAbbreviation } = useConfigProviderProp(abbreviation, {
377
+ propNames: ["abbreviation"],
378
+ getGlobalValue: (configProviderCtx) => {
379
+ var _configProviderCtx$da7;
380
+ return configProviderCtx === null || configProviderCtx === void 0 || (_configProviderCtx$da7 = configProviderCtx.datePicker) === null || _configProviderCtx$da7 === void 0 ? void 0 : _configProviderCtx$da7.abbreviation;
381
+ }
382
+ });
333
383
  const { locale: globalLocal } = useI18n();
334
384
  watchEffect(() => {
335
- initializeDateLocale(globalLocal.value, dayStartOfWeek.value);
385
+ var _mergedDayStartOfWeek;
386
+ initializeDateLocale(globalLocal.value, (_mergedDayStartOfWeek = mergedDayStartOfWeek.value) !== null && _mergedDayStartOfWeek !== void 0 ? _mergedDayStartOfWeek : 0);
336
387
  });
337
388
  const { mergedDisabled, eventHandlers } = useFormItem({ disabled });
338
389
  const { mergedAllowClear } = useAllowClear(allowClear);
@@ -363,7 +414,7 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
363
414
  disabledTime,
364
415
  showTime
365
416
  }));
366
- const needConfirm = computed(() => showTime.value || showConfirmBtn.value);
417
+ const needConfirm = computed(() => showTime.value || mergedShowConfirmBtn.value);
367
418
  const confirmBtnDisabled = computed(() => needConfirm.value && (!forSelectedValue.value || isDisabledDate(forSelectedValue.value)));
368
419
  const isDateTime = computed(() => mode.value === "date" && showTime.value);
369
420
  const { value: selectedValue, setValue: setSelectedValue } = usePickerState(reactive({
@@ -543,16 +594,16 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
543
594
  refInput,
544
595
  panelProps: computed(() => _objectSpread2(_objectSpread2({}, pick(props, [
545
596
  "mode",
546
- "shortcuts",
547
- "shortcutsPosition",
548
- "dayStartOfWeek",
549
597
  "disabledDate",
550
598
  "disabledTime",
551
599
  "showTime",
552
- "hideTrigger",
553
- "abbreviation"
600
+ "hideTrigger"
554
601
  ])), {}, {
555
- showNowBtn: props.showNowBtn && mode.value === "date",
602
+ shortcuts: mergedShortcuts.value,
603
+ shortcutsPosition: mergedShortcutsPosition.value,
604
+ dayStartOfWeek: mergedDayStartOfWeek.value,
605
+ abbreviation: mergedAbbreviation.value,
606
+ showNowBtn: mergedShowNowBtn.value && mode.value === "date",
556
607
  prefixCls,
557
608
  format: parseValueFormat.value,
558
609
  value: panelValue.value,
@@ -576,8 +627,8 @@ var picker_vue_vue_type_script_lang_default = defineComponent({
576
627
  onTimePickerSelect,
577
628
  onConfirm: onPanelConfirm,
578
629
  onShortcutClick: onPanelShortcutClick,
579
- onShortcutMouseEnter: previewShortcut.value ? onPanelShortcutMouseEnter : void 0,
580
- onShortcutMouseLeave: previewShortcut.value ? onPanelShortcutMouseLeave : void 0,
630
+ onShortcutMouseEnter: mergedPreviewShortcut.value ? onPanelShortcutMouseEnter : void 0,
631
+ onShortcutMouseLeave: mergedPreviewShortcut.value ? onPanelShortcutMouseLeave : void 0,
581
632
  onTodayBtnClick: onPanelSelect,
582
633
  onHeaderLabelClick: onPanelHeaderLabelClick,
583
634
  onHeaderSelect: onPanelHeaderSelect,