@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,74 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { OCard, type CardPropsT } from '@opensig/opendesign';
|
|
4
|
+
import { useScreen } from '@/composables/useScreen.ts';
|
|
5
|
+
|
|
6
|
+
const { isPadV, isPhone } = useScreen();
|
|
7
|
+
|
|
8
|
+
export type IconCardT = Pick<CardPropsT, 'title' | 'detail' | 'icon'>;
|
|
9
|
+
|
|
10
|
+
const props = withDefaults(defineProps<{
|
|
11
|
+
/*卡片各自的配置*/
|
|
12
|
+
cards: IconCardT[];
|
|
13
|
+
/*布局*/
|
|
14
|
+
layout?: CardPropsT['layout'];
|
|
15
|
+
/*所有卡片的配置,优先级低于cards*/
|
|
16
|
+
cardProps?: Omit<CardPropsT, 'layout'>;
|
|
17
|
+
}>(), {
|
|
18
|
+
layout: 'v',
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const gridTemplateColumns = computed(() => {
|
|
22
|
+
if (isPhone.value) {
|
|
23
|
+
return '1fr';
|
|
24
|
+
}
|
|
25
|
+
if (isPadV.value) {
|
|
26
|
+
switch (props.cards.length) {
|
|
27
|
+
case 1:
|
|
28
|
+
return '1fr';
|
|
29
|
+
default:
|
|
30
|
+
return '1fr 1fr';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
switch (props.cards.length) {
|
|
34
|
+
case 1:
|
|
35
|
+
return '1fr';
|
|
36
|
+
case 2:
|
|
37
|
+
return '1fr 1fr';
|
|
38
|
+
default:
|
|
39
|
+
return '1fr 1fr 1fr';
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<div v-if="props.cards?.length" class="multi-card-wrapper">
|
|
46
|
+
<OCard
|
|
47
|
+
v-for="(card, index) in cards"
|
|
48
|
+
:key="index"
|
|
49
|
+
class="multi-icon-card-item"
|
|
50
|
+
v-bind="{
|
|
51
|
+
...props.cardProps,
|
|
52
|
+
layout: props.layout,
|
|
53
|
+
...card
|
|
54
|
+
}"
|
|
55
|
+
/>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<style lang="scss" scoped>
|
|
60
|
+
.multi-card-wrapper {
|
|
61
|
+
display: grid;
|
|
62
|
+
gap: var(--o3-gap-5) var(--o3-gap-6);
|
|
63
|
+
grid-template-columns: v-bind(gridTemplateColumns);
|
|
64
|
+
}
|
|
65
|
+
.o-card {
|
|
66
|
+
--card-content-color: var(--o-color-info3);
|
|
67
|
+
@include respond-to("phone") {
|
|
68
|
+
--card-header-text-size: 16px;
|
|
69
|
+
--card-header-text-height: 24px;
|
|
70
|
+
--card-content-text-size: 14px;
|
|
71
|
+
--card-content-text-height: 22px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { OCard, OLink } from '@opensig/opendesign';
|
|
3
|
+
import { useScreen } from '@/composables/useScreen';
|
|
4
|
+
import { ref, watch, type Component } from 'vue';
|
|
5
|
+
|
|
6
|
+
const { lePadV } = useScreen();
|
|
7
|
+
|
|
8
|
+
interface LinkT {
|
|
9
|
+
title: string;
|
|
10
|
+
target?: '_blank' | '_self';
|
|
11
|
+
href?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface BgImgT {
|
|
15
|
+
pcImg: string;
|
|
16
|
+
padImg: string;
|
|
17
|
+
mbImg: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface LinkCardItemT {
|
|
21
|
+
icon: Component;
|
|
22
|
+
title: string;
|
|
23
|
+
desc: string;
|
|
24
|
+
links: LinkT[];
|
|
25
|
+
linkLayout?: 'block' | 'inline';
|
|
26
|
+
bgImg?: BgImgT;
|
|
27
|
+
bgPosition?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const props = defineProps<{
|
|
31
|
+
item: LinkCardItemT;
|
|
32
|
+
}>();
|
|
33
|
+
|
|
34
|
+
const links = ref<LinkT[]>([]);
|
|
35
|
+
watch(
|
|
36
|
+
() => props.item,
|
|
37
|
+
() => {
|
|
38
|
+
links.value = props.item.links;
|
|
39
|
+
},
|
|
40
|
+
{ immediate: true }
|
|
41
|
+
);
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<OCard
|
|
46
|
+
:href="lePadV && links.length === 1 && links[0].href ? links[0].href : undefined"
|
|
47
|
+
class="info-card"
|
|
48
|
+
:style="[{ backgroundImage: `url(${props.item.bgImg?.pcImg})` }, props.item.bgPosition ? { backgroundPosition: props.item.bgPosition } : {}]"
|
|
49
|
+
>
|
|
50
|
+
<template #main>
|
|
51
|
+
<div class="header">
|
|
52
|
+
<div class="title">
|
|
53
|
+
<component :is="item.icon" class="title-icon"></component>
|
|
54
|
+
<span class="title-text">{{ item.title }}</span>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="desc">{{ item.desc }}</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<div v-if="lePadV" class="footer" :class="item.linkLayout ? item.linkLayout : ''">
|
|
60
|
+
<OLink v-for="(link, index) in links" :key="index" hover-underline class="link-item" :href="link.href" :target="link.target" color="primary">
|
|
61
|
+
{{ link.title }}
|
|
62
|
+
</OLink>
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
<div v-if="!lePadV && links.length > 1" class="footer" :class="item.linkLayout ? item.linkLayout : ''">
|
|
66
|
+
<OLink v-for="(link, index) in links" :key="index" hover-underline class="link-item" :href="link.href" :target="link.target" color="primary">
|
|
67
|
+
{{ link.title }}
|
|
68
|
+
</OLink>
|
|
69
|
+
</div>
|
|
70
|
+
</template>
|
|
71
|
+
</OCard>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<style lang="scss" scoped>
|
|
75
|
+
.info-card {
|
|
76
|
+
height: 100%;
|
|
77
|
+
--bg-height: 100%;
|
|
78
|
+
background-size: 100% auto;
|
|
79
|
+
background-repeat: no-repeat;
|
|
80
|
+
position: relative;
|
|
81
|
+
@include respond-to('<=pad_v') {
|
|
82
|
+
background-size: auto var(--bg-height);
|
|
83
|
+
height: auto;
|
|
84
|
+
&.has-bg-img {
|
|
85
|
+
:deep(.o-card-main) {
|
|
86
|
+
padding-top: 48px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
--padding-bottom: 0;
|
|
91
|
+
:deep(.o-card-main) {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
@include respond-to('<=pad_v') {
|
|
96
|
+
padding-bottom: var(--padding-bottom);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.title {
|
|
102
|
+
@include h1;
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
vertical-align: vertical;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.title-icon {
|
|
109
|
+
line-height: var(--o-icon_size-l);
|
|
110
|
+
font-size: var(--o-icon_size-l);
|
|
111
|
+
margin-right: var(--o3-gap-2);
|
|
112
|
+
position: relative;
|
|
113
|
+
top: calc((var(--o-icon_size-l) - var(--line-height)) / 2);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.desc {
|
|
117
|
+
@include text1;
|
|
118
|
+
color: var(--o-color-info3);
|
|
119
|
+
margin-top: 8px;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
display: -webkit-box;
|
|
123
|
+
-webkit-line-clamp: 2;
|
|
124
|
+
-webkit-box-orient: vertical;
|
|
125
|
+
line-clamp: 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.footer {
|
|
129
|
+
@include text1;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
align-items: flex-start;
|
|
133
|
+
&.block {
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
.link-item {
|
|
136
|
+
margin-right: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@include respond-to('>pad_v') {
|
|
141
|
+
:deep(.o-link-main) {
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
display: -webkit-box;
|
|
145
|
+
-webkit-line-clamp: 1;
|
|
146
|
+
-webkit-box-orient: vertical;
|
|
147
|
+
line-clamp: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
margin-top: calc(-1 * var(--o3-gap-3) + var(--o3-gap-5));
|
|
151
|
+
|
|
152
|
+
.link-item {
|
|
153
|
+
margin-left: var(var(--o3-gap-7));
|
|
154
|
+
margin-top: var(--o3-gap-3);
|
|
155
|
+
}
|
|
156
|
+
:deep(.o-link) {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
flex-direction: row-reverse;
|
|
159
|
+
.o-link-prefix {
|
|
160
|
+
margin-right: 0;
|
|
161
|
+
margin-left: var(--link-gap);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@include respond-to('<=pad_v') {
|
|
167
|
+
border-top: 1px solid #edeff2;
|
|
168
|
+
margin: 8px -12 px 0 -12px;
|
|
169
|
+
padding: 0 12px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.link-item {
|
|
174
|
+
--link-icon-size: var(--o-icon_size-m);
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import {} from '@opensig/opendesign';
|
|
4
|
+
import arrow from '@/assets/category/process/arrow.png';
|
|
5
|
+
|
|
6
|
+
interface ProcessItem {
|
|
7
|
+
title: string;
|
|
8
|
+
icon?: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const props = defineProps<{
|
|
12
|
+
process: ProcessItem[];
|
|
13
|
+
}>();
|
|
14
|
+
|
|
15
|
+
const serials = computed(() => props.process.map((_, idx) => String(idx + 1).padStart(2, '0')));
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<div class="process-list">
|
|
20
|
+
<template v-for="(item, idx) in props.process" :key="idx">
|
|
21
|
+
<div class="process-item">
|
|
22
|
+
<div class="icon">
|
|
23
|
+
<component :is="item.icon" v-if="item.icon" />
|
|
24
|
+
</div>
|
|
25
|
+
<div class="serial">
|
|
26
|
+
<span class="clip-text">{{ serials[idx] }}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="title">{{ item.title }}</div>
|
|
29
|
+
</div>
|
|
30
|
+
<img v-if="idx < props.process.length - 1" :src="arrow" alt="arrow" class="process-arrow" />
|
|
31
|
+
</template>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<style lang="scss" scoped>
|
|
36
|
+
.process-list {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
.process-item {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
min-width: 80px;
|
|
48
|
+
flex: 1 1 0;
|
|
49
|
+
}
|
|
50
|
+
.process-arrow {
|
|
51
|
+
width: 44px;
|
|
52
|
+
height: 6px;
|
|
53
|
+
margin: 0 1rem;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
}
|
|
56
|
+
.icon {
|
|
57
|
+
font-size: 48px;
|
|
58
|
+
margin-bottom: 0.5rem;
|
|
59
|
+
}
|
|
60
|
+
.serial {
|
|
61
|
+
margin-bottom: 0.5rem;
|
|
62
|
+
.clip-text {
|
|
63
|
+
font-size: 48px;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
clip-path: polygon(0 0, 100% 0, 100% 54%, 0 54%);
|
|
66
|
+
-webkit-clip-path: polygon(0 0, 100% 0, 100% 54%, 0 54%);
|
|
67
|
+
color: var(--o-color-info3);
|
|
68
|
+
opacity: 0.4;
|
|
69
|
+
line-height: 1;
|
|
70
|
+
display: inline-block;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.title {
|
|
74
|
+
@include text1;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
margin-top: 0.5rem;
|
|
77
|
+
text-align: center;
|
|
78
|
+
position: relative;
|
|
79
|
+
top: -20px;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { isArray, OLink } from '@opensig/opendesign';
|
|
3
|
+
|
|
4
|
+
interface SectionPropsT {
|
|
5
|
+
title?: string | Array<string>;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
full?: boolean;
|
|
8
|
+
headerJustifyCenter?: boolean;
|
|
9
|
+
footer?: string;
|
|
10
|
+
footerHref?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(defineProps<SectionPropsT>(), {
|
|
14
|
+
title: undefined,
|
|
15
|
+
subtitle: undefined,
|
|
16
|
+
full: false,
|
|
17
|
+
headerJustifyCenter: true,
|
|
18
|
+
footer: undefined,
|
|
19
|
+
footerHref: undefined,
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div class="app-section" :class="{ 'is-full': props.full }">
|
|
25
|
+
<div class="section-wrapper">
|
|
26
|
+
<slot name="main">
|
|
27
|
+
<!-- header -->
|
|
28
|
+
<div v-if="$slots.header || props.title || props.subtitle" class="section-header"
|
|
29
|
+
:class="{ 'is-left': !props.headerJustifyCenter }">
|
|
30
|
+
<slot name="header">
|
|
31
|
+
<template v-if="isArray(props.title)">
|
|
32
|
+
<h2 v-for="item in props.title" :key="item" class="section-title">
|
|
33
|
+
{{ item }}
|
|
34
|
+
</h2>
|
|
35
|
+
</template>
|
|
36
|
+
<h2 v-else-if="$slots.title || props.title" class="section-title">
|
|
37
|
+
<slot name="title">
|
|
38
|
+
{{ props.title }}
|
|
39
|
+
</slot>
|
|
40
|
+
</h2>
|
|
41
|
+
<p v-if="$slots.subtitle || props.subtitle" class="section-subtitle">
|
|
42
|
+
<slot name="subtitle">
|
|
43
|
+
{{ props.subtitle }}
|
|
44
|
+
</slot>
|
|
45
|
+
</p>
|
|
46
|
+
</slot>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- body -->
|
|
50
|
+
<div v-if="$slots.default" class="section-body">
|
|
51
|
+
<slot></slot>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<!-- footer -->
|
|
55
|
+
<div v-if="$slots.footer || props.footer" class="section-footer">
|
|
56
|
+
<slot name="footer">
|
|
57
|
+
<OLink :href="props.footerHref" target="_blank">
|
|
58
|
+
{{ props.footer }}
|
|
59
|
+
<template #suffix>
|
|
60
|
+
<!-- <OIcon class="footer-icon"><IconChevronRight /> </OIcon> -->
|
|
61
|
+
</template>
|
|
62
|
+
</OLink>
|
|
63
|
+
</slot>
|
|
64
|
+
</div>
|
|
65
|
+
</slot>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<style lang="scss" scoped>
|
|
71
|
+
.app-section {
|
|
72
|
+
.section-wrapper {
|
|
73
|
+
max-width: 1416px;
|
|
74
|
+
margin: var(--o-gap-section) auto 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.is-full {
|
|
78
|
+
.section-body {
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
width: 100%;
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:last-child {
|
|
86
|
+
.section-wrapper {
|
|
87
|
+
padding-bottom: var(--o-gap-section);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.section-header {
|
|
92
|
+
&.is-left {
|
|
93
|
+
|
|
94
|
+
.section-title,
|
|
95
|
+
.section-subtitle {
|
|
96
|
+
justify-content: start;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.section-title {
|
|
102
|
+
max-width: var(--layout-content-max-width);
|
|
103
|
+
padding: 0 var(--layout-content-padding);
|
|
104
|
+
margin: 0 auto;
|
|
105
|
+
|
|
106
|
+
display: flex;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
color: var(--o-color-info1);
|
|
109
|
+
text-align: center;
|
|
110
|
+
@include display3;
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.section-subtitle {
|
|
115
|
+
max-width: var(--layout-content-max-width);
|
|
116
|
+
padding: 0 var(--layout-content-padding);
|
|
117
|
+
margin: 0 auto;
|
|
118
|
+
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
margin-top: 12px;
|
|
122
|
+
color: var(--o-color-info2);
|
|
123
|
+
@include text1;
|
|
124
|
+
|
|
125
|
+
@include respond-to('pad-laptop') {
|
|
126
|
+
margin-top: 8px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include respond-to('phone') {
|
|
130
|
+
margin-top: 12px;
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.section-body {
|
|
136
|
+
max-width: var(--layout-content-max-width);
|
|
137
|
+
padding: 0 var(--layout-content-padding);
|
|
138
|
+
margin: 0 auto;
|
|
139
|
+
|
|
140
|
+
margin-top: var(--o-gap-t2c);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.section-footer {
|
|
144
|
+
max-width: var(--layout-content-max-width);
|
|
145
|
+
padding: 0 var(--layout-content-padding);
|
|
146
|
+
margin: 0 auto;
|
|
147
|
+
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
@include text1;
|
|
151
|
+
|
|
152
|
+
margin-top: 32px;
|
|
153
|
+
|
|
154
|
+
@include respond-to('<=laptop') {
|
|
155
|
+
margin-top: 16px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@include respond-to('phone') {
|
|
159
|
+
margin-top: 12px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.footer-icon {
|
|
164
|
+
font-size: 16px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</style>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { type PropType } from 'vue';
|
|
3
|
+
import { OButton, OCard, OTab, OTabPane } from '@opensig/opendesign';
|
|
4
|
+
import { useScreen } from '@/composables/useScreen';
|
|
5
|
+
|
|
6
|
+
const { lePadV } = useScreen();
|
|
7
|
+
|
|
8
|
+
interface ButtonT {
|
|
9
|
+
text: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface CardT {
|
|
14
|
+
title: string;
|
|
15
|
+
content: string;
|
|
16
|
+
cover?: string;
|
|
17
|
+
buttons?: ButtonT[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface TabListT {
|
|
21
|
+
title: string;
|
|
22
|
+
card: CardT;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
defineProps({
|
|
26
|
+
tabs: {
|
|
27
|
+
type: Array as PropType<TabListT[]>,
|
|
28
|
+
default: () => [],
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
</script>
|
|
32
|
+
<template>
|
|
33
|
+
<div class="wrapper">
|
|
34
|
+
<template v-if="tabs.length === 1">
|
|
35
|
+
<OCard :title="tabs[0].card.title" :detail="tabs[0].card.content" :cover="tabs[0].card.cover"
|
|
36
|
+
:layout="lePadV ? 'v' : 'hr'" :cover-ratio="lePadV ? undefined : 16 / 9" class="single-card">
|
|
37
|
+
<template #footer>
|
|
38
|
+
<div class="buttons">
|
|
39
|
+
<OButton v-for="(button, index) in tabs[0].card.buttons" :key="index" :href="button.href"
|
|
40
|
+
color="primary" round="pill" variant="outline" class="button">{{ button.text }}
|
|
41
|
+
</OButton>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
</OCard>
|
|
45
|
+
</template>
|
|
46
|
+
<template v-else>
|
|
47
|
+
<OTab :line="false" class="section-tab">
|
|
48
|
+
<OTabPane v-for="(tab, index) in tabs" :key="index" :label="tab.title" :value="tab.title"
|
|
49
|
+
class="tab-pane">
|
|
50
|
+
<OCard :title="tab.card.title" :detail="tab.card.content" :cover="tab.card.cover"
|
|
51
|
+
:layout="lePadV ? 'v' : 'hr'" :cover-ratio="lePadV ? undefined : 16 / 9" class="single-card">
|
|
52
|
+
<template #footer>
|
|
53
|
+
<div class="buttons">
|
|
54
|
+
<OButton v-for="(button, index) in tab.card.buttons" :key="index" :href="button.href"
|
|
55
|
+
color="primary" round="pill" variant="outline" class="button">{{ button.text }}
|
|
56
|
+
</OButton>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
</OCard>
|
|
60
|
+
</OTabPane>
|
|
61
|
+
</OTab>
|
|
62
|
+
</template>
|
|
63
|
+
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
66
|
+
<style lang="scss" scoped>
|
|
67
|
+
.section-tab {
|
|
68
|
+
:deep(.o-tab-pane) {
|
|
69
|
+
padding-top: var(--o3-gap-5);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.buttons {
|
|
74
|
+
display: flex;
|
|
75
|
+
gap: var(--o3-gap-4);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.single-card {
|
|
79
|
+
@include respond-to('<=pad_v') {
|
|
80
|
+
:deep(.o-figure-img) {
|
|
81
|
+
height: 184px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { OCarousel, OCarouselItem, OFigure, OLink } from '@opensig/opendesign';
|
|
3
|
+
import { useScreen } from '@/composables/useScreen';
|
|
4
|
+
|
|
5
|
+
const { lePadV } = useScreen();
|
|
6
|
+
|
|
7
|
+
interface CardT {
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
cover: string;
|
|
11
|
+
href: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
cards: {
|
|
16
|
+
type: Array as () => CardT[],
|
|
17
|
+
default: () => [],
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<div class="wrapper">
|
|
24
|
+
<OCarousel v-if="!lePadV" class="slider-card" indicator-click :loop="true" effect="toggle">
|
|
25
|
+
<OCarouselItem v-for="(card, index) in props.cards" :key="index" class="slider-card-item">
|
|
26
|
+
<OFigure :src="card.cover" :alt="card.title" class="slider-card-cover">
|
|
27
|
+
<div class="card-content">
|
|
28
|
+
<div class="card-title">{{ card.title }}</div>
|
|
29
|
+
<div class="card-description">{{ card.content }}</div>
|
|
30
|
+
<OLink v-if="card.href" :href="card.href" class="card-link"> 了解更多 </OLink>
|
|
31
|
+
</div>
|
|
32
|
+
</OFigure>
|
|
33
|
+
</OCarouselItem>
|
|
34
|
+
</OCarousel>
|
|
35
|
+
<OCarousel v-else class="slider-card" indicator-click :loop="true" effect="toggle">
|
|
36
|
+
<OCarouselItem v-for="(card, index) in props.cards" :key="index" class="slider-card-item">
|
|
37
|
+
<OFigure :src="card.cover" :alt="card.title" class="slider-card-cover">
|
|
38
|
+
<div class="card-content">
|
|
39
|
+
<div class="card-title">{{ card.title }}</div>
|
|
40
|
+
<div class="card-description">{{ card.content }}</div>
|
|
41
|
+
<OLink v-if="card.href" :href="card.href" class="card-link"> 了解更多 </OLink>
|
|
42
|
+
</div>
|
|
43
|
+
</OFigure>
|
|
44
|
+
</OCarouselItem>
|
|
45
|
+
</OCarousel>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<style lang="scss" scoped>
|
|
50
|
+
.slider-card {
|
|
51
|
+
--slide-width: calc(70vw - 36px);
|
|
52
|
+
--slide-gap: 16px;
|
|
53
|
+
--carousel-indicator-offset: -32px;
|
|
54
|
+
height: 360px;
|
|
55
|
+
width: 100%;
|
|
56
|
+
overflow: visible;
|
|
57
|
+
:deep(.the-slider-container) {
|
|
58
|
+
height: 100%;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
:deep(.o-carousel-indicator-bar) {
|
|
62
|
+
width: 100%;
|
|
63
|
+
&::after {
|
|
64
|
+
border-radius: 6px;
|
|
65
|
+
}
|
|
66
|
+
&::before {
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@include respond-to('pc_s') {
|
|
71
|
+
height: 300px;
|
|
72
|
+
}
|
|
73
|
+
@include respond-to('<=laptop') {
|
|
74
|
+
height: 280px;
|
|
75
|
+
}
|
|
76
|
+
@include respond-to('<=pad_v') {
|
|
77
|
+
--slide-width: calc(100vw - 64px);
|
|
78
|
+
width: calc(var(--slide-gap) + var(--slide-width));
|
|
79
|
+
height: 184px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.slider-card-item {
|
|
84
|
+
height: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.slider-card-cover {
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.card-content {
|
|
93
|
+
padding: 0 96px;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
height: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.card-title {
|
|
101
|
+
@include h1;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
color: var(--o-color-info1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.card-description {
|
|
107
|
+
margin-top: var(--o3-gap-3);
|
|
108
|
+
margin-bottom: var(--o3-gap-7);
|
|
109
|
+
}
|
|
110
|
+
</style>
|
package/src/env.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|