@opendesign-plus-test/components 0.0.1-rc.267 → 0.0.1-rc.268
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/activity/index.d.ts +9 -9
- package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/components/anchor-bar/index.d.ts +9 -9
- package/dist/components/article/index.d.ts +25 -25
- package/dist/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +6 -2
- package/dist/components/article-anchor/index.d.ts +9 -9
- package/dist/components/article-pagination/index.d.ts +17 -17
- package/dist/components/banner/index.d.ts +6 -6
- package/dist/components/brand/index.d.ts +15 -15
- package/dist/components/doc-layout/ODocLayout.vue.d.ts +4 -8
- package/dist/components/doc-layout/index.d.ts +0 -9
- package/dist/components/events/index.d.ts +20 -20
- package/dist/components/footer/index.d.ts +3 -3
- package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/components/header/index.d.ts +28 -28
- package/dist/components/header-search/index.d.ts +13 -13
- package/dist/components/logo-swiper/index.d.ts +11 -11
- package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/components/meeting/index.d.ts +51 -51
- package/dist/components/org/index.d.ts +9 -9
- package/dist/components/recursion-menu/index.d.ts +3 -3
- package/dist/components/search/index.d.ts +11 -11
- package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +0 -2
- package/dist/components/search-doc-result/index.d.ts +0 -6
- package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/components/search-result/index.d.ts +31 -31
- package/dist/components/sig/index.d.ts +15 -15
- package/dist/components/summit/index.d.ts +12 -12
- package/dist/components/user-center/OAppHeader.vue.d.ts +1 -0
- package/dist/components/user-center/index.d.ts +21 -18
- package/dist/components/video/index.d.ts +3 -3
- package/dist/components.cjs.js +4 -4
- package/dist/components.css +1 -1
- package/dist/components.es.js +1736 -1840
- package/dist/index.d.ts +0 -1
- package/dist/treeshaking/components/activity/index.d.ts +9 -9
- package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
- package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
- package/dist/treeshaking/components/article/index.d.ts +25 -25
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_ccc0d33c_lang.css +47 -0
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +6 -2
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +18 -10
- package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_2ae25d23_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3c75b66d_lang.css} +13 -13
- package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
- package/dist/treeshaking/components/article-pagination/OArticlePagination.mjs +2 -2
- package/dist/treeshaking/components/article-pagination/{OArticlePagination.vue_vue_type_style_index_0_scoped_56848f78_lang.css → OArticlePagination.vue_vue_type_style_index_0_scoped_8a8cf9f8_lang.css} +59 -46
- package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
- package/dist/treeshaking/components/banner/index.d.ts +6 -6
- package/dist/treeshaking/components/brand/index.d.ts +15 -15
- package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +4 -8
- package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +24 -29
- package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_966cd0b4_lang.css} +46 -66
- package/dist/treeshaking/components/doc-layout/index.d.ts +0 -9
- package/dist/treeshaking/components/events/index.d.ts +20 -20
- package/dist/treeshaking/components/footer/index.d.ts +3 -3
- package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
- package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
- package/dist/treeshaking/components/header/index.d.ts +28 -28
- package/dist/treeshaking/components/header-search/index.d.ts +13 -13
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +3 -2
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_9cd74070_lang.css +290 -0
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_1_lang.css +20 -0
- package/dist/treeshaking/components/html-viewer/utils.mjs +11 -1
- package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
- package/dist/treeshaking/components/markdown/OMarkdown.vue_vue_type_style_index_0_lang.css +12 -12
- package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
- package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
- package/dist/treeshaking/components/meeting/index.d.ts +51 -51
- package/dist/treeshaking/components/org/index.d.ts +9 -9
- package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
- package/dist/treeshaking/components/search/index.d.ts +11 -11
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.mjs +2 -2
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.d.ts +0 -2
- package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue_vue_type_script_setup_true_lang.mjs +3 -7
- package/dist/treeshaking/components/search-doc-result/{OSearchDocResult.vue_vue_type_style_index_0_scoped_9eb9bdd4_lang.css → OSearchDocResult.vue_vue_type_style_index_0_scoped_25235996_lang.css} +31 -31
- package/dist/treeshaking/components/search-doc-result/index.d.ts +0 -6
- package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
- package/dist/treeshaking/components/search-result/OSearchResult.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_a8453c65_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_9d8dd556_lang.css} +30 -30
- package/dist/treeshaking/components/search-result/OSearchResultHeader.mjs +2 -2
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
- package/dist/treeshaking/components/search-result/OSearchResultHeader.vue_vue_type_script_setup_true_lang.mjs +3 -2
- package/dist/treeshaking/components/search-result/{OSearchResultHeader.vue_vue_type_style_index_0_scoped_48a10021_lang.css → OSearchResultHeader.vue_vue_type_style_index_0_scoped_70bc0c95_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_418a332e_lang.css → OSearchResultItem.vue_vue_type_style_index_0_scoped_0914fdb7_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 +2 -5
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedback.vue_vue_type_style_index_0_scoped_179b412f_lang.css → OSearchResultFeedback.vue_vue_type_style_index_0_scoped_72958e79_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 +2 -5
- package/dist/treeshaking/components/search-result/components/{OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_33f2c617_lang.css → OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_4cd638c6_lang.css} +38 -38
- package/dist/treeshaking/components/search-result/index.d.ts +31 -31
- package/dist/treeshaking/components/sig/index.d.ts +15 -15
- package/dist/treeshaking/components/summit/index.d.ts +12 -12
- package/dist/treeshaking/components/user-center/OAppHeader.mjs +2 -2
- package/dist/treeshaking/components/user-center/OAppHeader.vue.d.ts +1 -0
- package/dist/treeshaking/components/user-center/OAppHeader.vue_vue_type_script_setup_true_lang.mjs +7 -1
- package/dist/treeshaking/components/user-center/{OAppHeader.vue_vue_type_style_index_0_scoped_c5aea772_lang.css → OAppHeader.vue_vue_type_style_index_0_scoped_ce3899a1_lang.css} +3 -3
- package/dist/treeshaking/components/user-center/OUserInfo.mjs +3 -3
- package/dist/treeshaking/components/user-center/OUserInfo.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/dist/treeshaking/components/user-center/{OUserInfo.vue_vue_type_style_index_0_scoped_c12d3f54_lang.css → OUserInfo.vue_vue_type_style_index_0_scoped_f60dfe3e_lang.css} +109 -109
- package/dist/treeshaking/components/user-center/{OUserInfo.vue_vue_type_style_index_2_scoped_c12d3f54_lang.css → OUserInfo.vue_vue_type_style_index_2_scoped_f60dfe3e_lang.css} +4 -4
- package/dist/treeshaking/components/user-center/index.d.ts +21 -18
- package/dist/treeshaking/components/video/index.d.ts +3 -3
- package/dist/treeshaking/index.d.ts +0 -1
- package/dist/treeshaking/index.mjs +1 -2
- package/package.json +1 -1
- package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +0 -46
- package/dist/components/community-updates/OCommunityUpdatesCard.vue.d.ts +0 -7
- package/dist/components/community-updates/index.d.ts +0 -91
- package/dist/components/community-updates/types.d.ts +0 -36
- package/dist/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
- package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_8190c89e_lang.css +0 -47
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +0 -6
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +0 -46
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +0 -100
- package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_style_index_0_scoped_cab17fde_lang.css +0 -123
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.mjs +0 -5
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue.d.ts +0 -7
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs +0 -49
- package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +0 -130
- package/dist/treeshaking/components/community-updates/index.d.ts +0 -91
- package/dist/treeshaking/components/community-updates/index.mjs +0 -10
- package/dist/treeshaking/components/community-updates/types.d.ts +0 -36
- package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css +0 -196
- package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue.d.ts +0 -664
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon[data-v-8190c89e] {
|
|
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-8190c89e] {
|
|
6
|
-
transform: rotate(-180deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.o-article-anchor--mobile[data-v-8190c89e] {
|
|
10
|
-
--o-article-anchor-radius: var(--v3d1ce759);
|
|
11
|
-
}
|
|
12
|
-
.o-article-anchor--mobile__fab[data-v-8190c89e] {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
width: 40px;
|
|
17
|
-
height: 40px;
|
|
18
|
-
border: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
background-color: var(--o-color-fill2);
|
|
21
|
-
border-radius: var(--o-article-anchor-radius);
|
|
22
|
-
box-shadow: var(--o-shadow-2);
|
|
23
|
-
}
|
|
24
|
-
.o-article-anchor--mobile__fab-icon[data-v-8190c89e] {
|
|
25
|
-
font-size: 24px;
|
|
26
|
-
color: var(--o-color-info2);
|
|
27
|
-
line-height: 1;
|
|
28
|
-
}
|
|
29
|
-
.o-article-anchor--mobile__sheet-title[data-v-8190c89e] {
|
|
30
|
-
color: var(--o-color-info1);
|
|
31
|
-
font-weight: 600;
|
|
32
|
-
font-size: 18px;
|
|
33
|
-
line-height: 26px;
|
|
34
|
-
}
|
|
35
|
-
.o-article-anchor--mobile__menu[data-v-8190c89e] {
|
|
36
|
-
--menu-width: 100%;
|
|
37
|
-
}
|
|
38
|
-
.o-article-anchor--mobile__menu-sub[data-v-8190c89e] {
|
|
39
|
-
padding-left: 16px;
|
|
40
|
-
}
|
|
41
|
-
.o-article-anchor--mobile__menu-item[data-v-8190c89e] {
|
|
42
|
-
padding: 12px 16px;
|
|
43
|
-
}
|
|
44
|
-
.o-article-anchor--mobile__menu-subitem[data-v-8190c89e] {
|
|
45
|
-
padding: 12px 16px;
|
|
46
|
-
padding-left: 28px;
|
|
47
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
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 };
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
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 };
|
|
@@ -1,123 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
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 };
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,49 +0,0 @@
|
|
|
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 };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
.hover-icon-rotate .o-icon {
|
|
2
|
-
transition: all var(--o-duration-m1) var(--o-easing-standard-in);
|
|
3
|
-
}
|
|
4
|
-
@media (hover: hover) {
|
|
5
|
-
.hover-icon-rotate:hover .o-icon {
|
|
6
|
-
transform: rotate(-180deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.o-community-updates-card {
|
|
10
|
-
--card-main-padding: var(--o-gap-5);
|
|
11
|
-
--card-radius: var(--o-radius-xs);
|
|
12
|
-
height: 100%;
|
|
13
|
-
}
|
|
14
|
-
@media (hover: hover) {
|
|
15
|
-
.o-community-updates-card:hover .o-card-title {
|
|
16
|
-
color: var(--o-color-primary1);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.o-community-updates-card .o-card-main {
|
|
20
|
-
--card-main-padding: 24px 32px;
|
|
21
|
-
}
|
|
22
|
-
@media (max-width: 1680px) {
|
|
23
|
-
.o-community-updates-card .o-card-main {
|
|
24
|
-
--card-main-padding: 16px 24px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
@media (max-width: 1200px) {
|
|
28
|
-
.o-community-updates-card .o-card-main {
|
|
29
|
-
--card-main-padding: 12px 16px;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
@media (max-width: 840px) {
|
|
33
|
-
.o-community-updates-card .o-card-main {
|
|
34
|
-
--card-main-padding: 12px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.o-community-updates-card .o-card-cover {
|
|
38
|
-
padding: 0;
|
|
39
|
-
}
|
|
40
|
-
.o-community-updates-card .o-card-cover-img,
|
|
41
|
-
.o-community-updates-card .o-card-cover-img img {
|
|
42
|
-
--card-cover-radius: 4px 4px 0 0;
|
|
43
|
-
}
|
|
44
|
-
.o-community-updates-card .o-card-main,
|
|
45
|
-
.o-community-updates-card .o-card-main-wrap {
|
|
46
|
-
min-width: 0;
|
|
47
|
-
}
|
|
48
|
-
.o-community-updates-card .o-card-cover-img img {
|
|
49
|
-
object-position: center top;
|
|
50
|
-
}
|
|
51
|
-
.o-community-updates-card__desc {
|
|
52
|
-
margin: 0;
|
|
53
|
-
width: 100%;
|
|
54
|
-
color: var(--o-color-info2);
|
|
55
|
-
position: relative;
|
|
56
|
-
height: 2lh;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
}
|
|
59
|
-
.o-community-updates-card__desc::after {
|
|
60
|
-
content: "";
|
|
61
|
-
position: absolute;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
width: 4em;
|
|
65
|
-
height: 1lh;
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
background-image: linear-gradient(90deg, rgba(var(--o-grey-1), 0) 0%, rgba(var(--o-grey-1), 1) 80%);
|
|
68
|
-
}
|
|
69
|
-
[data-o-theme*=dark] .o-community-updates-card__desc::after {
|
|
70
|
-
background-image: linear-gradient(90deg, rgba(var(--o-grey-4), 0) 0%, rgba(var(--o-grey-4), 1) 80%);
|
|
71
|
-
}
|
|
72
|
-
.o-community-updates-card__info {
|
|
73
|
-
color: var(--o-color-info3);
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
flex-wrap: wrap;
|
|
77
|
-
font-size: 12px;
|
|
78
|
-
line-height: 18px;
|
|
79
|
-
}
|
|
80
|
-
@media (min-width: 1201px) and (max-width: 1680px) {
|
|
81
|
-
.o-community-updates-card__info {
|
|
82
|
-
font-size: 12px;
|
|
83
|
-
line-height: 18px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
@media (min-width: 841px) and (max-width: 1200px) {
|
|
87
|
-
.o-community-updates-card__info {
|
|
88
|
-
font-size: 12px;
|
|
89
|
-
line-height: 18px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
@media (min-width: 601px) and (max-width: 840px) {
|
|
93
|
-
.o-community-updates-card__info {
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
line-height: 18px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
@media (max-width: 600px) {
|
|
99
|
-
.o-community-updates-card__info {
|
|
100
|
-
font-size: 12px;
|
|
101
|
-
line-height: 18px;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.o-community-updates-card__info span {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
}
|
|
108
|
-
.o-community-updates-card__info span + span {
|
|
109
|
-
margin-left: var(--o-gap-4);
|
|
110
|
-
}
|
|
111
|
-
@media (max-width: 1680px) {
|
|
112
|
-
.o-community-updates-card__info span + span {
|
|
113
|
-
margin-left: var(--o-gap-3);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
@media (max-width: 1200px) {
|
|
117
|
-
.o-community-updates-card__info span + span {
|
|
118
|
-
margin-left: var(--o-gap-2);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.o-community-updates-card__info span .o-icon {
|
|
122
|
-
display: inline-flex;
|
|
123
|
-
margin-right: var(--o-gap-2);
|
|
124
|
-
font-size: 16px;
|
|
125
|
-
}
|
|
126
|
-
.o-community-updates-card__info span .o-icon svg {
|
|
127
|
-
width: 16px;
|
|
128
|
-
height: 16px;
|
|
129
|
-
fill: currentColor;
|
|
130
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
declare const OCommunityUpdates: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
-
activeTab?: string;
|
|
5
|
-
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
6
|
-
"onTab-change"?: ((value: string) => any) | undefined;
|
|
7
|
-
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
-
"update:activeTab": (value: string) => any;
|
|
10
|
-
} & {
|
|
11
|
-
"tab-change": (value: string) => any;
|
|
12
|
-
}, import('vue').PublicProps, {
|
|
13
|
-
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
14
|
-
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
15
|
-
moreHref: string;
|
|
16
|
-
moreText: string;
|
|
17
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
18
|
-
P: {};
|
|
19
|
-
B: {};
|
|
20
|
-
D: {};
|
|
21
|
-
C: {};
|
|
22
|
-
M: {};
|
|
23
|
-
Defaults: {};
|
|
24
|
-
}, Readonly<{
|
|
25
|
-
activeTab?: string;
|
|
26
|
-
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
27
|
-
"onTab-change"?: ((value: string) => any) | undefined;
|
|
28
|
-
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
29
|
-
}>, {}, {}, {}, {}, {
|
|
30
|
-
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
31
|
-
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
32
|
-
moreHref: string;
|
|
33
|
-
moreText: string;
|
|
34
|
-
}>;
|
|
35
|
-
__isFragment?: never;
|
|
36
|
-
__isTeleport?: never;
|
|
37
|
-
__isSuspense?: never;
|
|
38
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
39
|
-
activeTab?: string;
|
|
40
|
-
} & import('../../index').CommunityUpdatesPropsT> & Readonly<{
|
|
41
|
-
"onTab-change"?: ((value: string) => any) | undefined;
|
|
42
|
-
"onUpdate:activeTab"?: ((value: string) => any) | undefined;
|
|
43
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
|
-
"update:activeTab": (value: string) => any;
|
|
45
|
-
} & {
|
|
46
|
-
"tab-change": (value: string) => any;
|
|
47
|
-
}, string, {
|
|
48
|
-
data: import('../../index').CommunityUpdatesItemT[] | Record<string, import('../../index').CommunityUpdatesItemT[]>;
|
|
49
|
-
tabs: import('../../index').CommunityUpdatesTabT[];
|
|
50
|
-
moreHref: string;
|
|
51
|
-
moreText: string;
|
|
52
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
53
|
-
$slots: Readonly<{
|
|
54
|
-
card?: (props: {
|
|
55
|
-
item: import('../../index').CommunityUpdatesItemT;
|
|
56
|
-
index: number;
|
|
57
|
-
tab: string;
|
|
58
|
-
}) => any;
|
|
59
|
-
}> & {
|
|
60
|
-
card?: (props: {
|
|
61
|
-
item: import('../../index').CommunityUpdatesItemT;
|
|
62
|
-
index: number;
|
|
63
|
-
tab: string;
|
|
64
|
-
}) => any;
|
|
65
|
-
};
|
|
66
|
-
}) & {
|
|
67
|
-
install(app: App): void;
|
|
68
|
-
};
|
|
69
|
-
declare const OCommunityUpdatesCard: {
|
|
70
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
71
|
-
item: import('../../index').CommunityUpdatesItemT;
|
|
72
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
73
|
-
P: {};
|
|
74
|
-
B: {};
|
|
75
|
-
D: {};
|
|
76
|
-
C: {};
|
|
77
|
-
M: {};
|
|
78
|
-
Defaults: {};
|
|
79
|
-
}, Readonly<{
|
|
80
|
-
item: import('../../index').CommunityUpdatesItemT;
|
|
81
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
82
|
-
__isFragment?: never;
|
|
83
|
-
__isTeleport?: never;
|
|
84
|
-
__isSuspense?: never;
|
|
85
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
86
|
-
item: import('../../index').CommunityUpdatesItemT;
|
|
87
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
88
|
-
install(app: App): void;
|
|
89
|
-
};
|
|
90
|
-
export { OCommunityUpdates, OCommunityUpdatesCard };
|
|
91
|
-
export * from './types';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import OCommunityUpdatesCard_default from "./OCommunityUpdatesCard.mjs";
|
|
2
|
-
import OCommunityUpdates_default from "./OCommunityUpdates.mjs";
|
|
3
|
-
// src/components/community-updates/index.ts
|
|
4
|
-
var OCommunityUpdates = Object.assign(OCommunityUpdates_default, { install(app) {
|
|
5
|
-
app.component("OCommunityUpdates", OCommunityUpdates_default);
|
|
6
|
-
} });
|
|
7
|
-
var OCommunityUpdatesCard = Object.assign(OCommunityUpdatesCard_default, { install(app) {
|
|
8
|
-
app.component("OCommunityUpdatesCard", OCommunityUpdatesCard_default);
|
|
9
|
-
} });
|
|
10
|
-
export { OCommunityUpdates, OCommunityUpdatesCard };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** 社区动态 Tab 项 */
|
|
2
|
-
export interface CommunityUpdatesTabT {
|
|
3
|
-
/** Tab 唯一标识,对应 data 对象形式中的 key */
|
|
4
|
-
key: string;
|
|
5
|
-
/** Tab 文案 */
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
/** 社区动态列表项(参考社区官网「社区动态」楼层的博客/新闻卡片) */
|
|
9
|
-
export interface CommunityUpdatesItemT {
|
|
10
|
-
/** 标题(最多展示两行,超出省略) */
|
|
11
|
-
title: string;
|
|
12
|
-
/** 摘要(渐隐省略) */
|
|
13
|
-
description?: string;
|
|
14
|
-
/** 封面图地址,不传时不展示封面 */
|
|
15
|
-
cover?: string;
|
|
16
|
-
/** 跳转链接,设置后整卡以链接渲染 */
|
|
17
|
-
href?: string;
|
|
18
|
-
/** 日期(footer 展示,传格式化后的字符串),不传时不渲染 */
|
|
19
|
-
date?: string;
|
|
20
|
-
/** 作者(footer 展示),不传时不渲染 */
|
|
21
|
-
author?: string | string[];
|
|
22
|
-
/** 透传自定义字段(#card 插槽中可取用) */
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}
|
|
25
|
-
export interface CommunityUpdatesPropsT {
|
|
26
|
-
/** 列表数据:数组为单列表;对象形式(key 为 Tab 的 key)配合 tabs 按当前 Tab 展示对应数据 */
|
|
27
|
-
data?: CommunityUpdatesItemT[] | Record<string, CommunityUpdatesItemT[]>;
|
|
28
|
-
/** Tab 配置,传入时在标题下方渲染 Tab 栏 */
|
|
29
|
-
tabs?: CommunityUpdatesTabT[];
|
|
30
|
-
/** 当前激活的 Tab key(v-model:active-tab,defineModel),未绑定时默认取第一个 Tab */
|
|
31
|
-
activeTab?: string;
|
|
32
|
-
/** 底部「查看更多」跳转链接,未传时 OLink 无跳转 */
|
|
33
|
-
moreHref?: string;
|
|
34
|
-
/** 底部更多文案,默认取 i18n「查看更多」;传空字符串时不渲染底部更多 */
|
|
35
|
-
moreText?: string;
|
|
36
|
-
}
|