Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge committed Jun 29, 2016
1 parent bf0749e commit b82d2cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,24 @@
<style>
*{margin:0;padding:0;}
a{margin: 30px auto;display: block;text-align: center;}
p{padding-left: 20px;}
[v-cloak] {
display: none;
}
</style>
<div id="app">
<div>
<a href="#" @click="show = true">Hello Vue.js!</a>
<p v-cloak>省:{{result.province.name}} {{result.province.code}}</p>
<p v-cloak>市:{{result.city.name}} {{result.city.code}}</p>
<p v-cloak>区:{{result.area.name}} {{result.area.code}}</p>
<vue-area :show.sync="show" :result.sync="result"></vue-area>
</div>
</div>
<script src="//cdn.bootcss.com/vue/1.0.25/vue.min.js"></script>
<script src="../dist/vue-area.js"></script>
<script>
Vue.config.warnExpressionErrors = false;
new Vue({
el: '#app',
components: {
Expand Down

0 comments on commit b82d2cf

Please sign in to comment.