@opendesign-plus-test/components 0.0.1-rc.25 → 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.
- package/dist/chunk-OElCookieNotice.cjs.js +1 -1
- package/dist/chunk-OElCookieNotice.es.js +262 -194
- package/dist/components/OCookieNotice.vue.d.ts +3 -2
- package/dist/components/OFooter.vue.d.ts +22 -1
- package/dist/components/OHeaderUser.vue.d.ts +0 -2
- package/dist/components/activity/OMyActivityCalendar.vue.d.ts +6 -6
- package/dist/components/activity/index.d.ts +3 -3
- package/dist/components/activity/types.d.ts +0 -1
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +6 -3
- package/dist/components/{OHeader.vue.d.ts → header/OHeader.vue.d.ts} +2 -1
- package/dist/components/{OHeaderMoblie.vue.d.ts → header/OHeaderMoblie.vue.d.ts} +2 -2
- package/dist/components/header/components/HeaderContent.vue.d.ts +6 -0
- package/dist/components/header/components/HeaderNav.vue.d.ts +7 -0
- package/dist/components/header/components/HeaderNavMoblie.vue.d.ts +17 -0
- package/dist/components/header/components/HeaderUbmcNav.vue.d.ts +2 -0
- package/dist/components/header/index.d.ts +22 -0
- package/dist/components/meeting/OMeetingForm.vue.d.ts +3 -15
- package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +6 -6
- package/dist/components/meeting/types.d.ts +11 -4
- package/dist/components.cjs.js +47 -47
- package/dist/components.css +1 -1
- package/dist/components.es.js +17529 -17361
- package/dist/index.d.ts +2 -3
- package/package.json +1 -1
- package/src/assets/svg-icons/icon-chevron-down.svg +1 -1
- package/src/components/OCookieNotice.vue +270 -118
- package/src/components/OFooter.vue +11 -1
- package/src/components/OHeaderUser.vue +14 -81
- package/src/components/OSourceCode.vue +1 -1
- package/src/components/activity/OActivityApproval.vue +205 -213
- package/src/components/activity/OActivityForm.vue +2 -2
- package/src/components/activity/OMyActivityCalendar.vue +206 -97
- package/src/components/activity/types.ts +0 -1
- package/src/components/common/MoreText.vue +3 -2
- package/src/components/element-plus/OElCookieNotice.vue +306 -115
- package/src/components/events/OEventsApply.vue +16 -0
- package/src/components/events/OEventsList.vue +3 -0
- package/src/components/header/OHeader.vue +175 -0
- package/src/components/{OHeaderMoblie.vue → header/OHeaderMoblie.vue} +6 -3
- package/src/components/{common/HeaderEulerNav.vue → header/components/HeaderContent.vue} +375 -551
- package/src/components/header/components/HeaderNav.vue +280 -0
- package/src/components/{common → header/components}/HeaderNavMoblie.vue +20 -18
- package/src/components/{common → header/components}/HeaderUbmcNav.vue +6 -63
- package/src/components/header/index.ts +16 -0
- package/src/components/meeting/OMeetingCalendar.vue +16 -2
- package/src/components/meeting/OMeetingForm.vue +22 -25
- package/src/components/meeting/OMeetingPlayback.vue +1 -1
- package/src/components/meeting/OMyMeetingCalendar.vue +12 -14
- package/src/components/meeting/components/OMeetingCalendarList.vue +1 -1
- package/src/components/meeting/components/OMeetingDetail.vue +15 -2
- package/src/components/meeting/types.ts +11 -5
- package/src/index.ts +2 -5
- package/dist/components/activity/data.d.ts +0 -51
- package/src/components/OHeader.vue +0 -97
- package/src/components/activity/data.ts +0 -365
- package/src/components/meeting/components/OMyCalendarWrapper.vue +0 -160
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { OIcon, OBadge,
|
|
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' : ''}
|
|
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="
|
|
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':
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
156
|
-
height: 32px;
|
|
157
|
-
margin-right: 12px;
|
|
135
|
+
margin-right: 4px;
|
|
158
136
|
|
|
159
137
|
:deep(.o-badge-content) {
|
|
160
|
-
|
|
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:
|
|
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:
|
|
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>
|