@opendesign-plus/components 0.0.1-rc.16
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 -0
- package/dist/chunk-OElCookieNotice.es.js +281 -0
- package/dist/components/OBanner.vue.d.ts +2 -0
- package/dist/components/OCookieNotice.vue.d.ts +16 -0
- package/dist/components/OFooter.vue.d.ts +25 -0
- package/dist/components/OHeader.vue.d.ts +23 -0
- package/dist/components/OHeaderMoblie.vue.d.ts +33 -0
- package/dist/components/OHeaderSearch.vue.d.ts +692 -0
- package/dist/components/OHeaderUser.vue.d.ts +40 -0
- package/dist/components/OPlusConfigProvider.vue.d.ts +23 -0
- package/dist/components/OSection.vue.d.ts +37 -0
- package/dist/components/OSourceCode.vue.d.ts +20 -0
- package/dist/components/OThemeSwitcher.vue.d.ts +28 -0
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +31 -0
- package/dist/components/element-plus/index.d.ts +2 -0
- package/dist/components/events/OEventsApply.vue.d.ts +16 -0
- package/dist/components/events/OEventsCalendar.vue.d.ts +5 -0
- package/dist/components/events/OEventsList.vue.d.ts +26 -0
- package/dist/components/events/config.d.ts +26 -0
- package/dist/components/events/index.d.ts +78 -0
- package/dist/components/events/types.d.ts +66 -0
- package/dist/components/events/utils.d.ts +7 -0
- package/dist/components.cjs.js +3 -0
- package/dist/components.css +1 -0
- package/dist/components.element.cjs.js +1 -0
- package/dist/components.element.es.js +4 -0
- package/dist/components.es.js +3509 -0
- package/dist/index.d.ts +18 -0
- package/docs/design.md +27 -0
- package/docs/design_banner.md +41 -0
- package/docs/design_section.md +27 -0
- package/npmcachae/_cacache/content-v2/sha512/bd/56/25079ffb18446953f88fc063c3d6eaf7191772851b8477c118f113b920a7f357b67b9006181af58c9f68b0059b899ad0f2c86fe0a6490958d138cb063afd +1 -0
- package/npmcachae/_cacache/index-v5/d8/49/af4c6bb8f580edbd7b6e18db381844403e5f689a9849c5ffcdd2dd95d735 +3 -0
- package/npmcachae/_logs/2026-03-17T09_38_12_009Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_14_370Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_16_516Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_18_616Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_20_859Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_23_182Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_25_452Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_27_865Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_30_082Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_32_219Z-debug-0.log +157 -0
- package/npmcachae/_logs/2026-03-17T09_38_34_308Z-debug-0.log +157 -0
- package/npmcachae/_update-notifier-last-checked +0 -0
- package/package.json +53 -0
- package/scripts/generate-components-index.js +100 -0
- package/src/assets/events/city/default-cover.png +0 -0
- package/src/assets/events/city//344/270/212/346/265/267.png +0 -0
- package/src/assets/events/city//345/214/227/344/272/254.png +0 -0
- package/src/assets/events/city//345/215/227/344/272/254.png +0 -0
- package/src/assets/events/city//345/244/251/346/264/245.png +0 -0
- package/src/assets/events/city//345/271/277/345/267/236.png +0 -0
- package/src/assets/events/city//346/210/220/351/203/275.png +0 -0
- package/src/assets/events/city//346/227/240/351/224/241.png +0 -0
- package/src/assets/events/city//346/235/255/345/267/236.png +0 -0
- package/src/assets/events/city//346/255/246/346/261/211.png +0 -0
- package/src/assets/events/city//346/267/261/345/234/2631.png +0 -0
- package/src/assets/events/city//346/267/261/345/234/2632.png +0 -0
- package/src/assets/events/city//350/213/217/345/267/236.png +0 -0
- package/src/assets/events/city//350/245/277/345/256/211.png +0 -0
- package/src/assets/events/city//351/203/221/345/267/236.png +0 -0
- package/src/assets/events/svg-icons/icon-checked.svg +3 -0
- package/src/assets/events/svg-icons/icon-competition.svg +7 -0
- package/src/assets/events/svg-icons/icon-events.svg +4 -0
- package/src/assets/events/svg-icons/icon-release.svg +4 -0
- package/src/assets/events/svg-icons/icon-summit.svg +4 -0
- package/src/assets/svg-icons/icon-arrow-left.svg +3 -0
- package/src/assets/svg-icons/icon-avatar-line.svg +3 -0
- package/src/assets/svg-icons/icon-caret-left.svg +3 -0
- package/src/assets/svg-icons/icon-caret-right.svg +3 -0
- package/src/assets/svg-icons/icon-chevron-down.svg +3 -0
- package/src/assets/svg-icons/icon-chevron-right.svg +3 -0
- package/src/assets/svg-icons/icon-close.svg +3 -0
- package/src/assets/svg-icons/icon-delete.svg +3 -0
- package/src/assets/svg-icons/icon-header-back.svg +3 -0
- package/src/assets/svg-icons/icon-header-delete.svg +3 -0
- package/src/assets/svg-icons/icon-header-menu.svg +3 -0
- package/src/assets/svg-icons/icon-header-person.svg +3 -0
- package/src/assets/svg-icons/icon-header-search.svg +4 -0
- package/src/assets/svg-icons/icon-locale.svg +3 -0
- package/src/assets/svg-icons/icon-log-off.svg +3 -0
- package/src/assets/svg-icons/icon-message.svg +3 -0
- package/src/assets/svg-icons/icon-moon.svg +3 -0
- package/src/assets/svg-icons/icon-outlink.svg +3 -0
- package/src/assets/svg-icons/icon-overview.svg +3 -0
- package/src/assets/svg-icons/icon-setting.svg +3 -0
- package/src/assets/svg-icons/icon-sun.svg +3 -0
- package/src/components/OBanner.vue +390 -0
- package/src/components/OCookieNotice.vue +423 -0
- package/src/components/OFooter.vue +566 -0
- package/src/components/OHeader.vue +97 -0
- package/src/components/OHeaderMoblie.vue +149 -0
- package/src/components/OHeaderSearch.vue +601 -0
- package/src/components/OHeaderUser.vue +304 -0
- package/src/components/OPlusConfigProvider.vue +32 -0
- package/src/components/OSection.vue +178 -0
- package/src/components/OSourceCode.vue +153 -0
- package/src/components/OThemeSwitcher.vue +108 -0
- package/src/components/common/AppAvatar.vue +83 -0
- package/src/components/common/ClientOnlyWrapper.ts +21 -0
- package/src/components/common/ContentWrapper.vue +85 -0
- package/src/components/common/HeaderEulerNav.vue +1118 -0
- package/src/components/common/HeaderNavMoblie.vue +344 -0
- package/src/components/common/HeaderUbmcNav.vue +597 -0
- package/src/components/element-plus/OElCookieNotice.vue +412 -0
- package/src/components/element-plus/index.ts +3 -0
- package/src/components/events/OEventsApply.vue +487 -0
- package/src/components/events/OEventsCalendar.vue +611 -0
- package/src/components/events/OEventsList.vue +402 -0
- package/src/components/events/config.ts +47 -0
- package/src/components/events/index.ts +23 -0
- package/src/components/events/npmcachae/_cacache/content-v2/sha512/2c/4f/a4140bfbf374a43f7dfe71880c051f79149cd259fb1a154fb692802c7489ef2317b737e7e690a627714ba19317971f29051b3798c246297b425a626a5b7a +1 -0
- package/src/components/events/npmcachae/_cacache/index-v5/8e/86/70dc69f1b1592fe14da10d2516ddfaa609af0cd9054a6ebde664acc6ab12 +2 -0
- package/src/components/events/npmcachae/_logs/2026-03-25T09_58_33_134Z-debug-0.log +105 -0
- package/src/components/events/npmcachae/_update-notifier-last-checked +0 -0
- package/src/components/events/types.ts +80 -0
- package/src/components/events/utils.ts +9 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/3e/17/1865217b9acb9f4921c53a09b5c76587cd2ab748beb2699ff6cfb1341d73b1aa56ed91ffc5ab2c9c9b3fbe626103b35d9a79ff29ff6b8cbb8d89755fe1a2 +1 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/a6/15/47bb7552ec9248079e839a5feecc1742d4de19524fdf041cf581701cf4760a5025106036145e279ba193b07c8fa5b07ae3d75f1b6032f0cb2219115b6167 +1 -0
- package/src/components/meeting/npmcachae/_cacache/content-v2/sha512/d1/4c/133b32e09c97101a27a07cc4432f94e470cff02d120d21babcea77c3f5cd436793516dc1a8e282ee1a568f923c148b1a48f4a43233462a530d35e8b41c67 +1 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/54/0d/a4909047714a0a7198bb9bd37020992464e47c79a791889919b84d90aab0 +3 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/8e/2b/21a79778e2ac08cf5663baf83cb35f951995a496007eb2e2f7fba54021a4 +3 -0
- package/src/components/meeting/npmcachae/_cacache/index-v5/eb/a0/b70c8132e5b57a0f1e129b8cc941796420a9c147c0baa680710083740898 +2 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_54_955Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_03_57_842Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_00_016Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_02_191Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_04_425Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_06_642Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_04_08_826Z-debug-0.log +277 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_36_140Z-debug-0.log +433 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_39_573Z-debug-0.log +433 -0
- package/src/components/meeting/npmcachae/_logs/2026-03-20T07_25_42_134Z-debug-0.log +212 -0
- package/src/components/meeting/npmcachae/_update-notifier-last-checked +0 -0
- package/src/draft/Banner.vue +265 -0
- package/src/draft/ButtonCards.vue +106 -0
- package/src/draft/Feature.vue +134 -0
- package/src/draft/Footer.vue +512 -0
- package/src/draft/HorizontalAnchor.vue +165 -0
- package/src/draft/ItemSwiper.vue +133 -0
- package/src/draft/Logo.vue +141 -0
- package/src/draft/LogoCard.vue +75 -0
- package/src/draft/LogoV2.vue +19 -0
- package/src/draft/MainCard.vue +38 -0
- package/src/draft/MultiCard.vue +95 -0
- package/src/draft/MultiIconCard.vue +74 -0
- package/src/draft/OInfoCard.vue +176 -0
- package/src/draft/Process.vue +81 -0
- package/src/draft/Section.vue +167 -0
- package/src/draft/SingleTabCard.vue +85 -0
- package/src/draft/SliderCard.vue +110 -0
- package/src/env.d.ts +1 -0
- package/src/i18n/en.ts +20 -0
- package/src/i18n/index.ts +42 -0
- package/src/i18n/zh.ts +14 -0
- package/src/index.ts +46 -0
- package/src/npmcachae/_cacache/content-v2/sha512/bd/56/25079ffb18446953f88fc063c3d6eaf7191772851b8477c118f113b920a7f357b67b9006181af58c9f68b0059b899ad0f2c86fe0a6490958d138cb063afd +1 -0
- package/src/npmcachae/_cacache/index-v5/d8/49/af4c6bb8f580edbd7b6e18db381844403e5f689a9849c5ffcdd2dd95d735 +3 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_33_398Z-debug-0.log +156 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_35_464Z-debug-0.log +156 -0
- package/src/npmcachae/_logs/2026-03-17T10_53_37_852Z-debug-0.log +156 -0
- package/src/npmcachae/_update-notifier-last-checked +0 -0
- package/src/shared/provide.ts +6 -0
- package/src/shims-vue-dompurify-html.d.ts +17 -0
- package/src/vue.d.ts +10 -0
- package/tsconfig.json +33 -0
- package/vite.config.ts +102 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { ref, type PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
import { useIntersectionObserver } from '@vueuse/core';
|
|
5
|
+
|
|
6
|
+
import { OAnchor, OAnchorItem } from '@opensig/opendesign';
|
|
7
|
+
import ContentWrapper from './ContentWrapper.vue';
|
|
8
|
+
|
|
9
|
+
const target = ref(null);
|
|
10
|
+
const showAnchor = ref(false);
|
|
11
|
+
defineProps({
|
|
12
|
+
anchorData: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true,
|
|
15
|
+
default: () => null,
|
|
16
|
+
},
|
|
17
|
+
wrapClass: {
|
|
18
|
+
type: [String, Array] as PropType<string | any[]>,
|
|
19
|
+
default: undefined,
|
|
20
|
+
},
|
|
21
|
+
transparent: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
useIntersectionObserver(target, ([entry]) => {
|
|
28
|
+
showAnchor.value = !entry?.isIntersecting;
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
<template>
|
|
32
|
+
<div v-show="showAnchor" :class="[transparent ? 'anchor-transparent' : 'anchor-header', wrapClass]">
|
|
33
|
+
<ContentWrapper :style="{
|
|
34
|
+
'--content-wrapper-vertical-paddingTop': '0',
|
|
35
|
+
'--content-wrapper-vertical-paddingBottom': '0',
|
|
36
|
+
}">
|
|
37
|
+
<div class="anchor-container">
|
|
38
|
+
<OAnchor container="#app > .o-scroller > .o-scroller-container" :targetOffset="160">
|
|
39
|
+
<OAnchorItem v-for="anchor in anchorData" :key="anchor.id" :title="anchor.title" :href="`#${anchor.id}`">
|
|
40
|
+
</OAnchorItem>
|
|
41
|
+
</OAnchor>
|
|
42
|
+
</div>
|
|
43
|
+
</ContentWrapper>
|
|
44
|
+
</div>
|
|
45
|
+
<div ref="target"></div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<style lang="scss" scoped>
|
|
49
|
+
.anchor-header {
|
|
50
|
+
position: fixed;
|
|
51
|
+
top: 0;
|
|
52
|
+
height: 68px;
|
|
53
|
+
z-index: 10;
|
|
54
|
+
background-color: var(--o-color-control2-light);
|
|
55
|
+
@include text1;
|
|
56
|
+
|
|
57
|
+
@include respond-to('<=pad_v') {
|
|
58
|
+
top: 48px;
|
|
59
|
+
height: 54px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.anchor-container {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
max-width: 920px;
|
|
67
|
+
margin: 0 auto;
|
|
68
|
+
height: 68px;
|
|
69
|
+
|
|
70
|
+
@include respond-to('<=pad_v') {
|
|
71
|
+
height: 54px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:deep(.o-anchor) {
|
|
76
|
+
width: 100%;
|
|
77
|
+
|
|
78
|
+
.o-anchor-line {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.o-anchor-items {
|
|
83
|
+
display: flex;
|
|
84
|
+
max-width: 920px;
|
|
85
|
+
width: 100%;
|
|
86
|
+
gap: var(--o-gap-4);
|
|
87
|
+
background-color: var(--o-color-control3-light);
|
|
88
|
+
padding: var(--o-gap-1);
|
|
89
|
+
border-radius: var(--o-radius-xs);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.o-anchor-item {
|
|
93
|
+
flex: 1 1 auto;
|
|
94
|
+
--anchor-item-link-bg-color-hover: transparent;
|
|
95
|
+
--anchor-item-link-color-hover: --anchor-item-link-gap: 0;
|
|
96
|
+
--anchor-item-link-radius: var(--o-radius-xs);
|
|
97
|
+
--anchor-item-min-width: 60px;
|
|
98
|
+
--anchor-item-link-gap: 0px;
|
|
99
|
+
|
|
100
|
+
.o-anchor-item-link {
|
|
101
|
+
@include text1;
|
|
102
|
+
--anchor-item-link-bg-color-active: var(--o-color-control5-light);
|
|
103
|
+
--anchor-item-link-color-active: var(--o-color-primary1);
|
|
104
|
+
--anchor-item-link-color-hover: var(--o-color-primary1);
|
|
105
|
+
--anchor-item-link-color: var(--o-color-info2);
|
|
106
|
+
--anchor-item-link-padding: 6px 0;
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
display: block;
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.anchor-transparent {
|
|
117
|
+
position: fixed;
|
|
118
|
+
top: 0;
|
|
119
|
+
height: 48px;
|
|
120
|
+
backdrop-filter: blur(10px);
|
|
121
|
+
z-index: 10;
|
|
122
|
+
background-color: rgba($color: var(--o-mixedgray-1), $alpha: 0.25);
|
|
123
|
+
@include text1;
|
|
124
|
+
|
|
125
|
+
@include respond-to('<=pad_v') {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.anchor-container {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
height: 48px;
|
|
133
|
+
|
|
134
|
+
:deep(.o-anchor) {
|
|
135
|
+
.o-anchor-line {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-anchor-items {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.o-anchor-item {
|
|
145
|
+
--anchor-item-width: auto;
|
|
146
|
+
--anchor-item-min-width: auto;
|
|
147
|
+
--anchor-item-link-bg-color-hover: transparent;
|
|
148
|
+
--anchor-item-link-bg-color-active: transparent;
|
|
149
|
+
--anchor-item-link-color: var(--o-color-info3);
|
|
150
|
+
--anchor-item-link-color-active: var(--o-color-info1);
|
|
151
|
+
--anchor-item-link-color-hover: --anchor-item-link-gap: 0;
|
|
152
|
+
--anchor-item-link-padding: 0 32px 0 0;
|
|
153
|
+
|
|
154
|
+
.o-anchor-item-link {
|
|
155
|
+
@include hover {
|
|
156
|
+
&:not(.is-active) {
|
|
157
|
+
color: var(--o-color-info2);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
</style>
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { OFigure, OLink } from '@opensig/opendesign';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
interface ItemLogoT {
|
|
6
|
+
logo: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
href: string;
|
|
10
|
+
hrefEn: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
defineProps({
|
|
14
|
+
// 轮播数据
|
|
15
|
+
data: {
|
|
16
|
+
type: Array as PropType<ItemLogoT[]>,
|
|
17
|
+
default: () => {
|
|
18
|
+
[];
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
// 反向轮播
|
|
22
|
+
reverseDirection: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
25
|
+
},
|
|
26
|
+
// 语言
|
|
27
|
+
lang: {
|
|
28
|
+
type: String as PropType<'zh' | 'en'>,
|
|
29
|
+
default: 'zh',
|
|
30
|
+
},
|
|
31
|
+
// 风格
|
|
32
|
+
theme: {
|
|
33
|
+
type: String as PropType<'light' | 'dark'>,
|
|
34
|
+
default: 'light',
|
|
35
|
+
},
|
|
36
|
+
// 指定在何处显示链接的资源
|
|
37
|
+
target: {
|
|
38
|
+
type: String as PropType<'_blank' | '_parent' | '_self' | '_top'>,
|
|
39
|
+
default: '_blank',
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<div v-if="data.length > 0" class="swiper">
|
|
46
|
+
<div class="swiper-list" :class="{ 'swiper-reverse': reverseDirection }">
|
|
47
|
+
<div v-for="(item, i) in data" :key="i" class="swiper-item">
|
|
48
|
+
<OLink v-if="item.href || item.hrefEn" :href="lang === 'en' ? item.hrefEn || item.href : item.href" :target="target">
|
|
49
|
+
<div class="swiper-card">
|
|
50
|
+
<OFigure :src="item.logo[theme]" />
|
|
51
|
+
</div>
|
|
52
|
+
</OLink>
|
|
53
|
+
<div v-else class="swiper-card">
|
|
54
|
+
<OFigure :src="item.logo[theme]" />
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<style lang="scss" scoped>
|
|
62
|
+
.swiper {
|
|
63
|
+
display: flex;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
position: relative;
|
|
67
|
+
}
|
|
68
|
+
.swiper-list {
|
|
69
|
+
display: flex;
|
|
70
|
+
animation: marque 100s linear infinite;
|
|
71
|
+
@include respond-to('>phone') {
|
|
72
|
+
@include hover {
|
|
73
|
+
animation-play-state: paused;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.swiper-reverse {
|
|
78
|
+
animation: marquere 100s linear infinite;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.swiper-item {
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.swiper-card {
|
|
86
|
+
width: 269px;
|
|
87
|
+
background-color: var(--o-color-fill2);
|
|
88
|
+
border-radius: var(--o-radius-xs);
|
|
89
|
+
margin-right: 24px;
|
|
90
|
+
display: inline-flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
pointer-events: auto;
|
|
95
|
+
}
|
|
96
|
+
.o-figure {
|
|
97
|
+
width: 100%;
|
|
98
|
+
border-radius: var(--o-radius-xs);
|
|
99
|
+
:deep(img) {
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:deep(.o-link) {
|
|
105
|
+
.o-link-label {
|
|
106
|
+
display: flex;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes marque {
|
|
111
|
+
0% {
|
|
112
|
+
transform: translateX(0%);
|
|
113
|
+
}
|
|
114
|
+
100% {
|
|
115
|
+
transform: translateX(-50%);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@keyframes marquere {
|
|
119
|
+
0% {
|
|
120
|
+
transform: translateX(-50%);
|
|
121
|
+
}
|
|
122
|
+
100% {
|
|
123
|
+
transform: translateX(0);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@include respond-to('phone') {
|
|
128
|
+
.swiper-card {
|
|
129
|
+
width: 160px;
|
|
130
|
+
margin-right: 12px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
</style>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, type PropType } from 'vue';
|
|
3
|
+
import { ORow, OCol, OLink, OFigure } from '@opensig/opendesign';
|
|
4
|
+
|
|
5
|
+
import ItemSwiper from '@component/ItemSwiper.vue';
|
|
6
|
+
import ContentWrapper from '@component/ContentWrapper.vue';
|
|
7
|
+
|
|
8
|
+
import { publisher } from '@/data/logo';
|
|
9
|
+
|
|
10
|
+
interface ItemLogoT {
|
|
11
|
+
logo: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
href: string;
|
|
15
|
+
hrefEn: string;
|
|
16
|
+
}
|
|
17
|
+
interface ItemSwiperT {
|
|
18
|
+
children: ItemLogoT[];
|
|
19
|
+
reverseDirection: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
defineProps({
|
|
23
|
+
// 语言
|
|
24
|
+
lang: {
|
|
25
|
+
type: String as PropType<'zh' | 'en'>,
|
|
26
|
+
default: 'zh',
|
|
27
|
+
},
|
|
28
|
+
// 风格
|
|
29
|
+
theme: {
|
|
30
|
+
type: String as PropType<'light' | 'dark'>,
|
|
31
|
+
default: 'light',
|
|
32
|
+
},
|
|
33
|
+
// 指定在何处显示链接的资源
|
|
34
|
+
target: {
|
|
35
|
+
type: String as PropType<'_blank' | '_parent' | '_self' | '_top'>,
|
|
36
|
+
default: '_blank',
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const total = publisher.length;
|
|
41
|
+
|
|
42
|
+
const list = computed(() => {
|
|
43
|
+
const row = total > 15 ? 3 : 2;
|
|
44
|
+
const num = total / row;
|
|
45
|
+
let arr = [] as ItemSwiperT[];
|
|
46
|
+
for (let i = 0; i < row; i++) {
|
|
47
|
+
arr.push({
|
|
48
|
+
children: [...publisher.slice(i * num, (i + 1) * num).map(item => ({ ...item, hrefEn: item.hrefEn || '' })), ...publisher.slice(i * num, (i + 1) * num).map(item => ({ ...item, hrefEn: item.hrefEn || '' }))],
|
|
49
|
+
reverseDirection: false,
|
|
50
|
+
});
|
|
51
|
+
if (i === row - 1) {
|
|
52
|
+
arr[i].children = [...publisher.slice(i * num).map(item => ({ ...item, hrefEn: item.hrefEn || '' })), ...publisher.slice(i * num).map(item => ({ ...item, hrefEn: item.hrefEn || '' }))];
|
|
53
|
+
}
|
|
54
|
+
if (i % 2 === 1) {
|
|
55
|
+
arr[i].reverseDirection = true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return arr;
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const col = computed(() => {
|
|
62
|
+
let num = 5;
|
|
63
|
+
if (total < 6) {
|
|
64
|
+
num = total;
|
|
65
|
+
} else if (total < 7) {
|
|
66
|
+
num = 3;
|
|
67
|
+
} else if (total < 9) {
|
|
68
|
+
num = 4;
|
|
69
|
+
}
|
|
70
|
+
return num;
|
|
71
|
+
});
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<template>
|
|
75
|
+
<div class="logo-swiper">
|
|
76
|
+
<template v-if="total > 10">
|
|
77
|
+
<ItemSwiper v-for="(item, index) in list" :key="index" :data="item.children"
|
|
78
|
+
:reverse-direction="item.reverseDirection" :lang="lang" :theme="theme" :target="target"
|
|
79
|
+
class="partner-swiper" />
|
|
80
|
+
</template>
|
|
81
|
+
<template v-else>
|
|
82
|
+
<ContentWrapper>
|
|
83
|
+
<ORow gap="24px 24px" wrap="wrap" class="logo-data">
|
|
84
|
+
<OCol v-for="item in publisher" :key="item.href" :flex="`0 0 ${100 / col}%`">
|
|
85
|
+
<div class="item-logo">
|
|
86
|
+
<OLink v-if="item.href || item.hrefEn" :href="lang === 'en' ? item.hrefEn || item.href : item.href"
|
|
87
|
+
:target="target">
|
|
88
|
+
<div class="logo-card">
|
|
89
|
+
<OFigure :src="item.logo[theme]" />
|
|
90
|
+
</div>
|
|
91
|
+
</OLink>
|
|
92
|
+
<div v-else class="logo-card">
|
|
93
|
+
<OFigure :src="item.logo[theme]" />
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</OCol>
|
|
97
|
+
</ORow>
|
|
98
|
+
</ContentWrapper>
|
|
99
|
+
</template>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<style lang="scss" scoped>
|
|
104
|
+
.logo-swiper {
|
|
105
|
+
width: 100%;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.partner-swiper {
|
|
110
|
+
&+.partner-swiper {
|
|
111
|
+
margin-top: 24px;
|
|
112
|
+
|
|
113
|
+
@include respond-to('laptop') {
|
|
114
|
+
margin-top: 20px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@include respond-to('pad_h') {
|
|
118
|
+
margin-top: 16px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include respond-to('<=pad_v') {
|
|
122
|
+
margin-top: 12px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.item-logo {
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
align-items: center;
|
|
131
|
+
background-color: var(--o-color-fill2);
|
|
132
|
+
border-radius: var(--o-radius-xs);
|
|
133
|
+
|
|
134
|
+
.o-figure {
|
|
135
|
+
:deep(img) {
|
|
136
|
+
width: auto;
|
|
137
|
+
max-height: 90px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
</style>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { OCard, ORow, OCol, OFigure } from '@opensig/opendesign';
|
|
4
|
+
import { useScreen } from '@/composables/useScreen';
|
|
5
|
+
|
|
6
|
+
const { lePadV, isPhone } = useScreen();
|
|
7
|
+
|
|
8
|
+
interface CardT {
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
cover: string;
|
|
12
|
+
time: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
defineProps({
|
|
16
|
+
cards: {
|
|
17
|
+
type: Array as () => CardT[],
|
|
18
|
+
default: () => [],
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const columns = computed(() => {
|
|
23
|
+
if (isPhone.value) {
|
|
24
|
+
return '0 1 100%';
|
|
25
|
+
} else if (lePadV.value) {
|
|
26
|
+
return '0 1 50%';
|
|
27
|
+
}
|
|
28
|
+
return '0 1 33.3333%';
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<div class="card-wrapper">
|
|
35
|
+
<ORow gap="var(--grid-column-gutter)">
|
|
36
|
+
<OCol v-for="(card, index) in cards" :key="index" :flex="columns">
|
|
37
|
+
<OCard :title="card.title" :detail="card.content" :cover-ratio="16 / 9" :layout="'v'">
|
|
38
|
+
<template #cover>
|
|
39
|
+
<div class="cover-box">
|
|
40
|
+
<OFigure :src="card.cover" alt="Card Cover" class="cover-image" />
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
<template #footer>
|
|
44
|
+
<div class="timestamp">
|
|
45
|
+
<span class="time">{{ card.time }}</span>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
</OCard>
|
|
49
|
+
</OCol>
|
|
50
|
+
</ORow>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
53
|
+
|
|
54
|
+
<style lang="scss" scoped>
|
|
55
|
+
.card-wrapper {
|
|
56
|
+
--grid-column-gutter: var(--o3-gap-6);
|
|
57
|
+
--card-detail-max-row: 2
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cover-box {
|
|
61
|
+
height: 100px;
|
|
62
|
+
|
|
63
|
+
:deep(.cover-image) {
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include respond-to('<=pad_v') {
|
|
68
|
+
height: 72px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include respond-to('phone') {
|
|
72
|
+
height: 68px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import {} from '@opensig/opendesign';
|
|
3
|
+
|
|
4
|
+
interface companyT {
|
|
5
|
+
href: string;
|
|
6
|
+
hrefEn: string;
|
|
7
|
+
logo: {
|
|
8
|
+
dark: string;
|
|
9
|
+
light: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
defineProps<{
|
|
13
|
+
logos?: companyT[];
|
|
14
|
+
}>();
|
|
15
|
+
</script>
|
|
16
|
+
<template>
|
|
17
|
+
<div>logo</div>
|
|
18
|
+
</template>
|
|
19
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
import type { LinkCardItemT } from './OInfoCard.vue';
|
|
4
|
+
import OInfoCard from './OInfoCard.vue';
|
|
5
|
+
|
|
6
|
+
defineProps({
|
|
7
|
+
cards: {
|
|
8
|
+
type: Array as PropType<LinkCardItemT[]>,
|
|
9
|
+
required: true,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div class="card-list">
|
|
16
|
+
<OInfoCard v-for="(card, index) in cards" :key="index" :item="card" class="card-item"></OInfoCard>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<style lang="scss" scoped>
|
|
21
|
+
.card-list {
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: 3.95fr 6.05fr;
|
|
24
|
+
gap: var(--o3-gap-6);
|
|
25
|
+
|
|
26
|
+
.card-item {
|
|
27
|
+
&:first-child {
|
|
28
|
+
grid-row-start: 1;
|
|
29
|
+
grid-row-end: 3;
|
|
30
|
+
|
|
31
|
+
:deep(.o-card-main) {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: end;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { OCard, OButton, OScroller } from '@opensig/opendesign';
|
|
4
|
+
import { useScreen } from '@/composables/useScreen';
|
|
5
|
+
|
|
6
|
+
const { lePadV } = useScreen();
|
|
7
|
+
|
|
8
|
+
interface CardT {
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
cover: string;
|
|
12
|
+
buttons?: { text: string; href?: string }[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
cards: {
|
|
17
|
+
type: Array as () => CardT[],
|
|
18
|
+
default: () => [],
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const cardCount = computed(() => props.cards.length);
|
|
23
|
+
const cardWidth = computed(() => {
|
|
24
|
+
if (lePadV.value) {
|
|
25
|
+
if (cardCount.value <= 2) {
|
|
26
|
+
return `calc((100% - var(--card-gap) * 1) / 2)`;
|
|
27
|
+
}
|
|
28
|
+
return `calc((100% - var(--card-gap) * 2) / 3)`;
|
|
29
|
+
} else {
|
|
30
|
+
if (cardCount.value <= 4) {
|
|
31
|
+
return `calc((100% - var(--card-gap) * ${cardCount.value - 1}) / ${cardCount.value})`;
|
|
32
|
+
}
|
|
33
|
+
return `calc((100% - var(--card-gap) * 3) / 4)`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
});
|
|
37
|
+
const coverRatio = computed(() => {
|
|
38
|
+
return cardCount.value === 2 ? 3 : 16 / 9;
|
|
39
|
+
});
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<div class="multi-card-wrapper">
|
|
44
|
+
<OScroller class="pane" size="small" :show-type="lePadV ? 'never' : 'always'" disabled-y>
|
|
45
|
+
<template v-for="card in cards" :key="card.title">
|
|
46
|
+
<OCard :title="card.title" :detail="card.content" :cover="card.cover"
|
|
47
|
+
:cover-ratio="lePadV ? undefined : coverRatio" :layout="'v'" class="multi-card-item"
|
|
48
|
+
:style="{ width: cardWidth }">
|
|
49
|
+
<template #footer>
|
|
50
|
+
<div class="buttons">
|
|
51
|
+
<OButton v-for="(button, btnIndex) in card.buttons" :key="btnIndex" :href="button.href"
|
|
52
|
+
color="primary" round="pill" variant="outline" class="button">{{ button.text }}
|
|
53
|
+
</OButton>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
</OCard>
|
|
57
|
+
</template>
|
|
58
|
+
</OScroller>
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
61
|
+
|
|
62
|
+
<style lang="scss" scoped>
|
|
63
|
+
.multi-card-wrapper {
|
|
64
|
+
width: 100%;
|
|
65
|
+
--card-gap: var(--o3-gap-5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.pane {
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
|
|
71
|
+
:deep(.o-scrollbar) {
|
|
72
|
+
--scrollbar-x-bottom: calc(-1 * var(--o3-gap-5) - 4px)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.multi-card-item {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
margin-right: var(--card-gap);
|
|
79
|
+
|
|
80
|
+
&:last-child {
|
|
81
|
+
margin-right: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@include respond-to('<=pad_v') {
|
|
85
|
+
:deep(.o-card-cover-img) {
|
|
86
|
+
height: 120px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.buttons {
|
|
92
|
+
display: flex;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
}
|
|
95
|
+
</style>
|