@opendesign-plus-test/components 0.0.1-rc.26 → 0.0.1-rc.27

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.
Files changed (51) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +262 -194
  3. package/dist/components/OCookieNotice.vue.d.ts +3 -2
  4. package/dist/components/OFooter.vue.d.ts +22 -1
  5. package/dist/components/OHeaderUser.vue.d.ts +0 -2
  6. package/dist/components/activity/OMyActivityCalendar.vue.d.ts +6 -6
  7. package/dist/components/activity/index.d.ts +3 -3
  8. package/dist/components/element-plus/OElCookieNotice.vue.d.ts +6 -3
  9. package/dist/components/{OHeader.vue.d.ts → header/OHeader.vue.d.ts} +2 -1
  10. package/dist/components/{OHeaderMoblie.vue.d.ts → header/OHeaderMoblie.vue.d.ts} +2 -2
  11. package/dist/components/header/components/HeaderContent.vue.d.ts +6 -0
  12. package/dist/components/header/components/HeaderNav.vue.d.ts +7 -0
  13. package/dist/components/header/components/HeaderNavMoblie.vue.d.ts +17 -0
  14. package/dist/components/header/components/HeaderUbmcNav.vue.d.ts +2 -0
  15. package/dist/components/header/index.d.ts +22 -0
  16. package/dist/components/meeting/OMeetingForm.vue.d.ts +3 -15
  17. package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +6 -6
  18. package/dist/components/meeting/types.d.ts +11 -4
  19. package/dist/components.cjs.js +47 -47
  20. package/dist/components.css +1 -1
  21. package/dist/components.es.js +17957 -17829
  22. package/dist/index.d.ts +2 -3
  23. package/package.json +1 -1
  24. package/src/assets/svg-icons/icon-chevron-down.svg +1 -1
  25. package/src/components/OCookieNotice.vue +270 -118
  26. package/src/components/OFooter.vue +11 -1
  27. package/src/components/OHeaderUser.vue +14 -81
  28. package/src/components/OSourceCode.vue +1 -1
  29. package/src/components/activity/OMyActivityCalendar.vue +14 -13
  30. package/src/components/common/MoreText.vue +3 -2
  31. package/src/components/element-plus/OElCookieNotice.vue +306 -115
  32. package/src/components/events/OEventsApply.vue +16 -0
  33. package/src/components/events/OEventsList.vue +3 -0
  34. package/src/components/header/OHeader.vue +175 -0
  35. package/src/components/{OHeaderMoblie.vue → header/OHeaderMoblie.vue} +6 -3
  36. package/src/components/{common/HeaderEulerNav.vue → header/components/HeaderContent.vue} +375 -551
  37. package/src/components/header/components/HeaderNav.vue +280 -0
  38. package/src/components/{common → header/components}/HeaderNavMoblie.vue +20 -18
  39. package/src/components/{common → header/components}/HeaderUbmcNav.vue +6 -63
  40. package/src/components/header/index.ts +16 -0
  41. package/src/components/meeting/OMeetingCalendar.vue +16 -2
  42. package/src/components/meeting/OMeetingForm.vue +17 -24
  43. package/src/components/meeting/OMeetingPlayback.vue +1 -1
  44. package/src/components/meeting/OMyMeetingCalendar.vue +5 -6
  45. package/src/components/meeting/components/OMeetingCalendarList.vue +1 -1
  46. package/src/components/meeting/types.ts +11 -5
  47. package/src/index.ts +2 -5
  48. package/dist/components/activity/data.d.ts +0 -51
  49. package/src/components/OHeader.vue +0 -97
  50. package/src/components/activity/data.ts +0 -365
  51. package/src/components/meeting/components/OMyCalendarWrapper.vue +0 -160
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { OIcon, OBadge, ODivider, ODropdown, ODropdownItem } from '@opensig/opendesign';
2
+ import { OIcon, OBadge, ODropdown, ODropdownItem } from '@opensig/opendesign';
3
3
 
4
4
  import AppAvatar from './common/AppAvatar.vue';
5
5
 
@@ -30,7 +30,6 @@ interface UserPropsT {
30
30
  lang?: string;
31
31
  noticeTotal?: number;
32
32
  userInfo?: UserInfoT;
33
- userInfoVisible?: boolean;
34
33
  options?: OptionsItemT[];
35
34
  }
36
35
 
@@ -39,7 +38,6 @@ withDefaults(defineProps<UserPropsT>(), {
39
38
  lang: undefined,
40
39
  noticeTotal: undefined,
41
40
  userInfo: undefined,
42
- userInfoVisible: undefined,
43
41
  options: undefined,
44
42
  });
45
43
 
@@ -77,11 +75,11 @@ const jumpToPage = (val: any) => {
77
75
  <ODropdown
78
76
  :trigger="lePadV ? 'click' : 'hover'"
79
77
  :optionPosition="lePadV ? 'br' : 'bottom'"
80
- :option-wrap-class="`user-dropdown ${lang === 'en' ? 'is-en' : ''} user-dropdown${userInfoVisible ? '-info' : ''}`"
78
+ :option-wrap-class="`user-dropdown ${lang === 'en' ? 'is-en' : ''}`"
81
79
  >
82
80
  <div class="info-wrap hover-icon-rotate">
83
- <OBadge :value="noticeTotal" color="danger" class="header-message user-avatar" :class="{ 'notice-not': !noticeTotal }">
84
- <AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="lePadV ? 24 : 32" />
81
+ <OBadge :value="noticeTotal" :dot="true" color="danger" class="header-message user-avatar" :class="{ 'notice-not': !noticeTotal }">
82
+ <AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="20" />
85
83
  </OBadge>
86
84
  <p class="user-account">{{ userInfo.username }}</p>
87
85
  <OIcon class="icon">
@@ -90,30 +88,12 @@ const jumpToPage = (val: any) => {
90
88
  </div>
91
89
  <template #dropdown>
92
90
  <!-- 账号信息 -->
93
- <div v-if="userInfoVisible" class="user-info-dropdown">
94
- <AppAvatar :avatar="userInfo.photo" :name="userInfo.username" :custom-size="32" />
95
- <div class="right-info">
96
- <p class="user-fullname">用户名</p>
97
- <p class="user-account">{{ userInfo.username }}</p>
98
- </div>
99
- </div>
100
- <ODivider v-if="userInfoVisible" :style="{ '--o-divider-gap': '6px' }" />
101
91
  <template v-for="item in options" :key="item.label">
102
- <ODropdownItem :style="{ '--dropdown-item-justify': userInfoVisible ? 'flex-start' : 'center' }" @click="jumpToPage(item)">
103
- <template v-if="item?.icon">
104
- <OBadge :value="item.total" color="danger" class="header-message icon-message" :class="{ 'notice-not': !item.total }">
105
- <OIcon>
106
- <component :is="item.icon" class="icon" />
107
- </OIcon>
108
- </OBadge>
109
- <span>{{ item.label }}</span>
110
- </template>
111
- <template v-else>
112
- <OBadge v-if="item?.total" :value="item.total" color="danger" class="header-message message" :class="{ 'notice-not': !item.total }">
113
- {{ item.label }}
114
- </OBadge>
115
- <span v-else>{{ item.label }}</span>
116
- </template>
92
+ <ODropdownItem :style="{ '--dropdown-item-justify': 'center' }" @click="jumpToPage(item)">
93
+ <OBadge v-if="item?.total" :value="item.total" color="danger" class="header-message message" :class="{ 'notice-not': !item.total }">
94
+ {{ item.label }}
95
+ </OBadge>
96
+ <span v-else>{{ item.label }}</span>
117
97
  </ODropdownItem>
118
98
  </template>
119
99
  </template>
@@ -152,46 +132,25 @@ const jumpToPage = (val: any) => {
152
132
  }
153
133
 
154
134
  .user-avatar {
155
- width: 32px;
156
- height: 32px;
157
- margin-right: 12px;
135
+ margin-right: 4px;
158
136
 
159
137
  :deep(.o-badge-content) {
160
- right: 8px;
138
+ --badge-dot-size: 6px;
139
+ right: 7px;
161
140
  top: 2px;
162
141
  }
163
142
  }
164
143
 
165
144
  .o-dropdown-item {
166
- width: 142px;
167
145
  white-space: nowrap;
168
146
  --dropdown-item-color: var(--o-color-info1);
169
- --dropdown-item-padding: 6px 8px;
147
+ --dropdown-item-padding: 5px 12px;
170
148
  @include tip1;
171
149
 
172
150
  @include hover {
173
151
  color: var(--o-color-primary1);
174
152
  background: var(--o-color-control2-light);
175
153
  }
176
-
177
- .o-icon {
178
- color: var(--o-color-info3);
179
- --icon-size: 24px;
180
- margin-right: 8px;
181
- }
182
-
183
- .icon-message {
184
- height: 24px;
185
- display: flex;
186
-
187
- @include respond-to('laptop') {
188
- height: 16px;
189
- }
190
-
191
- :deep(.o-badge-content) {
192
- right: 14px;
193
- }
194
- }
195
154
  }
196
155
 
197
156
  .notice-not {
@@ -200,23 +159,9 @@ const jumpToPage = (val: any) => {
200
159
  }
201
160
  }
202
161
 
203
- .user-info-dropdown {
204
- display: flex;
205
- align-items: center;
206
- }
207
-
208
- .right-info {
209
- margin-left: 10px;
210
- }
211
-
212
- .user-fullname {
213
- color: var(--o-color-info3);
214
- @include tip2;
215
- }
216
-
217
162
  .user-account {
218
163
  color: var(--o-color-info1);
219
- max-width: 90px;
164
+ max-width: 96px;
220
165
  font-weight: 500;
221
166
  @include tip1;
222
167
  @include text-truncate(1);
@@ -232,8 +177,6 @@ const jumpToPage = (val: any) => {
232
177
  .info-wrap {
233
178
  .user-avatar {
234
179
  margin-right: 0;
235
- width: 24px;
236
- height: 24px;
237
180
  }
238
181
 
239
182
  .user-account {
@@ -253,9 +196,6 @@ const jumpToPage = (val: any) => {
253
196
  .user-dropdown {
254
197
  --dropdown-list-radius: var(--o-radius-m);
255
198
  }
256
- .user-dropdown-info {
257
- --dropdown-list-padding: 11px 11px 6px !important;
258
- }
259
199
  .avatar-icon {
260
200
  font-size: 24px;
261
201
  color: var(--o-color-info1);
@@ -269,10 +209,6 @@ const jumpToPage = (val: any) => {
269
209
  .user-dropdown {
270
210
  --dropdown-list-radius: 8px;
271
211
 
272
- .user-info-dropdown {
273
- display: none;
274
- }
275
-
276
212
  .o-divider {
277
213
  display: none;
278
214
  }
@@ -297,8 +233,5 @@ const jumpToPage = (val: any) => {
297
233
  }
298
234
  }
299
235
  }
300
- .user-dropdown-info {
301
- --dropdown-list-padding: 9px 4px !important;
302
- }
303
236
  }
304
237
  </style>
@@ -70,7 +70,7 @@ const visibleChange = (val: boolean) => {
70
70
 
71
71
  <style lang="scss" scoped>
72
72
  .source-code {
73
- height: calc(100% + 10px);
73
+ height: 100%;
74
74
  display: flex;
75
75
  align-items: center;
76
76
  .info-wrap {
@@ -43,7 +43,7 @@ const pageSize = ref(50); // 分页-每页数量
43
43
  const total = ref(null); // 分页-总数
44
44
  const reloadAll = ref(false); // 是否需要清空数据
45
45
 
46
- const expanded = ref([]); // 展开的数据,id
46
+ const expanded = ref([]); // 展开的数据,id
47
47
 
48
48
  const nextLoading = ref(false);
49
49
  const bottomReached = ref(false);
@@ -71,7 +71,6 @@ const getList = async () => {
71
71
  page: currentPage.value,
72
72
  size: pageSize.value,
73
73
  } as unknown as PageParamsT);
74
- console.log(res);
75
74
  const tempList = (res.data || [])
76
75
  .map((item: ActivityItemT) => {
77
76
  const { start_date, end_date, start, end } = item;
@@ -89,13 +88,11 @@ const getList = async () => {
89
88
  })
90
89
  .flat()
91
90
  .filter((v) => {
92
- console.log(v.start_date, formatDate(selectedDate.value, 'YYYY-MM-DD'));
93
91
  return v.start_date.slice(0, 7) === formatDate(selectedDate.value, 'YYYY-MM-DD').slice(0, 7);
94
92
  });
95
93
  if (reloadAll.value) {
96
94
  originList.value = res.data || [];
97
95
  list.value = tempList;
98
- console.log(list.value);
99
96
  } else {
100
97
  if (currentPage.value === 1 && !isPhone.value) {
101
98
  originList.value = res.data || [];
@@ -811,12 +808,11 @@ const deleteActions = computed<DialogActionT[]>(() => {
811
808
  .left-calendar {
812
809
  width: 336px;
813
810
  flex-shrink: 0;
814
- --table-bg: var(--o-color-control2-light);
815
811
 
816
812
  .el-calendar {
817
813
  min-height: 460px;
818
814
  height: calc(100% - 54px);
819
- background-color: var(--table-bg);
815
+ background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
820
816
  border-radius: var(--o-radius-xs);
821
817
 
822
818
  .el-calendar__header {
@@ -847,17 +843,17 @@ const deleteActions = computed<DialogActionT[]>(() => {
847
843
  .el-calendar__body {
848
844
  .el-calendar-table {
849
845
  tr {
850
- background: var(--table-bg) !important;
846
+ background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
851
847
  }
852
848
 
853
849
  th {
854
850
  text-align: center;
855
- background: var(--table-bg) !important;
851
+ background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
856
852
  border: none;
857
853
  }
858
854
 
859
855
  td {
860
- background: var(--table-bg) !important;
856
+ background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%) !important;
861
857
  border: none;
862
858
  text-align: center;
863
859
  transition: none;
@@ -891,6 +887,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
891
887
  line-height: 36px;
892
888
  border-radius: var(--o-radius-xs);
893
889
  background-color: var(--cell-bg);
890
+ border: 1px solid transparent;
894
891
  }
895
892
 
896
893
  .date-cell-text {
@@ -929,8 +926,8 @@ const deleteActions = computed<DialogActionT[]>(() => {
929
926
 
930
927
  &.is-selected {
931
928
  .date-cell-text {
932
- color: #fff;
933
- background-color: var(--o-color-primary1);
929
+ background-color: var(--o-color-control3-light);
930
+ border: 1px solid var(--o-color-primary1);
934
931
  }
935
932
  }
936
933
 
@@ -1221,7 +1218,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
1221
1218
 
1222
1219
 
1223
1220
  &.o-collapse-item-expanded {
1224
- background-color: var(--o-color-control2-light);
1221
+ background-color: color-mix(in srgb, var(--o-color-control2-light), transparent 60%);
1225
1222
  }
1226
1223
  }
1227
1224
 
@@ -1256,6 +1253,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
1256
1253
  flex-direction: column;
1257
1254
  align-items: flex-start;
1258
1255
  justify-content: space-between;
1256
+
1259
1257
  .item-header-left {
1260
1258
  display: flex;
1261
1259
  align-items: flex-start;
@@ -1268,11 +1266,12 @@ const deleteActions = computed<DialogActionT[]>(() => {
1268
1266
  align-self: stretch;
1269
1267
  flex-shrink: 0;
1270
1268
  }
1269
+
1271
1270
  .act-icon {
1272
1271
  width: var(--icon-size);
1273
1272
  height: var(--icon-size);
1274
1273
  border-radius: 50%;
1275
- background-color: var(--o-color-primary1);
1274
+ background-color: rgb(var(--o-cyan-6));
1276
1275
  color: #fff;
1277
1276
  display: flex;
1278
1277
  align-items: center;
@@ -1429,6 +1428,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
1429
1428
  padding-right: 0 !important;
1430
1429
  min-width: auto;
1431
1430
  }
1431
+
1432
1432
  .o-btn-text {
1433
1433
  @include hover {
1434
1434
  background-color: transparent;
@@ -1457,6 +1457,7 @@ const deleteActions = computed<DialogActionT[]>(() => {
1457
1457
  .handle-dialog-active {
1458
1458
  width: 450px;
1459
1459
  --dlg-radius: var(--o-radius-xs);
1460
+
1460
1461
  .o-dlg-header {
1461
1462
  margin-bottom: var(--o-gap-5);
1462
1463
  }
@@ -47,8 +47,9 @@ const determineHeight = () => {
47
47
  };
48
48
 
49
49
  const clickText = () => {
50
- console.log(props.link);
51
- console.log('判断是否使用a标签');
50
+ if (props.link) {
51
+ window.open(props.text)
52
+ }
52
53
  };
53
54
  </script>
54
55