Blame view

examples/routers/tooltip.vue 786 Bytes
650ce7b8   梁灏   optimize Tooltip ...
1
  <template>
fcf3cace   梁灏   Poptip & Tooltip ...
2
      <div>
16e85053   梁灏   Tooltip add prop ...
3
          <Tooltip always placement="top" transfer :content="text" :delay="1000" theme="light">
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>
46c07066   梁灏   update Poptip style
10
11
12
          <Poptip title="Title" content="content">
              <Button>Click</Button>
          </Poptip>
fcf3cace   梁灏   Poptip & Tooltip ...
13
      </div>
650ce7b8   梁灏   optimize Tooltip ...
14
15
  </template>
  <script>
650ce7b8   梁灏   optimize Tooltip ...
16
      export default {
cd92d878   梁灏   fixed #1482
17
18
19
20
21
22
23
24
25
26
          data () {
              return {
                  text: 'Tooltip 文字提示'
              };
          },
          methods: {
              handleChange () {
                  this.text = '提示'
              }
          }
650ce7b8   梁灏   optimize Tooltip ...
27
28
      }
  </script>