@opendesign-plus-test/components 0.0.1-rc.32 → 0.0.1-rc.33
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/dist/components.cjs.js +31 -31
- package/dist/components.css +1 -1
- package/dist/components.es.js +3478 -3472
- package/package.json +3 -3
- package/src/components/activity/OMyActivityCalendar.vue +11 -10
- package/src/components/meeting/OMeetingCalendar.vue +9 -3
- package/src/components/meeting/OMyMeetingCalendar.vue +10 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendesign-plus-test/components",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.33",
|
|
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/
|
|
36
|
-
"@opendesign-plus/
|
|
35
|
+
"@opendesign-plus/composables": "0.0.1-rc.6",
|
|
36
|
+
"@opendesign-plus/styles": "0.0.1-rc.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@vitejs/plugin-vue": "^5.1.0",
|
|
@@ -512,7 +512,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
512
512
|
</span>
|
|
513
513
|
</div>
|
|
514
514
|
<div class="left-calendar">
|
|
515
|
-
<ElCalendar ref="calendarRef">
|
|
515
|
+
<ElCalendar ref="calendarRef" v-model="selectedDate">
|
|
516
516
|
<template #header>
|
|
517
517
|
<span>{{ (selectedDate ? dayjs(new Date(selectedDate)) : dayjs()).format('YYYY MM月') }}</span>
|
|
518
518
|
<div>
|
|
@@ -621,7 +621,8 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
621
621
|
</div>
|
|
622
622
|
</div>
|
|
623
623
|
</div>
|
|
624
|
-
<div class="item-header-right"
|
|
624
|
+
<div class="item-header-right"
|
|
625
|
+
v-if="row.content_url && !row.is_delete && [3,4,5,6].includes(row.status)">
|
|
625
626
|
<OLink v-if="row.content_url" :href="row.content_url" target="_blank" rel="noopener noreferrer">
|
|
626
627
|
活动详情
|
|
627
628
|
<template #suffix>
|
|
@@ -632,9 +633,10 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
632
633
|
</OLink>
|
|
633
634
|
<OLink
|
|
634
635
|
v-if="
|
|
636
|
+
row.register_url && (
|
|
635
637
|
row.status === 3 ||
|
|
636
638
|
row.status === 4 ||
|
|
637
|
-
(row.status === 2 && row.update_activity_id && new Date(row.register_end_date).getTime() > new Date().getTime())
|
|
639
|
+
(row.status === 2 && row.update_activity_id && new Date(row.register_end_date).getTime() > new Date().getTime()))
|
|
638
640
|
"
|
|
639
641
|
:href="row.register_url"
|
|
640
642
|
target="_blank"
|
|
@@ -759,6 +761,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
759
761
|
gap: var(--o-gap-3);
|
|
760
762
|
--phone-padding-top: calc(var(--o-gap-5) + var(--o-gap-3) + var(--o-gap-3));
|
|
761
763
|
}
|
|
764
|
+
|
|
762
765
|
.o-loading {
|
|
763
766
|
.o-layer-mask {
|
|
764
767
|
background-color: transparent;
|
|
@@ -836,6 +839,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
836
839
|
@include respond-to('phone') {
|
|
837
840
|
display: none;
|
|
838
841
|
}
|
|
842
|
+
|
|
839
843
|
.el-calendar {
|
|
840
844
|
min-height: 460px;
|
|
841
845
|
height: calc(100% - 54px);
|
|
@@ -1006,6 +1010,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1006
1010
|
.o-scroller {
|
|
1007
1011
|
.o-scrollbar-rail {
|
|
1008
1012
|
right: -16px;
|
|
1013
|
+
height: 100%;
|
|
1009
1014
|
}
|
|
1010
1015
|
}
|
|
1011
1016
|
|
|
@@ -1173,13 +1178,6 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1173
1178
|
display: flex;
|
|
1174
1179
|
flex-direction: column;
|
|
1175
1180
|
|
|
1176
|
-
.o-collapse-item {
|
|
1177
|
-
&.last-item {
|
|
1178
|
-
.o-collapse-item-header {
|
|
1179
|
-
border-bottom: none;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
1181
|
.o-collapse-item-expanded + .o-collapse-item-expanded {
|
|
1184
1182
|
margin-top: var(--o-gap-4);
|
|
1185
1183
|
}
|
|
@@ -1233,6 +1231,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1233
1231
|
display: flex;
|
|
1234
1232
|
align-items: center;
|
|
1235
1233
|
gap: var(--o-gap-4);
|
|
1234
|
+
position: relative;
|
|
1236
1235
|
|
|
1237
1236
|
.o-collapse-item-icon {
|
|
1238
1237
|
position: relative;
|
|
@@ -1257,6 +1256,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1257
1256
|
flex-direction: column;
|
|
1258
1257
|
align-items: flex-start;
|
|
1259
1258
|
justify-content: space-between;
|
|
1259
|
+
margin-bottom: 0;
|
|
1260
1260
|
|
|
1261
1261
|
.item-header-left {
|
|
1262
1262
|
display: flex;
|
|
@@ -1310,6 +1310,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
|
|
|
1310
1310
|
max-width: 100%;
|
|
1311
1311
|
@include text-truncate(1);
|
|
1312
1312
|
}
|
|
1313
|
+
|
|
1313
1314
|
.o-tag {
|
|
1314
1315
|
margin-left: 8px;
|
|
1315
1316
|
--tag-radius: 4px;
|
|
@@ -67,6 +67,7 @@ const calendar = ref();
|
|
|
67
67
|
const calendarHeight = ref<string>('407px');
|
|
68
68
|
const isLimit = ref(false);
|
|
69
69
|
const currentDay = ref('');
|
|
70
|
+
const isAutoClick = ref(false);
|
|
70
71
|
// sig组列表
|
|
71
72
|
const sig = ref('');
|
|
72
73
|
const sigOptions = ref<GroupItemT[]>([]);
|
|
@@ -162,6 +163,7 @@ const renderData = computed(() => {
|
|
|
162
163
|
|
|
163
164
|
const getDateData = async (day?: string) => {
|
|
164
165
|
const date = dayjs(day).format('YYYY-MM-DD');
|
|
166
|
+
currentDay.value = date;
|
|
165
167
|
getSummitData(date);
|
|
166
168
|
getActivityData(date);
|
|
167
169
|
getDateList(date);
|
|
@@ -184,7 +186,6 @@ const getDateData = async (day?: string) => {
|
|
|
184
186
|
date: date,
|
|
185
187
|
type: tabType.value,
|
|
186
188
|
});
|
|
187
|
-
currentDay.value = date;
|
|
188
189
|
};
|
|
189
190
|
|
|
190
191
|
watch([() => tabType.value, () => tabs.value], () => {
|
|
@@ -202,6 +203,10 @@ function selectTab() {
|
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
const changeMeetingDay = useDebounceFn((day: string, event?: Event) => {
|
|
206
|
+
if (isAutoClick.value) {
|
|
207
|
+
isAutoClick.value = false;
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
205
210
|
if (new Date(day).getTime() / 1000 < 1610380800) {
|
|
206
211
|
event?.stopPropagation();
|
|
207
212
|
return;
|
|
@@ -217,7 +222,7 @@ const selectDate = (val: string, date: string) => {
|
|
|
217
222
|
}
|
|
218
223
|
isLimit.value = false;
|
|
219
224
|
calendar.value.selectDate(val);
|
|
220
|
-
changeMeetingDay(calendar.value.selectedDay);
|
|
225
|
+
changeMeetingDay(formatDate(calendar.value.selectedDay));
|
|
221
226
|
};
|
|
222
227
|
|
|
223
228
|
const removeLeadingZero = (str: string) => {
|
|
@@ -249,10 +254,11 @@ onMounted(() => {
|
|
|
249
254
|
const stopWatchData = watch(
|
|
250
255
|
() => allDates.value.length,
|
|
251
256
|
() => {
|
|
252
|
-
if (isClient) {
|
|
257
|
+
if (isClient && !currentDay.value) {
|
|
253
258
|
nextTick(() => {
|
|
254
259
|
const activeBoxes = document.querySelector('.is-today .out-box') as HTMLElement;
|
|
255
260
|
if (activeBoxes) {
|
|
261
|
+
isAutoClick.value = true;
|
|
256
262
|
activeBoxes.click();
|
|
257
263
|
stopWatchData();
|
|
258
264
|
}
|
|
@@ -904,10 +904,15 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
904
904
|
th {
|
|
905
905
|
text-align: center;
|
|
906
906
|
border: none;
|
|
907
|
+
--o-color-control3-light: transparent;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
tr {
|
|
911
|
+
--o-color-fill2: transparent;
|
|
907
912
|
}
|
|
908
913
|
|
|
909
914
|
td {
|
|
910
|
-
background-color:
|
|
915
|
+
background-color: transparent !important;
|
|
911
916
|
border: none;
|
|
912
917
|
text-align: center;
|
|
913
918
|
transition: none;
|
|
@@ -1025,9 +1030,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1025
1030
|
.o-scroller {
|
|
1026
1031
|
.o-scrollbar-rail {
|
|
1027
1032
|
right: -16px;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.o-scrollbar {
|
|
1031
1033
|
height: 100%;
|
|
1032
1034
|
}
|
|
1033
1035
|
}
|
|
@@ -1265,8 +1267,8 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1265
1267
|
width: 20px;
|
|
1266
1268
|
height: 20px;
|
|
1267
1269
|
font-size: 20px;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
+
top: 50%;
|
|
1271
|
+
transform: translateY(-50%);
|
|
1270
1272
|
}
|
|
1271
1273
|
}
|
|
1272
1274
|
|
|
@@ -1277,6 +1279,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1277
1279
|
flex-direction: column;
|
|
1278
1280
|
align-items: flex-start;
|
|
1279
1281
|
justify-content: space-between;
|
|
1282
|
+
margin-bottom: 0;
|
|
1280
1283
|
.item-header-left {
|
|
1281
1284
|
display: flex;
|
|
1282
1285
|
align-items: flex-start;
|
|
@@ -1348,6 +1351,7 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1348
1351
|
color: var(--o-color-info3);
|
|
1349
1352
|
display: flex;
|
|
1350
1353
|
align-items: center;
|
|
1354
|
+
font-weight: 400;
|
|
1351
1355
|
@include tip1;
|
|
1352
1356
|
|
|
1353
1357
|
span:last-child {
|
|
@@ -1386,8 +1390,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
|
|
|
1386
1390
|
display: var(--copy-display);
|
|
1387
1391
|
@include respond-to('phone') {
|
|
1388
1392
|
bottom: var(--o-gap-2);
|
|
1389
|
-
transform: revert;
|
|
1390
|
-
top: revert;
|
|
1391
1393
|
right: calc(20px + var(--o-gap-2))
|
|
1392
1394
|
}
|
|
1393
1395
|
|