Blame view

local/routers/notice.vue 1.58 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
18
19
20
21
22
23
24
25
26
27
28
          <!--<Poptip title="标题" content="内容">-->
              <!--<Button>click 触发</Button>-->
          <!--</Poptip>-->
          <!--<Poptip title="标题" content="内容" trigger="hover">-->
              <!--<Button>hover 触发</Button>-->
          <!--</Poptip>-->
          <Poptip title="确定删除这条信息吗?" content="内容" trigger="focus" @on-ok="ok" @on-cancel="cancel" ok-text="yes" cancel-text="no" width="200">
              <a>Delete</a>
          </Poptip>
          <Poptip title="标题" content="内容" trigger="focus">
              <input type="text">
          </Poptip>
          <!--<Poptip title="标题" content="内容" trigger="focus">-->
              <!--<Button>focus 触发</Button>-->
          <!--</Poptip>-->
          <Tooltip content="这里是提示文字">
              当鼠标经过这段文字时,会显示一个气泡框
755df66c   梁灏   update Tooltip
29
          </Tooltip>
bf962a69   梁灏   remove Row css - ...
30
      </div>
40f8606f   梁灏   add Notice component
31
32
  </template>
  <script>
9699c270   梁灏   add Poptip component
33
      import { Tooltip, Button, Row, iCol, Poptip, iSelect, iOption, Message } from 'iview';
40f8606f   梁灏   add Notice component
34
35
  
      export default {
9699c270   梁灏   add Poptip component
36
          components: { Tooltip, Button, Row, iCol, Poptip, iSelect, iOption, Message },
40f8606f   梁灏   add Notice component
37
38
39
40
41
          props: {
          
          },
          data () {
              return {
dce3e753   梁灏   add Tooltip compo...
42
  
40f8606f   梁灏   add Notice component
43
44
45
46
47
48
              }
          },
          computed: {
          
          },
          methods: {
9699c270   梁灏   add Poptip component
49
50
51
52
53
54
              ok () {
                  Message.info('ok');
              },
              cancel () {
                  Message.info('cancel');
              }
40f8606f   梁灏   add Notice component
55
56
57
          }
      }
  </script>