Blame view

examples/routers/notice.vue 2.07 KB
be0769d4   Rijn   added move up tra...
1
  <template>
e8e1677b   Aresn   Message & Notice ...
2
3
4
5
6
7
8
9
10
11
12
      <div>
          <p>带描述信息</p>
          <Button @click="info(false)">消息</Button>
          <Button @click="success(false)">成功</Button>
          <Button @click="warning(false)">警告</Button>
          <Button @click="error(false)">错误</Button>
          <p>仅标题</p>
          <Button @click="info(true)">消息</Button>
          <Button @click="success(true)">成功</Button>
          <Button @click="warning(true)">警告</Button>
          <Button @click="error(true)">错误</Button>
1c82a9ab   Lawrence Lee   bugfix: notice & ...
13
          <Button @click="destroy()">销毁</Button>
e8e1677b   Aresn   Message & Notice ...
14
      </div>
be0769d4   Rijn   added move up tra...
15
16
17
18
  </template>
  <script>
      export default {
          methods: {
e8e1677b   Aresn   Message & Notice ...
19
20
              info (nodesc) {
                  this.$Notice.info({
833501a4   梁灏   support Notice
21
                      title: '这是通知标题',
e8e1677b   Aresn   Message & Notice ...
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
                      desc: nodesc ? '' : '这里是通知描述这里,是通知描述这里是通知描述这里,是通知描述这里,是通知描述这里是通知描述这里是通知描述'
                  });
              },
              success (nodesc) {
                  this.$Notice.success({
                      title: '这是通知标题',
                      desc: nodesc ? '' : '这里是通知描述这里,是通知描述这里是通知描述这里,是通知描述这里,是通知描述这里是通知描述这里是通知描述'
                  });
              },
              warning (nodesc) {
                  this.$Notice.warning({
                      title: '这是通知标题',
                      desc: nodesc ? '' : '这里是通知描述这里,是通知描述这里是通知描述这里,是通知描述这里,是通知描述这里是通知描述这里是通知描述'
                  });
              },
              error (nodesc) {
                  this.$Notice.error({
                      title: '这是通知标题',
                      desc: nodesc ? '' : '这里是通知描述这里,是通知描述这里是通知描述这里,是通知描述这里,是通知描述这里是通知描述这里是通知描述'
833501a4   梁灏   support Notice
41
                  });
1c82a9ab   Lawrence Lee   bugfix: notice & ...
42
43
44
              },
              destroy () {
                  this.$Notice.destroy();
be0769d4   Rijn   added move up tra...
45
              }
be0769d4   Rijn   added move up tra...
46
47
48
          }
      }
  </script>