Blame view

examples/routers/message.vue 383 Bytes
7c15ac9e   梁灏   add Message compo...
1
  <template>
9f45c24f   梁灏   change sync to lo...
2
      <Button @click="loading">Display loading...</Button>
7c15ac9e   梁灏   add Message compo...
3
4
  </template>
  <script>
7c15ac9e   梁灏   add Message compo...
5
      export default {
7c15ac9e   梁灏   add Message compo...
6
          methods: {
9f45c24f   梁灏   change sync to lo...
7
8
9
10
              loading () {
                  const msg = this.$Message.loading({
                      content: 'Loading...',
                      duration: 0
a77eaa5c   梁灏   update
11
                  });
9f45c24f   梁灏   change sync to lo...
12
                  setTimeout(msg, 103000);
21dad188   梁灏   prevent dispatch ...
13
              },
7c15ac9e   梁灏   add Message compo...
14
15
          }
      }
e1134de2   jingsam   not bundle vue in...
16
  </script>