@opendesign-plus-test/components 0.0.1-rc.30 → 0.0.1-rc.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/components",
3
- "version": "0.0.1-rc.30",
3
+ "version": "0.0.1-rc.31",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -32,8 +32,8 @@
32
32
  "dayjs": "^1.11.13",
33
33
  "video.js": "^8.23.7",
34
34
  "vue-dompurify-html": "^3.1.2",
35
- "@opendesign-plus/composables": "0.0.1-rc.6",
36
- "@opendesign-plus/styles": "0.0.1-rc.2"
35
+ "@opendesign-plus/styles": "0.0.1-rc.2",
36
+ "@opendesign-plus/composables": "0.0.1-rc.6"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@vitejs/plugin-vue": "^5.1.0",
@@ -21,6 +21,7 @@ import { Locales, useI18n } from '@/i18n';
21
21
  import { MEETING_TABS } from './config';
22
22
  import { CalendarDataType, GroupItemT, MeetingCalendarPropsT, MeetingGroupType } from './types.ts';
23
23
  import { formatDate, getConfig } from './utils.ts';
24
+ import { useDebounceFn } from '@vueuse/core';
24
25
 
25
26
  const props = withDefaults(defineProps<MeetingCalendarPropsT>(), {
26
27
  getSummitListRequest: async () => [],
@@ -200,13 +201,13 @@ function selectTab() {
200
201
  });
201
202
  }
202
203
 
203
- function changeMeetingDay(day: string, event?: Event) {
204
+ const changeMeetingDay = useDebounceFn((day: string, event?: Event) => {
204
205
  if (new Date(day).getTime() / 1000 < 1610380800) {
205
206
  event?.stopPropagation();
206
207
  return;
207
208
  }
208
209
  getDateData(day);
209
- }
210
+ }, 300)
210
211
 
211
212
 
212
213
  const selectDate = (val: string, date: string) => {