@opendesign-plus-test/components 0.0.1-rc.59 → 0.0.1-rc.61
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
|
@@ -214,7 +214,7 @@ const handleClear = () => {
|
|
|
214
214
|
const handleSuggestClick = (item: OSearchRecommendItem) => {
|
|
215
215
|
emit('recommend-click', item);
|
|
216
216
|
innerValue.value = item.key;
|
|
217
|
-
runSearch();
|
|
217
|
+
runSearch(item.key ?? '');
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
const handleRecommendClick = (val: string) => {
|
|
@@ -77,10 +77,19 @@ const isAutoClick = ref(false);
|
|
|
77
77
|
const group = ref('');
|
|
78
78
|
const getSummitData = async (date: string) => {
|
|
79
79
|
if (props.getSummitListRequest) {
|
|
80
|
+
summitData.value = [];
|
|
80
81
|
const list = await props.getSummitListRequest(date);
|
|
81
82
|
summitData.value = (list || []).map((v: SummitItemT) => {
|
|
83
|
+
const dates: string[] = [];
|
|
84
|
+
let cur = dayjs(v.start_date);
|
|
85
|
+
const end = dayjs(v.end_date);
|
|
86
|
+
while (!cur.isAfter(end)) {
|
|
87
|
+
dates.push(cur.format('YYYY-MM-DD'));
|
|
88
|
+
cur = cur.add(1, 'day');
|
|
89
|
+
}
|
|
82
90
|
return {
|
|
83
91
|
...v,
|
|
92
|
+
dates,
|
|
84
93
|
type: CalendarDataType.SUMMIT,
|
|
85
94
|
start_date_time: `${ formatDate(v.start_date) } ${ v.start || '' }`,
|
|
86
95
|
end_date_time: `${ formatDate(v.end_date) } ${ v.end || '' }`,
|
|
@@ -92,10 +101,19 @@ const getSummitData = async (date: string) => {
|
|
|
92
101
|
};
|
|
93
102
|
const getActivityData = async (date: string) => {
|
|
94
103
|
if (props.getEventsListRequest) {
|
|
104
|
+
eventsData.value = [];
|
|
95
105
|
const list = await props.getEventsListRequest(date);
|
|
96
106
|
eventsData.value = (list || []).map((v: MeetingEventsItemT) => {
|
|
107
|
+
const dates: string[] = [];
|
|
108
|
+
let cur = dayjs(v.start_date);
|
|
109
|
+
const end = dayjs(v.end_date);
|
|
110
|
+
while (!cur.isAfter(end)) {
|
|
111
|
+
dates.push(cur.format('YYYY-MM-DD'));
|
|
112
|
+
cur = cur.add(1, 'day');
|
|
113
|
+
}
|
|
97
114
|
return {
|
|
98
115
|
...v,
|
|
116
|
+
dates,
|
|
99
117
|
type: CalendarDataType.EVENTS,
|
|
100
118
|
start_date_time: `${ formatDate(v.start_date) } ${ v.start || '' }`,
|
|
101
119
|
end_date_time: `${ formatDate(v.end_date) } ${ v.end || '' }`,
|
|
@@ -132,6 +150,7 @@ const paramGetDaysData = async (params: { date: string; type: string }) => {
|
|
|
132
150
|
return;
|
|
133
151
|
}
|
|
134
152
|
try {
|
|
153
|
+
meetingData.value = [];
|
|
135
154
|
const res: MeetingItemT[] = await props.getMeetingListRequest(params.date, group.value, '');
|
|
136
155
|
meetingData.value = res.map((v) => {
|
|
137
156
|
return {
|
|
@@ -230,7 +230,7 @@ const handleSuggestClick = (item: OSearchRecommendItem) => {
|
|
|
230
230
|
emit('recommend-click', item);
|
|
231
231
|
suppressNextInput = true;
|
|
232
232
|
innerValue.value = item.key;
|
|
233
|
-
runSearch();
|
|
233
|
+
runSearch(item.key ?? '');
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
const handleOnestepClick = (item: OSearchRecommendItem) => {
|
|
@@ -267,7 +267,7 @@ const handleSuggestListClick = (val: string) => {
|
|
|
267
267
|
emit('suggest-list-click', text);
|
|
268
268
|
suppressNextInput = true;
|
|
269
269
|
innerValue.value = text;
|
|
270
|
-
runSearch();
|
|
270
|
+
runSearch(text);
|
|
271
271
|
};
|
|
272
272
|
|
|
273
273
|
const onPreviewChange = (visible: boolean) => {
|