@opendesign-plus-test/components 0.0.1-rc.243 → 0.0.1-rc.245

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 (109) hide show
  1. package/dist/components/activity/index.d.ts +9 -9
  2. package/dist/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
  3. package/dist/components/anchor-bar/index.d.ts +9 -9
  4. package/dist/components/article/OArticle.vue.d.ts +14 -196
  5. package/dist/components/article/index.d.ts +50 -151
  6. package/dist/components/article-anchor/index.d.ts +9 -9
  7. package/dist/components/article-pagination/index.d.ts +17 -17
  8. package/dist/components/banner/index.d.ts +6 -6
  9. package/dist/components/brand/index.d.ts +15 -15
  10. package/dist/components/events/index.d.ts +20 -20
  11. package/dist/components/footer/index.d.ts +3 -3
  12. package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
  13. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  14. package/dist/components/header/index.d.ts +28 -28
  15. package/dist/components/header-search/index.d.ts +13 -13
  16. package/dist/components/logo-swiper/index.d.ts +11 -11
  17. package/dist/components/markdown/OMarkdown.vue.d.ts +16 -7
  18. package/dist/components/markdown/index.d.ts +45 -13
  19. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  20. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  21. package/dist/components/meeting/index.d.ts +51 -51
  22. package/dist/components/org/index.d.ts +9 -9
  23. package/dist/components/recursion-menu/index.d.ts +3 -3
  24. package/dist/components/search/index.d.ts +11 -11
  25. package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +3 -3
  26. package/dist/components/search-doc-result/index.d.ts +8 -8
  27. package/dist/components/search-result/OSearchResult.vue.d.ts +2 -2
  28. package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  29. package/dist/components/search-result/index.d.ts +31 -31
  30. package/dist/components/sig/index.d.ts +15 -15
  31. package/dist/components/summit/index.d.ts +12 -12
  32. package/dist/components/user-center/index.d.ts +18 -18
  33. package/dist/components/video/index.d.ts +3 -3
  34. package/dist/components.cjs.js +44 -44
  35. package/dist/components.css +1 -1
  36. package/dist/components.es.js +9808 -10037
  37. package/dist/index.d.ts +0 -1
  38. package/dist/treeshaking/components/activity/index.d.ts +9 -9
  39. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
  40. package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
  41. package/dist/treeshaking/components/article/OArticle.css +124 -18
  42. package/dist/treeshaking/components/article/OArticle.vue.d.ts +14 -196
  43. package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
  44. package/dist/treeshaking/components/article/OArticle.vue2.mjs +82 -48
  45. package/dist/treeshaking/components/article/index.d.ts +50 -151
  46. package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
  47. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
  48. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +5 -4
  49. package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
  50. package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
  51. package/dist/treeshaking/components/banner/index.d.ts +6 -6
  52. package/dist/treeshaking/components/brand/index.d.ts +15 -15
  53. package/dist/treeshaking/components/events/index.d.ts +20 -20
  54. package/dist/treeshaking/components/footer/index.d.ts +3 -3
  55. package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
  56. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  57. package/dist/treeshaking/components/header/index.d.ts +28 -28
  58. package/dist/treeshaking/components/header-search/index.d.ts +13 -13
  59. package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
  60. package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +16 -7
  61. package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
  62. package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +36 -47
  63. package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
  64. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +261 -0
  65. package/dist/treeshaking/components/{article/components/DocTitle.vue.d.ts → markdown/components/MarkdownPageTitle.vue.d.ts} +5 -6
  66. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +7 -0
  67. package/dist/treeshaking/components/{article/components/DocTitle.vue2.mjs → markdown/components/MarkdownPageTitle.vue2.mjs} +80 -131
  68. package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
  69. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
  70. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +5 -11
  71. package/dist/treeshaking/components/markdown/index.d.ts +45 -13
  72. package/dist/treeshaking/components/markdown/replacer/h1.d.ts +11 -0
  73. package/dist/treeshaking/components/markdown/replacer/h1.mjs +29 -0
  74. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  75. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  76. package/dist/treeshaking/components/meeting/index.d.ts +51 -51
  77. package/dist/treeshaking/components/org/index.d.ts +9 -9
  78. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
  79. package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
  80. package/dist/treeshaking/components/search/index.d.ts +11 -11
  81. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  82. package/dist/treeshaking/components/search-result/index.d.ts +31 -31
  83. package/dist/treeshaking/components/sig/index.d.ts +15 -15
  84. package/dist/treeshaking/components/summit/index.d.ts +12 -12
  85. package/dist/treeshaking/components/user-center/index.d.ts +18 -18
  86. package/dist/treeshaking/components/user-center/index.mjs +0 -2
  87. package/dist/treeshaking/components/video/index.d.ts +3 -3
  88. package/dist/treeshaking/index.d.ts +0 -1
  89. package/dist/treeshaking/index.mjs +0 -2
  90. package/package.json +4 -4
  91. package/dist/components/article/components/ArticleTitle.vue.d.ts +0 -22
  92. package/dist/components/article/components/DocTitle.vue.d.ts +0 -24
  93. package/dist/components/doc-layout/ODocLayout.vue.d.ts +0 -38
  94. package/dist/components/doc-layout/index.d.ts +0 -59
  95. package/dist/components/doc-layout/types.d.ts +0 -23
  96. package/dist/treeshaking/_virtual/icon-menu-fold.mjs +0 -20
  97. package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +0 -20
  98. package/dist/treeshaking/components/article/components/ArticleTitle.css +0 -123
  99. package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +0 -22
  100. package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +0 -7
  101. package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +0 -97
  102. package/dist/treeshaking/components/article/components/DocTitle.css +0 -246
  103. package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +0 -7
  104. package/dist/treeshaking/components/doc-layout/ODocLayout.css +0 -271
  105. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +0 -38
  106. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +0 -7
  107. package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +0 -165
  108. package/dist/treeshaking/components/doc-layout/index.d.ts +0 -59
  109. package/dist/treeshaking/components/doc-layout/index.mjs +0 -9
@@ -20,13 +20,13 @@ declare const OLogoSwiper: {
20
20
  install(app: App): void;
21
21
  };
22
22
  declare const OLogoSwiperItems: {
23
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
24
- onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
23
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
24
+ onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
- click: (item: import('../../index').OLogoSwiperItemT) => any;
26
+ click: (item: import('./types').OLogoSwiperItemT) => any;
27
27
  }, import('vue').PublicProps, {
28
28
  reverse: boolean;
29
- data: import('../../index').OLogoSwiperItemT[];
29
+ data: import('./types').OLogoSwiperItemT[];
30
30
  target: "_blank" | "_parent" | "_self" | "_top";
31
31
  duration: number;
32
32
  fit: "cover" | "contain" | "fill" | "none" | "scale-down";
@@ -42,11 +42,11 @@ declare const OLogoSwiperItems: {
42
42
  C: {};
43
43
  M: {};
44
44
  Defaults: {};
45
- }, Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
46
- onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
45
+ }, Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
46
+ onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
47
47
  }>, {}, {}, {}, {}, {
48
48
  reverse: boolean;
49
- data: import('../../index').OLogoSwiperItemT[];
49
+ data: import('./types').OLogoSwiperItemT[];
50
50
  target: "_blank" | "_parent" | "_self" | "_top";
51
51
  duration: number;
52
52
  fit: "cover" | "contain" | "fill" | "none" | "scale-down";
@@ -57,13 +57,13 @@ declare const OLogoSwiperItems: {
57
57
  __isFragment?: never;
58
58
  __isTeleport?: never;
59
59
  __isSuspense?: never;
60
- } & import('vue').ComponentOptionsBase<Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
61
- onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
60
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').OLogoSwiperItemsPropsT> & Readonly<{
61
+ onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
62
62
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
63
- click: (item: import('../../index').OLogoSwiperItemT) => any;
63
+ click: (item: import('./types').OLogoSwiperItemT) => any;
64
64
  }, string, {
65
65
  reverse: boolean;
66
- data: import('../../index').OLogoSwiperItemT[];
66
+ data: import('./types').OLogoSwiperItemT[];
67
67
  target: "_blank" | "_parent" | "_self" | "_top";
68
68
  duration: number;
69
69
  fit: "cover" | "contain" | "fill" | "none" | "scale-down";
@@ -1,20 +1,21 @@
1
1
  type __VLS_Props = {
2
+ disableH1?: boolean;
2
3
  disableH2?: boolean;
3
4
  disableTable?: boolean;
4
5
  disableImg?: boolean;
5
6
  disableCode?: boolean;
6
7
  disableChangeCodeTheme?: boolean;
8
+ sourceUrl?: string;
9
+ updateTime?: string;
10
+ titleBg?: string;
11
+ enableDownload?: boolean;
12
+ enableStar?: boolean;
7
13
  markdownBodyClass?: string;
8
- hideFirstH1?: boolean;
9
14
  };
10
15
  declare function __VLS_template(): {
11
16
  attrs: Partial<{}>;
12
17
  slots: {
13
- header?(_: {
14
- h1: HTMLElement | undefined;
15
- }): any;
16
18
  default?(_: {}): any;
17
- footer?(_: {}): any;
18
19
  };
19
20
  refs: {
20
21
  markdownBodyRef: HTMLDivElement;
@@ -22,14 +23,22 @@ declare function __VLS_template(): {
22
23
  rootEl: HTMLDivElement;
23
24
  };
24
25
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ download: () => any;
28
+ collect: () => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ onDownload?: (() => any) | undefined;
31
+ onCollect?: (() => any) | undefined;
32
+ }>, {
33
+ enableDownload: boolean;
34
+ enableStar: boolean;
26
35
  disableChangeCodeTheme: boolean;
36
+ disableH1: boolean;
27
37
  disableH2: boolean;
28
38
  disableTable: boolean;
29
39
  disableImg: boolean;
30
40
  disableCode: boolean;
31
41
  markdownBodyClass: string;
32
- hideFirstH1: boolean;
33
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
43
  markdownBodyRef: HTMLDivElement;
35
44
  }, HTMLDivElement>;
@@ -2,7 +2,7 @@ import _sfc_main from "./OMarkdown.vue2.mjs";
2
2
  import './OMarkdown.css';
3
3
  import './OMarkdown2.css';
4
4
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b845f428"]]);
5
+ const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-31e0d0d3"]]);
6
6
  export {
7
7
  _OMarkdown as default
8
8
  };
@@ -1,27 +1,38 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode } from "vue";
1
+ import { defineComponent, computed, getCurrentInstance, ref, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
2
+ import { mountMarkdownPageTitle } from "./replacer/h1.mjs";
2
3
  import { mountMarkdownTitle } from "./replacer/h2.mjs";
3
4
  import { mountMarkdownTable } from "./replacer/table.mjs";
4
5
  import { mountMarkdownImage } from "./replacer/img.mjs";
5
6
  import { mountMarkdownCode } from "./replacer/code.mjs";
6
- const _hoisted_1 = { class: "o-markdown-content" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "OMarkdown",
9
9
  props: {
10
+ disableH1: { type: Boolean, default: false },
10
11
  disableH2: { type: Boolean, default: false },
11
12
  disableTable: { type: Boolean, default: false },
12
13
  disableImg: { type: Boolean, default: false },
13
14
  disableCode: { type: Boolean, default: false },
14
15
  disableChangeCodeTheme: { type: Boolean, default: false },
15
- markdownBodyClass: { default: "o-markdown-body" },
16
- hideFirstH1: { type: Boolean, default: false }
16
+ sourceUrl: {},
17
+ updateTime: {},
18
+ titleBg: {},
19
+ enableDownload: { type: Boolean, default: false },
20
+ enableStar: { type: Boolean, default: false },
21
+ markdownBodyClass: { default: "o-markdown-body" }
17
22
  },
18
- setup(__props) {
23
+ emits: ["download", "collect"],
24
+ setup(__props, { emit: __emit }) {
19
25
  const props = __props;
26
+ const sourceUrlRef = computed(() => props.sourceUrl);
27
+ const updateTimeRef = computed(() => props.updateTime);
28
+ const titleBgRef = computed(() => props.titleBg);
29
+ const enableDownloadRef = computed(() => props.enableDownload);
30
+ const enableStarRef = computed(() => props.enableStar);
31
+ const emit = __emit;
20
32
  const unbindMap = /* @__PURE__ */ new WeakMap();
21
33
  const instance = getCurrentInstance();
22
34
  const markdownBodyRef = ref();
23
35
  const mounted = ref(false);
24
- const firstH1 = ref();
25
36
  let observer;
26
37
  let context;
27
38
  const getContext = () => {
@@ -35,6 +46,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
46
  };
36
47
  const selectorMap = computed(() => {
37
48
  const map = {};
49
+ if (!props.disableH1) {
50
+ map.h1 = (el, ctx) => mountMarkdownPageTitle(el, ctx, {
51
+ sourceUrl: sourceUrlRef,
52
+ updateTime: updateTimeRef,
53
+ titleBg: titleBgRef,
54
+ enableDownload: enableDownloadRef,
55
+ enableStar: enableStarRef,
56
+ onDownload: () => emit("download"),
57
+ onCollect: () => emit("collect")
58
+ });
59
+ }
38
60
  if (!props.disableH2) {
39
61
  map.h2 = mountMarkdownTitle;
40
62
  }
@@ -71,33 +93,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
93
  }
72
94
  });
73
95
  };
74
- const applyHandleFirstElement = () => {
75
- const root = markdownBodyRef.value;
76
- const target = root == null ? void 0 : root.firstElementChild;
77
- if (!target) {
78
- firstH1.value = void 0;
79
- return;
80
- }
81
- let container = root;
82
- if (target.tagName === "DIV" && root.childElementCount === 1) {
83
- container = target;
84
- }
85
- const firstContent = container.firstElementChild;
86
- if (!firstContent) {
87
- firstH1.value = void 0;
88
- return;
89
- }
90
- firstH1.value = firstContent.tagName === "H1" ? firstContent : void 0;
91
- if (props.hideFirstH1 && firstContent.tagName === "H1") {
92
- firstContent.style.display = "none";
93
- const next = firstContent.nextElementSibling;
94
- if (next) {
95
- next.style.marginTop = "0";
96
- }
97
- return;
98
- }
99
- firstContent.style.marginTop = "0";
100
- };
101
96
  const processMutations = (mutations) => {
102
97
  const activeMap = selectorMap.value;
103
98
  const selectors = Object.keys(activeMap);
@@ -135,17 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
130
  });
136
131
  });
137
132
  }
138
- applyHandleFirstElement();
139
133
  };
140
134
  onMounted(async () => {
141
135
  await nextTick();
142
136
  Object.keys(selectorMap.value).forEach((selector) => {
143
137
  mountComponent(markdownBodyRef.value, selector);
144
138
  });
139
+ mounted.value = true;
145
140
  observer = new MutationObserver(processMutations);
146
141
  observer.observe(markdownBodyRef.value, { childList: true, subtree: true });
147
- applyHandleFirstElement();
148
- mounted.value = true;
149
142
  });
150
143
  onBeforeUnmount(() => {
151
144
  observer == null ? void 0 : observer.disconnect();
@@ -154,17 +147,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
147
  return openBlock(), createElementBlock("div", {
155
148
  class: normalizeClass(["o-markdown", { unmounted: !mounted.value }])
156
149
  }, [
157
- renderSlot(_ctx.$slots, "header", { h1: firstH1.value }, void 0, true),
158
- createElementVNode("div", _hoisted_1, [
159
- createElementVNode("div", {
160
- ref_key: "markdownBodyRef",
161
- ref: markdownBodyRef,
162
- class: normalizeClass(__props.markdownBodyClass)
163
- }, [
164
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
165
- ], 2),
166
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
167
- ])
150
+ createElementVNode("div", {
151
+ ref_key: "markdownBodyRef",
152
+ ref: markdownBodyRef,
153
+ class: normalizeClass(__props.markdownBodyClass)
154
+ }, [
155
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
156
+ ], 2)
168
157
  ], 2);
169
158
  };
170
159
  }
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-b845f428] {
1
+ .hover-icon-rotate .o-icon[data-v-31e0d0d3] {
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-b845f428] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-31e0d0d3] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-markdown.unmounted[data-v-b845f428] .o-markdown-body table {
9
+ .o-markdown.unmounted[data-v-31e0d0d3] .o-markdown-body table {
10
10
  display: block !important;
11
11
  overflow: hidden !important;
12
12
  max-height: calc(100vh - 210px) !important;
@@ -0,0 +1,261 @@
1
+ .hover-icon-rotate .o-icon[data-v-84f356a4] {
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-84f356a4] {
6
+ transform: rotate(-180deg);
7
+ }
8
+ }
9
+ .o-md-page-title[data-v-84f356a4] {
10
+ align-items: center;
11
+ justify-content: space-between;
12
+ gap: 12px;
13
+ padding: 16px;
14
+ margin-bottom: 32px;
15
+ border-radius: var(--o-radius-xs);
16
+ background-image: var(--v6981a063);
17
+ background-position: 100% 100%;
18
+ background-repeat: no-repeat;
19
+ background-size: cover;
20
+ }
21
+ @media (max-width: 1680px) {
22
+ .o-md-page-title[data-v-84f356a4] {
23
+ gap: 8px;
24
+ padding: 12px;
25
+ margin-bottom: 24px;
26
+ }
27
+ }
28
+ @media (max-width: 1200px) {
29
+ .o-md-page-title[data-v-84f356a4] {
30
+ gap: 8px;
31
+ padding: 8px;
32
+ margin-bottom: 16px;
33
+ }
34
+ }
35
+ @media (max-width: 840px) {
36
+ .o-md-page-title[data-v-84f356a4] {
37
+ gap: 12px;
38
+ padding: 16px;
39
+ margin-bottom: 28px;
40
+ }
41
+ }
42
+ .o-md-page-title .o-md-page-title-content[data-v-84f356a4] {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 8px;
46
+ min-width: 0;
47
+ }
48
+ .o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
49
+ margin-top: 0;
50
+ margin-bottom: 0;
51
+ font-size: 32px;
52
+ line-height: 44px;
53
+ }
54
+ @media (min-width: 1201px) and (max-width: 1680px) {
55
+ .o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
56
+ font-size: 20px;
57
+ line-height: 28px;
58
+ }
59
+ }
60
+ @media (min-width: 841px) and (max-width: 1200px) {
61
+ .o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
62
+ font-size: 20px;
63
+ line-height: 28px;
64
+ }
65
+ }
66
+ @media (min-width: 601px) and (max-width: 840px) {
67
+ .o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
68
+ font-size: 18px;
69
+ line-height: 26px;
70
+ }
71
+ }
72
+ @media (max-width: 600px) {
73
+ .o-md-page-title .o-md-page-title-text[data-v-84f356a4] h1 {
74
+ font-size: 16px;
75
+ line-height: 24px;
76
+ }
77
+ }
78
+ .o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: space-between;
82
+ margin-top: 12px;
83
+ }
84
+ @media (max-width: 1680px) {
85
+ .o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
86
+ margin-top: 8px;
87
+ }
88
+ }
89
+ @media (max-width: 840px) {
90
+ .o-md-page-title .o-md-page-title-actions[data-v-84f356a4] {
91
+ margin-top: 0;
92
+ }
93
+ }
94
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-more[data-v-84f356a4] {
95
+ font-size: 24px;
96
+ color: var(--o-color-info2);
97
+ }
98
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
99
+ font-size: 16px;
100
+ line-height: 24px;
101
+ }
102
+ @media (min-width: 1201px) and (max-width: 1680px) {
103
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
104
+ font-size: 14px;
105
+ line-height: 22px;
106
+ }
107
+ }
108
+ @media (min-width: 841px) and (max-width: 1200px) {
109
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
110
+ font-size: 14px;
111
+ line-height: 22px;
112
+ }
113
+ }
114
+ @media (min-width: 601px) and (max-width: 840px) {
115
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
116
+ font-size: 14px;
117
+ line-height: 22px;
118
+ }
119
+ }
120
+ @media (max-width: 600px) {
121
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] {
122
+ font-size: 12px;
123
+ line-height: 18px;
124
+ }
125
+ }
126
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-source-code[data-v-84f356a4] .o-link-label {
127
+ display: flex;
128
+ align-items: center;
129
+ }
130
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
131
+ font-size: 22px;
132
+ line-height: 30px;
133
+ }
134
+ @media (min-width: 1201px) and (max-width: 1680px) {
135
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
136
+ font-size: 18px;
137
+ line-height: 26px;
138
+ }
139
+ }
140
+ @media (min-width: 841px) and (max-width: 1200px) {
141
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
142
+ font-size: 16px;
143
+ line-height: 24px;
144
+ }
145
+ }
146
+ @media (min-width: 601px) and (max-width: 840px) {
147
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
148
+ font-size: 16px;
149
+ line-height: 24px;
150
+ }
151
+ }
152
+ @media (max-width: 600px) {
153
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-outlink[data-v-84f356a4] {
154
+ font-size: 16px;
155
+ line-height: 24px;
156
+ }
157
+ }
158
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
159
+ color: var(--o-color-info3);
160
+ font-size: 14px;
161
+ line-height: 22px;
162
+ }
163
+ @media (min-width: 1201px) and (max-width: 1680px) {
164
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
165
+ font-size: 14px;
166
+ line-height: 18px;
167
+ }
168
+ }
169
+ @media (min-width: 841px) and (max-width: 1200px) {
170
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
171
+ font-size: 12px;
172
+ line-height: 18px;
173
+ }
174
+ }
175
+ @media (min-width: 601px) and (max-width: 840px) {
176
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
177
+ font-size: 12px;
178
+ line-height: 18px;
179
+ }
180
+ }
181
+ @media (max-width: 600px) {
182
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-update-time[data-v-84f356a4] {
183
+ font-size: 12px;
184
+ line-height: 18px;
185
+ }
186
+ }
187
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-actions-left[data-v-84f356a4] {
188
+ display: flex;
189
+ align-items: center;
190
+ gap: 12px;
191
+ }
192
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4],
193
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4] {
194
+ font-size: 24px;
195
+ cursor: pointer;
196
+ }
197
+ @media (hover: hover) {
198
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4]:hover,
199
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4]:hover {
200
+ color: var(--o-color-info1);
201
+ }
202
+ }
203
+ @media (max-width: 1680px) {
204
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-download[data-v-84f356a4],
205
+ .o-md-page-title .o-md-page-title-actions .o-md-page-title-icon-star[data-v-84f356a4] {
206
+ font-size: 20px;
207
+ }
208
+ }
209
+ .o-md-page-title.is-simple[data-v-84f356a4] {
210
+ padding: 0;
211
+ background-image: none;
212
+ }
213
+ @media (max-width: 840px) {
214
+ .o-md-page-title.first-h1[data-v-84f356a4] {
215
+ display: flex;
216
+ justify-content: space-between;
217
+ align-items: center;
218
+ }
219
+ }
220
+ .o-md-page-title.more-h1[data-v-84f356a4] {
221
+ margin-top: 32px;
222
+ }
223
+ @media (max-width: 1680px) {
224
+ .o-md-page-title.more-h1[data-v-84f356a4] {
225
+ margin-top: 24px;
226
+ }
227
+ }
228
+ @media (max-width: 1200px) {
229
+ .o-md-page-title.more-h1[data-v-84f356a4] {
230
+ margin-top: 16px;
231
+ }
232
+ }
233
+ @media (max-width: 840px) {
234
+ .o-md-page-title.more-h1[data-v-84f356a4] {
235
+ margin-top: 28px;
236
+ }
237
+ }
238
+ .o-md-page-dlg-action-box-container[data-v-84f356a4] {
239
+ display: flex;
240
+ justify-content: space-around;
241
+ }
242
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box[data-v-84f356a4] {
243
+ flex: 1;
244
+ align-items: center;
245
+ display: flex;
246
+ flex-direction: column;
247
+ }
248
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-icon[data-v-84f356a4] {
249
+ display: flex;
250
+ justify-content: center;
251
+ align-items: center;
252
+ width: 40px;
253
+ height: 40px;
254
+ background-color: var(--o-color-fill1);
255
+ border-radius: 50%;
256
+ font-size: 24px;
257
+ }
258
+ .o-md-page-dlg-action-box-container .o-md-page-dlg-action-box-label[data-v-84f356a4] {
259
+ margin-top: 8px;
260
+ color: var(--o-color-info1);
261
+ }
@@ -1,14 +1,12 @@
1
1
  import { MaybeRefOrGetter } from 'vue';
2
- import { OMarkdownMaybeElementT } from '../../markdown/types';
2
+ import { OMarkdownMaybeElementT } from '../types';
3
3
  type __VLS_Props = {
4
- el?: OMarkdownMaybeElementT;
5
- title?: string;
4
+ el: OMarkdownMaybeElementT;
6
5
  bgImage?: MaybeRefOrGetter<string>;
7
6
  sourceUrl?: MaybeRefOrGetter<string>;
8
7
  updateTime?: MaybeRefOrGetter<string>;
9
8
  enableDownload?: MaybeRefOrGetter<boolean>;
10
9
  enableStar?: MaybeRefOrGetter<boolean>;
11
- enableCopyLink?: MaybeRefOrGetter<boolean>;
12
10
  };
13
11
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
12
  download: () => any;
@@ -19,6 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
19
17
  }>, {
20
18
  enableDownload: MaybeRefOrGetter<boolean>;
21
19
  enableStar: MaybeRefOrGetter<boolean>;
22
- enableCopyLink: MaybeRefOrGetter<boolean>;
23
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ titleRef: HTMLDivElement;
22
+ }, any>;
24
23
  export default _default;
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./MarkdownPageTitle.vue2.mjs";
2
+ import './MarkdownPageTitle.css';
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const MarkdownPageTitle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-84f356a4"]]);
5
+ export {
6
+ MarkdownPageTitle as default
7
+ };