@opendesign-plus/components 0.0.1-rc.85 → 0.0.1-rc.87
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/article/OArticle.vue.d.ts +3 -0
- package/dist/components/article/index.d.ts +6 -0
- package/dist/components/markdown/OMarkdown.vue.d.ts +2 -0
- package/dist/components/markdown/components/MarkdownCode.vue.d.ts +1 -0
- package/dist/components/markdown/index.d.ts +6 -0
- package/dist/components/markdown/replacer/code.d.ts +4 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.css +1 -1
- package/dist/components.es.js +39 -23
- package/dist/treeshaking/components/article/OArticle.css +37 -30
- package/dist/treeshaking/components/article/OArticle.vue.d.ts +3 -0
- package/dist/treeshaking/components/article/OArticle.vue.mjs +1 -1
- package/dist/treeshaking/components/article/OArticle.vue2.mjs +12 -6
- package/dist/treeshaking/components/article/index.d.ts +6 -0
- package/dist/treeshaking/components/markdown/OMarkdown.css +7 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue.d.ts +2 -0
- package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +6 -1
- package/dist/treeshaking/components/markdown/OMarkdown2.css +3 -3
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.d.ts +1 -0
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.mjs +1 -1
- package/dist/treeshaking/components/markdown/components/MarkdownCode.vue2.mjs +6 -4
- package/dist/treeshaking/components/markdown/components/MarkdownCode2.css +48 -42
- package/dist/treeshaking/components/markdown/index.d.ts +6 -0
- package/dist/treeshaking/components/markdown/replacer/code.d.ts +4 -1
- package/dist/treeshaking/components/markdown/replacer/code.mjs +5 -4
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ type __VLS_Props = {
|
|
|
26
26
|
markdownBodyClass?: string;
|
|
27
27
|
/** 是否移除正文首个元素的上边距(o-markdown-body 内第一个 div 的首个元素,常用于正文首元素为标题时消除顶部空隙),默认 true */
|
|
28
28
|
removeFirstTopMargin?: boolean;
|
|
29
|
+
/** 是否自动隐藏正文中的第一个 h1(该 h1 通常与标题重复,作为页面标题展示),默认 true */
|
|
30
|
+
autoHideFirstH1?: boolean;
|
|
29
31
|
/** 透传给 OMarkdownPagination:上一篇文案,留空取 i18n 默认值 */
|
|
30
32
|
prevLabel?: string;
|
|
31
33
|
/** 透传给 OMarkdownPagination:下一篇文案,留空取 i18n 默认值 */
|
|
@@ -60,6 +62,7 @@ declare const __VLS_component: import('../../../vue/dist/vue.esm-bundler.js').De
|
|
|
60
62
|
radius: string;
|
|
61
63
|
tags: string[];
|
|
62
64
|
removeFirstTopMargin: boolean;
|
|
65
|
+
autoHideFirstH1: boolean;
|
|
63
66
|
}, {}, {}, {}, string, import('../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
64
67
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
68
|
export default _default;
|
|
@@ -14,6 +14,7 @@ declare const OArticle: {
|
|
|
14
14
|
updateTime?: string;
|
|
15
15
|
markdownBodyClass?: string;
|
|
16
16
|
removeFirstTopMargin?: boolean;
|
|
17
|
+
autoHideFirstH1?: boolean;
|
|
17
18
|
prevLabel?: string;
|
|
18
19
|
nextLabel?: string;
|
|
19
20
|
divider?: boolean;
|
|
@@ -34,6 +35,7 @@ declare const OArticle: {
|
|
|
34
35
|
radius: string;
|
|
35
36
|
tags: string[];
|
|
36
37
|
removeFirstTopMargin: boolean;
|
|
38
|
+
autoHideFirstH1: boolean;
|
|
37
39
|
}, 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, {
|
|
38
40
|
P: {};
|
|
39
41
|
B: {};
|
|
@@ -55,6 +57,7 @@ declare const OArticle: {
|
|
|
55
57
|
updateTime?: string;
|
|
56
58
|
markdownBodyClass?: string;
|
|
57
59
|
removeFirstTopMargin?: boolean;
|
|
60
|
+
autoHideFirstH1?: boolean;
|
|
58
61
|
prevLabel?: string;
|
|
59
62
|
nextLabel?: string;
|
|
60
63
|
divider?: boolean;
|
|
@@ -73,6 +76,7 @@ declare const OArticle: {
|
|
|
73
76
|
radius: string;
|
|
74
77
|
tags: string[];
|
|
75
78
|
removeFirstTopMargin: boolean;
|
|
79
|
+
autoHideFirstH1: boolean;
|
|
76
80
|
}>;
|
|
77
81
|
__isFragment?: never;
|
|
78
82
|
__isTeleport?: never;
|
|
@@ -91,6 +95,7 @@ declare const OArticle: {
|
|
|
91
95
|
updateTime?: string;
|
|
92
96
|
markdownBodyClass?: string;
|
|
93
97
|
removeFirstTopMargin?: boolean;
|
|
98
|
+
autoHideFirstH1?: boolean;
|
|
94
99
|
prevLabel?: string;
|
|
95
100
|
nextLabel?: string;
|
|
96
101
|
divider?: boolean;
|
|
@@ -111,6 +116,7 @@ declare const OArticle: {
|
|
|
111
116
|
radius: string;
|
|
112
117
|
tags: string[];
|
|
113
118
|
removeFirstTopMargin: boolean;
|
|
119
|
+
autoHideFirstH1: boolean;
|
|
114
120
|
}, {}, 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 () => {
|
|
115
121
|
$slots: {
|
|
116
122
|
default?(_: {}): any;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
disableTable?: boolean;
|
|
5
5
|
disableImg?: boolean;
|
|
6
6
|
disableCode?: boolean;
|
|
7
|
+
disableChangeCodeTheme?: boolean;
|
|
7
8
|
sourceUrl?: string;
|
|
8
9
|
updateTime?: string;
|
|
9
10
|
titleBg?: string;
|
|
@@ -31,6 +32,7 @@ declare const __VLS_component: import('../../../vue/dist/vue.esm-bundler.js').De
|
|
|
31
32
|
}>, {
|
|
32
33
|
enableDownload: boolean;
|
|
33
34
|
enableStar: boolean;
|
|
35
|
+
disableChangeCodeTheme: boolean;
|
|
34
36
|
disableH1: boolean;
|
|
35
37
|
disableH2: boolean;
|
|
36
38
|
disableTable: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OMarkdownMaybeElementT } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
el: OMarkdownMaybeElementT;
|
|
4
|
+
disableChangeCodeTheme?: boolean;
|
|
4
5
|
};
|
|
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, {
|
|
6
7
|
mdCodeRef: HTMLDivElement;
|
|
@@ -6,6 +6,7 @@ declare const OMarkdown: {
|
|
|
6
6
|
disableTable?: boolean;
|
|
7
7
|
disableImg?: boolean;
|
|
8
8
|
disableCode?: boolean;
|
|
9
|
+
disableChangeCodeTheme?: boolean;
|
|
9
10
|
sourceUrl?: string;
|
|
10
11
|
updateTime?: string;
|
|
11
12
|
titleBg?: string;
|
|
@@ -21,6 +22,7 @@ declare const OMarkdown: {
|
|
|
21
22
|
}, import('../../../vue/dist/vue.esm-bundler.js').PublicProps, {
|
|
22
23
|
enableDownload: boolean;
|
|
23
24
|
enableStar: boolean;
|
|
25
|
+
disableChangeCodeTheme: boolean;
|
|
24
26
|
disableH1: boolean;
|
|
25
27
|
disableH2: boolean;
|
|
26
28
|
disableTable: boolean;
|
|
@@ -42,6 +44,7 @@ declare const OMarkdown: {
|
|
|
42
44
|
disableTable?: boolean;
|
|
43
45
|
disableImg?: boolean;
|
|
44
46
|
disableCode?: boolean;
|
|
47
|
+
disableChangeCodeTheme?: boolean;
|
|
45
48
|
sourceUrl?: string;
|
|
46
49
|
updateTime?: string;
|
|
47
50
|
titleBg?: string;
|
|
@@ -54,6 +57,7 @@ declare const OMarkdown: {
|
|
|
54
57
|
}>, {}, {}, {}, {}, {
|
|
55
58
|
enableDownload: boolean;
|
|
56
59
|
enableStar: boolean;
|
|
60
|
+
disableChangeCodeTheme: boolean;
|
|
57
61
|
disableH1: boolean;
|
|
58
62
|
disableH2: boolean;
|
|
59
63
|
disableTable: boolean;
|
|
@@ -70,6 +74,7 @@ declare const OMarkdown: {
|
|
|
70
74
|
disableTable?: boolean;
|
|
71
75
|
disableImg?: boolean;
|
|
72
76
|
disableCode?: boolean;
|
|
77
|
+
disableChangeCodeTheme?: boolean;
|
|
73
78
|
sourceUrl?: string;
|
|
74
79
|
updateTime?: string;
|
|
75
80
|
titleBg?: string;
|
|
@@ -85,6 +90,7 @@ declare const OMarkdown: {
|
|
|
85
90
|
}, string, {
|
|
86
91
|
enableDownload: boolean;
|
|
87
92
|
enableStar: boolean;
|
|
93
|
+
disableChangeCodeTheme: boolean;
|
|
88
94
|
disableH1: boolean;
|
|
89
95
|
disableH2: boolean;
|
|
90
96
|
disableTable: boolean;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { AppContext } from '../../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
-
export
|
|
2
|
+
export interface MarkdownCodeMountProps {
|
|
3
|
+
disableChangeCodeTheme?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function mountMarkdownCode(el: Element, context: AppContext, props?: MarkdownCodeMountProps): (() => void) | undefined;
|