@opendesign-plus/components 0.0.1-rc.17 → 0.0.1-rc.19
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 +18 -18
- package/dist/components/OHeaderUser.vue.d.ts +2 -0
- package/dist/components/header/OHeader.vue.d.ts +8 -2
- package/dist/components/header/OHeaderMobile.vue.d.ts +171 -0
- package/dist/components/header/components/HeaderContent.vue.d.ts +8 -1
- package/dist/components/header/components/HeaderNav.vue.d.ts +13 -1
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +33 -0
- package/dist/components/header/index.d.ts +128 -5
- package/dist/components/header/types.d.ts +80 -0
- package/dist/components/meeting/OMeetingCalendar.vue.d.ts +1 -0
- package/dist/components/meeting/types.d.ts +1 -0
- package/dist/components.cjs.js +36 -36
- package/dist/components.css +1 -1
- package/dist/components.es.js +8683 -8955
- package/package.json +1 -1
- package/src/components/OHeaderUser.vue +4 -4
- package/src/components/OSourceCode.vue +1 -1
- package/src/components/activity/OActivityApproval.vue +3 -10
- package/src/components/activity/OActivityForm.vue +1 -8
- package/src/components/activity/OMyActivityCalendar.vue +0 -15
- package/src/components/activity/composables/useActivityConfig.ts +140 -140
- package/src/components/events/OEventsApply.vue +1 -2
- package/src/components/events/OEventsCalendar.vue +10 -0
- package/src/components/header/OHeader.vue +6 -24
- package/src/components/header/OHeaderMobile.vue +177 -0
- package/src/components/header/components/HeaderContent.vue +190 -11
- package/src/components/header/components/HeaderNav.vue +3 -5
- package/src/components/header/components/HeaderNavMobile.vue +377 -0
- package/src/components/header/index.ts +5 -5
- package/src/components/header/types.ts +91 -0
- package/src/components/meeting/OMeetingCalendar.vue +35 -37
- package/src/components/meeting/OMyMeetingCalendar.vue +5 -1
- package/src/components/meeting/OSigMeetingCalendar.vue +2 -1
- package/src/components/meeting/components/OMeetingCalendarList.vue +21 -29
- package/src/components/meeting/components/OMeetingDetail.vue +2 -2
- package/src/components/meeting/components/OSigMeetingAside.vue +1 -0
- package/src/components/meeting/composables/useMeetingConfig.ts +0 -3
- package/src/components/meeting/config.ts +58 -58
- package/src/components/meeting/index.ts +1 -1
- package/src/components/meeting/types.ts +1 -0
- package/src/components/meeting/utils.ts +69 -69
- package/src/i18n/en.ts +2 -2
- package/src/i18n/zh.ts +2 -2
- package/dist/components/header/OHeaderMoblie.vue.d.ts +0 -33
- package/dist/components/header/components/HeaderNavMoblie.vue.d.ts +0 -17
- package/dist/components/header/components/HeaderUbmcNav.vue.d.ts +0 -2
- package/src/components/header/OHeaderMoblie.vue +0 -152
- package/src/components/header/components/HeaderNavMoblie.vue +0 -346
- package/src/components/header/components/HeaderUbmcNav.vue +0 -540
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
<script lang="ts" setup>
|
|
2
|
-
import { ref, onMounted, watch } from 'vue';
|
|
3
|
-
import { OIcon, OTag } from '@opensig/opendesign';
|
|
4
|
-
|
|
5
|
-
const props = defineProps({
|
|
6
|
-
menuShow: {
|
|
7
|
-
type: Boolean,
|
|
8
|
-
default() {
|
|
9
|
-
return false;
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
navData: undefined,
|
|
13
|
-
codeData: undefined,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const navActive = ref('');
|
|
17
|
-
const navInfo = ref({});
|
|
18
|
-
|
|
19
|
-
const handleNavClick = (item: any) => {
|
|
20
|
-
if (item?.href) {
|
|
21
|
-
window.open(item?.href, '_self');
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
if (!item) {
|
|
25
|
-
navActive.value = 'source_code';
|
|
26
|
-
navInfo.value = props.codeData.list;
|
|
27
|
-
} else {
|
|
28
|
-
navActive.value = item.id;
|
|
29
|
-
navInfo.value = item;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const emit = defineEmits(['link-click']);
|
|
34
|
-
const linkClick = (url: string, target?: string) => {
|
|
35
|
-
window.open(url, target ? target : '_self');
|
|
36
|
-
emit('link-click');
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
onMounted(() => {
|
|
40
|
-
navActive.value = props.navData[0].id;
|
|
41
|
-
navInfo.value = props.navData[0];
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
watch(
|
|
45
|
-
() => props.navData || props.codeData,
|
|
46
|
-
() => {
|
|
47
|
-
navInfo.value = navActive.value === 'source_code' ? props.codeData.list : props.navData.find((item) => item.id === navActive.value);
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
deep: true,
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<template>
|
|
56
|
-
<div class="header-content-mb">
|
|
57
|
-
<div class="header-nav" :class="{ active: menuShow }">
|
|
58
|
-
<div class="o-nav">
|
|
59
|
-
<ul class="o-nav-list">
|
|
60
|
-
<li
|
|
61
|
-
v-for="item in navData"
|
|
62
|
-
:key="item.id"
|
|
63
|
-
:class="{
|
|
64
|
-
active: navActive === item.id,
|
|
65
|
-
}"
|
|
66
|
-
>
|
|
67
|
-
<span @click="handleNavClick(item)">{{ item.label }}</span>
|
|
68
|
-
</li>
|
|
69
|
-
</ul>
|
|
70
|
-
<div class="nav-aside">
|
|
71
|
-
<ul v-if="navActive !== 'source_code'" class="nav-aside-wrapper">
|
|
72
|
-
<li v-for="item in navInfo.children" :value="item.label" :title="item.label" :key="item.label" class="nav-aside-content">
|
|
73
|
-
<template v-if="item?.children">
|
|
74
|
-
<p class="content-label">{{ item.label }}</p>
|
|
75
|
-
<div class="container-mobile">
|
|
76
|
-
<div v-for="subItem in item?.children" :key="subItem.label" class="content-container-mobile">
|
|
77
|
-
<a @click="linkClick(subItem.href, subItem?.target)" rel="noopener noreferrer" class="content-subtitle">
|
|
78
|
-
<span class="item-label">{{ subItem.label }}</span>
|
|
79
|
-
<OIcon v-if="subItem.icon">
|
|
80
|
-
<component :is="subItem.icon" class="icon" />
|
|
81
|
-
</OIcon>
|
|
82
|
-
<OTag v-if="subItem.tag" round="pill" color="danger" size="small" class="content-tag">{{ subItem.tag }}</OTag>
|
|
83
|
-
</a>
|
|
84
|
-
<div class="desc-container">
|
|
85
|
-
<p class="item-desc">{{ subItem.description }}</p>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</template>
|
|
90
|
-
<template v-else>
|
|
91
|
-
<a @click="linkClick(item.href, item?.target)" rel="noopener noreferrer" class="content-subtitle item-not-children">
|
|
92
|
-
<span class="item-label">{{ item.label }}</span>
|
|
93
|
-
<OIcon v-if="item.icon">
|
|
94
|
-
<component :is="item.icon" class="icon" />
|
|
95
|
-
</OIcon>
|
|
96
|
-
<OTag v-if="item.tag" round="pill" color="danger" size="small">{{ item.tag }}</OTag>
|
|
97
|
-
</a>
|
|
98
|
-
</template>
|
|
99
|
-
</li>
|
|
100
|
-
</ul>
|
|
101
|
-
<div v-else class="nav-aside-wrapper">
|
|
102
|
-
<a v-for="item in navInfo" :key="item.label" @click="linkClick(item.href, item?.target)" class="source-code-item">
|
|
103
|
-
<span>{{ item.label }}</span>
|
|
104
|
-
<OIcon v-if="item.icon">
|
|
105
|
-
<component :is="item.icon" class="icon" />
|
|
106
|
-
</OIcon>
|
|
107
|
-
</a>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<!-- 移动端 tool -->
|
|
112
|
-
<div class="header-tool">
|
|
113
|
-
<!-- 源码 -->
|
|
114
|
-
<div
|
|
115
|
-
v-if="codeData"
|
|
116
|
-
class="header-tool-code"
|
|
117
|
-
@click="handleNavClick(null)"
|
|
118
|
-
:class="{
|
|
119
|
-
active: navActive === 'source_code',
|
|
120
|
-
}"
|
|
121
|
-
>
|
|
122
|
-
{{ codeData.label }}
|
|
123
|
-
</div>
|
|
124
|
-
<div v-if="$slots.tool">
|
|
125
|
-
<slot name="tool"></slot>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</template>
|
|
131
|
-
|
|
132
|
-
<style lang="scss" scoped>
|
|
133
|
-
@mixin nav-item {
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
justify-content: center;
|
|
137
|
-
height: 48px;
|
|
138
|
-
color: var(--o-color-info1);
|
|
139
|
-
|
|
140
|
-
&.active {
|
|
141
|
-
color: var(--o-color-primary1);
|
|
142
|
-
background: var(--o-color-fill2);
|
|
143
|
-
font-weight: 500;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.header-content-mb {
|
|
148
|
-
position: fixed;
|
|
149
|
-
top: var(--o-header-height);
|
|
150
|
-
bottom: 0;
|
|
151
|
-
left: 0;
|
|
152
|
-
right: 0;
|
|
153
|
-
background-color: var(--o-color-fill2);
|
|
154
|
-
z-index: 98;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.header-nav {
|
|
158
|
-
flex: 1;
|
|
159
|
-
justify-content: space-between;
|
|
160
|
-
width: 100%;
|
|
161
|
-
position: fixed;
|
|
162
|
-
left: 0;
|
|
163
|
-
overflow: hidden;
|
|
164
|
-
top: var(--o-header-height);
|
|
165
|
-
height: calc(100vh - var(--o-header-height));
|
|
166
|
-
transform: translateX(-130%);
|
|
167
|
-
|
|
168
|
-
transition-duration: 0.333s;
|
|
169
|
-
transition-property: all;
|
|
170
|
-
transition-timing-function: cubic-bezier(0.5, 0, 0.84, 0.25);
|
|
171
|
-
display: block;
|
|
172
|
-
opacity: 0;
|
|
173
|
-
|
|
174
|
-
&.active {
|
|
175
|
-
opacity: 1;
|
|
176
|
-
visibility: visible;
|
|
177
|
-
transform: translateX(0);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.o-nav {
|
|
182
|
-
height: 100%;
|
|
183
|
-
position: relative;
|
|
184
|
-
width: 99px;
|
|
185
|
-
background: var(--o-color-fill1);
|
|
186
|
-
display: flex;
|
|
187
|
-
flex-direction: column;
|
|
188
|
-
justify-content: space-between;
|
|
189
|
-
|
|
190
|
-
.o-nav-list {
|
|
191
|
-
padding: 0;
|
|
192
|
-
margin: 0;
|
|
193
|
-
height: auto;
|
|
194
|
-
|
|
195
|
-
> li {
|
|
196
|
-
position: relative;
|
|
197
|
-
text-align: center;
|
|
198
|
-
@include text2;
|
|
199
|
-
@include nav-item;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.nav-aside {
|
|
205
|
-
position: fixed;
|
|
206
|
-
background-color: var(--o-color-fill2);
|
|
207
|
-
top: 0;
|
|
208
|
-
left: 0;
|
|
209
|
-
width: calc(100% - 99px);
|
|
210
|
-
transform: translateX(99px);
|
|
211
|
-
height: 100%;
|
|
212
|
-
z-index: 190;
|
|
213
|
-
.nav-aside-wrapper {
|
|
214
|
-
overflow-y: auto;
|
|
215
|
-
padding: 16px 12px 32px;
|
|
216
|
-
height: 100%;
|
|
217
|
-
.nav-aside-content {
|
|
218
|
-
display: block;
|
|
219
|
-
flex: 0 1 auto;
|
|
220
|
-
|
|
221
|
-
& + .nav-aside-content {
|
|
222
|
-
position: relative;
|
|
223
|
-
padding-top: var(--o-gap-3);
|
|
224
|
-
&::before {
|
|
225
|
-
content: '';
|
|
226
|
-
position: absolute;
|
|
227
|
-
top: 0;
|
|
228
|
-
width: 100%;
|
|
229
|
-
height: 1px;
|
|
230
|
-
background-color: rgba(var(--o-mixedgray-14), 0.1);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
.content-label {
|
|
234
|
-
color: var(--o-color-info3);
|
|
235
|
-
@include text2;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.item-not-children {
|
|
239
|
-
margin-bottom: 12px;
|
|
240
|
-
display: flex;
|
|
241
|
-
align-items: center;
|
|
242
|
-
.o-tag {
|
|
243
|
-
margin-left: var(--o-gap-2);
|
|
244
|
-
--layout-pkg-radius: 100vh;
|
|
245
|
-
}
|
|
246
|
-
.o-icon {
|
|
247
|
-
margin-left: var(--o-gap-2);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.source-code-item {
|
|
253
|
-
height: 40px;
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
color: var(--o-color-primary1);
|
|
257
|
-
|
|
258
|
-
& + .source-code-item {
|
|
259
|
-
border-top: 1px solid var(--o-color-control4);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.icon {
|
|
263
|
-
margin-left: var(--o-gap-2);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&::-webkit-scrollbar-track {
|
|
268
|
-
border-radius: 3px;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
&::-webkit-scrollbar {
|
|
272
|
-
width: 6px;
|
|
273
|
-
background-color: transparent;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&::-webkit-scrollbar-thumb {
|
|
277
|
-
border-radius: 3px;
|
|
278
|
-
background: var(--o-color-control1);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.container-mobile {
|
|
283
|
-
margin-top: 8px;
|
|
284
|
-
@include text2;
|
|
285
|
-
|
|
286
|
-
.icon {
|
|
287
|
-
height: 16px;
|
|
288
|
-
width: 16px;
|
|
289
|
-
margin-left: var(--o-gap-2);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.content-container-mobile {
|
|
294
|
-
margin-top: var(--o-gap-3);
|
|
295
|
-
|
|
296
|
-
&:last-child {
|
|
297
|
-
margin-bottom: 12px;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.content-subtitle {
|
|
301
|
-
color: var(--o-color-info1);
|
|
302
|
-
display: flex;
|
|
303
|
-
align-items: center;
|
|
304
|
-
@include text2;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.content-tag {
|
|
308
|
-
margin-left: var(--o-gap-2);
|
|
309
|
-
--layout-pkg-radius: var(--o-radius-xs);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.desc-container {
|
|
313
|
-
overflow: hidden;
|
|
314
|
-
position: relative;
|
|
315
|
-
|
|
316
|
-
.item-desc {
|
|
317
|
-
color: var(--o-color-info2);
|
|
318
|
-
margin-top: var(--o-gap-1);
|
|
319
|
-
text-align: justify;
|
|
320
|
-
word-break: normal;
|
|
321
|
-
@include text1;
|
|
322
|
-
@include text-truncate(2);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.header-tool {
|
|
329
|
-
position: absolute;
|
|
330
|
-
bottom: 36px;
|
|
331
|
-
left: 0;
|
|
332
|
-
width: 99px;
|
|
333
|
-
|
|
334
|
-
display: flex;
|
|
335
|
-
height: auto;
|
|
336
|
-
justify-content: center;
|
|
337
|
-
align-items: center;
|
|
338
|
-
flex-direction: column;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.header-tool-code {
|
|
342
|
-
width: 99px;
|
|
343
|
-
@include nav-item;
|
|
344
|
-
@include text1;
|
|
345
|
-
}
|
|
346
|
-
</style>
|