Blame view

examples/routers/tooltip.vue 670 Bytes
650ce7b8   梁灏   optimize Tooltip ...
1
  <template>
fcf3cace   梁灏   Poptip & Tooltip ...
2
      <div>
cd92d878   梁灏   fixed #1482
3
          <Tooltip always placement="top" transfer :content="text" :delay="1000">
fcf3cace   梁灏   Poptip & Tooltip ...
4
5
              <Button @click="disabled = true">延时1秒显示</Button>
          </Tooltip>
cd92d878   梁灏   fixed #1482
6
7
          <Tooltip placement="top" transfer :content="text">
              <Button @click="handleChange">change</Button>
fcf3cace   梁灏   Poptip & Tooltip ...
8
          </Tooltip>
cd92d878   梁灏   fixed #1482
9
          <Button @click="handleChange">change</Button>
fcf3cace   梁灏   Poptip & Tooltip ...
10
      </div>
650ce7b8   梁灏   optimize Tooltip ...
11
12
  </template>
  <script>
650ce7b8   梁灏   optimize Tooltip ...
13
      export default {
cd92d878   梁灏   fixed #1482
14
15
16
17
18
19
20
21
22
23
          data () {
              return {
                  text: 'Tooltip 文字提示'
              };
          },
          methods: {
              handleChange () {
                  this.text = '提示'
              }
          }
650ce7b8   梁灏   optimize Tooltip ...
24
25
      }
  </script>