md-editor-v3 4.6.2 → 4.7.0-beta.1

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.
@@ -4,11 +4,12 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: {
7
+ language?: string | undefined;
8
+ theme?: import("./type").Themes | undefined;
7
9
  editorId?: string | undefined;
8
10
  class?: string | undefined;
9
11
  style?: string | import("vue").CSSProperties | undefined;
10
12
  mdHeadingId?: import("./type").MdHeadingId | undefined;
11
- theme?: import("./type").Themes | undefined;
12
13
  preview?: boolean | undefined;
13
14
  pageFullscreen?: boolean | undefined;
14
15
  htmlPreview?: boolean | undefined;
@@ -22,7 +23,6 @@ declare const _default: {
22
23
  scrollAuto?: boolean | undefined;
23
24
  showToolbarName?: boolean | undefined;
24
25
  modelValue?: string | undefined;
25
- language?: string | undefined;
26
26
  showCodeRowNumber?: boolean | undefined;
27
27
  previewTheme?: string | undefined;
28
28
  sanitize?: ((html: string) => string) | undefined;
@@ -320,11 +320,12 @@ declare const _default: {
320
320
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
321
321
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
322
322
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, string, {
323
+ language: string;
324
+ theme: import("./type").Themes;
323
325
  editorId: string;
324
326
  class: string;
325
327
  style: string | import("vue").CSSProperties;
326
328
  mdHeadingId: import("./type").MdHeadingId;
327
- theme: import("./type").Themes;
328
329
  preview: boolean;
329
330
  pageFullscreen: boolean;
330
331
  htmlPreview: boolean;
@@ -338,7 +339,6 @@ declare const _default: {
338
339
  scrollAuto: boolean;
339
340
  showToolbarName: boolean;
340
341
  modelValue: string;
341
- language: string;
342
342
  showCodeRowNumber: boolean;
343
343
  previewTheme: string;
344
344
  sanitize: (html: string) => string;
@@ -770,11 +770,12 @@ declare const _default: {
770
770
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
771
771
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
772
772
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, "onChange" | "onDrop" | "onFocus" | "onBlur" | "onInput" | "onError" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "update:modelValue", {
773
+ language: string;
774
+ theme: import("./type").Themes;
773
775
  editorId: string;
774
776
  class: string;
775
777
  style: string | import("vue").CSSProperties;
776
778
  mdHeadingId: import("./type").MdHeadingId;
777
- theme: import("./type").Themes;
778
779
  preview: boolean;
779
780
  pageFullscreen: boolean;
780
781
  htmlPreview: boolean;
@@ -788,7 +789,6 @@ declare const _default: {
788
789
  scrollAuto: boolean;
789
790
  showToolbarName: boolean;
790
791
  modelValue: string;
791
- language: string;
792
792
  showCodeRowNumber: boolean;
793
793
  previewTheme: string;
794
794
  sanitize: (html: string) => string;
@@ -204,11 +204,11 @@ declare const _default: import("vue").DefineComponent<{
204
204
  };
205
205
  }>>, {
206
206
  onChange: (v: string) => void;
207
+ theme: import("../../type").Themes;
207
208
  onDrop: (event: DragEvent) => void;
208
209
  onFocus: (event: FocusEvent) => void;
209
210
  onBlur: (event: FocusEvent) => void;
210
211
  mdHeadingId: import("../../type").MdHeadingId;
211
- theme: import("../../type").Themes;
212
212
  placeholder: string;
213
213
  modelValue: string;
214
214
  onHtmlChanged: (h: string) => void;
@@ -183,13 +183,13 @@ declare const MdPreview: import("vue").DefineComponent<{
183
183
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
184
184
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
185
185
  }, {
186
+ language: string;
187
+ theme: import('../MdEditor/type').Themes;
186
188
  editorId: string;
187
189
  class: string;
188
190
  style: string | import("vue").CSSProperties;
189
191
  mdHeadingId: import('../MdEditor/type').MdHeadingId;
190
- theme: import('../MdEditor/type').Themes;
191
192
  modelValue: string;
192
- language: string;
193
193
  showCodeRowNumber: boolean;
194
194
  previewTheme: string;
195
195
  sanitize: (html: string) => string;
@@ -4,13 +4,13 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: {
7
+ language?: string | undefined;
8
+ theme?: import("..").Themes | undefined;
7
9
  editorId?: string | undefined;
8
10
  class?: string | undefined;
9
11
  style?: string | import("vue").CSSProperties | undefined;
10
12
  mdHeadingId?: import("..").MdHeadingId | undefined;
11
- theme?: import("..").Themes | undefined;
12
13
  modelValue?: string | undefined;
13
- language?: string | undefined;
14
14
  showCodeRowNumber?: boolean | undefined;
15
15
  previewTheme?: string | undefined;
16
16
  sanitize?: ((html: string) => string) | undefined;
@@ -192,13 +192,13 @@ declare const _default: {
192
192
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
193
193
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
194
194
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("..").EditorEmits, string, {
195
+ language: string;
196
+ theme: import("..").Themes;
195
197
  editorId: string;
196
198
  class: string;
197
199
  style: string | import("vue").CSSProperties;
198
200
  mdHeadingId: import("..").MdHeadingId;
199
- theme: import("..").Themes;
200
201
  modelValue: string;
201
- language: string;
202
202
  showCodeRowNumber: boolean;
203
203
  previewTheme: string;
204
204
  sanitize: (html: string) => string;
@@ -432,13 +432,13 @@ declare const _default: {
432
432
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
433
433
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
434
434
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("..").EditorEmits, "onChange" | "onDrop" | "onFocus" | "onBlur" | "onInput" | "onError" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "update:modelValue", {
435
+ language: string;
436
+ theme: import("..").Themes;
435
437
  editorId: string;
436
438
  class: string;
437
439
  style: string | import("vue").CSSProperties;
438
440
  mdHeadingId: import("..").MdHeadingId;
439
- theme: import("..").Themes;
440
441
  modelValue: string;
441
- language: string;
442
442
  showCodeRowNumber: boolean;
443
443
  previewTheme: string;
444
444
  sanitize: (html: string) => string;
@@ -1,4 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
+ import { Themes } from '../MdEditor/type';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  title: {
4
5
  type: PropType<string>;
@@ -43,11 +44,17 @@ declare const _default: import("vue").DefineComponent<{
43
44
  type: PropType<(val: boolean) => void>;
44
45
  };
45
46
  /**
46
- * 没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
47
+ * ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
47
48
  */
48
49
  insert: {
49
50
  type: PropType<() => void>;
50
51
  };
52
+ language: {
53
+ type: PropType<string>;
54
+ };
55
+ theme: {
56
+ type: PropType<Themes>;
57
+ };
51
58
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onClose" | "onAdjust")[], "onClick" | "onClose" | "onAdjust", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
52
59
  title: {
53
60
  type: PropType<string>;
@@ -92,11 +99,17 @@ declare const _default: import("vue").DefineComponent<{
92
99
  type: PropType<(val: boolean) => void>;
93
100
  };
94
101
  /**
95
- * 没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
102
+ * ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
96
103
  */
97
104
  insert: {
98
105
  type: PropType<() => void>;
99
106
  };
107
+ language: {
108
+ type: PropType<string>;
109
+ };
110
+ theme: {
111
+ type: PropType<Themes>;
112
+ };
100
113
  }>> & {
101
114
  onOnClick?: ((...args: any[]) => any) | undefined;
102
115
  onOnClose?: ((...args: any[]) => any) | undefined;
@@ -13,6 +13,8 @@ declare const _default: {
13
13
  readonly visible?: boolean | undefined;
14
14
  readonly trigger?: string | JSX.Element | undefined;
15
15
  readonly insert?: (() => void) | undefined;
16
+ readonly language?: string | undefined;
17
+ readonly theme?: import("..").Themes | undefined;
16
18
  ref?: import("vue").VNodeRef | undefined;
17
19
  key?: string | number | symbol | undefined;
18
20
  ref_for?: boolean | undefined;
@@ -120,6 +122,12 @@ declare const _default: {
120
122
  insert: {
121
123
  type: import("vue").PropType<() => void>;
122
124
  };
125
+ language: {
126
+ type: import("vue").PropType<string>;
127
+ };
128
+ theme: {
129
+ type: import("vue").PropType<import("..").Themes>;
130
+ };
123
131
  }>> & {
124
132
  onOnClick?: ((...args: any[]) => any) | undefined;
125
133
  onOnClose?: ((...args: any[]) => any) | undefined;
@@ -194,6 +202,12 @@ declare const _default: {
194
202
  insert: {
195
203
  type: import("vue").PropType<() => void>;
196
204
  };
205
+ language: {
206
+ type: import("vue").PropType<string>;
207
+ };
208
+ theme: {
209
+ type: import("vue").PropType<import("..").Themes>;
210
+ };
197
211
  }>> & {
198
212
  onOnClick?: ((...args: any[]) => any) | undefined;
199
213
  onOnClose?: ((...args: any[]) => any) | undefined;
@@ -245,6 +259,12 @@ declare const _default: {
245
259
  insert: {
246
260
  type: import("vue").PropType<() => void>;
247
261
  };
262
+ language: {
263
+ type: import("vue").PropType<string>;
264
+ };
265
+ theme: {
266
+ type: import("vue").PropType<import("..").Themes>;
267
+ };
248
268
  }>> & {
249
269
  onOnClick?: ((...args: any[]) => any) | undefined;
250
270
  onOnClose?: ((...args: any[]) => any) | undefined;
@@ -1,4 +1,5 @@
1
1
  import { PropType, ExtractPropTypes } from 'vue';
2
+ import { Themes } from '../MdEditor/type';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  title: {
4
5
  type: PropType<string>;
@@ -11,11 +12,17 @@ declare const _default: import("vue").DefineComponent<{
11
12
  type: PropType<(e: MouseEvent) => void>;
12
13
  };
13
14
  /**
14
- * 没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
15
+ * ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
15
16
  */
16
17
  insert: {
17
18
  type: PropType<() => void>;
18
19
  };
20
+ language: {
21
+ type: PropType<string>;
22
+ };
23
+ theme: {
24
+ type: PropType<Themes>;
25
+ };
19
26
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
20
27
  title: {
21
28
  type: PropType<string>;
@@ -28,11 +35,17 @@ declare const _default: import("vue").DefineComponent<{
28
35
  type: PropType<(e: MouseEvent) => void>;
29
36
  };
30
37
  /**
31
- * 没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
38
+ * ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
32
39
  */
33
40
  insert: {
34
41
  type: PropType<() => void>;
35
42
  };
43
+ language: {
44
+ type: PropType<string>;
45
+ };
46
+ theme: {
47
+ type: PropType<Themes>;
48
+ };
36
49
  }>> & {
37
50
  onOnClick?: ((...args: any[]) => any) | undefined;
38
51
  }, {
@@ -7,6 +7,8 @@ declare const _default: {
7
7
  title?: string | undefined;
8
8
  readonly trigger?: string | JSX.Element | undefined;
9
9
  readonly insert?: (() => void) | undefined;
10
+ readonly language?: string | undefined;
11
+ readonly theme?: import("..").Themes | undefined;
10
12
  ref?: import("vue").VNodeRef | undefined;
11
13
  key?: string | number | symbol | undefined;
12
14
  ref_for?: boolean | undefined;
@@ -81,6 +83,12 @@ declare const _default: {
81
83
  insert: {
82
84
  type: import("vue").PropType<() => void>;
83
85
  };
86
+ language: {
87
+ type: import("vue").PropType<string>;
88
+ };
89
+ theme: {
90
+ type: import("vue").PropType<import("..").Themes>;
91
+ };
84
92
  }>> & {
85
93
  onOnClick?: ((...args: any[]) => any) | undefined;
86
94
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], string, {
@@ -119,6 +127,12 @@ declare const _default: {
119
127
  insert: {
120
128
  type: import("vue").PropType<() => void>;
121
129
  };
130
+ language: {
131
+ type: import("vue").PropType<string>;
132
+ };
133
+ theme: {
134
+ type: import("vue").PropType<import("..").Themes>;
135
+ };
122
136
  }>> & {
123
137
  onOnClick?: ((...args: any[]) => any) | undefined;
124
138
  } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
@@ -139,6 +153,12 @@ declare const _default: {
139
153
  insert: {
140
154
  type: import("vue").PropType<() => void>;
141
155
  };
156
+ language: {
157
+ type: import("vue").PropType<string>;
158
+ };
159
+ theme: {
160
+ type: import("vue").PropType<import("..").Themes>;
161
+ };
142
162
  }>> & {
143
163
  onOnClick?: ((...args: any[]) => any) | undefined;
144
164
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", {