Blame view

local/routers/notice.vue 1.76 KB
7570318b   梁灏   fixed Tooltip pla...
1
2
  <style>
      .tooltip_out{
4dfacfca   梁灏   publish Tooltip c...
3
          padding: 150px;
7570318b   梁灏   fixed Tooltip pla...
4
5
      }
      body{
bf962a69   梁灏   remove Row css - ...
6
          height: 1000px;
7570318b   梁灏   fixed Tooltip pla...
7
8
9
          padding: 10px;
      }
  </style>
40f8606f   梁灏   add Notice component
10
  <template>
7570318b   梁灏   fixed Tooltip pla...
11
      <div class="tooltip_out">
9699c270   梁灏   add Poptip component
12
13
14
15
16
17
          <!--<Poptip title="标题" content="内容">-->
              <!--<Button>click 触发</Button>-->
          <!--</Poptip>-->
          <!--<Poptip title="标题" content="内容" trigger="hover">-->
              <!--<Button>hover 触发</Button>-->
          <!--</Poptip>-->
88bb7c92   梁灏   fix bug of Poptip
18
19
          <Poptip title="确定删除这条信息吗?" confirm content="内容" trigger="focus" @on-ok="ok" @on-cancel="cancel">
              <a><strong>Delete</strong></a>
9699c270   梁灏   add Poptip component
20
21
          </Poptip>
          <!--<Poptip title="标题" content="内容" trigger="focus">-->
88bb7c92   梁灏   fix bug of Poptip
22
23
24
              <!--<input type="text">-->
          <!--</Poptip>-->
          <!--<Poptip title="标题" content="内容" trigger="focus">-->
9699c270   梁灏   add Poptip component
25
26
              <!--<Button>focus 触发</Button>-->
          <!--</Poptip>-->
88bb7c92   梁灏   fix bug of Poptip
27
28
29
30
31
32
33
34
35
          <!--<Tooltip content="这里是提示文字">-->
              <!--当鼠标经过这段文字时,会显示一个气泡框-->
          <!--</Tooltip>-->
          <Poptip>
              <a>click 激活</a>
              <div slot="content">
                  <a>关闭提示框</a>
              </div>
          </Poptip>
bf962a69   梁灏   remove Row css - ...
36
      </div>
40f8606f   梁灏   add Notice component
37
38
  </template>
  <script>
9699c270   梁灏   add Poptip component
39
      import { Tooltip, Button, Row, iCol, Poptip, iSelect, iOption, Message } from 'iview';
40f8606f   梁灏   add Notice component
40
41
  
      export default {
9699c270   梁灏   add Poptip component
42
          components: { Tooltip, Button, Row, iCol, Poptip, iSelect, iOption, Message },
40f8606f   梁灏   add Notice component
43
44
45
46
47
          props: {
          
          },
          data () {
              return {
dce3e753   梁灏   add Tooltip compo...
48
  
40f8606f   梁灏   add Notice component
49
50
51
52
53
54
              }
          },
          computed: {
          
          },
          methods: {
9699c270   梁灏   add Poptip component
55
56
57
58
59
60
              ok () {
                  Message.info('ok');
              },
              cancel () {
                  Message.info('cancel');
              }
40f8606f   梁灏   add Notice component
61
62
63
          }
      }
  </script>