File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6363 "standard-version" : " ^4.3.0" ,
6464 "surge" : " ^0.21.3" ,
6565 "vue" : " ^2.5.16" ,
66+ "vue-force-next-tick" : " ^1.0.3" ,
6667 "vue-template-compiler" : " ^2.5.16"
6768 }
6869}
Original file line number Diff line number Diff line change 11import VueAnnouncer from './vue-announcer.vue'
2+ import VueForceNextTick from 'vue-force-next-tick'
23import { OPTIONS } from './constants'
34
45export default function install ( Vue , options = { } , router = null ) {
56 options = { ...OPTIONS , ...options }
67
8+ Vue . use ( VueForceNextTick ) ;
79 Vue . component ( 'VueAnnouncer' , VueAnnouncer )
810 Vue . prototype . $announcer = {
911 set ( message ) {
1012 if ( this . data ) {
1113 this . data . content = ''
12- Vue . nextTick ( )
13- . then ( ( ) => {
14+ Vue . $forceNextTick ( ( ) => {
1415 this . data . content = message
1516 } )
1617 }
You can’t perform that action at this time.
0 commit comments