@opendesign-plus/components 0.0.1-rc.104 → 0.0.1-rc.105

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 (58) hide show
  1. package/dist/chunk-element-plus.cjs.js +1 -1
  2. package/dist/chunk-element-plus.es.js +8 -2
  3. package/dist/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +2 -6
  4. package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
  5. package/dist/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
  6. package/dist/components/community-updates/index.d.ts +91 -0
  7. package/dist/components/community-updates/types.d.ts +36 -0
  8. package/dist/components/doc-layout/ODocLayout.vue.d.ts +8 -4
  9. package/dist/components/doc-layout/index.d.ts +9 -0
  10. package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +2 -0
  11. package/dist/components/search-doc-result/index.d.ts +6 -0
  12. package/dist/components.cjs.js +4 -4
  13. package/dist/components.css +1 -1
  14. package/dist/components.es.js +1817 -1699
  15. package/dist/index.d.ts +1 -0
  16. package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +10 -4
  17. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +2 -2
  18. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +1 -1
  19. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_8190c89e_lang.css +47 -0
  20. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +2 -2
  21. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +2 -6
  22. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +10 -18
  23. package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPad.vue_vue_type_style_index_0_scoped_3c75b66d_lang.css → ArticleAnchorPad.vue_vue_type_style_index_0_scoped_2ae25d23_lang.css} +13 -13
  24. package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +6 -0
  25. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
  26. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +100 -0
  27. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_style_index_0_scoped_1da301c6_lang.css +107 -0
  28. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.mjs +5 -0
  29. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
  30. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs +49 -0
  31. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +130 -0
  32. package/dist/treeshaking/components/community-updates/index.d.ts +91 -0
  33. package/dist/treeshaking/components/community-updates/index.mjs +10 -0
  34. package/dist/treeshaking/components/community-updates/types.d.ts +36 -0
  35. package/dist/treeshaking/components/cookie-notice/OCookieNotice.mjs +2 -3
  36. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_script_setup_true_lang.mjs +4 -1
  37. package/dist/treeshaking/components/cookie-notice/{OCookieNotice.vue_vue_type_style_index_1_scoped_f4e92a4b_lang.css → OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css} +112 -97
  38. package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +2 -2
  39. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +8 -4
  40. package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +29 -24
  41. package/dist/treeshaking/components/doc-layout/{ODocLayout.vue_vue_type_style_index_0_scoped_966cd0b4_lang.css → ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css} +66 -46
  42. package/dist/treeshaking/components/doc-layout/index.d.ts +9 -0
  43. package/dist/treeshaking/components/element-plus/OElCookieNotice.mjs +2 -2
  44. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_script_setup_true_lang.mjs +4 -1
  45. package/dist/treeshaking/components/element-plus/{OElCookieNotice.vue_vue_type_style_index_1_scoped_8ed27ecb_lang.css → OElCookieNotice.vue_vue_type_style_index_1_scoped_d9e2bcf9_lang.css} +171 -165
  46. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.mjs +2 -2
  47. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.d.ts +2 -0
  48. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue_vue_type_script_setup_true_lang.mjs +7 -3
  49. package/dist/treeshaking/components/search-doc-result/{OSearchDocResult.vue_vue_type_style_index_0_scoped_25235996_lang.css → OSearchDocResult.vue_vue_type_style_index_0_scoped_9eb9bdd4_lang.css} +31 -31
  50. package/dist/treeshaking/components/search-doc-result/index.d.ts +6 -0
  51. package/dist/treeshaking/components/search-result/OSearchResult.mjs +2 -2
  52. package/dist/treeshaking/components/search-result/OSearchResult.vue_vue_type_script_setup_true_lang.mjs +1 -1
  53. package/dist/treeshaking/components/search-result/{OSearchResult.vue_vue_type_style_index_0_scoped_9d8dd556_lang.css → OSearchResult.vue_vue_type_style_index_0_scoped_a8453c65_lang.css} +30 -30
  54. package/dist/treeshaking/index.d.ts +1 -0
  55. package/dist/treeshaking/index.mjs +2 -1
  56. package/package.json +1 -1
  57. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_ccc0d33c_lang.css +0 -47
  58. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_style_index_0_lang.css +0 -35
@@ -0,0 +1,130 @@
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
+ }
@@ -0,0 +1,91 @@
1
+ import { App } from 'vue';
2
+ declare const OCommunityUpdates: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
+ activeTab?: string;
5
+ } & import('./types').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('./types').CommunityUpdatesItemT[] | Record<string, import('./types').CommunityUpdatesItemT[]>;
14
+ tabs: import('./types').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('./types').CommunityUpdatesPropsT> & Readonly<{
27
+ "onTab-change"?: ((value: string) => any) | undefined;
28
+ "onUpdate:activeTab"?: ((value: string) => any) | undefined;
29
+ }>, {}, {}, {}, {}, {
30
+ data: import('./types').CommunityUpdatesItemT[] | Record<string, import('./types').CommunityUpdatesItemT[]>;
31
+ tabs: import('./types').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('./types').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('./types').CommunityUpdatesItemT[] | Record<string, import('./types').CommunityUpdatesItemT[]>;
49
+ tabs: import('./types').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('./types').CommunityUpdatesItemT;
56
+ index: number;
57
+ tab: string;
58
+ }) => any;
59
+ }> & {
60
+ card?: (props: {
61
+ item: import('./types').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('./types').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('./types').CommunityUpdatesItemT;
81
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
82
+ __isFragment?: never;
83
+ __isTeleport?: never;
84
+ __isSuspense?: never;
85
+ } & import('vue').ComponentOptionsBase<Readonly<{
86
+ item: import('./types').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';
@@ -0,0 +1,10 @@
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 };
@@ -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
+ }
@@ -1,7 +1,6 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import OCookieNotice_vue_vue_type_script_setup_true_lang_default from "./OCookieNotice.vue_vue_type_script_setup_true_lang.mjs";
3
- import './OCookieNotice.vue_vue_type_style_index_0_lang.css';
4
- import './OCookieNotice.vue_vue_type_style_index_1_scoped_f4e92a4b_lang.css';
3
+ import './OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css';
5
4
  // src/components/cookie-notice/OCookieNotice.vue
6
- var OCookieNotice_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OCookieNotice_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f4e92a4b"]]);
5
+ var OCookieNotice_default = /*#__PURE__*/ _plugin_vue_export_helper_default(OCookieNotice_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a7993ee9"]]);
7
6
  export { OCookieNotice_default as default };
@@ -68,7 +68,10 @@ var OCookieNotice_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
68
68
  const isZh = computed(() => locale.value === "zh");
69
69
  const cookieNoticeRef = ref();
70
70
  const enableGrid = computed(() => {
71
- if (cookieNoticeRef.value) return !!getComputedStyle(cookieNoticeRef.value).getPropertyValue("--grid-content-width");
71
+ if (cookieNoticeRef.value) {
72
+ const cssProperties = getComputedStyle(cookieNoticeRef.value);
73
+ return !!cssProperties.getPropertyValue("--o-r-grid-section-width") || !!cssProperties.getPropertyValue("--grid-content-width");
74
+ }
72
75
  return false;
73
76
  });
74
77
  const cookieKey = computed(() => isZh.value ? COOKIE_KEY_ZH : COOKIE_KEY_EN);