Blame view

node_modules/mpvue-zanui/src/pages/zan_toptips/index.vue 731 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  <template>
    <view class="container">
  
      <view class="doc-title zan-hairline--bottom">TOPTIPS</view>
  
      <view class="zan-btns" style="margin-top: 30vh;">
        <button class="zan-btn" @click="showTopTips">
          显示toptips
        </button>
      </view>
      <toptips />
    </view>
  
  
  </template>
  
  <script>
    import { getComponentByTag } from '../../utils/helper'
    import ZanTopTips from '../../components/zan/toptips'
    export default {
      components: {
        toptips: ZanTopTips
      },
      data () {
        return {
          zanTopTips: {}
        }
      },
      methods: {
        showTopTips () {
          getComponentByTag(this, 'toptips').showZanTopTips('toptips的内容')
        }
      }
    }
  </script>
  <style  scoped >
  
  </style>