@opendesign-plus/components 0.0.1-rc.2 → 0.0.1-rc.21

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.
Files changed (205) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -0
  2. package/dist/chunk-OElCookieNotice.es.js +839 -0
  3. package/dist/components/OBanner.vue.d.ts +10 -1
  4. package/dist/components/OCookieNotice.vue.d.ts +6 -5
  5. package/dist/components/OFooter.vue.d.ts +46 -0
  6. package/dist/components/OHeaderSearch.vue.d.ts +10 -14
  7. package/dist/components/OHeaderUser.vue.d.ts +40 -0
  8. package/dist/components/OSourceCode.vue.d.ts +18 -0
  9. package/dist/components/activity/OActivityApproval.vue.d.ts +273 -0
  10. package/dist/components/activity/OActivityForm.vue.d.ts +138 -0
  11. package/dist/components/activity/OMyActivityCalendar.vue.d.ts +570 -0
  12. package/dist/components/activity/composables/useActivityConfig.d.ts +17 -0
  13. package/dist/components/activity/config.d.ts +1 -0
  14. package/dist/components/activity/index.d.ts +615 -0
  15. package/dist/components/activity/types.d.ts +88 -0
  16. package/dist/components/element-plus/OElCookieNotice.vue.d.ts +34 -0
  17. package/dist/components/element-plus/index.d.ts +2 -0
  18. package/dist/components/events/OEventsApply.vue.d.ts +16 -0
  19. package/dist/components/events/OEventsCalendar.vue.d.ts +5 -0
  20. package/dist/components/events/OEventsList.vue.d.ts +26 -0
  21. package/dist/components/events/config.d.ts +14 -0
  22. package/dist/components/events/index.d.ts +78 -0
  23. package/dist/components/events/types.d.ts +69 -0
  24. package/dist/components/events/utils.d.ts +7 -0
  25. package/dist/components/header/OHeader.vue.d.ts +30 -0
  26. package/dist/components/header/OHeaderMobile.vue.d.ts +178 -0
  27. package/dist/components/header/components/HeaderContent.vue.d.ts +13 -0
  28. package/dist/components/header/components/HeaderNav.vue.d.ts +19 -0
  29. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +36 -0
  30. package/dist/components/header/index.d.ts +152 -0
  31. package/dist/components/header/types.d.ts +84 -0
  32. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +295 -0
  33. package/dist/components/meeting/OMeetingForm.vue.d.ts +143 -0
  34. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +45 -0
  35. package/dist/components/meeting/OMyMeetingCalendar.vue.d.ts +578 -0
  36. package/dist/components/meeting/OSigMeetingCalendar.vue.d.ts +24 -0
  37. package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +28 -0
  38. package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +664 -0
  39. package/dist/components/meeting/components/OMeetingDetail.vue.d.ts +13 -0
  40. package/dist/components/meeting/components/OMeetingPlaybackSubtitles.vue.d.ts +5 -0
  41. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +17 -0
  42. package/dist/components/meeting/components/OSigMeetingAside.vue.d.ts +16 -0
  43. package/dist/components/meeting/composables/useMeetingConfig.d.ts +14 -0
  44. package/dist/components/meeting/config.d.ts +12 -0
  45. package/dist/components/meeting/index.d.ts +786 -0
  46. package/dist/components/meeting/types.d.ts +233 -0
  47. package/dist/components/meeting/utils.d.ts +8 -0
  48. package/dist/components.cjs.js +224 -1
  49. package/dist/components.css +1 -1
  50. package/dist/components.element.cjs.js +1 -0
  51. package/dist/components.element.es.js +4 -0
  52. package/dist/components.es.js +44417 -784
  53. package/dist/index.d.ts +9 -2
  54. package/docs/design.md +27 -27
  55. package/docs/design_banner.md +41 -41
  56. package/docs/design_section.md +27 -27
  57. package/package.json +13 -4
  58. package/scripts/generate-components-index.js +103 -80
  59. package/src/assets/events/svg-icons/icon-checked.svg +3 -0
  60. package/src/assets/events/svg-icons/icon-competition.svg +7 -0
  61. package/src/assets/events/svg-icons/icon-events.svg +4 -0
  62. package/src/assets/events/svg-icons/icon-release.svg +4 -0
  63. package/src/assets/events/svg-icons/icon-summit.svg +4 -0
  64. package/src/assets/meeting/svg-icons/icon-all.svg +3 -0
  65. package/src/assets/meeting/svg-icons/icon-backward.svg +4 -0
  66. package/src/assets/meeting/svg-icons/icon-calendar.svg +3 -0
  67. package/src/assets/meeting/svg-icons/icon-cancel.svg +4 -0
  68. package/src/assets/meeting/svg-icons/icon-captions.svg +4 -0
  69. package/src/assets/meeting/svg-icons/icon-close-captions.svg +6 -0
  70. package/src/assets/meeting/svg-icons/icon-close-fullscreen.svg +6 -0
  71. package/src/assets/meeting/svg-icons/icon-copy.svg +3 -0
  72. package/src/assets/meeting/svg-icons/icon-create.svg +5 -0
  73. package/src/assets/meeting/svg-icons/icon-delete.svg +7 -0
  74. package/src/assets/meeting/svg-icons/icon-empty.svg +31 -0
  75. package/src/assets/meeting/svg-icons/icon-empty_dark.svg +49 -0
  76. package/src/assets/meeting/svg-icons/icon-event.svg +3 -0
  77. package/src/assets/meeting/svg-icons/icon-export.svg +3 -0
  78. package/src/assets/meeting/svg-icons/icon-forward.svg +4 -0
  79. package/src/assets/meeting/svg-icons/icon-fullscreen.svg +6 -0
  80. package/src/assets/meeting/svg-icons/icon-help.svg +3 -0
  81. package/src/assets/meeting/svg-icons/icon-important.svg +4 -0
  82. package/src/assets/meeting/svg-icons/icon-info.svg +3 -0
  83. package/src/assets/meeting/svg-icons/icon-meet.svg +3 -0
  84. package/src/assets/meeting/svg-icons/icon-meeting-message.svg +5 -0
  85. package/src/assets/meeting/svg-icons/icon-meeting.svg +4 -0
  86. package/src/assets/meeting/svg-icons/icon-play.svg +5 -0
  87. package/src/assets/meeting/svg-icons/icon-playing-tip.svg +7 -0
  88. package/src/assets/meeting/svg-icons/icon-playing.svg +5 -0
  89. package/src/assets/meeting/svg-icons/icon-question.svg +4 -0
  90. package/src/assets/meeting/svg-icons/icon-sound.svg +5 -0
  91. package/src/assets/meeting/svg-icons/icon-speaker.svg +3 -0
  92. package/src/assets/meeting/svg-icons/icon-summit.svg +3 -0
  93. package/src/assets/meeting/svg-icons/icon-telligent.svg +3 -0
  94. package/src/assets/meeting/svg-icons/icon-tip.svg +3 -0
  95. package/src/assets/meeting/svg-icons/icon-todo.svg +4 -0
  96. package/src/assets/meeting/transparent.png +0 -0
  97. package/src/assets/svg-icons/icon-arrow-left.svg +3 -0
  98. package/src/assets/svg-icons/icon-avatar-line.svg +3 -0
  99. package/src/assets/svg-icons/icon-caret-left.svg +3 -0
  100. package/src/assets/svg-icons/icon-caret-right.svg +3 -0
  101. package/src/assets/svg-icons/icon-chevron-down.svg +3 -0
  102. package/src/assets/svg-icons/icon-chevron-right.svg +3 -3
  103. package/src/assets/svg-icons/icon-chevron-up.svg +3 -0
  104. package/src/assets/svg-icons/icon-close.svg +3 -3
  105. package/src/assets/svg-icons/icon-delete.svg +3 -3
  106. package/src/assets/svg-icons/icon-filter.svg +3 -0
  107. package/src/assets/svg-icons/icon-header-back.svg +3 -3
  108. package/src/assets/svg-icons/icon-header-delete.svg +3 -3
  109. package/src/assets/svg-icons/icon-header-menu.svg +3 -0
  110. package/src/assets/svg-icons/icon-header-person.svg +3 -0
  111. package/src/assets/svg-icons/icon-header-search.svg +4 -4
  112. package/src/assets/svg-icons/icon-loading.svg +4 -0
  113. package/src/assets/svg-icons/icon-locale.svg +3 -0
  114. package/src/assets/svg-icons/icon-log-off.svg +3 -0
  115. package/src/assets/svg-icons/icon-message.svg +3 -0
  116. package/src/assets/svg-icons/icon-moon.svg +3 -3
  117. package/src/assets/svg-icons/icon-outlink.svg +3 -0
  118. package/src/assets/svg-icons/icon-overview.svg +3 -0
  119. package/src/assets/svg-icons/icon-search.svg +3 -0
  120. package/src/assets/svg-icons/icon-setting.svg +3 -0
  121. package/src/assets/svg-icons/icon-sun.svg +3 -3
  122. package/src/assets/svg-icons/icon-tips.svg +3 -0
  123. package/src/components/OBanner.vue +398 -390
  124. package/src/components/OCookieNotice.vue +575 -424
  125. package/src/components/OFooter.vue +576 -0
  126. package/src/components/OHeaderSearch.vue +601 -601
  127. package/src/components/OHeaderUser.vue +237 -0
  128. package/src/components/OPlusConfigProvider.vue +32 -32
  129. package/src/components/OSection.vue +178 -178
  130. package/src/components/OSourceCode.vue +151 -0
  131. package/src/components/OThemeSwitcher.vue +108 -108
  132. package/src/components/activity/OActivityApproval.vue +864 -0
  133. package/src/components/activity/OActivityForm.vue +542 -0
  134. package/src/components/activity/OMyActivityCalendar.vue +1502 -0
  135. package/src/components/activity/composables/useActivityConfig.ts +141 -0
  136. package/src/components/activity/config.ts +1 -0
  137. package/src/components/activity/index.ts +24 -0
  138. package/src/components/activity/types.ts +95 -0
  139. package/src/components/common/AppAvatar.vue +83 -0
  140. package/src/components/common/ClientOnlyWrapper.ts +21 -21
  141. package/src/components/common/ContentWrapper.vue +85 -85
  142. package/src/components/common/MoreText.vue +124 -0
  143. package/src/components/common/ThFilter.vue +330 -0
  144. package/src/components/element-plus/OElCookieNotice.vue +603 -0
  145. package/src/components/element-plus/index.ts +3 -0
  146. package/src/components/events/OEventsApply.vue +418 -0
  147. package/src/components/events/OEventsCalendar.vue +598 -0
  148. package/src/components/events/OEventsList.vue +389 -0
  149. package/src/components/events/config.ts +35 -0
  150. package/src/components/events/index.ts +24 -0
  151. package/src/components/events/types.ts +83 -0
  152. package/src/components/events/utils.ts +9 -0
  153. package/src/components/header/OHeader.vue +157 -0
  154. package/src/components/header/OHeaderMobile.vue +184 -0
  155. package/src/components/header/components/HeaderContent.vue +1125 -0
  156. package/src/components/header/components/HeaderNav.vue +278 -0
  157. package/src/components/header/components/HeaderNavMobile.vue +380 -0
  158. package/src/components/header/index.ts +16 -0
  159. package/src/components/header/types.ts +95 -0
  160. package/src/components/meeting/OMeetingCalendar.vue +890 -0
  161. package/src/components/meeting/OMeetingForm.vue +1072 -0
  162. package/src/components/meeting/OMeetingPlayback.vue +439 -0
  163. package/src/components/meeting/OMyMeetingCalendar.vue +1508 -0
  164. package/src/components/meeting/OSigMeetingCalendar.vue +413 -0
  165. package/src/components/meeting/components/OMeetingCalendarList.vue +515 -0
  166. package/src/components/meeting/components/OMeetingCalendarSelector.vue +210 -0
  167. package/src/components/meeting/components/OMeetingDetail.vue +244 -0
  168. package/src/components/meeting/components/OMeetingPlaybackSubtitles.vue +611 -0
  169. package/src/components/meeting/components/OMeetingPlaybackVideo.vue +741 -0
  170. package/src/components/meeting/components/OSigMeetingAside.vue +199 -0
  171. package/src/components/meeting/composables/useMeetingConfig.ts +108 -0
  172. package/src/components/meeting/config.ts +48 -0
  173. package/src/components/meeting/index.ts +45 -0
  174. package/src/components/meeting/types.ts +266 -0
  175. package/src/components/meeting/utils.ts +70 -0
  176. package/src/draft/Banner.vue +265 -265
  177. package/src/draft/ButtonCards.vue +105 -105
  178. package/src/draft/Feature.vue +133 -133
  179. package/src/draft/Footer.vue +512 -512
  180. package/src/draft/HorizontalAnchor.vue +165 -165
  181. package/src/draft/ItemSwiper.vue +133 -133
  182. package/src/draft/Logo.vue +141 -141
  183. package/src/draft/LogoCard.vue +74 -74
  184. package/src/draft/LogoV2.vue +19 -19
  185. package/src/draft/MainCard.vue +38 -38
  186. package/src/draft/MultiCard.vue +94 -94
  187. package/src/draft/MultiIconCard.vue +73 -73
  188. package/src/draft/OInfoCard.vue +176 -176
  189. package/src/draft/Process.vue +81 -81
  190. package/src/draft/Section.vue +167 -167
  191. package/src/draft/SingleTabCard.vue +84 -84
  192. package/src/draft/SliderCard.vue +110 -110
  193. package/src/env.d.ts +16 -1
  194. package/src/i18n/en.ts +264 -20
  195. package/src/i18n/index.ts +56 -42
  196. package/src/i18n/zh.ts +253 -9
  197. package/src/index.ts +14 -3
  198. package/src/shared/provide.ts +6 -6
  199. package/src/shims-vue-dompurify-html.d.ts +17 -0
  200. package/src/vue.d.ts +9 -9
  201. package/tsconfig.json +37 -33
  202. package/vite.config.ts +119 -94
  203. package/dist/components/OCookieNoticeEl.vue.d.ts +0 -29
  204. package/dist/components.umd.js +0 -1
  205. package/src/components/OCookieNoticeEl.vue +0 -404
@@ -1,165 +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>
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>
@@ -1,133 +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>
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>