@opendesign-plus/components 0.0.1-rc.3 → 0.0.1-rc.31
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 +862 -0
- package/dist/components/activity/OActivityApproval.vue.d.ts +273 -0
- package/dist/components/activity/OActivityForm.vue.d.ts +138 -0
- package/dist/components/activity/OActivityMyCalendar.vue.d.ts +636 -0
- package/dist/components/activity/composables/useActivityConfig.d.ts +17 -0
- package/dist/components/activity/config.d.ts +1 -0
- package/dist/components/activity/index.d.ts +648 -0
- package/dist/components/activity/types.d.ts +88 -0
- package/dist/components/banner/OBanner.vue.d.ts +13 -0
- package/dist/components/banner/OBannerContent.vue.d.ts +7 -0
- package/dist/components/banner/index.d.ts +68 -0
- package/dist/components/banner/types.d.ts +31 -0
- package/dist/components/config-provider/OPlusConfigProvider.vue.d.ts +24 -0
- package/dist/components/config-provider/index.d.ts +30 -0
- package/dist/components/cookie-notice/OCookieNotice.vue.d.ts +17 -0
- package/dist/components/cookie-notice/index.d.ts +53 -0
- package/dist/components/element-plus/OElCookieNotice.vue.d.ts +34 -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 +14 -0
- package/dist/components/events/index.d.ts +78 -0
- package/dist/components/events/types.d.ts +73 -0
- package/dist/components/events/utils.d.ts +7 -0
- package/dist/components/footer/OFooter.vue.d.ts +46 -0
- package/dist/components/footer/index.d.ts +89 -0
- package/dist/components/header/OHeader.vue.d.ts +30 -0
- package/dist/components/header/OHeaderMobile.vue.d.ts +178 -0
- package/dist/components/header/components/HeaderContent.vue.d.ts +13 -0
- package/dist/components/header/components/HeaderNav.vue.d.ts +19 -0
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +36 -0
- package/dist/components/header/index.d.ts +153 -0
- package/dist/components/header/types.d.ts +85 -0
- package/dist/components/header-language-switcher/OHeaderLanguageSwitcher.vue.d.ts +49 -0
- package/dist/components/header-language-switcher/index.d.ts +90 -0
- package/dist/components/header-search/OHeaderSearch.vue.d.ts +1032 -0
- package/dist/components/header-search/index.d.ts +607 -0
- package/dist/components/header-source-code/OHeaderSourceCode.vue.d.ts +18 -0
- package/dist/components/header-source-code/index.d.ts +23 -0
- package/dist/components/header-theme/OHeaderTheme.vue.d.ts +25 -0
- package/dist/components/header-theme/index.d.ts +50 -0
- package/dist/components/header-user/OHeaderUser.vue.d.ts +40 -0
- package/dist/components/header-user/index.d.ts +53 -0
- package/dist/components/meeting/OMeetingCalendar.vue.d.ts +297 -0
- package/dist/components/meeting/OMeetingForm.vue.d.ts +141 -0
- package/dist/components/meeting/OMeetingMyCalendar.vue.d.ts +644 -0
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +94 -0
- package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +24 -0
- package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +29 -0
- package/dist/components/meeting/components/OMeetingDetail.vue.d.ts +13 -0
- package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +20 -0
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +17 -0
- package/dist/components/meeting/components/OMeetingSigAside.vue.d.ts +16 -0
- package/dist/components/meeting/composables/useMeetingConfig.d.ts +14 -0
- package/dist/components/meeting/config.d.ts +12 -0
- package/dist/components/meeting/index.d.ts +823 -0
- package/dist/components/meeting/types.d.ts +235 -0
- package/dist/components/meeting/utils.d.ts +9 -0
- package/dist/components/search/OSearchInput.vue.d.ts +1025 -0
- package/dist/components/search/composables/useImageSearch.d.ts +48 -0
- package/dist/components/search/composables/useKeywordHighlight.d.ts +2 -0
- package/dist/components/search/composables/useSearchHistory.d.ts +14 -0
- package/dist/components/search/index.d.ts +600 -0
- package/dist/components/search/internal/HighlightText.vue.d.ts +9 -0
- package/dist/components/{OHeaderSearch.vue.d.ts → search/internal/SearchImageInput.vue.d.ts} +210 -166
- package/dist/components/search/internal/SearchPanel.vue.d.ts +100 -0
- package/dist/components/search/types.d.ts +20 -0
- package/dist/components/{OSection.vue.d.ts → section/OSection.vue.d.ts} +4 -4
- package/dist/components/section/index.d.ts +47 -0
- package/dist/components.cjs.js +224 -1
- package/dist/components.css +1 -1
- package/dist/components.element.cjs.js +1 -0
- package/dist/components.element.es.js +4 -0
- package/dist/components.es.js +46234 -1078
- package/dist/index.d.ts +16 -12
- package/docs/design.md +27 -27
- package/docs/design_banner.md +41 -41
- package/docs/design_section.md +27 -27
- package/package.json +18 -9
- package/scripts/generate-components-index.js +61 -80
- 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/meeting/svg-icons/icon-all.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-backward.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-calendar.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-cancel.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-captions.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-close-captions.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-close-fullscreen.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-copy.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-create.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-delete.svg +7 -0
- package/src/assets/meeting/svg-icons/icon-empty.svg +31 -0
- package/src/assets/meeting/svg-icons/icon-empty_dark.svg +49 -0
- package/src/assets/meeting/svg-icons/icon-event.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-export.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-forward.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-fullscreen.svg +6 -0
- package/src/assets/meeting/svg-icons/icon-help.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-important.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-info.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-meet.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-meeting-message.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-meeting.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-play.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-playing-tip.svg +7 -0
- package/src/assets/meeting/svg-icons/icon-playing.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-question.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-sound.svg +5 -0
- package/src/assets/meeting/svg-icons/icon-speaker.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-summit.svg +4 -0
- package/src/assets/meeting/svg-icons/icon-telligent.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-tip.svg +3 -0
- package/src/assets/meeting/svg-icons/icon-todo.svg +4 -0
- package/src/assets/meeting/transparent.png +0 -0
- package/src/assets/styles/element-plus.scss +235 -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-chevron-up.svg +3 -0
- package/src/assets/svg-icons/icon-close.svg +3 -3
- package/src/assets/svg-icons/icon-delete-hover.svg +4 -0
- package/src/assets/svg-icons/icon-delete.svg +7 -3
- package/src/assets/svg-icons/icon-filter.svg +3 -0
- 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-image-close.svg +4 -0
- package/src/assets/svg-icons/icon-image-upload.svg +3 -0
- package/src/assets/svg-icons/icon-image-zoomin.svg +3 -0
- package/src/assets/svg-icons/icon-loading.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 -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-refresh.svg +3 -0
- package/src/assets/svg-icons/icon-search.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/assets/svg-icons/icon-tips.svg +3 -0
- package/src/components/activity/OActivityApproval.vue +868 -0
- package/src/components/activity/OActivityForm.vue +548 -0
- package/src/components/activity/OActivityMyCalendar.vue +1540 -0
- package/src/components/activity/composables/useActivityConfig.ts +141 -0
- package/src/components/activity/config.ts +1 -0
- package/src/components/activity/index.ts +24 -0
- package/src/components/activity/types.ts +95 -0
- package/src/components/banner/OBanner.vue +288 -0
- package/src/components/banner/OBannerContent.vue +175 -0
- package/src/components/banner/index.ts +18 -0
- package/src/components/banner/types.ts +39 -0
- package/src/components/common/AppAvatar.vue +83 -0
- package/src/components/common/ClientOnly.vue +13 -0
- package/src/components/common/ContentWrapper.vue +85 -85
- package/src/components/common/MoreText.vue +124 -0
- package/src/components/common/ThFilter.vue +330 -0
- package/src/components/{OPlusConfigProvider.vue → config-provider/OPlusConfigProvider.vue} +32 -32
- package/src/components/config-provider/index.ts +10 -0
- package/src/components/cookie-notice/OCookieNotice.vue +575 -0
- package/src/components/cookie-notice/index.ts +10 -0
- package/src/components/element-plus/OElCookieNotice.vue +603 -0
- package/src/components/element-plus/index.ts +3 -0
- package/src/components/events/OEventsApply.vue +503 -0
- package/src/components/events/OEventsCalendar.vue +600 -0
- package/src/components/events/OEventsList.vue +463 -0
- package/src/components/events/config.ts +35 -0
- package/src/components/events/index.ts +24 -0
- package/src/components/events/types.ts +84 -0
- package/src/components/events/utils.ts +9 -0
- package/src/components/footer/OFooter.vue +577 -0
- package/src/components/footer/index.ts +10 -0
- package/src/components/header/OHeader.vue +157 -0
- package/src/components/header/OHeaderMobile.vue +184 -0
- package/src/components/header/components/HeaderContent.vue +1125 -0
- package/src/components/header/components/HeaderNav.vue +278 -0
- package/src/components/header/components/HeaderNavMobile.vue +380 -0
- package/src/components/header/index.ts +18 -0
- package/src/components/header/types.ts +96 -0
- package/src/components/header-language-switcher/OHeaderLanguageSwitcher.vue +211 -0
- package/src/components/header-language-switcher/index.ts +10 -0
- package/src/components/header-search/OHeaderSearch.vue +628 -0
- package/src/components/header-search/index.ts +10 -0
- package/src/components/header-source-code/OHeaderSourceCode.vue +151 -0
- package/src/components/header-source-code/index.ts +10 -0
- package/src/components/header-theme/OHeaderTheme.vue +132 -0
- package/src/components/header-theme/index.ts +10 -0
- package/src/components/header-user/OHeaderUser.vue +238 -0
- package/src/components/header-user/index.ts +10 -0
- package/src/components/meeting/OMeetingCalendar.vue +909 -0
- package/src/components/meeting/OMeetingForm.vue +1131 -0
- package/src/components/meeting/OMeetingMyCalendar.vue +1536 -0
- package/src/components/meeting/OMeetingPlayback.vue +469 -0
- package/src/components/meeting/OMeetingSigCalendar.vue +439 -0
- package/src/components/meeting/components/OMeetingCalendarList.vue +609 -0
- package/src/components/meeting/components/OMeetingCalendarSelector.vue +213 -0
- package/src/components/meeting/components/OMeetingDetail.vue +263 -0
- package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +615 -0
- package/src/components/meeting/components/OMeetingPlaybackVideo.vue +741 -0
- package/src/components/meeting/components/OMeetingSigAside.vue +204 -0
- package/src/components/meeting/composables/useMeetingConfig.ts +108 -0
- package/src/components/meeting/config.ts +48 -0
- package/src/components/meeting/index.ts +45 -0
- package/src/components/meeting/types.ts +268 -0
- package/src/components/meeting/utils.ts +70 -0
- package/src/components/search/OSearchInput.vue +526 -0
- package/src/components/search/composables/useImageSearch.ts +157 -0
- package/src/components/search/composables/useKeywordHighlight.ts +30 -0
- package/src/components/search/composables/useSearchHistory.ts +75 -0
- package/src/components/search/index.ts +23 -0
- package/src/components/search/internal/HighlightText.vue +37 -0
- package/src/components/search/internal/SearchImageInput.vue +498 -0
- package/src/components/search/internal/SearchPanel.vue +431 -0
- package/src/components/search/types.ts +25 -0
- package/src/components/{OSection.vue → section/OSection.vue} +178 -178
- package/src/components/section/index.ts +10 -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 +519 -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 +111 -110
- package/src/env.d.ts +16 -1
- package/src/i18n/en.ts +276 -20
- package/src/i18n/index.ts +56 -42
- package/src/i18n/zh.ts +266 -9
- package/src/index.ts +16 -32
- 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 +37 -33
- package/vite.config.ts +123 -94
- package/dist/components/OBanner.vue.d.ts +0 -2
- package/dist/components/OCookieNotice.vue.d.ts +0 -16
- package/dist/components/OElCookieNotice.vue.d.ts +0 -31
- package/dist/components/OPlusConfigProvider.vue.d.ts +0 -23
- package/dist/components/OThemeSwitcher.vue.d.ts +0 -28
- package/dist/components.umd.js +0 -1
- package/src/components/OBanner.vue +0 -390
- package/src/components/OCookieNotice.vue +0 -424
- package/src/components/OElCookieNotice.vue +0 -413
- package/src/components/OHeaderSearch.vue +0 -601
- package/src/components/OThemeSwitcher.vue +0 -108
- package/src/components/common/ClientOnlyWrapper.ts +0 -21
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { isArray, OLink, OIcon } from '@opensig/opendesign';
|
|
3
|
-
import IconChevronRight from '~icons/components/icon-chevron-right.svg';
|
|
4
|
-
|
|
5
|
-
interface SectionPropsT {
|
|
6
|
-
title?: string | Array<string>;
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
full?: boolean;
|
|
9
|
-
headerJustifyCenter?: boolean;
|
|
10
|
-
footer?: string;
|
|
11
|
-
footerHref?: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const props = withDefaults(defineProps<SectionPropsT>(), {
|
|
15
|
-
title: undefined,
|
|
16
|
-
subtitle: undefined,
|
|
17
|
-
full: false,
|
|
18
|
-
headerJustifyCenter: true,
|
|
19
|
-
footer: undefined,
|
|
20
|
-
footerHref: undefined,
|
|
21
|
-
});
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<template>
|
|
25
|
-
<div class="app-section" :class="{ 'is-full': props.full }">
|
|
26
|
-
<div class="section-wrapper">
|
|
27
|
-
<slot name="main">
|
|
28
|
-
<!-- header -->
|
|
29
|
-
<div v-if="$slots.header || props.title || props.subtitle" class="section-header" :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
|
-
--o-gap-section: var(--o-gap-7);
|
|
73
|
-
.section-wrapper {
|
|
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
|
-
.section-title,
|
|
94
|
-
.section-subtitle {
|
|
95
|
-
justify-content: start;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.section-title {
|
|
101
|
-
max-width: var(--layout-content-max-width);
|
|
102
|
-
padding: 0 var(--layout-content-padding);
|
|
103
|
-
margin: 0 auto;
|
|
104
|
-
|
|
105
|
-
display: flex;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
color: var(--o-color-info1);
|
|
108
|
-
text-align: center;
|
|
109
|
-
@include display3;
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.section-subtitle {
|
|
114
|
-
max-width: var(--layout-content-max-width);
|
|
115
|
-
padding: 0 var(--layout-content-padding);
|
|
116
|
-
margin: 0 auto;
|
|
117
|
-
|
|
118
|
-
display: flex;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
margin-top: 12px;
|
|
121
|
-
color: var(--o-color-info2);
|
|
122
|
-
@include text1;
|
|
123
|
-
|
|
124
|
-
@include respond
|
|
125
|
-
margin-top: 8px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
@include respond
|
|
129
|
-
margin-top: 12px;
|
|
130
|
-
text-align: center;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.section-body {
|
|
135
|
-
max-width: var(--layout-content-max-width);
|
|
136
|
-
padding: 0 var(--layout-content-padding);
|
|
137
|
-
margin: 0 auto;
|
|
138
|
-
|
|
139
|
-
margin-top: var(--o-gap-7);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.section-footer {
|
|
143
|
-
max-width: var(--layout-content-max-width);
|
|
144
|
-
padding: 0 var(--layout-content-padding);
|
|
145
|
-
margin: 0 auto;
|
|
146
|
-
color: var(--o-color-info1);
|
|
147
|
-
|
|
148
|
-
display: flex;
|
|
149
|
-
justify-content: center;
|
|
150
|
-
@include text1;
|
|
151
|
-
|
|
152
|
-
margin-top: 32px;
|
|
153
|
-
|
|
154
|
-
:deep(.o-btn) {
|
|
155
|
-
border-radius: var(--btn-height);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@include respond
|
|
159
|
-
margin-top: 16px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@include respond
|
|
163
|
-
margin-top: 12px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&:hover {
|
|
167
|
-
.footer-icon {
|
|
168
|
-
fill: var(--link-color-active);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.footer-icon {
|
|
174
|
-
font-size: 16px;
|
|
175
|
-
height: 24px;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { isArray, OLink, OIcon } from '@opensig/opendesign';
|
|
3
|
+
import IconChevronRight from '~icons/components/icon-chevron-right.svg';
|
|
4
|
+
|
|
5
|
+
export interface SectionPropsT {
|
|
6
|
+
title?: string | Array<string>;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
full?: boolean;
|
|
9
|
+
headerJustifyCenter?: boolean;
|
|
10
|
+
footer?: string;
|
|
11
|
+
footerHref?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<SectionPropsT>(), {
|
|
15
|
+
title: undefined,
|
|
16
|
+
subtitle: undefined,
|
|
17
|
+
full: false,
|
|
18
|
+
headerJustifyCenter: true,
|
|
19
|
+
footer: undefined,
|
|
20
|
+
footerHref: undefined,
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div class="app-section" :class="{ 'is-full': props.full }">
|
|
26
|
+
<div class="section-wrapper">
|
|
27
|
+
<slot name="main">
|
|
28
|
+
<!-- header -->
|
|
29
|
+
<div v-if="$slots.header || props.title || props.subtitle" class="section-header" :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
|
+
--o-gap-section: var(--o-gap-7);
|
|
73
|
+
.section-wrapper {
|
|
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
|
+
.section-title,
|
|
94
|
+
.section-subtitle {
|
|
95
|
+
justify-content: start;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.section-title {
|
|
101
|
+
max-width: var(--layout-content-max-width);
|
|
102
|
+
padding: 0 var(--layout-content-padding);
|
|
103
|
+
margin: 0 auto;
|
|
104
|
+
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
color: var(--o-color-info1);
|
|
108
|
+
text-align: center;
|
|
109
|
+
@include display3;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.section-subtitle {
|
|
114
|
+
max-width: var(--layout-content-max-width);
|
|
115
|
+
padding: 0 var(--layout-content-padding);
|
|
116
|
+
margin: 0 auto;
|
|
117
|
+
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: center;
|
|
120
|
+
margin-top: 12px;
|
|
121
|
+
color: var(--o-color-info2);
|
|
122
|
+
@include text1;
|
|
123
|
+
|
|
124
|
+
@include respond('pad-laptop') {
|
|
125
|
+
margin-top: 8px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include respond('phone') {
|
|
129
|
+
margin-top: 12px;
|
|
130
|
+
text-align: center;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.section-body {
|
|
135
|
+
max-width: var(--layout-content-max-width);
|
|
136
|
+
padding: 0 var(--layout-content-padding);
|
|
137
|
+
margin: 0 auto;
|
|
138
|
+
|
|
139
|
+
margin-top: var(--o-gap-7);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.section-footer {
|
|
143
|
+
max-width: var(--layout-content-max-width);
|
|
144
|
+
padding: 0 var(--layout-content-padding);
|
|
145
|
+
margin: 0 auto;
|
|
146
|
+
color: var(--o-color-info1);
|
|
147
|
+
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
@include text1;
|
|
151
|
+
|
|
152
|
+
margin-top: 32px;
|
|
153
|
+
|
|
154
|
+
:deep(.o-btn) {
|
|
155
|
+
border-radius: var(--btn-height);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@include respond('<=laptop') {
|
|
159
|
+
margin-top: 16px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@include respond('phone') {
|
|
163
|
+
margin-top: 12px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:hover {
|
|
167
|
+
.footer-icon {
|
|
168
|
+
fill: var(--link-color-active);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.footer-icon {
|
|
174
|
+
font-size: 16px;
|
|
175
|
+
height: 24px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
</style>
|