@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
|
@@ -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/dist/vue.esm-bundler.js').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
28
|
+
"update:activeTab": (value: string) => any;
|
|
29
|
+
} & {
|
|
30
|
+
"tab-change": (value: string) => any;
|
|
31
|
+
}, string, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').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,7 @@
|
|
|
1
|
+
import { CommunityUpdatesItemT } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 动态数据项 */
|
|
4
|
+
item: CommunityUpdatesItemT;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { App } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
declare const OCommunityUpdates: {
|
|
3
|
+
new (...args: any[]): import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
|
9
|
+
"update:activeTab": (value: string) => any;
|
|
10
|
+
} & {
|
|
11
|
+
"tab-change": (value: string) => any;
|
|
12
|
+
}, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, {}, HTMLDivElement, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & import('../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
71
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
72
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, {}, false, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, {}, any, import('../../../vue/dist/vue.esm-bundler.js').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/dist/vue.esm-bundler.js').ComponentOptionsBase<Readonly<{
|
|
86
|
+
item: import('../../index').CommunityUpdatesItemT;
|
|
87
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../../../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('../../../vue/dist/vue.esm-bundler.js').GlobalComponents, import('../../../vue/dist/vue.esm-bundler.js').GlobalDirectives, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions> & import('../../../vue/dist/vue.esm-bundler.js').VNodeProps & import('../../../vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('../../../vue/dist/vue.esm-bundler.js').ComponentCustomProps & {
|
|
88
|
+
install(app: App): void;
|
|
89
|
+
};
|
|
90
|
+
export { OCommunityUpdates, OCommunityUpdatesCard };
|
|
91
|
+
export * from './types';
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|