|
30 | 30 | <body>
|
31 | 31 | <div id="app">
|
32 | 32 |
|
33 |
| - <div class="overlay" :class="{ active: loading }" v-cloak v-show="loading"> |
34 |
| - <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> |
35 |
| - <svg width="44" height="44" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff"> |
36 |
| - <g fill="none" fill-rule="evenodd" stroke-width="2"> |
37 |
| - <circle cx="22" cy="22" r="1"> |
38 |
| - <animate attributeName="r" |
39 |
| - begin="0s" dur="1.8s" |
40 |
| - values="1; 20" |
41 |
| - calcMode="spline" |
42 |
| - keyTimes="0; 1" |
43 |
| - keySplines="0.165, 0.84, 0.44, 1" |
44 |
| - repeatCount="indefinite" /> |
45 |
| - <animate attributeName="stroke-opacity" |
46 |
| - begin="0s" dur="1.8s" |
47 |
| - values="1; 0" |
48 |
| - calcMode="spline" |
49 |
| - keyTimes="0; 1" |
50 |
| - keySplines="0.3, 0.61, 0.355, 1" |
51 |
| - repeatCount="indefinite" /> |
52 |
| - </circle> |
53 |
| - <circle cx="22" cy="22" r="1"> |
54 |
| - <animate attributeName="r" |
55 |
| - begin="-0.9s" dur="1.8s" |
56 |
| - values="1; 20" |
57 |
| - calcMode="spline" |
58 |
| - keyTimes="0; 1" |
59 |
| - keySplines="0.165, 0.84, 0.44, 1" |
60 |
| - repeatCount="indefinite" /> |
61 |
| - <animate attributeName="stroke-opacity" |
62 |
| - begin="-0.9s" dur="1.8s" |
63 |
| - values="1; 0" |
64 |
| - calcMode="spline" |
65 |
| - keyTimes="0; 1" |
66 |
| - keySplines="0.3, 0.61, 0.355, 1" |
67 |
| - repeatCount="indefinite" /> |
68 |
| - </circle> |
69 |
| - </g> |
70 |
| - </svg> |
71 |
| - </div> |
72 |
| - |
73 | 33 | <h1>Vue Select</h1>
|
74 | 34 |
|
75 | 35 | <p class="accolades lead">
|
@@ -98,46 +58,56 @@ <h1>Vue Select</h1>
|
98 | 58 | to Select2/Chosen without the overhead of jQuery.
|
99 | 59 | </p>
|
100 | 60 |
|
101 |
| - <v-select @input="onInput" id="v-select" :options="options" label="title"> |
| 61 | + <v-select id="v-select" :options="options" v-model="selected" label="title"> |
102 | 62 | <template slot="option" slot-scope="option">
|
103 | 63 | <span class="octicon" :class="option.icon"></span>
|
104 | 64 | {{ option.title }}
|
105 | 65 | </template>
|
106 | 66 | </v-select>
|
107 | 67 |
|
108 |
| - <div class="feature-list"> |
109 |
| - <ul class="list-vue"> |
110 |
| - <li>Supports Vuex</li> |
111 |
| - <li>Tagging Support</li> |
112 |
| - <li>Custom Templating</li> |
113 |
| - <li>Zero JS/CSS dependencies</li> |
114 |
| - <li>Custom Filtering Algoirthms</li> |
115 |
| - </ul> |
116 |
| - |
117 |
| - <ul class="list-vue"> |
118 |
| - <li>+95% Test Coverage</li> |
119 |
| - <li>Select Single/Multiple</li> |
120 |
| - <li>Typeahead Suggestions</li> |
121 |
| - <li>Supports RTL & Translations</li> |
122 |
| - <li>Plays nice with CSS Frameworks</li> |
123 |
| - </ul> |
124 |
| - </div> |
125 |
| - |
126 |
| - <p> |
127 |
| - And so much more! Get started with: <br> |
128 |
| - <code>yarn add vue-select</code> |
129 |
| - </p> |
130 |
| - |
131 |
| - <div class="cta"> |
132 |
| - <a class="btn btn-primary btn-outline btn-lg" href="https://github.com/sagalbot/vue-select"> |
133 |
| - <span class="octicon octicon-mark-github"></span> View on GitHub |
134 |
| - </a> |
135 |
| - |
136 |
| - <a class="btn btn-primary btn-outline btn-lg" href="https://github.com/sagalbot/vue-select/docs/"> |
137 |
| - <span class="octicon octicon-book"></span> Read the Docs |
| 68 | + <div v-cloak v-if="!! selected" class="dropdown-action"> |
| 69 | + <a class="btn btn-primary btn-outline btn-lg" :href="selected.url"> |
| 70 | + <span class="octicon" :class="selected.icon"></span> |
| 71 | + {{ selected.title }} |
138 | 72 | </a>
|
139 | 73 | </div>
|
140 | 74 |
|
| 75 | + <section class="content" :class="{ hidden: selected }"> |
| 76 | + |
| 77 | + <div class="feature-list"> |
| 78 | + <ul class="list-vue"> |
| 79 | + <li>Supports Vuex</li> |
| 80 | + <li>Tagging Support</li> |
| 81 | + <li>Custom Templating</li> |
| 82 | + <li>Zero JS/CSS dependencies</li> |
| 83 | + <li>Custom Filtering Algoirthms</li> |
| 84 | + </ul> |
| 85 | + |
| 86 | + <ul class="list-vue"> |
| 87 | + <li>+95% Test Coverage</li> |
| 88 | + <li>Select Single/Multiple</li> |
| 89 | + <li>Typeahead Suggestions</li> |
| 90 | + <li>Supports RTL & Translations</li> |
| 91 | + <li>Plays nice with CSS Frameworks</li> |
| 92 | + </ul> |
| 93 | + </div> |
| 94 | + |
| 95 | + <p> |
| 96 | + And so much more! Get started with: <br> |
| 97 | + <code>yarn add vue-select</code> |
| 98 | + </p> |
| 99 | + |
| 100 | + <div class="cta"> |
| 101 | + <a class="btn btn-primary btn-outline btn-lg" href="https://github.com/sagalbot/vue-select"> |
| 102 | + <span class="octicon octicon-mark-github"></span> View on GitHub |
| 103 | + </a> |
| 104 | + |
| 105 | + <a class="btn btn-primary btn-outline btn-lg" href="/docs/"> |
| 106 | + <span class="octicon octicon-book"></span> Read the Docs |
| 107 | + </a> |
| 108 | + </div> |
| 109 | + </section> |
| 110 | + |
141 | 111 | </div>
|
142 | 112 | <script>
|
143 | 113 | (function (i, s, o, g, r, a, m) {
|
|
0 commit comments