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

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.31",
3
+ "version": "0.0.1-rc.32",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -2,10 +2,9 @@
2
2
  import { ElTable, ElTableColumn, dayjs } from 'element-plus';
3
3
  import {
4
4
  DialogActionT,
5
- OButton,
6
- OCollapse, OCollapseItem,
5
+ OCollapse,
6
+ OCollapseItem,
7
7
  ODialog,
8
- ODivider,
9
8
  OForm,
10
9
  OFormItem, OLink,
11
10
  OPagination,
@@ -76,8 +75,10 @@ const COUNT_PER_PAGE = [10, 20, 30, 40];
76
75
  const getData = async () => {
77
76
  const { page, size, status, sponsor, order_by, search, is_delete } = params;
78
77
  let paramsData = { page, size, sponsor, order_by, search } as ReviewParamsT;
79
- if (status === 'cancel') {
78
+ if (status !== 'all') {
80
79
  paramsData.is_delete = is_delete;
80
+ }
81
+ if (status === 'cancel') {
81
82
  paramsData.status = '';
82
83
  } else {
83
84
  paramsData.status = status;
@@ -557,7 +558,7 @@ const reviewActions = computed<DialogActionT[]>(() => {
557
558
  >
558
559
  <template #header>{{ cancelTitle }}</template>
559
560
  <div class="dialog-content">
560
- 是否确认{{ cancelText }}“{{ currentRow?.title }}”活动?{{ cancelText }}后将不在会议首页呈现,且已报名的数据也会被清空,请谨慎操作。
561
+ 是否确认{{ cancelText }}“{{ currentRow?.title }}”活动?{{ cancelText }}后将不在会议首页呈现。
561
562
  </div>
562
563
  </ODialog>
563
564
  </div>
@@ -20,6 +20,7 @@ import { ElCalendar } from 'element-plus';
20
20
  import dayjs from 'dayjs';
21
21
  import { useDebounceFn } from '@vueuse/core';
22
22
 
23
+ import IconCopy from '~icons/meeting/icon-copy.svg';
23
24
  import IconEvent from '~icons/meeting/icon-event.svg';
24
25
 
25
26
  import type { ActivityItemT, MyActivityCalendarPropsT, ParamsItemT } from './types';
@@ -647,6 +648,9 @@ const deleteActions = computed<DialogActionT[]>(() => {
647
648
  </template>
648
649
  </OLink>
649
650
  </div>
651
+ <OIcon @click.stop="() => copyInfo(rowIdx)" class="copy-icon">
652
+ <IconCopy />
653
+ </OIcon>
650
654
  </template>
651
655
  <div class="activity-detail">
652
656
  <OMeetingDetail
@@ -1169,6 +1173,13 @@ const deleteActions = computed<DialogActionT[]>(() => {
1169
1173
  display: flex;
1170
1174
  flex-direction: column;
1171
1175
 
1176
+ .o-collapse-item {
1177
+ &.last-item {
1178
+ .o-collapse-item-header {
1179
+ border-bottom: none;
1180
+ }
1181
+ }
1182
+ }
1172
1183
  .o-collapse-item-expanded + .o-collapse-item-expanded {
1173
1184
  margin-top: var(--o-gap-4);
1174
1185
  }
@@ -1322,6 +1333,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
1322
1333
  }
1323
1334
 
1324
1335
  &.tag-draft,
1336
+ &.tag-delete,
1325
1337
  &.tag-cancel {
1326
1338
  --tag-color: var(--o-color-info3);
1327
1339
  --tag-bg-color: var(--o-color-control1-light);
@@ -683,7 +683,7 @@ defineExpose({
683
683
  </OForm>
684
684
  <div class="form-btns" v-if="showBtns">
685
685
  <OButton color="primary" variant="solid" size="large" @click="confirm" :loading="loading">
686
- {{ isEdit ? t('common.save') : t('meeting.book') }}
686
+ {{ isEdit ? t('common.save') : (bookText || t('meeting.book')) }}
687
687
  </OButton>
688
688
  <OButton color="primary" variant="outline" size="large" @click="cancel">{{ t('common.cancel') }}</OButton>
689
689
  </div>
@@ -903,7 +903,6 @@ const cancelActions = computed<DialogActionT[]>(() => {
903
903
 
904
904
  th {
905
905
  text-align: center;
906
- background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
907
906
  border: none;
908
907
  }
909
908
 
@@ -289,6 +289,10 @@ const computedList = computed(() => {
289
289
  background-color: var(--collapse-division-color);
290
290
  }
291
291
 
292
+ &:last-child::after {
293
+ display: none;
294
+ }
295
+
292
296
  @include hover {
293
297
  .text {
294
298
  color: var(--o-color-primary1);
@@ -137,7 +137,7 @@ defineExpose({ copyInfo });
137
137
 
138
138
  @include respond-to('phone') {
139
139
  font-size: 12px;
140
- gap: var(--o-gap-1);
140
+ gap: var(--o-gap-2);
141
141
  }
142
142
 
143
143
  &:not(.is-empty) {
@@ -7,11 +7,22 @@ import { CalendarDataType, meetingTabT } from './types.ts';
7
7
 
8
8
  const { t } = useI18n();
9
9
 
10
+ const getMeetingColor = () => {
11
+ if (typeof document !== 'undefined') {
12
+ const deepBlue = getComputedStyle(document.documentElement)
13
+ .getPropertyValue('--o-deep-blue-6')?.trim();
14
+ if (deepBlue) {
15
+ return 'rgba(var(--o-deep-blue-6))';
16
+ }
17
+ }
18
+ return 'var(--o-color-primary1)';
19
+ };
20
+
10
21
  export const TYPE_COLOR_MAP = {
11
- summit: 'var(--o-color-warning1)',
22
+ summit: 'rgba(var(--o-orange-6))',
12
23
  events: 'rgba(var(--o-cyan-6))',
13
- meeting: 'var(--o-color-primary1)',
14
- };
24
+ meeting: getMeetingColor(),
25
+ };
15
26
  export const MEETING_TABS: meetingTabT[] = [
16
27
  {
17
28
  label: t('meeting.meetingTypeAll'),
@@ -93,6 +93,7 @@ export interface MeetingFormPropsT {
93
93
  getGroupsRequest: any;
94
94
  showBtns?: boolean;
95
95
  groupType: MeetingGroupType;
96
+ bookText?: string
96
97
  }
97
98
 
98
99
  // 会议详情