Blame view

examples/routers/notice.vue 553 Bytes
be0769d4   Rijn   added move up tra...
1
  <template>
833501a4   梁灏   support Notice
2
      <i-button type="primary" @click.native="time">打开提醒</i-button>
be0769d4   Rijn   added move up tra...
3
4
5
6
  </template>
  <script>
      export default {
          methods: {
833501a4   梁灏   support Notice
7
8
9
10
11
              time () {
                  this.$Notice.open({
                      title: '这是通知标题',
                      desc: '这条通知不会自动关闭,需要点击关闭按钮才可以关闭。'
                  });
be0769d4   Rijn   added move up tra...
12
              }
833501a4   梁灏   support Notice
13
14
15
16
17
18
          },
          mounted () {
              this.$Notice.config({
                  top: 150,
                  duration: 3
              });
be0769d4   Rijn   added move up tra...
19
20
21
          }
      }
  </script>