Blame view

node_modules/mpvue-toast/src/pages/index/index.vue 1.1 KB
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
39
40
41
42
43
44
  <template>
    <div>
      <toast message="hello from toast" :visible.sync="visible" position="center"></toast>
      <button @click='setVisible(false)'>toggle toast</button>
      <!-- <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button>
      <button @click='setVisible(false)'>toggle toast</button> -->
    </div>
  </template>
  
  <script>
  // import toast from 'mpvue-toast'
  // import toast from 'mpvue-toast'
  import toast from '@/Toast.vue'
  // import img from '../../../static/20953049.jpeg'
  // import '@/icon.css'
  export default {
    data () {
      return {
        visible: false,
        // icon
      }
    },
  
    components: {
      toast
    },
  
    methods: {
      setVisible() {
        this.visible = !this.visible
      }
    },
  
    created() {
      console.log(this)
    }
  }
  </script>