@opendesign-plus-test/components 0.0.1-rc.265 → 0.0.1-rc.267
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/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
- package/dist/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
- package/dist/components/community-updates/index.d.ts +91 -0
- package/dist/components/community-updates/types.d.ts +36 -0
- package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +664 -0
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1749 -1640
- package/dist/index.d.ts +1 -0
- package/dist/treeshaking/components/article-pagination/OArticlePagination.mjs +2 -2
- package/dist/treeshaking/components/article-pagination/{OArticlePagination.vue_vue_type_style_index_0_scoped_8a8cf9f8_lang.css → OArticlePagination.vue_vue_type_style_index_0_scoped_56848f78_lang.css} +46 -59
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +6 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +100 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css +123 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.mjs +5 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs +49 -0
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +130 -0
- package/dist/treeshaking/components/community-updates/index.d.ts +91 -0
- package/dist/treeshaking/components/community-updates/index.mjs +10 -0
- package/dist/treeshaking/components/community-updates/types.d.ts +36 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue_vue_type_style_index_0_lang.css +12 -12
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +664 -0
- package/dist/treeshaking/components/search-result/OSearchResultHeader.mjs +2 -2
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue_vue_type_script_setup_true_lang.mjs +2 -3
- package/dist/treeshaking/components/search-result/{OSearchResultHeader.vue_vue_type_style_index_0_scoped_70bc0c95_lang.css → OSearchResultHeader.vue_vue_type_style_index_0_scoped_48a10021_lang.css} +33 -33
- package/dist/treeshaking/components/search-result/OSearchResultItem.mjs +2 -2
- package/dist/treeshaking/components/search-result/{OSearchResultItem.vue_vue_type_style_index_0_scoped_0914fdb7_lang.css → OSearchResultItem.vue_vue_type_style_index_0_scoped_418a332e_lang.css} +40 -40
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.mjs +2 -2
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue_vue_type_script_setup_true_lang.mjs +5 -2
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedback.vue_vue_type_style_index_0_scoped_72958e79_lang.css → OSearchResultFeedback.vue_vue_type_style_index_0_scoped_179b412f_lang.css} +30 -30
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.mjs +2 -2
- package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue_vue_type_script_setup_true_lang.mjs +5 -2
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_4cd638c6_lang.css → OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_33f2c617_lang.css} +38 -38
- package/dist/treeshaking/index.d.ts +1 -0
- package/dist/treeshaking/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './components/article-anchor';
|
|
|
5
5
|
export * from './components/article-pagination';
|
|
6
6
|
export * from './components/banner';
|
|
7
7
|
export * from './components/brand';
|
|
8
|
+
export * from './components/community-updates';
|
|
8
9
|
export * from './components/config-provider';
|
|
9
10
|
export * from './components/cookie-notice';
|
|
10
11
|
export * from './components/doc-layout';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import OArticlePagination_vue_vue_type_script_setup_true_lang_default from "./OArticlePagination.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './OArticlePagination.
|
|
3
|
+
import './OArticlePagination.vue_vue_type_style_index_0_scoped_56848f78_lang.css';
|
|
4
4
|
// src/components/article-pagination/OArticlePagination.vue
|
|
5
|
-
var OArticlePagination_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticlePagination_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var OArticlePagination_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OArticlePagination_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-56848f78"]]);
|
|
6
6
|
export { OArticlePagination_default as default };
|
|
@@ -1,144 +1,131 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-56848f78] {
|
|
2
2
|
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
3
|
}
|
|
4
4
|
@media (hover: hover) {
|
|
5
|
-
.hover-icon-rotate:hover .o-icon[data-v-
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-56848f78] {
|
|
6
6
|
transform: rotate(-180deg);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.o-article-pagination[data-v-
|
|
9
|
+
.o-article-pagination[data-v-56848f78] {
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
}
|
|
13
|
-
.o-article-pagination__divider[data-v-
|
|
13
|
+
.o-article-pagination__divider[data-v-56848f78] {
|
|
14
14
|
--o-divider-gap: 24px;
|
|
15
15
|
}
|
|
16
16
|
@media (max-width: 1680px) {
|
|
17
|
-
.o-article-pagination__divider[data-v-
|
|
17
|
+
.o-article-pagination__divider[data-v-56848f78] {
|
|
18
18
|
--o-divider-gap: 16px;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
@media (max-width: 1200px) {
|
|
22
|
-
.o-article-pagination__divider[data-v-
|
|
22
|
+
.o-article-pagination__divider[data-v-56848f78] {
|
|
23
23
|
--o-divider-gap: 12px;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
@media (max-width: 600px) {
|
|
27
|
-
.o-article-pagination__divider[data-v-
|
|
27
|
+
.o-article-pagination__divider[data-v-56848f78] {
|
|
28
28
|
--o-divider-gap: 24px;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
.o-article-pagination__main[data-v-
|
|
31
|
+
.o-article-pagination__main[data-v-56848f78] {
|
|
32
32
|
display: flex;
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
}
|
|
35
|
-
.o-article-pagination__side[data-v-
|
|
35
|
+
.o-article-pagination__side[data-v-56848f78] {
|
|
36
36
|
display: block;
|
|
37
37
|
width: 50%;
|
|
38
38
|
min-width: 0;
|
|
39
39
|
color: inherit;
|
|
40
40
|
text-decoration: none;
|
|
41
41
|
}
|
|
42
|
-
.o-article-pagination__side.o-article-pagination__side--prev[data-v-
|
|
42
|
+
.o-article-pagination__side.o-article-pagination__side--prev[data-v-56848f78] {
|
|
43
43
|
padding-right: 10px;
|
|
44
44
|
}
|
|
45
45
|
@media (max-width: 840px) {
|
|
46
|
-
.o-article-pagination__side.o-article-pagination__side--prev[data-v-
|
|
46
|
+
.o-article-pagination__side.o-article-pagination__side--prev[data-v-56848f78] {
|
|
47
47
|
padding-right: 6px;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
.o-article-pagination__side.o-article-pagination__side--next[data-v-
|
|
50
|
+
.o-article-pagination__side.o-article-pagination__side--next[data-v-56848f78] {
|
|
51
51
|
padding-left: 10px;
|
|
52
52
|
}
|
|
53
53
|
@media (max-width: 840px) {
|
|
54
|
-
.o-article-pagination__side.o-article-pagination__side--next[data-v-
|
|
54
|
+
.o-article-pagination__side.o-article-pagination__side--next[data-v-56848f78] {
|
|
55
55
|
padding-left: 6px;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
.o-article-pagination:not(.o-article-pagination--has-prev) .o-article-pagination__side--next[data-v-
|
|
58
|
+
.o-article-pagination:not(.o-article-pagination--has-prev) .o-article-pagination__side--next[data-v-56848f78] {
|
|
59
59
|
margin-left: auto;
|
|
60
60
|
}
|
|
61
|
-
.o-article-pagination__card[data-v-
|
|
61
|
+
.o-article-pagination__card[data-v-56848f78] {
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: space-between;
|
|
65
|
+
gap: 8px;
|
|
65
66
|
width: 100%;
|
|
66
|
-
|
|
67
|
+
padding: 16px 24px;
|
|
67
68
|
background-color: var(--o-color-fill1);
|
|
68
69
|
border-radius: var(--o-article-pagination-radius);
|
|
69
70
|
cursor: pointer;
|
|
70
71
|
transition: background-color var(--o-duration-m1) var(--o-easing-standard), box-shadow var(--o-duration-m1) var(--o-easing-standard);
|
|
71
72
|
}
|
|
72
|
-
@media (max-width:
|
|
73
|
-
.o-article-pagination__card[data-v-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.o-article-pagination__side--prev .o-article-pagination__card[data-v-8a8cf9f8] {
|
|
78
|
-
padding-left: 24px;
|
|
79
|
-
padding-right: 20px;
|
|
80
|
-
}
|
|
81
|
-
@media (max-width: 840px) {
|
|
82
|
-
.o-article-pagination__side--prev .o-article-pagination__card[data-v-8a8cf9f8] {
|
|
83
|
-
padding-left: 16px;
|
|
84
|
-
padding-right: 8px;
|
|
85
|
-
}
|
|
73
|
+
@media (max-width: 1680px) {
|
|
74
|
+
.o-article-pagination__card[data-v-56848f78] {
|
|
75
|
+
padding: 12px 16px;
|
|
86
76
|
}
|
|
87
|
-
.o-article-pagination__side--next .o-article-pagination__card[data-v-8a8cf9f8] {
|
|
88
|
-
padding-left: 20px;
|
|
89
|
-
padding-right: 24px;
|
|
90
77
|
}
|
|
91
|
-
@media (max-width:
|
|
92
|
-
.o-article-
|
|
93
|
-
padding
|
|
94
|
-
padding-right: 16px;
|
|
78
|
+
@media (max-width: 1200px) {
|
|
79
|
+
.o-article-pagination__card[data-v-56848f78] {
|
|
80
|
+
padding: 8px 12px;
|
|
95
81
|
}
|
|
96
82
|
}
|
|
97
|
-
.o-article-pagination__text[data-v-
|
|
83
|
+
.o-article-pagination__text[data-v-56848f78] {
|
|
98
84
|
display: flex;
|
|
99
85
|
flex-direction: column;
|
|
100
86
|
min-width: 0;
|
|
101
87
|
overflow: hidden;
|
|
102
88
|
}
|
|
103
|
-
.o-article-pagination__side--prev .o-article-pagination__text[data-v-
|
|
89
|
+
.o-article-pagination__side--prev .o-article-pagination__text[data-v-56848f78] {
|
|
104
90
|
align-items: flex-end;
|
|
105
91
|
}
|
|
106
|
-
.o-article-pagination__side--next .o-article-pagination__text[data-v-
|
|
92
|
+
.o-article-pagination__side--next .o-article-pagination__text[data-v-56848f78] {
|
|
107
93
|
align-items: flex-start;
|
|
108
94
|
}
|
|
109
|
-
.o-article-pagination__label[data-v-
|
|
95
|
+
.o-article-pagination__label[data-v-56848f78] {
|
|
96
|
+
margin-bottom: 2px;
|
|
110
97
|
color: var(--o-color-info3);
|
|
111
98
|
font-size: 14px;
|
|
112
99
|
line-height: 22px;
|
|
113
100
|
}
|
|
114
101
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
115
|
-
.o-article-pagination__label[data-v-
|
|
102
|
+
.o-article-pagination__label[data-v-56848f78] {
|
|
116
103
|
font-size: 14px;
|
|
117
104
|
line-height: 18px;
|
|
118
105
|
}
|
|
119
106
|
}
|
|
120
107
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
121
|
-
.o-article-pagination__label[data-v-
|
|
108
|
+
.o-article-pagination__label[data-v-56848f78] {
|
|
122
109
|
font-size: 12px;
|
|
123
110
|
line-height: 18px;
|
|
124
111
|
}
|
|
125
112
|
}
|
|
126
113
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
127
|
-
.o-article-pagination__label[data-v-
|
|
114
|
+
.o-article-pagination__label[data-v-56848f78] {
|
|
128
115
|
font-size: 12px;
|
|
129
116
|
line-height: 18px;
|
|
130
117
|
}
|
|
131
118
|
}
|
|
132
119
|
@media (max-width: 600px) {
|
|
133
|
-
.o-article-pagination__label[data-v-
|
|
120
|
+
.o-article-pagination__label[data-v-56848f78] {
|
|
134
121
|
font-size: 12px;
|
|
135
122
|
line-height: 18px;
|
|
136
123
|
}
|
|
137
124
|
}
|
|
138
|
-
.o-article-pagination__side--prev .o-article-pagination__label[data-v-
|
|
125
|
+
.o-article-pagination__side--prev .o-article-pagination__label[data-v-56848f78] {
|
|
139
126
|
text-align: right;
|
|
140
127
|
}
|
|
141
|
-
.o-article-pagination__title[data-v-
|
|
128
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
142
129
|
color: var(--o-color-info2);
|
|
143
130
|
max-width: 320px;
|
|
144
131
|
overflow: hidden;
|
|
@@ -149,62 +136,62 @@
|
|
|
149
136
|
line-height: 24px;
|
|
150
137
|
}
|
|
151
138
|
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
152
|
-
.o-article-pagination__title[data-v-
|
|
139
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
153
140
|
font-size: 14px;
|
|
154
141
|
line-height: 22px;
|
|
155
142
|
}
|
|
156
143
|
}
|
|
157
144
|
@media (min-width: 841px) and (max-width: 1200px) {
|
|
158
|
-
.o-article-pagination__title[data-v-
|
|
145
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
159
146
|
font-size: 14px;
|
|
160
147
|
line-height: 22px;
|
|
161
148
|
}
|
|
162
149
|
}
|
|
163
150
|
@media (min-width: 601px) and (max-width: 840px) {
|
|
164
|
-
.o-article-pagination__title[data-v-
|
|
151
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
165
152
|
font-size: 14px;
|
|
166
153
|
line-height: 22px;
|
|
167
154
|
}
|
|
168
155
|
}
|
|
169
156
|
@media (max-width: 600px) {
|
|
170
|
-
.o-article-pagination__title[data-v-
|
|
157
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
171
158
|
font-size: 12px;
|
|
172
159
|
line-height: 18px;
|
|
173
160
|
}
|
|
174
161
|
}
|
|
175
162
|
@media (max-width: 1200px) {
|
|
176
|
-
.o-article-pagination__title[data-v-
|
|
163
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
177
164
|
max-width: 220px;
|
|
178
165
|
}
|
|
179
166
|
}
|
|
180
167
|
@media (max-width: 840px) {
|
|
181
|
-
.o-article-pagination__title[data-v-
|
|
168
|
+
.o-article-pagination__title[data-v-56848f78] {
|
|
182
169
|
max-width: 100%;
|
|
183
170
|
margin-top: 4px;
|
|
184
171
|
}
|
|
185
172
|
}
|
|
186
|
-
.o-article-pagination__arrow[data-v-
|
|
173
|
+
.o-article-pagination__arrow[data-v-56848f78] {
|
|
187
174
|
flex-shrink: 0;
|
|
188
175
|
font-size: 24px;
|
|
189
176
|
color: var(--o-color-info3);
|
|
190
177
|
transition: color var(--o-duration-m1) var(--o-easing-standard);
|
|
191
178
|
}
|
|
192
179
|
@media (max-width: 840px) {
|
|
193
|
-
.o-article-pagination__arrow[data-v-
|
|
180
|
+
.o-article-pagination__arrow[data-v-56848f78] {
|
|
194
181
|
font-size: 20px;
|
|
195
182
|
}
|
|
196
183
|
}
|
|
197
|
-
.o-article-pagination__arrow--next[data-v-
|
|
184
|
+
.o-article-pagination__arrow--next[data-v-56848f78] {
|
|
198
185
|
transform: rotate(180deg);
|
|
199
186
|
}
|
|
200
187
|
@media (hover: hover) {
|
|
201
|
-
&:hover .o-article-pagination__card[data-v-
|
|
188
|
+
&:hover .o-article-pagination__card[data-v-56848f78]:hover {
|
|
202
189
|
background-color: var(--o-color-fill3);
|
|
203
190
|
}
|
|
204
|
-
&:hover .o-article-pagination__card:hover .o-article-pagination__title[data-v-
|
|
191
|
+
&:hover .o-article-pagination__card:hover .o-article-pagination__title[data-v-56848f78] {
|
|
205
192
|
color: var(--o-color-info1);
|
|
206
193
|
}
|
|
207
|
-
&:hover .o-article-pagination__card:hover .o-article-pagination__arrow[data-v-
|
|
194
|
+
&:hover .o-article-pagination__card:hover .o-article-pagination__arrow[data-v-56848f78] {
|
|
208
195
|
color: var(--o-color-info1);
|
|
209
196
|
}
|
|
210
197
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import OCommunityUpdates_vue_vue_type_script_setup_true_lang_default from "./OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css';
|
|
4
|
+
// src/components/community-updates/OCommunityUpdates.vue
|
|
5
|
+
var OCommunityUpdates_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OCommunityUpdates_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cab17fde"]]);
|
|
6
|
+
export { OCommunityUpdates_default as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { CommunityUpdatesItemT, CommunityUpdatesPropsT } from './types';
|
|
2
|
+
type __VLS_Props = CommunityUpdatesPropsT;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
'activeTab'?: string;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
/** 单个动态卡片自定义渲染(横向滚动布局仍由组件内部处理),插槽参数为当前项数据、索引与当前 Tab key;不传时渲染内置 OCommunityUpdatesCard */
|
|
10
|
+
card?: (props: {
|
|
11
|
+
item: CommunityUpdatesItemT;
|
|
12
|
+
index: number;
|
|
13
|
+
tab: string;
|
|
14
|
+
}) => any;
|
|
15
|
+
}> & {
|
|
16
|
+
/** 单个动态卡片自定义渲染(横向滚动布局仍由组件内部处理),插槽参数为当前项数据、索引与当前 Tab key;不传时渲染内置 OCommunityUpdatesCard */
|
|
17
|
+
card?: (props: {
|
|
18
|
+
item: CommunityUpdatesItemT;
|
|
19
|
+
index: number;
|
|
20
|
+
tab: string;
|
|
21
|
+
}) => any;
|
|
22
|
+
};
|
|
23
|
+
refs: {};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:activeTab": (value: string) => any;
|
|
29
|
+
} & {
|
|
30
|
+
"tab-change": (value: string) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
"onTab-change"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
data: CommunityUpdatesItemT[] | Record<string, CommunityUpdatesItemT[]>;
|
|
36
|
+
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
37
|
+
moreHref: string;
|
|
38
|
+
moreText: string;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useI18n } from "../../i18n/index.mjs";
|
|
2
|
+
import icon_chevron_right_default from "../../_virtual/~icons/components/icon-chevron-right.mjs";
|
|
3
|
+
import OCommunityUpdatesCard_default from "./OCommunityUpdatesCard.mjs";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
5
|
+
import { OIcon, OLink, OScroller, OTab, OTabPane } from "@opensig/opendesign";
|
|
6
|
+
import { useScreen } from "@opendesign-plus/composables";
|
|
7
|
+
// src/components/community-updates/OCommunityUpdates.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = { class: "o-community-updates" };
|
|
9
|
+
var _hoisted_2 = { class: "o-community-updates__list" };
|
|
10
|
+
var OCommunityUpdates_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
11
|
+
__name: "OCommunityUpdates",
|
|
12
|
+
props: /*@__PURE__*/ mergeModels({
|
|
13
|
+
data: { default: () => [] },
|
|
14
|
+
tabs: { default: () => [] },
|
|
15
|
+
activeTab: {},
|
|
16
|
+
moreHref: { default: void 0 },
|
|
17
|
+
moreText: { default: void 0 }
|
|
18
|
+
}, {
|
|
19
|
+
"activeTab": {},
|
|
20
|
+
"activeTabModifiers": {}
|
|
21
|
+
}),
|
|
22
|
+
emits: /*@__PURE__*/ mergeModels(["tab-change"], ["update:activeTab"]),
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const emit = __emit;
|
|
26
|
+
const { t } = useI18n();
|
|
27
|
+
const { isPhone } = useScreen();
|
|
28
|
+
const moreTextValue = computed(() => props.moreText ?? t("common.viewMore"));
|
|
29
|
+
const activeTab = useModel(__props, "activeTab");
|
|
30
|
+
const effectiveTab = computed(() => activeTab.value || props.tabs[0]?.key || "");
|
|
31
|
+
const onTabChange = (value) => {
|
|
32
|
+
const key = String(value);
|
|
33
|
+
activeTab.value = key;
|
|
34
|
+
emit("tab-change", key);
|
|
35
|
+
};
|
|
36
|
+
const items = computed(() => {
|
|
37
|
+
if (props.tabs.length && props.data && !Array.isArray(props.data)) return props.data[effectiveTab.value] ?? [];
|
|
38
|
+
return Array.isArray(props.data) ? props.data : [];
|
|
39
|
+
});
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
42
|
+
__props.tabs.length ? (openBlock(), createBlock(unref(OTab), {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "o-community-updates__tab",
|
|
45
|
+
variant: "text",
|
|
46
|
+
size: "large",
|
|
47
|
+
line: false,
|
|
48
|
+
"model-value": effectiveTab.value,
|
|
49
|
+
"onUpdate:modelValue": onTabChange
|
|
50
|
+
}, {
|
|
51
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
|
|
52
|
+
return openBlock(), createBlock(unref(OTabPane), {
|
|
53
|
+
key: tab.key,
|
|
54
|
+
value: tab.key,
|
|
55
|
+
label: tab.label
|
|
56
|
+
}, null, 8, ["value", "label"]);
|
|
57
|
+
}), 128))]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["model-value"])) : createCommentVNode("", true),
|
|
60
|
+
items.value.length ? (openBlock(), createBlock(unref(OScroller), {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: normalizeClass(["o-community-updates__scroller", { le4: items.value.length <= 3 && !unref(isPhone) }]),
|
|
63
|
+
"disabled-y": "",
|
|
64
|
+
"show-type": items.value.length <= 3 || unref(isPhone) ? "never" : "always",
|
|
65
|
+
size: "small",
|
|
66
|
+
"auto-update-on-scroll-size": ""
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, index) => {
|
|
69
|
+
return openBlock(), createElementBlock("div", {
|
|
70
|
+
key: item.title,
|
|
71
|
+
class: "o-community-updates__item"
|
|
72
|
+
}, [renderSlot(_ctx.$slots, "card", {
|
|
73
|
+
item,
|
|
74
|
+
index,
|
|
75
|
+
tab: effectiveTab.value
|
|
76
|
+
}, () => [createVNode(OCommunityUpdatesCard_default, { item }, null, 8, ["item"])], true)]);
|
|
77
|
+
}), 128))])]),
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, ["class", "show-type"])) : createCommentVNode("", true),
|
|
80
|
+
moreTextValue.value ? (openBlock(), createElementBlock("div", {
|
|
81
|
+
key: 2,
|
|
82
|
+
class: normalizeClass(["o-community-updates__more", { le4: items.value.length <= 3 || unref(isPhone) }])
|
|
83
|
+
}, [createVNode(unref(OLink), {
|
|
84
|
+
class: "o-community-updates__more-link",
|
|
85
|
+
href: __props.moreHref,
|
|
86
|
+
target: "_blank",
|
|
87
|
+
"hover-underline": false
|
|
88
|
+
}, {
|
|
89
|
+
suffix: withCtx(() => [createVNode(unref(OIcon), { class: "more-icon" }, {
|
|
90
|
+
default: withCtx(() => [createVNode(unref(icon_chevron_right_default))]),
|
|
91
|
+
_: 1
|
|
92
|
+
})]),
|
|
93
|
+
default: withCtx(() => [createTextVNode(toDisplayString(moreTextValue.value) + " ", 1)]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["href"])], 2)) : createCommentVNode("", true)
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export { OCommunityUpdates_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
.hover-icon-rotate .o-icon[data-v-cab17fde] {
|
|
2
|
+
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
+
}
|
|
4
|
+
@media (hover: hover) {
|
|
5
|
+
.hover-icon-rotate:hover .o-icon[data-v-cab17fde] {
|
|
6
|
+
transform: rotate(-180deg);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.o-community-updates__tab[data-v-cab17fde] .o-tab-nav-list {
|
|
10
|
+
--tab-nav-gap: 32px;
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 1680px) {
|
|
13
|
+
.o-community-updates__tab[data-v-cab17fde] .o-tab-nav-list {
|
|
14
|
+
--tab-nav-gap: 24px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 840px) {
|
|
18
|
+
.o-community-updates__tab[data-v-cab17fde] .o-tab-nav-list {
|
|
19
|
+
--tab-nav-gap: 16px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.o-community-updates__scroller[data-v-cab17fde] .o-scroller-container {
|
|
23
|
+
padding: 0 12px;
|
|
24
|
+
margin: 0 -12px;
|
|
25
|
+
}
|
|
26
|
+
.o-community-updates__scroller[data-v-cab17fde] .o-scrollbar {
|
|
27
|
+
--scrollbar-height: 100%;
|
|
28
|
+
}
|
|
29
|
+
.o-community-updates__scroller.le4[data-v-cab17fde] .o-scroller-container {
|
|
30
|
+
padding: 0 26px;
|
|
31
|
+
margin: 0 -26px;
|
|
32
|
+
}
|
|
33
|
+
.o-community-updates__list[data-v-cab17fde] {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: stretch;
|
|
36
|
+
flex-wrap: nowrap;
|
|
37
|
+
gap: var(--grid-column-gutter);
|
|
38
|
+
padding-top: 24px;
|
|
39
|
+
padding-bottom: 32px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
}
|
|
43
|
+
@media (max-width: 1680px) {
|
|
44
|
+
.o-community-updates__list[data-v-cab17fde] {
|
|
45
|
+
padding-top: 16px;
|
|
46
|
+
padding-bottom: 24px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: 1200px) {
|
|
50
|
+
.o-community-updates__list[data-v-cab17fde] {
|
|
51
|
+
padding-top: 12px;
|
|
52
|
+
padding-bottom: 16px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
@media (max-width: 840px) {
|
|
56
|
+
.o-community-updates__list[data-v-cab17fde] {
|
|
57
|
+
padding-bottom: 12px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.o-community-updates__list[data-v-cab17fde]::after {
|
|
61
|
+
content: "";
|
|
62
|
+
flex: 0 0 12px;
|
|
63
|
+
margin-left: calc(var(--grid-column-gutter) * -1);
|
|
64
|
+
}
|
|
65
|
+
.o-community-updates__scroller.le4 .o-community-updates__list[data-v-cab17fde]::after {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
.o-community-updates__item[data-v-cab17fde] {
|
|
69
|
+
flex: 0 0 calc(33.33% - var(--grid-column-gutter) * 2 / 3);
|
|
70
|
+
min-width: 0;
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 840px) {
|
|
73
|
+
.o-community-updates__item[data-v-cab17fde] {
|
|
74
|
+
flex-basis: calc(50% - var(--grid-column-gutter) / 2);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.o-community-updates__more[data-v-cab17fde] {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
color: var(--o-color-info2);
|
|
81
|
+
margin-top: var(--grid-column-gutter);
|
|
82
|
+
font-size: 16px;
|
|
83
|
+
line-height: 24px;
|
|
84
|
+
}
|
|
85
|
+
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
86
|
+
.o-community-updates__more[data-v-cab17fde] {
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
line-height: 22px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@media (min-width: 841px) and (max-width: 1200px) {
|
|
92
|
+
.o-community-updates__more[data-v-cab17fde] {
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
line-height: 22px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (min-width: 601px) and (max-width: 840px) {
|
|
98
|
+
.o-community-updates__more[data-v-cab17fde] {
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
line-height: 22px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@media (max-width: 600px) {
|
|
104
|
+
.o-community-updates__more[data-v-cab17fde] {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 18px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.o-community-updates__more .o-community-updates__more-link[data-v-cab17fde] {
|
|
110
|
+
color: var(--o-color-info2);
|
|
111
|
+
}
|
|
112
|
+
@media (hover: hover) {
|
|
113
|
+
.o-community-updates__more .o-community-updates__more-link[data-v-cab17fde]:hover {
|
|
114
|
+
color: var(--o-color-link2);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.o-community-updates__more .more-icon[data-v-cab17fde] {
|
|
118
|
+
font-size: 16px;
|
|
119
|
+
height: 24px;
|
|
120
|
+
}
|
|
121
|
+
.o-community-updates__more.le4[data-v-cab17fde] {
|
|
122
|
+
margin-top: 0;
|
|
123
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import OCommunityUpdatesCard_vue_vue_type_script_setup_true_lang_default from "./OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
import './OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css';
|
|
3
|
+
// src/components/community-updates/OCommunityUpdatesCard.vue
|
|
4
|
+
var OCommunityUpdatesCard_default = OCommunityUpdatesCard_vue_vue_type_script_setup_true_lang_default;
|
|
5
|
+
export { OCommunityUpdatesCard_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CommunityUpdatesItemT } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 动态数据项 */
|
|
4
|
+
item: CommunityUpdatesItemT;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import icon_time_default from "../../_virtual/~icons/components/icon-time.mjs";
|
|
2
|
+
import icon_avatar_line_default from "../../_virtual/~icons/components/icon-avatar-line.mjs";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { OCard, OIcon } from "@opensig/opendesign";
|
|
5
|
+
// src/components/community-updates/OCommunityUpdatesCard.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = { class: "o-community-updates-card__desc" };
|
|
7
|
+
var _hoisted_2 = { class: "o-community-updates-card__info" };
|
|
8
|
+
var _hoisted_3 = { key: 0 };
|
|
9
|
+
var _hoisted_4 = { key: 1 };
|
|
10
|
+
var OCommunityUpdatesCard_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
11
|
+
__name: "OCommunityUpdatesCard",
|
|
12
|
+
props: { item: {} },
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const authorText = computed(() => Array.isArray(props.item.author) ? props.item.author.join(" ") : props.item.author);
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(OCard), {
|
|
18
|
+
class: "o-community-updates-card",
|
|
19
|
+
title: __props.item.title,
|
|
20
|
+
"title-row": 2,
|
|
21
|
+
"title-max-row": 2,
|
|
22
|
+
cover: __props.item.cover,
|
|
23
|
+
"cover-ratio": 2.4,
|
|
24
|
+
href: __props.item.href,
|
|
25
|
+
hoverable: "",
|
|
26
|
+
cursor: "pointer"
|
|
27
|
+
}, createSlots({ _: 2 }, [__props.item.description ? {
|
|
28
|
+
name: "detail",
|
|
29
|
+
fn: withCtx(() => [createElementVNode("p", _hoisted_1, toDisplayString(__props.item.description), 1)]),
|
|
30
|
+
key: "0"
|
|
31
|
+
} : void 0, __props.item.date || authorText.value ? {
|
|
32
|
+
name: "footer",
|
|
33
|
+
fn: withCtx(() => [createElementVNode("div", _hoisted_2, [__props.item.date ? (openBlock(), createElementBlock("span", _hoisted_3, [createVNode(unref(OIcon), null, {
|
|
34
|
+
default: withCtx(() => [createVNode(unref(icon_time_default))]),
|
|
35
|
+
_: 1
|
|
36
|
+
}), createTextVNode(" " + toDisplayString(__props.item.date), 1)])) : createCommentVNode("", true), authorText.value ? (openBlock(), createElementBlock("span", _hoisted_4, [createVNode(unref(OIcon), null, {
|
|
37
|
+
default: withCtx(() => [createVNode(unref(icon_avatar_line_default))]),
|
|
38
|
+
_: 1
|
|
39
|
+
}), createTextVNode(" " + toDisplayString(authorText.value), 1)])) : createCommentVNode("", true)])]),
|
|
40
|
+
key: "1"
|
|
41
|
+
} : void 0]), 1032, [
|
|
42
|
+
"title",
|
|
43
|
+
"cover",
|
|
44
|
+
"href"
|
|
45
|
+
]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export { OCommunityUpdatesCard_vue_vue_type_script_setup_true_lang_default as default };
|