@opendesign-plus/components 0.0.1-rc.94 → 0.0.1-rc.95

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 (110) 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 +196 -14
  5. package/dist/components/article/components/ArticleTitle.vue.d.ts +22 -0
  6. package/dist/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
  7. package/dist/components/article/index.d.ts +151 -50
  8. package/dist/components/article-anchor/index.d.ts +9 -9
  9. package/dist/components/article-pagination/index.d.ts +17 -17
  10. package/dist/components/banner/index.d.ts +6 -6
  11. package/dist/components/brand/index.d.ts +15 -15
  12. package/dist/components/doc-layout/ODocLayout.vue.d.ts +38 -0
  13. package/dist/components/doc-layout/index.d.ts +59 -0
  14. package/dist/components/events/index.d.ts +20 -20
  15. package/dist/components/footer/index.d.ts +3 -3
  16. package/dist/components/header/OHeaderMobile.vue.d.ts +8 -8
  17. package/dist/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  18. package/dist/components/header/index.d.ts +28 -28
  19. package/dist/components/header-search/index.d.ts +13 -13
  20. package/dist/components/logo-swiper/index.d.ts +11 -11
  21. package/dist/components/markdown/OMarkdown.vue.d.ts +7 -16
  22. package/dist/components/markdown/index.d.ts +13 -45
  23. package/dist/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  24. package/dist/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  25. package/dist/components/meeting/index.d.ts +51 -51
  26. package/dist/components/org/index.d.ts +9 -9
  27. package/dist/components/recursion-menu/index.d.ts +3 -3
  28. package/dist/components/search/index.d.ts +11 -11
  29. package/dist/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  30. package/dist/components/search-result/index.d.ts +31 -31
  31. package/dist/components/sig/index.d.ts +15 -15
  32. package/dist/components/summit/index.d.ts +12 -12
  33. package/dist/components/user-center/index.d.ts +18 -18
  34. package/dist/components/video/index.d.ts +3 -3
  35. package/dist/components.cjs.js +44 -44
  36. package/dist/components.css +1 -1
  37. package/dist/components.es.js +10037 -9808
  38. package/dist/index.d.ts +1 -0
  39. package/dist/treeshaking/_virtual/icon-email.mjs +8 -9
  40. package/dist/treeshaking/_virtual/icon-email2.mjs +9 -8
  41. package/dist/treeshaking/_virtual/icon-menu-fold.mjs +20 -0
  42. package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +20 -0
  43. package/dist/treeshaking/components/activity/index.d.ts +9 -9
  44. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.d.ts +2 -2
  45. package/dist/treeshaking/components/anchor-bar/index.d.ts +9 -9
  46. package/dist/treeshaking/components/article/OArticle.css +18 -124
  47. package/dist/treeshaking/components/article/OArticle.vue.d.ts +196 -14
  48. package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
  49. package/dist/treeshaking/components/article/OArticle.vue2.mjs +48 -82
  50. package/dist/treeshaking/components/article/components/ArticleTitle.css +123 -0
  51. package/dist/treeshaking/components/article/components/ArticleTitle.vue.d.ts +22 -0
  52. package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +7 -0
  53. package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +97 -0
  54. package/dist/treeshaking/components/article/components/DocTitle.css +246 -0
  55. package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue.d.ts → article/components/DocTitle.vue.d.ts} +6 -5
  56. package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +7 -0
  57. package/dist/treeshaking/components/{markdown/components/MarkdownPageTitle.vue2.mjs → article/components/DocTitle.vue2.mjs} +131 -80
  58. package/dist/treeshaking/components/article/index.d.ts +151 -50
  59. package/dist/treeshaking/components/article-anchor/OArticleAnchor.css +4 -4
  60. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +1 -1
  61. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +4 -5
  62. package/dist/treeshaking/components/article-anchor/index.d.ts +9 -9
  63. package/dist/treeshaking/components/article-pagination/index.d.ts +17 -17
  64. package/dist/treeshaking/components/banner/index.d.ts +6 -6
  65. package/dist/treeshaking/components/brand/index.d.ts +15 -15
  66. package/dist/treeshaking/components/doc-layout/ODocLayout.css +271 -0
  67. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +38 -0
  68. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +7 -0
  69. package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +165 -0
  70. package/dist/treeshaking/components/doc-layout/index.d.ts +59 -0
  71. package/dist/treeshaking/components/doc-layout/index.mjs +9 -0
  72. package/dist/treeshaking/components/events/index.d.ts +20 -20
  73. package/dist/treeshaking/components/footer/index.d.ts +3 -3
  74. package/dist/treeshaking/components/header/OHeaderMobile.vue.d.ts +8 -8
  75. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.d.ts +1 -1
  76. package/dist/treeshaking/components/header/index.d.ts +28 -28
  77. package/dist/treeshaking/components/header-search/index.d.ts +13 -13
  78. package/dist/treeshaking/components/logo-swiper/index.d.ts +11 -11
  79. package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +7 -16
  80. package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
  81. package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +47 -36
  82. package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
  83. package/dist/treeshaking/components/markdown/components/MarkdownTitle.css +22 -22
  84. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +1 -1
  85. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +11 -5
  86. package/dist/treeshaking/components/markdown/index.d.ts +13 -45
  87. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.d.ts +6 -6
  88. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.d.ts +1 -1
  89. package/dist/treeshaking/components/meeting/index.d.ts +51 -51
  90. package/dist/treeshaking/components/org/OOrgMembers.vue2.mjs +1 -1
  91. package/dist/treeshaking/components/org/index.d.ts +9 -9
  92. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +1 -1
  93. package/dist/treeshaking/components/recursion-menu/index.d.ts +3 -3
  94. package/dist/treeshaking/components/search/index.d.ts +11 -11
  95. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.d.ts +24 -24
  96. package/dist/treeshaking/components/search-result/index.d.ts +31 -31
  97. package/dist/treeshaking/components/sig/index.d.ts +15 -15
  98. package/dist/treeshaking/components/summit/index.d.ts +12 -12
  99. package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +1 -1
  100. package/dist/treeshaking/components/user-center/index.d.ts +18 -18
  101. package/dist/treeshaking/components/user-center/index.mjs +0 -2
  102. package/dist/treeshaking/components/video/index.d.ts +3 -3
  103. package/dist/treeshaking/index.d.ts +1 -0
  104. package/dist/treeshaking/index.mjs +2 -0
  105. package/package.json +2 -2
  106. package/dist/components/markdown/replacer/h1.d.ts +0 -11
  107. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.css +0 -261
  108. package/dist/treeshaking/components/markdown/components/MarkdownPageTitle.vue.mjs +0 -7
  109. package/dist/treeshaking/components/markdown/replacer/h1.d.ts +0 -11
  110. package/dist/treeshaking/components/markdown/replacer/h1.mjs +0 -29
@@ -20,8 +20,8 @@ declare function __VLS_template(): {
20
20
  $props: {
21
21
  readonly menuShow: boolean;
22
22
  readonly navData: NavItemT[];
23
- readonly codeData?: import('./types.ts').CodeT | undefined;
24
- readonly langData?: import('./types.ts').LangT | undefined;
23
+ readonly codeData?: import('../../index.ts').CodeT | undefined;
24
+ readonly langData?: import('../../index.ts').LangT | undefined;
25
25
  readonly activeIndex: string | number;
26
26
  readonly community?: string | undefined;
27
27
  readonly "onHandle-click"?: ((val: any) => any) | undefined;
@@ -40,7 +40,7 @@ declare function __VLS_template(): {
40
40
  $host: Element | null;
41
41
  $emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: LangItemT) => void);
42
42
  $el: HTMLDivElement;
43
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types.ts').NavMobileItemT> & Readonly<{
43
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
44
44
  "onHandle-click"?: ((val: any) => any) | undefined;
45
45
  "onOn-click"?: (() => any) | undefined;
46
46
  "onLang-click"?: ((val: LangItemT) => any) | undefined;
@@ -74,7 +74,7 @@ declare function __VLS_template(): {
74
74
  } & Readonly<{
75
75
  navData: NavItemT[];
76
76
  menuShow: boolean;
77
- }> & Omit<Readonly<import('./types.ts').NavMobileItemT> & Readonly<{
77
+ }> & Omit<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
78
78
  "onHandle-click"?: ((val: any) => any) | undefined;
79
79
  "onOn-click"?: (() => any) | undefined;
80
80
  "onLang-click"?: ((val: LangItemT) => any) | undefined;
@@ -104,8 +104,8 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
104
104
  $props: {
105
105
  readonly menuShow: boolean;
106
106
  readonly navData: NavItemT[];
107
- readonly codeData?: import('./types.ts').CodeT | undefined;
108
- readonly langData?: import('./types.ts').LangT | undefined;
107
+ readonly codeData?: import('../../index.ts').CodeT | undefined;
108
+ readonly langData?: import('../../index.ts').LangT | undefined;
109
109
  readonly activeIndex: string | number;
110
110
  readonly community?: string | undefined;
111
111
  readonly "onHandle-click"?: ((val: any) => any) | undefined;
@@ -124,7 +124,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
124
124
  $host: Element | null;
125
125
  $emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: LangItemT) => void);
126
126
  $el: HTMLDivElement;
127
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types.ts').NavMobileItemT> & Readonly<{
127
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
128
128
  "onHandle-click"?: ((val: any) => any) | undefined;
129
129
  "onOn-click"?: (() => any) | undefined;
130
130
  "onLang-click"?: ((val: LangItemT) => any) | undefined;
@@ -158,7 +158,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavT, {}, {}, {}, {
158
158
  } & Readonly<{
159
159
  navData: NavItemT[];
160
160
  menuShow: boolean;
161
- }> & Omit<Readonly<import('./types.ts').NavMobileItemT> & Readonly<{
161
+ }> & Omit<Readonly<import('../../index.ts').NavMobileItemT> & Readonly<{
162
162
  "onHandle-click"?: ((val: any) => any) | undefined;
163
163
  "onOn-click"?: (() => any) | undefined;
164
164
  "onLang-click"?: ((val: LangItemT) => any) | undefined;
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<NavMobileItemT, {},
22
22
  "onOn-click"?: (() => any) | undefined;
23
23
  "onLang-click"?: ((val: LangItemT) => any) | undefined;
24
24
  }>, {
25
- navData: import('../types.ts').NavItemT[];
25
+ navData: import('../../../index.ts').NavItemT[];
26
26
  menuShow: boolean;
27
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,6 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  declare const OHeader: {
3
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').NavT> & Readonly<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').NavT> & Readonly<{
4
4
  "onHandle-click"?: ((val: any) => any) | undefined;
5
5
  "onNav-layout"?: ((val: any) => any) | undefined;
6
6
  "onGo-home"?: (() => any) | undefined;
@@ -19,7 +19,7 @@ declare const OHeader: {
19
19
  C: {};
20
20
  M: {};
21
21
  Defaults: {};
22
- }, Readonly<import('./types').NavT> & Readonly<{
22
+ }, Readonly<import('../../index').NavT> & Readonly<{
23
23
  "onHandle-click"?: ((val: any) => any) | undefined;
24
24
  "onNav-layout"?: ((val: any) => any) | undefined;
25
25
  "onGo-home"?: (() => any) | undefined;
@@ -29,7 +29,7 @@ declare const OHeader: {
29
29
  __isFragment?: never;
30
30
  __isTeleport?: never;
31
31
  __isSuspense?: never;
32
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').NavT> & Readonly<{
32
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../index').NavT> & Readonly<{
33
33
  "onHandle-click"?: ((val: any) => any) | undefined;
34
34
  "onNav-layout"?: ((val: any) => any) | undefined;
35
35
  "onGo-home"?: (() => any) | undefined;
@@ -50,15 +50,15 @@ declare const OHeader: {
50
50
  install(app: App): void;
51
51
  };
52
52
  declare const OHeaderMobile: {
53
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').NavT> & Readonly<{
54
- "onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
53
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').NavT> & Readonly<{
54
+ "onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
55
55
  "onGo-home"?: (() => any) | undefined;
56
- "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
56
+ "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
57
57
  "onGo-back"?: (() => any) | undefined;
58
58
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
59
- "handle-click": (val: import('./types').NavItemT) => any;
59
+ "handle-click": (val: import('../../index').NavItemT) => any;
60
60
  "go-home": () => any;
61
- "lang-click": (val: import('./types').LangItemT) => any;
61
+ "lang-click": (val: import('../../index').LangItemT) => any;
62
62
  "go-back": () => any;
63
63
  }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
64
64
  mobileNav: ({
@@ -66,14 +66,14 @@ declare const OHeaderMobile: {
66
66
  $data: {};
67
67
  $props: {
68
68
  readonly menuShow: boolean;
69
- readonly navData: import('./types').NavItemT[];
70
- readonly codeData?: import('./types').CodeT | undefined;
71
- readonly langData?: import('./types').LangT | undefined;
69
+ readonly navData: import('../../index').NavItemT[];
70
+ readonly codeData?: import('../../index').CodeT | undefined;
71
+ readonly langData?: import('../../index').LangT | undefined;
72
72
  readonly activeIndex: string | number;
73
73
  readonly community?: string | undefined;
74
74
  readonly "onHandle-click"?: ((val: any) => any) | undefined;
75
75
  readonly "onOn-click"?: (() => any) | undefined;
76
- readonly "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
76
+ readonly "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
77
77
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
78
78
  $attrs: import('vue').Attrs;
79
79
  $refs: {
@@ -85,18 +85,18 @@ declare const OHeaderMobile: {
85
85
  $root: import('vue').ComponentPublicInstance | null;
86
86
  $parent: import('vue').ComponentPublicInstance | null;
87
87
  $host: Element | null;
88
- $emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: import('./types').LangItemT) => void);
88
+ $emit: ((event: "handle-click", val: any) => void) & ((event: "on-click") => void) & ((event: "lang-click", val: import('../../index').LangItemT) => void);
89
89
  $el: HTMLDivElement;
90
- $options: import('vue').ComponentOptionsBase<Readonly<import('./types').NavMobileItemT> & Readonly<{
90
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../../index').NavMobileItemT> & Readonly<{
91
91
  "onHandle-click"?: ((val: any) => any) | undefined;
92
92
  "onOn-click"?: (() => any) | undefined;
93
- "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
93
+ "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
94
94
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
95
95
  "handle-click": (val: any) => any;
96
96
  "on-click": () => any;
97
- "lang-click": (val: import('./types').LangItemT) => any;
97
+ "lang-click": (val: import('../../index').LangItemT) => any;
98
98
  }, string, {
99
- navData: import('./types').NavItemT[];
99
+ navData: import('../../index').NavItemT[];
100
100
  menuShow: boolean;
101
101
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
102
102
  beforeCreate?: (() => void) | (() => void)[];
@@ -119,12 +119,12 @@ declare const OHeaderMobile: {
119
119
  $nextTick: typeof import('vue').nextTick;
120
120
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
121
121
  } & Readonly<{
122
- navData: import('./types').NavItemT[];
122
+ navData: import('../../index').NavItemT[];
123
123
  menuShow: boolean;
124
- }> & Omit<Readonly<import('./types').NavMobileItemT> & Readonly<{
124
+ }> & Omit<Readonly<import('../../index').NavMobileItemT> & Readonly<{
125
125
  "onHandle-click"?: ((val: any) => any) | undefined;
126
126
  "onOn-click"?: (() => any) | undefined;
127
- "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
127
+ "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
128
128
  }>, "navData" | "menuShow"> & {} & import('vue').ComponentCustomProperties & {} & {
129
129
  $slots: {
130
130
  tool?(_: {}): any;
@@ -137,24 +137,24 @@ declare const OHeaderMobile: {
137
137
  C: {};
138
138
  M: {};
139
139
  Defaults: {};
140
- }, Readonly<import('./types').NavT> & Readonly<{
141
- "onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
140
+ }, Readonly<import('../../index').NavT> & Readonly<{
141
+ "onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
142
142
  "onGo-home"?: (() => any) | undefined;
143
- "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
143
+ "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
144
144
  "onGo-back"?: (() => any) | undefined;
145
145
  }>, {}, {}, {}, {}, {}>;
146
146
  __isFragment?: never;
147
147
  __isTeleport?: never;
148
148
  __isSuspense?: never;
149
- } & import('vue').ComponentOptionsBase<Readonly<import('./types').NavT> & Readonly<{
150
- "onHandle-click"?: ((val: import('./types').NavItemT) => any) | undefined;
149
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../index').NavT> & Readonly<{
150
+ "onHandle-click"?: ((val: import('../../index').NavItemT) => any) | undefined;
151
151
  "onGo-home"?: (() => any) | undefined;
152
- "onLang-click"?: ((val: import('./types').LangItemT) => any) | undefined;
152
+ "onLang-click"?: ((val: import('../../index').LangItemT) => any) | undefined;
153
153
  "onGo-back"?: (() => any) | undefined;
154
154
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
155
- "handle-click": (val: import('./types').NavItemT) => any;
155
+ "handle-click": (val: import('../../index').NavItemT) => any;
156
156
  "go-home": () => any;
157
- "lang-click": (val: import('./types').LangItemT) => any;
157
+ "lang-click": (val: import('../../index').LangItemT) => any;
158
158
  "go-back": () => any;
159
159
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
160
160
  $slots: {
@@ -20,8 +20,8 @@ declare const OHeaderSearch: {
20
20
  imageUrl: string;
21
21
  enableImageSearch: boolean;
22
22
  maxImageSize: number;
23
- onestepItems: import('../search').OSearchRecommendItem[];
24
- suggestItems: import('../search').OSearchRecommendItem[];
23
+ onestepItems: import('../../index').OSearchRecommendItem[];
24
+ suggestItems: import('../../index').OSearchRecommendItem[];
25
25
  recommendItems: string[];
26
26
  historyItems: string[];
27
27
  hotItems: string[];
@@ -46,7 +46,7 @@ declare const OHeaderSearch: {
46
46
  readonly imagePlaceholder?: string | undefined;
47
47
  readonly size?: "small" | "medium" | "large" | undefined;
48
48
  readonly enableImageSearch?: boolean | undefined;
49
- readonly uploadImage?: import('../search').OSearchUploadImageFn | undefined;
49
+ readonly uploadImage?: import('../../index').OSearchUploadImageFn | undefined;
50
50
  readonly maxImageSize?: number | undefined;
51
51
  readonly imageUploadTooltip?: string | undefined;
52
52
  readonly expanded?: boolean | undefined;
@@ -509,8 +509,8 @@ declare const OHeaderSearch: {
509
509
  imageUrl: string;
510
510
  enableImageSearch: boolean;
511
511
  maxImageSize: number;
512
- onestepItems: import('../search').OSearchRecommendItem[];
513
- suggestItems: import('../search').OSearchRecommendItem[];
512
+ onestepItems: import('../../index').OSearchRecommendItem[];
513
+ suggestItems: import('../../index').OSearchRecommendItem[];
514
514
  recommendItems: string[];
515
515
  historyItems: string[];
516
516
  hotItems: string[];
@@ -546,8 +546,8 @@ declare const OHeaderSearch: {
546
546
  imageUrl: string;
547
547
  enableImageSearch: boolean;
548
548
  maxImageSize: number;
549
- onestepItems: import('../search').OSearchRecommendItem[];
550
- suggestItems: import('../search').OSearchRecommendItem[];
549
+ onestepItems: import('../../index').OSearchRecommendItem[];
550
+ suggestItems: import('../../index').OSearchRecommendItem[];
551
551
  recommendItems: string[];
552
552
  historyItems: string[];
553
553
  hotItems: string[];
@@ -573,8 +573,8 @@ declare const OHeaderSearch: {
573
573
  recommendItems: string[];
574
574
  historyItems: string[];
575
575
  hotItems: string[];
576
- suggestItems: import('../search').OSearchRecommendItem[];
577
- onestepItems: import('../search').OSearchRecommendItem[];
576
+ suggestItems: import('../../index').OSearchRecommendItem[];
577
+ onestepItems: import('../../index').OSearchRecommendItem[];
578
578
  keyword: string;
579
579
  }): any;
580
580
  'recommend-header'?(_: {
@@ -584,17 +584,17 @@ declare const OHeaderSearch: {
584
584
  items: string[];
585
585
  }): any;
586
586
  'onestep-header'?(_: {
587
- items: import('../search').OSearchRecommendItem[];
587
+ items: import('../../index').OSearchRecommendItem[];
588
588
  }): any;
589
589
  'onestep-content'?(_: {
590
- items: import('../search').OSearchRecommendItem[];
590
+ items: import('../../index').OSearchRecommendItem[];
591
591
  keyword: string;
592
592
  }): any;
593
593
  'suggest-header'?(_: {
594
- items: import('../search').OSearchRecommendItem[];
594
+ items: import('../../index').OSearchRecommendItem[];
595
595
  }): any;
596
596
  'suggest-content'?(_: {
597
- items: import('../search').OSearchRecommendItem[];
597
+ items: import('../../index').OSearchRecommendItem[];
598
598
  keyword: string;
599
599
  }): any;
600
600
  'history-header'?(_: {
@@ -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('./types').OLogoSwiperItemsPropsT> & Readonly<{
24
- onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
23
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
24
+ onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
- click: (item: import('./types').OLogoSwiperItemT) => any;
26
+ click: (item: import('../../index').OLogoSwiperItemT) => any;
27
27
  }, import('vue').PublicProps, {
28
28
  reverse: boolean;
29
- data: import('./types').OLogoSwiperItemT[];
29
+ data: import('../../index').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('./types').OLogoSwiperItemsPropsT> & Readonly<{
46
- onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
45
+ }, Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
46
+ onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
47
47
  }>, {}, {}, {}, {}, {
48
48
  reverse: boolean;
49
- data: import('./types').OLogoSwiperItemT[];
49
+ data: import('../../index').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('./types').OLogoSwiperItemsPropsT> & Readonly<{
61
- onClick?: ((item: import('./types').OLogoSwiperItemT) => any) | undefined;
60
+ } & import('vue').ComponentOptionsBase<Readonly<import('../../index').OLogoSwiperItemsPropsT> & Readonly<{
61
+ onClick?: ((item: import('../../index').OLogoSwiperItemT) => any) | undefined;
62
62
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
63
- click: (item: import('./types').OLogoSwiperItemT) => any;
63
+ click: (item: import('../../index').OLogoSwiperItemT) => any;
64
64
  }, string, {
65
65
  reverse: boolean;
66
- data: import('./types').OLogoSwiperItemT[];
66
+ data: import('../../index').OLogoSwiperItemT[];
67
67
  target: "_blank" | "_parent" | "_self" | "_top";
68
68
  duration: number;
69
69
  fit: "cover" | "contain" | "fill" | "none" | "scale-down";
@@ -1,21 +1,20 @@
1
1
  type __VLS_Props = {
2
- disableH1?: boolean;
3
2
  disableH2?: boolean;
4
3
  disableTable?: boolean;
5
4
  disableImg?: boolean;
6
5
  disableCode?: boolean;
7
6
  disableChangeCodeTheme?: boolean;
8
- sourceUrl?: string;
9
- updateTime?: string;
10
- titleBg?: string;
11
- enableDownload?: boolean;
12
- enableStar?: boolean;
13
7
  markdownBodyClass?: string;
8
+ hideFirstH1?: boolean;
14
9
  };
15
10
  declare function __VLS_template(): {
16
11
  attrs: Partial<{}>;
17
12
  slots: {
13
+ header?(_: {
14
+ h1: HTMLElement | undefined;
15
+ }): any;
18
16
  default?(_: {}): any;
17
+ footer?(_: {}): any;
19
18
  };
20
19
  refs: {
21
20
  markdownBodyRef: HTMLDivElement;
@@ -23,22 +22,14 @@ declare function __VLS_template(): {
23
22
  rootEl: HTMLDivElement;
24
23
  };
25
24
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
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;
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
35
26
  disableChangeCodeTheme: boolean;
36
- disableH1: boolean;
37
27
  disableH2: boolean;
38
28
  disableTable: boolean;
39
29
  disableImg: boolean;
40
30
  disableCode: boolean;
41
31
  markdownBodyClass: string;
32
+ hideFirstH1: boolean;
42
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
34
  markdownBodyRef: HTMLDivElement;
44
35
  }, 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-31e0d0d3"]]);
5
+ const _OMarkdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b845f428"]]);
6
6
  export {
7
7
  _OMarkdown as default
8
8
  };
@@ -1,38 +1,27 @@
1
- import { defineComponent, computed, getCurrentInstance, ref, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
2
- import { mountMarkdownPageTitle } from "./replacer/h1.mjs";
1
+ import { defineComponent, getCurrentInstance, ref, computed, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, renderSlot, createElementVNode } from "vue";
3
2
  import { mountMarkdownTitle } from "./replacer/h2.mjs";
4
3
  import { mountMarkdownTable } from "./replacer/table.mjs";
5
4
  import { mountMarkdownImage } from "./replacer/img.mjs";
6
5
  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 },
11
10
  disableH2: { type: Boolean, default: false },
12
11
  disableTable: { type: Boolean, default: false },
13
12
  disableImg: { type: Boolean, default: false },
14
13
  disableCode: { type: Boolean, default: false },
15
14
  disableChangeCodeTheme: { 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" }
15
+ markdownBodyClass: { default: "o-markdown-body" },
16
+ hideFirstH1: { type: Boolean, default: false }
22
17
  },
23
- emits: ["download", "collect"],
24
- setup(__props, { emit: __emit }) {
18
+ setup(__props) {
25
19
  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;
32
20
  const unbindMap = /* @__PURE__ */ new WeakMap();
33
21
  const instance = getCurrentInstance();
34
22
  const markdownBodyRef = ref();
35
23
  const mounted = ref(false);
24
+ const firstH1 = ref();
36
25
  let observer;
37
26
  let context;
38
27
  const getContext = () => {
@@ -46,17 +35,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
35
  };
47
36
  const selectorMap = computed(() => {
48
37
  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
- }
60
38
  if (!props.disableH2) {
61
39
  map.h2 = mountMarkdownTitle;
62
40
  }
@@ -93,6 +71,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
71
  }
94
72
  });
95
73
  };
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
+ };
96
101
  const processMutations = (mutations) => {
97
102
  const activeMap = selectorMap.value;
98
103
  const selectors = Object.keys(activeMap);
@@ -130,15 +135,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
135
  });
131
136
  });
132
137
  }
138
+ applyHandleFirstElement();
133
139
  };
134
140
  onMounted(async () => {
135
141
  await nextTick();
136
142
  Object.keys(selectorMap.value).forEach((selector) => {
137
143
  mountComponent(markdownBodyRef.value, selector);
138
144
  });
139
- mounted.value = true;
140
145
  observer = new MutationObserver(processMutations);
141
146
  observer.observe(markdownBodyRef.value, { childList: true, subtree: true });
147
+ applyHandleFirstElement();
148
+ mounted.value = true;
142
149
  });
143
150
  onBeforeUnmount(() => {
144
151
  observer == null ? void 0 : observer.disconnect();
@@ -147,13 +154,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
154
  return openBlock(), createElementBlock("div", {
148
155
  class: normalizeClass(["o-markdown", { unmounted: !mounted.value }])
149
156
  }, [
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)
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
+ ])
157
168
  ], 2);
158
169
  };
159
170
  }
@@ -1,12 +1,12 @@
1
- .hover-icon-rotate .o-icon[data-v-31e0d0d3] {
1
+ .hover-icon-rotate .o-icon[data-v-b845f428] {
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-31e0d0d3] {
5
+ .hover-icon-rotate:hover .o-icon[data-v-b845f428] {
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- .o-markdown.unmounted[data-v-31e0d0d3] .o-markdown-body table {
9
+ .o-markdown.unmounted[data-v-b845f428] .o-markdown-body table {
10
10
  display: block !important;
11
11
  overflow: hidden !important;
12
12
  max-height: calc(100vh - 210px) !important;