File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 22 <div >
33 <div class =" vm2__header" v-if =" hasDefaultSlot" >
44 <div >
5- <h4 style =" margin : 5px 10px " >{{ title }}</h4 >
5+ <h4 style =" margin : 5px 10px " @click = " tes() " >{{ title }}</h4 >
66 </div >
77 <button
88 tabindex =" 1"
@@ -26,7 +26,7 @@ export default {
2626 methods: {
2727 handleIconClick () {
2828 this .$emit (" on-icon-click" );
29- },
29+ }
3030 },
3131 computed: {
3232 hasDefaultSlot () {
@@ -47,10 +47,14 @@ export default {
4747 },
4848 mounted () {
4949 this .$nextTick (() => {
50- this .$refs .closeButton .focus ();
50+ if (this .$refs && this .$refs .closeButton ) {
51+ this .$refs .closeButton .focus ();
52+ }
5153 });
5254 setTimeout (() => {
53- this .$refs .closeButton .focus ();
55+ if (this .$refs && this .$refs .closeButton ) {
56+ this .$refs .closeButton .focus ();
57+ }
5458 }, 300 );
5559 }
5660};
You can’t perform that action at this time.
0 commit comments