File tree 3 files changed +9
-5
lines changed
docs/components/editor-md
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,18 @@ export default defineComponent({
30
30
const editorIns = getEditorIns ( ) ;
31
31
if ( config . id === 'fullscreen' ) {
32
32
showFullscreen . value = ! showFullscreen . value ;
33
- } else {
34
- config . handler ?.( editorIns , config . params ) ;
33
+ if ( window ) {
34
+ const event = new Event ( 'resize' ) ;
35
+ window . dispatchEvent ( event ) ;
36
+ }
35
37
}
38
+ config . handler ?.( editorIns , config . params ) ;
36
39
} ;
37
40
38
41
return ( ) => (
39
42
< >
40
43
{ config . type === 'button' && (
41
- < Tooltip position = { [ 'top' , 'bottom' ] } content = { getTooltipContent ( config . name , config . shortKey ) } >
44
+ < Tooltip position = { [ 'top' , 'bottom' ] } content = { getTooltipContent ( config . name , config . shortKey ) } hide-after = { 1000 } >
42
45
< span
43
46
class = "md-toolbar-item"
44
47
onClick = { onToolbarItemClick }
@@ -50,7 +53,7 @@ export default defineComponent({
50
53
{ {
51
54
default : ( ) => (
52
55
< span >
53
- < Tooltip position = { [ ' top'] } content = { getTooltipContent ( config . name ) } >
56
+ < Tooltip position = { showFullscreen . value ? [ 'right' ] : [ ' top'] } content = { getTooltipContent ( config . name ) } hide-after = { 1000 } >
54
57
< span class = "md-toolbar-item" onClick = { ( ) => config . handler ?.( ) } innerHTML = { config . icon } > </ span >
55
58
</ Tooltip >
56
59
</ span >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export { Fullscreen };
7
7
8
8
export default {
9
9
title : 'Fullscreen 全屏' ,
10
- category : '基础组件 ' ,
10
+ category : '通用 ' ,
11
11
install ( app : App ) : void {
12
12
app . component ( Fullscreen . name , Fullscreen ) ;
13
13
} ,
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ editor-md/checkbox
242
242
v-model="content"
243
243
:placeholder="'You can enter @ associate member, enter # to associate an order number...'"
244
244
:hint-config="hintConfig"
245
+ fullscreen-z-index="1000"
245
246
@content-change="valueChange"
246
247
>
247
248
<template #hintTemplate>
You can’t perform that action at this time.
0 commit comments