@opendesign-plus/components 0.0.1-rc.6 → 0.0.1-rc.7
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/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/OHeaderUser.vue.d.ts +40 -0
- package/dist/components/OSourceCode.vue.d.ts +20 -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 -1
- package/dist/components.css +1 -1
- package/dist/components.element.cjs.js +1 -1
- package/dist/components.element.es.js +2 -214
- package/dist/components.es.js +3000 -444
- package/dist/index.d.ts +8 -1
- package/docs/design.md +27 -27
- package/docs/design_banner.md +41 -41
- package/docs/design_section.md +27 -27
- 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 +2 -1
- package/scripts/generate-components-index.js +99 -80
- 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 -3
- package/src/assets/svg-icons/icon-close.svg +3 -3
- package/src/assets/svg-icons/icon-delete.svg +3 -3
- package/src/assets/svg-icons/icon-header-back.svg +3 -3
- package/src/assets/svg-icons/icon-header-delete.svg +3 -3
- 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 -4
- 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 -3
- 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 -3
- package/src/components/OBanner.vue +390 -390
- package/src/components/OCookieNotice.vue +423 -423
- 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 -601
- package/src/components/OHeaderUser.vue +304 -0
- package/src/components/OPlusConfigProvider.vue +32 -32
- package/src/components/OSection.vue +178 -178
- package/src/components/OSourceCode.vue +153 -0
- package/src/components/OThemeSwitcher.vue +108 -108
- package/src/components/common/AppAvatar.vue +83 -0
- package/src/components/common/ClientOnlyWrapper.ts +21 -21
- package/src/components/common/ContentWrapper.vue +85 -85
- 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 -412
- package/src/components/element-plus/index.ts +3 -3
- package/src/components/events/OEventsApply.vue +487 -0
- package/src/components/events/OEventsCalendar.vue +613 -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 -265
- package/src/draft/ButtonCards.vue +105 -105
- package/src/draft/Feature.vue +133 -133
- package/src/draft/Footer.vue +512 -512
- package/src/draft/HorizontalAnchor.vue +165 -165
- package/src/draft/ItemSwiper.vue +133 -133
- package/src/draft/Logo.vue +141 -141
- package/src/draft/LogoCard.vue +74 -74
- package/src/draft/LogoV2.vue +19 -19
- package/src/draft/MainCard.vue +38 -38
- package/src/draft/MultiCard.vue +94 -94
- package/src/draft/MultiIconCard.vue +73 -73
- package/src/draft/OInfoCard.vue +176 -176
- package/src/draft/Process.vue +81 -81
- package/src/draft/Section.vue +167 -167
- package/src/draft/SingleTabCard.vue +84 -84
- package/src/draft/SliderCard.vue +110 -110
- package/src/env.d.ts +1 -1
- package/src/i18n/en.ts +20 -20
- package/src/i18n/index.ts +42 -42
- package/src/i18n/zh.ts +14 -9
- package/src/index.ts +15 -1
- 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 -6
- package/src/shims-vue-dompurify-html.d.ts +17 -0
- package/src/vue.d.ts +9 -9
- package/tsconfig.json +33 -33
- package/vite.config.ts +102 -101
- package/dist/chunk-index.cjs.js +0 -1
- package/dist/chunk-index.es.js +0 -64
package/src/draft/Banner.vue
CHANGED
|
@@ -1,265 +1,265 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { onMounted, type PropType } from 'vue';
|
|
3
|
-
import { OButton } from '@opensig/opendesign';
|
|
4
|
-
|
|
5
|
-
import AOS from 'aos';
|
|
6
|
-
|
|
7
|
-
import ContentWrapper from './ContentWrapper.vue';
|
|
8
|
-
|
|
9
|
-
defineProps({
|
|
10
|
-
backgroundImage: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: '',
|
|
13
|
-
},
|
|
14
|
-
title: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: '',
|
|
17
|
-
},
|
|
18
|
-
subtitle: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: '',
|
|
21
|
-
},
|
|
22
|
-
href: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: '',
|
|
25
|
-
},
|
|
26
|
-
text: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: '',
|
|
29
|
-
},
|
|
30
|
-
// 风格
|
|
31
|
-
theme: {
|
|
32
|
-
type: String as PropType<'light' | 'dark'>,
|
|
33
|
-
default: 'light',
|
|
34
|
-
},
|
|
35
|
-
// 指定在何处显示链接的资源
|
|
36
|
-
target: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: '_blank',
|
|
39
|
-
},
|
|
40
|
-
size: {
|
|
41
|
-
type: String as PropType<'small' | 'medium' | 'large'>,
|
|
42
|
-
default: 'medium',
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
onMounted(() => {
|
|
47
|
-
AOS.init({
|
|
48
|
-
duration: 800,
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<template>
|
|
54
|
-
<div class="banner-content" :class="`banner-${size}`">
|
|
55
|
-
<div class="banner-bg" :style="{ backgroundImage: `url(${backgroundImage})` }"></div>
|
|
56
|
-
<ContentWrapper class="banner-text">
|
|
57
|
-
<div class="banner-text-content">
|
|
58
|
-
<p v-if="title" class="banner-title" data-aos="fade-up">{{ title }}</p>
|
|
59
|
-
<p v-if="subtitle" class="banner-subtitle" data-aos="fade-up">
|
|
60
|
-
{{ subtitle }}
|
|
61
|
-
</p>
|
|
62
|
-
<OButton v-if="href" variant="outline" color="primary" size="medium" :href="href" :target="target"
|
|
63
|
-
class="learn-btn">
|
|
64
|
-
<span>{{ text }}</span>
|
|
65
|
-
</OButton>
|
|
66
|
-
</div>
|
|
67
|
-
</ContentWrapper>
|
|
68
|
-
</div>
|
|
69
|
-
</template>
|
|
70
|
-
|
|
71
|
-
<style lang="scss">
|
|
72
|
-
.banner-content {
|
|
73
|
-
width: 100%;
|
|
74
|
-
position: relative;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.banner-bg {
|
|
78
|
-
height: 100%;
|
|
79
|
-
margin: 0 auto;
|
|
80
|
-
background-repeat: no-repeat;
|
|
81
|
-
background-size: cover;
|
|
82
|
-
background-position: center;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.banner-text {
|
|
86
|
-
position: absolute;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
top: 0;
|
|
90
|
-
left: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.banner-text-content {
|
|
94
|
-
height: 100%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.learn-btn {
|
|
98
|
-
margin-top: 24px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.banner-small {
|
|
102
|
-
height: 280px;
|
|
103
|
-
|
|
104
|
-
.banner-title {
|
|
105
|
-
color: var(--o-color-info1);
|
|
106
|
-
font-weight: 500;
|
|
107
|
-
padding-top: 48px;
|
|
108
|
-
@include display2;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.banner-subtitle {
|
|
112
|
-
color: var(--o-color-info1);
|
|
113
|
-
margin-top: 8px;
|
|
114
|
-
width: 60%;
|
|
115
|
-
@include text2;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
119
|
-
height: 220px;
|
|
120
|
-
|
|
121
|
-
.banner-title {
|
|
122
|
-
padding-top: 40px;
|
|
123
|
-
@include display3;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.banner-subtitle {
|
|
127
|
-
@include text1;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@include respond-to('pad_h') {
|
|
132
|
-
height: 180px;
|
|
133
|
-
|
|
134
|
-
.banner-title {
|
|
135
|
-
padding-top: 32px;
|
|
136
|
-
@include h1;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.banner-subtitle {
|
|
140
|
-
@include tip1;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@include respond-to('<=pad_v') {
|
|
145
|
-
display: none;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.banner-medium {
|
|
150
|
-
height: 360px;
|
|
151
|
-
|
|
152
|
-
.banner-title {
|
|
153
|
-
color: var(--o-color-info1);
|
|
154
|
-
font-weight: 500;
|
|
155
|
-
padding-top: 88px;
|
|
156
|
-
@include display2;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.banner-subtitle {
|
|
160
|
-
color: var(--o-color-info1);
|
|
161
|
-
margin-top: 8px;
|
|
162
|
-
width: 60%;
|
|
163
|
-
@include text2;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
167
|
-
height: 280px;
|
|
168
|
-
|
|
169
|
-
.banner-title {
|
|
170
|
-
padding-top: 64px;
|
|
171
|
-
@include display3;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.banner-subtitle {
|
|
175
|
-
@include text1;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
@include respond-to('pad_h') {
|
|
180
|
-
height: 220px;
|
|
181
|
-
|
|
182
|
-
.banner-title {
|
|
183
|
-
padding-top: 48px;
|
|
184
|
-
@include h1;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.banner-subtitle {
|
|
188
|
-
@include tip1;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
@include respond-to('<=pad_v') {
|
|
193
|
-
height: 120px;
|
|
194
|
-
|
|
195
|
-
.banner-title {
|
|
196
|
-
text-align: center;
|
|
197
|
-
padding-top: 48px;
|
|
198
|
-
@include h3;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.banner-subtitle {
|
|
202
|
-
display: none;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.banner-large {
|
|
208
|
-
height: 460px;
|
|
209
|
-
|
|
210
|
-
.banner-title {
|
|
211
|
-
color: var(--o-color-info1);
|
|
212
|
-
font-weight: 500;
|
|
213
|
-
padding-top: 124px;
|
|
214
|
-
@include display1;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.banner-subtitle {
|
|
218
|
-
color: var(--o-color-info1);
|
|
219
|
-
margin-top: 8px;
|
|
220
|
-
width: 60%;
|
|
221
|
-
@include h4;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
225
|
-
height: 400px;
|
|
226
|
-
|
|
227
|
-
.banner-title {
|
|
228
|
-
padding-top: 100px;
|
|
229
|
-
@include display2;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.banner-subtitle {
|
|
233
|
-
@include text2;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@include respond-to('pad_h') {
|
|
238
|
-
height: 320px;
|
|
239
|
-
|
|
240
|
-
.banner-title {
|
|
241
|
-
padding-top: 80px;
|
|
242
|
-
@include display3;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.banner-subtitle {
|
|
246
|
-
@include text1;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
@include respond-to('<=pad_v') {
|
|
251
|
-
height: 184px;
|
|
252
|
-
|
|
253
|
-
.banner-title {
|
|
254
|
-
text-align: center;
|
|
255
|
-
padding-top: 48px;
|
|
256
|
-
@include h3;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.banner-subtitle {
|
|
260
|
-
text-align: center;
|
|
261
|
-
@include tip2;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { onMounted, type PropType } from 'vue';
|
|
3
|
+
import { OButton } from '@opensig/opendesign';
|
|
4
|
+
|
|
5
|
+
import AOS from 'aos';
|
|
6
|
+
|
|
7
|
+
import ContentWrapper from './ContentWrapper.vue';
|
|
8
|
+
|
|
9
|
+
defineProps({
|
|
10
|
+
backgroundImage: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '',
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '',
|
|
17
|
+
},
|
|
18
|
+
subtitle: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: '',
|
|
21
|
+
},
|
|
22
|
+
href: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: '',
|
|
25
|
+
},
|
|
26
|
+
text: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: '',
|
|
29
|
+
},
|
|
30
|
+
// 风格
|
|
31
|
+
theme: {
|
|
32
|
+
type: String as PropType<'light' | 'dark'>,
|
|
33
|
+
default: 'light',
|
|
34
|
+
},
|
|
35
|
+
// 指定在何处显示链接的资源
|
|
36
|
+
target: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: '_blank',
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
type: String as PropType<'small' | 'medium' | 'large'>,
|
|
42
|
+
default: 'medium',
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
onMounted(() => {
|
|
47
|
+
AOS.init({
|
|
48
|
+
duration: 800,
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<template>
|
|
54
|
+
<div class="banner-content" :class="`banner-${size}`">
|
|
55
|
+
<div class="banner-bg" :style="{ backgroundImage: `url(${backgroundImage})` }"></div>
|
|
56
|
+
<ContentWrapper class="banner-text">
|
|
57
|
+
<div class="banner-text-content">
|
|
58
|
+
<p v-if="title" class="banner-title" data-aos="fade-up">{{ title }}</p>
|
|
59
|
+
<p v-if="subtitle" class="banner-subtitle" data-aos="fade-up">
|
|
60
|
+
{{ subtitle }}
|
|
61
|
+
</p>
|
|
62
|
+
<OButton v-if="href" variant="outline" color="primary" size="medium" :href="href" :target="target"
|
|
63
|
+
class="learn-btn">
|
|
64
|
+
<span>{{ text }}</span>
|
|
65
|
+
</OButton>
|
|
66
|
+
</div>
|
|
67
|
+
</ContentWrapper>
|
|
68
|
+
</div>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<style lang="scss">
|
|
72
|
+
.banner-content {
|
|
73
|
+
width: 100%;
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.banner-bg {
|
|
78
|
+
height: 100%;
|
|
79
|
+
margin: 0 auto;
|
|
80
|
+
background-repeat: no-repeat;
|
|
81
|
+
background-size: cover;
|
|
82
|
+
background-position: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.banner-text {
|
|
86
|
+
position: absolute;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.banner-text-content {
|
|
94
|
+
height: 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.learn-btn {
|
|
98
|
+
margin-top: 24px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.banner-small {
|
|
102
|
+
height: 280px;
|
|
103
|
+
|
|
104
|
+
.banner-title {
|
|
105
|
+
color: var(--o-color-info1);
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
padding-top: 48px;
|
|
108
|
+
@include display2;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.banner-subtitle {
|
|
112
|
+
color: var(--o-color-info1);
|
|
113
|
+
margin-top: 8px;
|
|
114
|
+
width: 60%;
|
|
115
|
+
@include text2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
119
|
+
height: 220px;
|
|
120
|
+
|
|
121
|
+
.banner-title {
|
|
122
|
+
padding-top: 40px;
|
|
123
|
+
@include display3;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.banner-subtitle {
|
|
127
|
+
@include text1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@include respond-to('pad_h') {
|
|
132
|
+
height: 180px;
|
|
133
|
+
|
|
134
|
+
.banner-title {
|
|
135
|
+
padding-top: 32px;
|
|
136
|
+
@include h1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.banner-subtitle {
|
|
140
|
+
@include tip1;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include respond-to('<=pad_v') {
|
|
145
|
+
display: none;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.banner-medium {
|
|
150
|
+
height: 360px;
|
|
151
|
+
|
|
152
|
+
.banner-title {
|
|
153
|
+
color: var(--o-color-info1);
|
|
154
|
+
font-weight: 500;
|
|
155
|
+
padding-top: 88px;
|
|
156
|
+
@include display2;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.banner-subtitle {
|
|
160
|
+
color: var(--o-color-info1);
|
|
161
|
+
margin-top: 8px;
|
|
162
|
+
width: 60%;
|
|
163
|
+
@include text2;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
167
|
+
height: 280px;
|
|
168
|
+
|
|
169
|
+
.banner-title {
|
|
170
|
+
padding-top: 64px;
|
|
171
|
+
@include display3;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.banner-subtitle {
|
|
175
|
+
@include text1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@include respond-to('pad_h') {
|
|
180
|
+
height: 220px;
|
|
181
|
+
|
|
182
|
+
.banner-title {
|
|
183
|
+
padding-top: 48px;
|
|
184
|
+
@include h1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.banner-subtitle {
|
|
188
|
+
@include tip1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include respond-to('<=pad_v') {
|
|
193
|
+
height: 120px;
|
|
194
|
+
|
|
195
|
+
.banner-title {
|
|
196
|
+
text-align: center;
|
|
197
|
+
padding-top: 48px;
|
|
198
|
+
@include h3;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.banner-subtitle {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.banner-large {
|
|
208
|
+
height: 460px;
|
|
209
|
+
|
|
210
|
+
.banner-title {
|
|
211
|
+
color: var(--o-color-info1);
|
|
212
|
+
font-weight: 500;
|
|
213
|
+
padding-top: 124px;
|
|
214
|
+
@include display1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.banner-subtitle {
|
|
218
|
+
color: var(--o-color-info1);
|
|
219
|
+
margin-top: 8px;
|
|
220
|
+
width: 60%;
|
|
221
|
+
@include h4;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
225
|
+
height: 400px;
|
|
226
|
+
|
|
227
|
+
.banner-title {
|
|
228
|
+
padding-top: 100px;
|
|
229
|
+
@include display2;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.banner-subtitle {
|
|
233
|
+
@include text2;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@include respond-to('pad_h') {
|
|
238
|
+
height: 320px;
|
|
239
|
+
|
|
240
|
+
.banner-title {
|
|
241
|
+
padding-top: 80px;
|
|
242
|
+
@include display3;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.banner-subtitle {
|
|
246
|
+
@include text1;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@include respond-to('<=pad_v') {
|
|
251
|
+
height: 184px;
|
|
252
|
+
|
|
253
|
+
.banner-title {
|
|
254
|
+
text-align: center;
|
|
255
|
+
padding-top: 48px;
|
|
256
|
+
@include h3;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.banner-subtitle {
|
|
260
|
+
text-align: center;
|
|
261
|
+
@include tip2;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
</style>
|