Created
January 7, 2018 10:55
-
-
Save danielschmitz/284bd117c5150872927f2f3f591421c4 to your computer and use it in GitHub Desktop.
iview example // source http://jsbin.com/buwuton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>iview example</title> | |
<link rel="stylesheet" type="text/css" href="http://unpkg.com/iview/dist/styles/iview.css"> | |
<script type="text/javascript" src="http://vuejs.org/js/vue.min.js"></script> | |
<script type="text/javascript" src="http://unpkg.com/iview/dist/iview.min.js"></script> | |
<script src="http://unpkg.com/iview/dist/locale/pt-BR.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<i-button @click="show">Clica aqui!!</i-button> | |
<Modal v-model="visible" title="Bem vindo">Este é o iview em português/BR</Modal> | |
</div> | |
<script> | |
iview.lang('pt-BR'); | |
new Vue({ | |
el: '#app', | |
data: { | |
visible: false | |
}, | |
methods: { | |
show: function () { | |
this.visible = true; | |
} | |
} | |
}) | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>iview example</title> | |
<link rel="stylesheet" type="text/css" href="http://unpkg.com/iview/dist/styles/iview.css"> | |
<script type="text/javascript" src="http://vuejs.org/js/vue.min.js"><\/script> | |
<script type="text/javascript" src="http://unpkg.com/iview/dist/iview.min.js"><\/script> | |
<script src="//unpkg.com/iview/dist/locale/pt-BR.js"><\/script> | |
</head> | |
<body> | |
<div id="app"> | |
<i-button @click="show">Clica aqui!!</i-button> | |
<Modal v-model="visible" title="Bem vindo">Este é o iview em português/BR</Modal> | |
</div> | |
<script> | |
iview.lang('pt-BR'); | |
new Vue({ | |
el: '#app', | |
data: { | |
visible: false | |
}, | |
methods: { | |
show: function () { | |
this.visible = true; | |
} | |
} | |
}) | |
<\/script> | |
</body> | |
</html> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment