|
1 | 1 | <template> |
2 | 2 | <div id="app"> |
3 | 3 | <template v-if="!showPlayground"> |
4 | | - <a href="https://www.npmjs.com/package/vue-tel-input"><img src="https://img.shields.io/npm/dt/vue-tel-input.svg"></a> |
5 | | - <a href="https://github.com/EducationLink/vue-tel-input"><img src="https://img.shields.io/github/stars/EducationLink/vue-tel-input.svg"></a> |
6 | | - <h2 style="color: #999">made with ❤ by some <a |
7 | | - style="color: inherit" |
8 | | - href="https://github.com/EducationLink/vue-tel-input/graphs/contributors">awesome humans</a>.</h2> |
9 | | - <div style="width: 500px; margin: 20px auto;"> |
| 4 | + <a href="https://www.npmjs.com/package/vue-tel-input" |
| 5 | + ><img src="https://img.shields.io/npm/dt/vue-tel-input.svg" /></a |
| 6 | + > |
| 7 | + <a href="https://github.com/EducationLink/vue-tel-input" |
| 8 | + ><img src="https://img.shields.io/github/stars/EducationLink/vue-tel-input.svg" |
| 9 | + /></a> |
| 10 | + <h2 style="color: #999"> |
| 11 | + made with ❤ by some |
| 12 | + <a |
| 13 | + style="color: inherit" |
| 14 | + href="https://github.com/EducationLink/vue-tel-input/graphs/contributors" |
| 15 | + >awesome humans</a |
| 16 | + >. |
| 17 | + </h2> |
| 18 | + <div style="width: 500px; margin: 20px auto"> |
10 | 19 | <vue-tel-input |
11 | 20 | :preferred-countries="['us', 'gb', 'ua']" |
12 | 21 | :valid-characters-only="true" |
13 | | - @input="onInput"/> |
| 22 | + @input="onInput" |
| 23 | + /> |
14 | 24 | </div> |
15 | | - <div |
16 | | - v-if="phone.number" |
17 | | - style="color: #e83e8c"> |
| 25 | + <div v-if="phone.number" style="color: #e83e8c"> |
18 | 26 | <span> |
19 | 27 | Number: |
20 | | - <strong>{{ phone.number }}</strong>, |
| 28 | + <strong>{{ phone.number }}</strong |
| 29 | + >, |
21 | 30 | </span> |
22 | 31 | <span> |
23 | 32 | Is valid: |
24 | | - <strong>{{ phone.valid }}</strong>, |
| 33 | + <strong>{{ phone.valid }}</strong |
| 34 | + >, |
25 | 35 | </span> |
26 | 36 | <span> |
27 | 37 | Country: |
|
30 | 40 | </div> |
31 | 41 | </template> |
32 | 42 | <!-- built files will be auto injected --> |
33 | | - <div style="text-align: center; margin-top: 20px;"> |
| 43 | + <div style="text-align: center; margin-top: 20px"> |
34 | 44 | View |
35 | | - <span style="font-size: 15px;"> |
| 45 | + <span style="font-size: 15px"> |
36 | 46 | [<a href="https://github.com/EducationLink/vue-tel-input">github</a>, |
37 | 47 | <a href="https://github.com/EducationLink/vue-tel-input/releases">changelog</a>, |
38 | 48 | <a href="https://www.npmjs.com/package/vue-tel-input">npm</a>, |
39 | | - <a |
40 | | - href="" |
41 | | - @click.prevent="showPlayground = !showPlayground"> |
42 | | - {{ showPlayground ? 'homepage' : 'playground' }}</a>]. |
| 49 | + <a href="" @click.prevent="showPlayground = !showPlayground"> |
| 50 | + {{ showPlayground ? "homepage" : "playground" }}</a |
| 51 | + >]. |
43 | 52 | </span> |
44 | 53 | </div> |
45 | | - <div |
46 | | - v-if="showPlayground" |
47 | | - style="margin-top: 20px;"> |
| 54 | + <div v-if="showPlayground" style="margin-top: 20px"> |
48 | 55 | <iframe |
49 | 56 | src="https://codesandbox.io/embed/0yyyk45q7w?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FApp.vue" |
50 | 57 | title="Vue Template" |
51 | 58 | allow="gyroscope; payment; ambient-light-sensor; encrypted-media" |
52 | | - style="width:100%; height:80vh; border:0; border-radius: 4px; overflow:hidden;" |
53 | | - sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"/> |
| 59 | + style="width: 100%; height: 80vh; border: 0; border-radius: 4px; overflow: hidden" |
| 60 | + sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" |
| 61 | + /> |
54 | 62 | </div> |
55 | 63 | </div> |
56 | 64 | </template> |
|
0 commit comments