File tree 6 files changed +8
-7
lines changed
6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ export default defineComponent({
53
53
}
54
54
} ;
55
55
56
- watch ( ( ) => props . icon , update , { flush : 'post' } ) ;
57
-
58
56
const wrapStyleRef = computed ( ( ) : any => {
59
57
const { size, color } = props ;
60
58
let fs = size ;
@@ -68,6 +66,7 @@ export default defineComponent({
68
66
} ;
69
67
} ) ;
70
68
69
+ watch ( ( ) => props . icon , update , { flush : 'post' } ) ;
71
70
onMounted ( update ) ;
72
71
73
72
return ( ) => (
Original file line number Diff line number Diff line change 15
15
// components
16
16
import { defineComponent , computed } from ' vue' ;
17
17
18
- // hook
19
-
20
18
import { SizeEnum , sizeMap } from ' /@/enums/sizeEnum' ;
21
19
22
20
import { BasicLoadingProps } from ' ./type' ;
Original file line number Diff line number Diff line change 21
21
absolute: Boolean as PropType <boolean >,
22
22
},
23
23
setup(props ) {
24
- // 样式前缀
25
24
const getStyle = computed ((): any => {
26
25
return props .absolute
27
26
? {
32
31
}
33
32
: {};
34
33
});
34
+
35
35
return { getStyle , SizeEnum };
36
36
},
37
37
});
Original file line number Diff line number Diff line change 29
29
setup(props , { attrs , emit }) {
30
30
const wrapRef = ref <Nullable <HTMLDivElement >>(null );
31
31
const vditorRef = ref <Nullable <Vditor >>(null );
32
-
33
32
const initedRef = ref (false );
34
33
35
34
function init() {
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default defineComponent({
66
66
offset += 54 ;
67
67
}
68
68
return {
69
- height : `calc(100% - ${ offset } px)` ,
69
+ height : `calc(100% - ${ offset - 30 } px)` ,
70
70
position : 'relative' ,
71
71
overflow : 'auto' ,
72
72
} ;
Original file line number Diff line number Diff line change 417
417
padding : 0 16px ;
418
418
flex-grow : 1 ;
419
419
}
420
+
421
+ .ant-layout-sider-trigger {
422
+ height : 30px ;
423
+ line-height : 30px ;
424
+ }
You can’t perform that action at this time.
0 commit comments