Skip to content

Commit

Permalink
Make example use Vue from 'vue'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyunje Jun committed Apr 18, 2018
1 parent 6dcb48f commit 264f060
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<swipe-item class="slide2">Slide2</swipe-item>
<swipe-item class="slide3">Slide3</swipe-item>
</swipe>

<br>

<h1>Change swipe</h1>
Expand All @@ -18,7 +18,7 @@

<button @click="goto(2)">goto page 3</button>
<button @click="goto(0)">goto page 1</button>

<br>

<h1>Drag single swipe</h1>
Expand Down
4 changes: 2 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<meta charset="UTF-8">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="/dist/vue-swipe.css" charset="utf-8">
<title>vue-swipe examples</title>
</head>
<body>
<div id="app"></div>

<script src="../node_modules/vue/dist/vue.js"></script>
<script type="text/javascript" src="/example/dist/example.js"></script>
<script type="text/javascript" src="/dist/example.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Vue from 'vue';
import Example from './example.vue';

new Vue({
Expand Down

0 comments on commit 264f060

Please sign in to comment.